/* HOME PAGE CSS */

:root {
    /* Brand palette */
    --cozzicotton-primary: #B89658;
    --cozzicotton-primary-hover: #947844;
}

/* MAIN SLIDER CSS */
.fade-carousel {
    position: relative;
    height: 75vh;
}

.fade-carousel .carousel-inner .item {
    height: 75vh;
}

.fade-carousel .carousel-indicators > li {
    margin: 0 2px;
    background-color: var(--cozzicotton-primary);
    border-color: var(--cozzicotton-primary);
    opacity: .7;
}

.fade-carousel .carousel-indicators > li.active {
    width: 10px;
    height: 10px;
    opacity: 1;
}

/********************************/
/*          Hero Headers        */
/********************************/
.carousel .hero {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .75);
    -webkit-transform: translate3d(-50%, -50%, 0);
    -moz-transform: translate3d(-50%, -50%, 0);
    -ms-transform: translate3d(-50%, -50%, 0);
    -o-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
}

.carousel .hero h1 {
    font-size: 4em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: lightgray !important;
}

.carousel .hero .h3, h3 {
    font-size: 18px !important;
    color: lightgray !important;
}

.fade-carousel .carousel-inner .item .hero {
    opacity: 0;
    -webkit-transition: 2s all ease-in-out .1s;
    -moz-transition: 2s all ease-in-out .1s;
    -ms-transition: 2s all ease-in-out .1s;
    -o-transition: 2s all ease-in-out .1s;
    transition: 2s all ease-in-out .1s;
}

.fade-carousel .carousel-inner .item.active .hero {
    opacity: 1;
    -webkit-transition: 2s all ease-in-out .1s;
    -moz-transition: 2s all ease-in-out .1s;
    -ms-transition: 2s all ease-in-out .1s;
    -o-transition: 2s all ease-in-out .1s;
    transition: 2s all ease-in-out .1s;
}

/********************************/
/*            Overlay           */
/********************************/
.carousel .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: #080d15;
    opacity: .7;
}

/********************************/
/*          Custom Buttons      */
/********************************/
.carousel .btn.btn-lg {
    padding: 10px 40px;
}

.carousel .btn.btn-hero,
.carousel .btn.btn-hero:focus {
    color: #ffffff !important;
    border-width: initial;
    /*background-color: #B89658!important;*/
    background-color: transparent !important;
    border-color: var(--cozzicotton-primary) !important;
    outline: none;
    margin: 20px auto;
}

.carousel .btn.btn-hero:hover {
    background-color: var(--cozzicotton-primary-hover) !important;
}

/********************************/
/*       Slides backgrounds     */
/********************************/
.fade-carousel .slides .slide-1,
.fade-carousel .slides .slide-2,
.fade-carousel .slides .slide-3 {
    height: 75vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/********************************/
/*          Media Queries       */
/********************************/
@media screen and (min-width: 980px) {
    .hero {
        width: 980px;
    }
}

@media screen and (max-width: 640px) {
    .hero h1 {
        font-size: 4em;
    }
}


/* FEATURED CATEGORIES CSS */
.container.featured-categories {
    border-top: 1px solid #e5e5e5;
    margin-top: 50px;
}

.container.featured-categories h2 {
    color: #000;
    font-size: 26px;
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    margin: 30px 0 80px;
}

.container.featured-categories h2::after {
    content: "";
    width: 100px;
    position: absolute;
    margin: 0 auto;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    right: 0;
    bottom: -20px;
}

.container.featured-categories h2 b {
    color: #B89658;
}

.container.featured-categories .thumbnail {
    border: none;
    box-shadow: none;
}

.container.featured-categories .caption h4 {
    text-align: center;
}

/*Product Carousel*/
.container.product-carousel {
    border-top: 1px solid #e5e5e5;
    /*margin-top: 50px;*/
}

.container.product-carousel h2 {
    color: #000;
    font-size: 26px;
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    margin: 30px 0 80px;
}

.container.product-carousel h2 b {
    color: #B89658;
}

.container.product-carousel h2::after {
    content: "";
    width: 100px;
    position: absolute;
    margin: 0 auto;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    right: 0;
    bottom: -20px;
}

.container.product-carousel .carousel {
    /*margin: 50px auto;*/
    margin: 0px;
    padding: 0 70px;
}

.container.product-carousel .carousel .item {
    min-height: 330px;
    text-align: center;
    overflow: hidden;
}

.container.product-carousel .carousel .item .img-box {
    height: 160px;
    width: 100%;
    position: relative;
}

.container.product-carousel .carousel .item img {
    max-width: 100%;
    max-height: 100%;
    display: inline-block;
    position: absolute;
    bottom: 0;
    margin: 0 auto;
    left: 0;
    right: 0;
    height: fit-content;
    width: fit-content;
}

.container.product-carousel .carousel .item h4 {
    font-size: 18px;
    margin: 10px 0;
}

.container.product-carousel .carousel .item .btn {
    color: #333;
    border-radius: 0;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    background: none;
    border: 1px solid #ccc;
    padding: 5px 10px;
    margin-top: 5px;
    line-height: 16px;
}

.container.product-carousel .carousel .item .btn:hover, .carousel .item .btn:focus {
    color: #fff;
    background: #000;
    border-color: #000;
    box-shadow: none;
}

.container.product-carousel .carousel .item .btn i {
    font-size: 14px;
    font-weight: bold;
    margin-left: 5px;
}

.container.product-carousel .carousel .thumb-wrapper {
    text-align: center;
}

.container.product-carousel .carousel .thumb-content {
    padding: 15px;
}

.container.product-carousel .carousel .carousel-control {
    height: 170px;
    /*height: 100px;*/
    width: 40px;
    background: none;
    /*margin: auto 0;*/
    /*background: rgba(0, 0, 0, 0.2);*/
}

.container.product-carousel .carousel .carousel-control i {
    font-size: 30px;
    position: absolute;
    top: 50%;
    display: inline-block;
    margin: -16px 0 0 0;
    z-index: 5;
    left: 0;
    right: 0;
    color: rgba(0, 0, 0, 0.8);
    text-shadow: none;
    font-weight: bold;
}

.container.product-carousel .carousel .item-price {
    font-size: 13px;
    padding: 2px 0;
}

.container.product-carousel .carousel .item-price strike {
    color: #999;
    margin-right: 5px;
}

.container.product-carousel .carousel .item-price span {
    color: #86bd57;
    font-size: 110%;
}

.container.product-carousel .carousel .carousel-control.left i {
    margin-left: -3px;
}

.container.product-carousel .carousel .carousel-control.left i {
    margin-right: -3px;
}

.container.product-carousel .carousel-indicators li, .carousel-indicators li.active {
    width: 10px;
    height: 10px;
    margin: 4px;
    border-radius: 50%;
    border-color: transparent;
}

.container.product-carousel .carousel-indicators li {
    margin: 0 2px;
    background-color: #f39c12;
    border-color: #f39c12;
    opacity: .7;
}

.container.product-carousel .carousel-indicators li.active {
    width: 10px;
    height: 10px;
    opacity: 1;
}


.container.product-carousel .star-rating li {
    padding: 0;
}

.container.product-carousel .star-rating i {
    font-size: 14px;
    color: #ffc000;
}

.container.product-carousel .col-sm-2 {
    width: 20%;
}

/*To view the full hight of the product thumbnail*/
.container.product-carousel .image_container {
    min-height: 200px;
}

/*To adjust the image size and center alignment in small screens*/
@media (max-width: 768px) {
    .container.product-carousel .col-sm-2 {
        width: auto;
        margin: auto;
    }

    .container.product-carousel .carousel .item img {
        height: auto;
        width: auto;
    }
}

/*CALL TO ACTION 1*/
.jumbotron-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.container.cta h2 {
    font-size: 36px !important;
    color: white !important;
}

.container.cta p {
    color: white !important;
    font-size: 15px !important;
}

.container.cta {
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
}

.container.cta .btn-primary {
    background-color: #B89658;
    background: #B89658;
    border-color: #B89658;
    color: #fff;
}

.container.cta .btn-primary:hover {
    background-color: #f6851b;
    background: #f6851b;
}

/* ===== New Fullscreen Hero (Swiper) ===== */
.hero-fullpage {
    position: relative;
    width: 100%;
    height: 100vh; /* full viewport */
    min-height: 700px; /* safety floor for short screens */
    overflow: hidden;
}

.hero-fullpage .swiper,
.hero-fullpage .swiper-wrapper,
.hero-fullpage .swiper-slide {
    height: 100%;
}

.hero-fullpage .hero-bg {
    position: absolute;
    inset: 0;
}

.hero-fullpage .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55); /* darken background like the design */
}

.hero-fullpage .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-content p {
    margin-bottom: 2rem; /* adds spacing under the paragraph */
}

.hero-fullpage .serif {
    font-family: "Playfair Display", Georgia, serif;
}

.hero-fullpage .hero-title {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    color: #D4AF37;
    text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

@media (min-width: 992px) {
    .hero-fullpage .hero-title {
        font-size: 84px;
    }
}

.hero-fullpage .hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 15px auto 0;
    max-width: 760px;
}

.hero-subtitle {
    margin-bottom: 2rem; /* space below text */
}


.hero-fullpage .hero-cta {
    margin-top: 24px;
}

/* Search block */
.hero-search {
    margin-top: 28px;
}

.hero-search-group {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.hero-search-input {
    border-radius: 999px 0 0 999px;
}

.hero-search-btn {
    border-radius: 0 999px 999px 0;
    padding: 10px 22px;
    background: #E57300;
    border-color: #E57300;
}

.hero-search-btn:hover {
    background: #CC6600;
    border-color: #CC6600;
}

/* Swiper buttons/pagination (white, subtle) */
.hero-fullpage .swiper-button-next,
.hero-fullpage .swiper-button-prev {
    color: #fff;
    opacity: 0.5;
    transition: opacity .3s;
}

.hero-fullpage .swiper-button-next:hover,
.hero-fullpage .swiper-button-prev:hover {
    opacity: 1;
}

.hero-fullpage .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, .6);
    opacity: 1;
}

.hero-fullpage .swiper-pagination-bullet-active {
    background: #fff;
}

/* Trust badges bar */
.hero-badges {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 3;
    padding: 0 20px;
}

.hero-badges-inner {
    margin: 0 auto;
    max-width: 1140px;
    background: rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
}

.hero-badges-inner span {
    display: inline-block;
    margin: 6px 12px;
    white-space: nowrap;
}

/* Gold accent used by “Curator’s Collection” */
.text-gold {
    color: #D4AF37;
}

.btn-gold {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #1a1a1a;
}

.btn-gold:hover {
    background: transparent;
    color: #D4AF37;
    border-color: #D4AF37;
}

/* Remove old 75vh height from the legacy slider if any instance remains */
.fade-carousel, .fade-carousel .carousel-inner .item {
    height: auto;
}

/* --- Swiper defensive layout (works even before JS init) --- */
.hero-carousel {
    height: 100%;
}

.hero-carousel .swiper-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; /* horizontal row even if JS didn’t run */
    height: 100%;
}

.hero-carousel .swiper-slide {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%; /* one full viewport per slide */
    position: relative; /* anchors inner content */
}

/* Make sure we never exceed viewport height */
.hero-fullpage,
.hero-fullpage .swiper,
.hero-fullpage .swiper-slide {
    height: 100vh;
    min-height: 700px;
}

/* If old 75vh rules still exist somewhere, neutralize them here */
.fade-carousel,
.fade-carousel .carousel-inner .item {
    height: auto !important;
}


.hero-fullpage .hero-bg {
    position: absolute;
    inset: 0;
}

.hero-fullpage .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.55);
}

.hero-fullpage .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    top: 50%;
    transform: translateY(-50%);
}


/* 1) Prevent any page-wide horizontal overflow */
html, body {
    overflow-x: hidden;
}

/* 2) Make sure the Swiper root never leaks width */
.hero-fullpage > .swiper {
    overflow: hidden;
}

/* 3) If your header overlay uses vw, clamp it */
.header::before {
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
}


/* === HERO PILL SEARCH === */
.hero-search-pill {
    margin-top: 28px;
}

.hero-pill {
    /* The white capsule container */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    max-width: 900px; /* roomier like the mock */
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    padding: 10px; /* inner breathing space */
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.hero-input {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    height: 52px; /* visual height of the input */
    border: 0 !important;
    outline: 0 !important;
    background: transparent;
    font-size: 18px;
    padding: 0 20px;
    border-radius: 999px; /* keep ends rounded on small screens */
    box-shadow: none !important;
    color: #333;
}

.hero-input::-webkit-input-placeholder {
    color: #9aa3ad;
}

.hero-input::-moz-placeholder {
    color: #9aa3ad;
    opacity: 1;
}

.hero-input:-ms-input-placeholder {
    color: #9aa3ad;
}

.hero-input::placeholder {
    color: #9aa3ad;
}

/* Orange rounded search button */
.hero-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    height: 52px;
    min-width: 52px; /* circular on phones */
    padding: 0 24px; /* becomes a rounded rectangle on wider screens */
    margin-left: 12px;
    border-radius: 999px; /* pill / circle */
    background: var(--cozzicotton-primary);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(233, 132, 26, .35);
    transition: background .2s ease, transform .06s ease;
}

.hero-btn:hover {
    background: var(--cozzicotton-primary-hover);
}

.hero-btn:active {
    transform: translateY(1px);
}

.hero-btn .glyphicon {
    top: 2px;
}

/* vertically center the glyphicon */

@media (min-width: 992px) {
    .hero-input {
        height: 60px;
        font-size: 19px;
        padding: 0 24px;
    }

    .hero-btn {
        height: 60px;
        min-width: 60px;
        padding: 0 28px;
        font-size: 20px;
    }

    .hero-pill {
        padding: 12px;
    }
}

/* === Hero CTA Pill Button === */
.hero-cta-pill {
    /* beat Bootstrap defaults */
    border: none !important;
    border-radius: 9999px !important;

    /* pill sizing */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px !important; /* taller, roomier */
    min-height: 56px; /* consistent height */
    line-height: 1.15;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .2px;
    text-decoration: none !important;

    /* white pill look */
    background: var(--cozzicotton-primary);
    color: #ffffff !important;

    /* soft elevation like the mock */
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25),
    0 2px 4px rgba(0, 0, 0, .10);

    transition: transform .08s ease,
    box-shadow .20s ease,
    background-color .20s ease,
    color .20s ease;
}

.hero-cta-pill:hover,
.hero-cta-pill:focus {
    background: var(--cozzicotton-primary-hover);
    transform: translateY(-1px); /* gentle lift */
    box-shadow: 0 18px 36px rgba(0, 0, 0, .30),
    0 4px 8px rgba(0, 0, 0, .12);
    outline: none;
}

.hero-cta-pill:active {
    transform: translateY(1px); /* press effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, .22),
    0 2px 4px rgba(0, 0, 0, .10);
}

/* Gold pill variant (Slide 3) */
.hero-cta-pill--gold {
    background: linear-gradient(180deg, #F1C75B 0%, #D7A92D 100%);
    color: #1a1a1a !important;
    box-shadow: 0 14px 28px rgba(215, 169, 45, .35),
    0 2px 4px rgba(0, 0, 0, .10);
    border: none !important;
}

.hero-cta-pill--gold:hover,
.hero-cta-pill--gold:focus {
    background: linear-gradient(180deg, #F6D272 0%, #D1A127 100%);
}

.hero-cta-pill--gold:active {
    background: linear-gradient(180deg, #EAC050 0%, #C8961F 100%);
}

/* Larger screens: a tiny bump */
@media (min-width: 992px) {
    .hero-cta-pill {
        padding: 20px 42px !important;
        font-size: 19px;
    }
}

.hero-cta-pill,
.hero-cta-pill--gold,
.hero-btn {
    margin-top: 1rem;
}
