* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Segoe UI", sans-serif;
}

:root {
    --bg-color: #17191c;
    --second-bg-color: #ffffff;
    --banner-color: #f2f2f2;
    --mini-text-color: #666666;
    --text-color: #fff;
    --nav-bar-text: #111111;
    --nav-bar-second-text: #f0443e;
    --product-main-card: #f2f2f2a6;
    --product-inner-card: #e3e2e2;
}

/* Ensure full width and eliminate accidental scrollbars */
html,
body {
    width: 100%;
    overflow-x: hidden;
}

/* Remove the default serach box blue border on focus */
.navbar form[role="search"] .form-control:focus {
    box-shadow: none !important;
    border-color: #ced4da !important;
}

.navbar form[role="search"] .input-group:focus-within {
    box-shadow: none !important;
}

/* ===================================================
   1. Top Announcement Bar (.nav)
   =================================================== */
/* FIX: Removed position: absolute and fixed height so it scales fluidly */
.nav {
    position: relative;
    background: var(--bg-color);
    color: var(--text-color);
    width: 100%;
    /* min-height: 3rem; */
}

h6.header-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-color);
}

.nav .nav-link {
    color: var(--second-bg-color);
    margin: 0;
    padding: 4px 6px;
}

/* ===================================================
   2. Main Navbar & Branding
   =================================================== */
.navbar {
    position: relative;
    width: 100%;
}

.navbar-brand {
    color: var(--bg-color);
    font-weight: 700;
    padding-bottom: 0;
}

.navbar-brand span {
    color: var(--nav-bar-second-text);
}

.navbar-nav .nav-item .nav-link {
    color: var(--nav-bar-text);
    font-weight: 600;
}

.navbar-nav .nav-item .nav-link:active {
    color: var(--nav-bar-second-text);
}

.navbar-nav .nav-item .nav-link:hover {
    color: var(--nav-bar-second-text);
}

/* CHANGE: Use a dot (.) instead of a colon (:) to target the active class class */
.navbar-nav.nav-underline .nav-link.active {
    color: var(--nav-bar-second-text) !important;
    /* !important forces your variable color override */
    font-weight: 700;
    /* Optional: adds a premium bold look to the active page name */
}

/* Optional: Make the underline bar match your text variable color too */
.navbar-nav.nav-underline .nav-link.active::after {
    background-color: var(--nav-bar-second-text) !important;
}

/* Icon container styles */
.navicon {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--nav-bar-text);
    cursor: pointer;
}

.navicon i {
    font-size: 22px;
}

/* Toggler button remove the black default border */
/* 1. Remove the black/blue focus border on the hamburger button */
.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: none !important;
    outline: none !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

/* 2. Hide the toggler button when the mobile menu is open and hide the icon */
.navbar-toggler.menu-opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* ====================================
   3. Banner grid hero section
   ===================================== */
.grid {
    display: grid;
    padding: 1rem 1rem 1rem 1rem;
    width: 100%;
    margin: 0;
    height: max-content;
    min-height: auto;
    background: var(--banner-color);
}

.grid h6 {
    font-family: Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--mini-text-color, #666);
    margin-bottom: 0.55rem;
}

.grid h1 {
    font-family: "Arial Rounded MT", sans-serif;
    text-transform: uppercase;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 1rem;
}

.grid .g-col-6:nth-child(1) {
    padding-left: 5rem;
}

.grid .g-col-6:nth-child(2) {
    padding-right: 5rem;
}

.grid p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--mini-text-color, #666);
    margin-bottom: 1.5rem;
}

.g-col-6 img {
    position: relative;
    margin-bottom: 0;
    padding: 1rem 5rem 0 1rem;
    margin-right: -10rem;
}

/* Button */
.btn-primary {
    align-items: center;
    width: fit-content;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0.8rem 1.8rem;
    --bs-btn-bg: var(--nav-bar-second-text, #f0443e);
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 30px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-secondary{
    align-items: center;
    width: fit-content;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 0.8rem 1.8rem;
    --bs-btn-bg: var(--bg-color);
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 30px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* Banner & Badge Defaults */
.banner-container {
    position: relative;
    width: 100%;
    right: 6rem;
}

.fashion-badge {
    position: absolute;
    padding: 18px 22px;
    border-radius: 18px;
    transform: rotate(-26deg);
    transform-origin: center center;
    z-index: 5;
    text-align: center;
    user-select: none;
    left: 24rem;
}

.fashion-badge h3 {
    margin: 0;
    font-family: "Brittany Signature", cursive, sans-serif;
    font-weight: 800;
    font-size: 38px;
    color: #111111;
    line-height: 2;
}

.badge-curve {
    display: block;
    margin: 6px auto 0;
}


/* ===================================================
   MOBILE VIEW (@media max-width: 991.98px)
   =================================================== */
@media (max-width: 991.98px) {
    .grid {
        /* 1-column layout stacked: Text -> Button -> Image */
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 0.2rem;

    }

    .g-col-6 {
        max-width: 100%;
    }

    .grid .g-col-6:nth-child(1) {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid .g-col-6:nth-child(2) {
        position: relative;
    }

    .grid h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .grid p {
        padding-left: 0;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .btn-primary {
        display: block;
        margin: 0 auto 2.5rem auto;
        /* Center button on mobile */
    }

    /* Reset harmful negative desktop offsets */
    .g-col-6 img {
        display: block;
        width: 100%;
        max-width: 38rem;
        height: auto;
        margin: 0 auto;
        left: 5.6rem;
    }

    .banner-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Scaled down badge for mobile */
    .fashion-badge {
        top: 0;
        padding: 12px 18px 18px 0;
        left: 85%;
        transform: rotate(-14deg) scale(0.85);
    }

    .fashion-badge h3 {
        font-size: 20px;
    }

    .badge-curve {
        width: 60px;
        height: 14px;
    }
}


/* ===================================================
   DESKTOP VIEW (@media min-width: 992px)
   =================================================== */
@media (min-width: 992px) {
    .grid {
        /* 2 columns using Template Areas to handle Text, Button, and Image cleanly */
        grid-template-columns: 1.1fr 0.9fr;
        grid-template-areas:
            "text image"
            "btn  image";
        column-gap: 2rem;
        align-items: center;
        padding: 2rem 1rem 0 1rem;
        max-height: 31.5rem;
    }

    /* Assign grid children to areas */
    .grid>.g-col-6:first-of-type {
        grid-area: text;
    }

    .grid>.btn-primary {
        grid-area: btn;
        align-self: start;
        margin: 0 0 0 5px;
    }

    .banner-container {
        grid-area: image;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .grid h1 {
        font-size: 3.5rem;
        max-width: 16ch;
    }

    .grid p {
        padding-left: 5px;
        max-width: 44ch;
    }

    /* Healthy Desktop Image Sizing without hacky margins */
    .g-col-6 img {
        position: relative;
        width: 30rem;
        height: fit-content;
        object-fit: contain;
    }

    /* Proper Desktop Badge Position pinned to image container */
    .fashion-badge {
        top: 8%;
        right: 2%;
        padding: 22px 26px;
        transform: rotate(-22deg);
    }

    .fashion-badge h3 {
        font-size: 30px;
    }

    .badge-curve {
        width: 85px;
        height: 18px;
    }
}



/* ===================================================
   . Mobile Alignment (max-width: 991.98px)
   =================================================== */
@media (max-width: 991.98px) {

    /* Give room on the right side of container-fluid for icons + toggler */
    .navbar>.container-fluid {
        position: relative;
        padding-right: 120px;
        /* Reserves space so brand doesn't bump icons */
    }

    /* Fix toggler position: pins to the absolute far right */
    .navbar-toggler {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
    }

    /* Pins icons directly to the left of the toggler button */
    .navicon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 70px;
        /* Keeps icons right next to the hamburger */
        z-index: 10;
    }

    /* Expanded menu drops down cleanly underneath */
    .navbar-collapse {
        width: 100%;
        margin-top: 15px;
    }

    .navbar form[role="search"] {
        min-width: 100% !important;
        margin: 15px 0 10px;
    }

    /* Fit underline to text only */
    .navbar-nav.nav-underline .nav-item {
        display: flex;
        justify-content: flex-start;
    }

    .navbar-nav.nav-underline .nav-link {
        display: inline-block;
        width: auto;
        padding-left: 0;
        padding-right: 0;
        margin-right: 15px;
    }



}

/* ===================================================
   . Desktop Layout (min-width: 992px)
   =================================================== */
@media (min-width: 992px) {
    .navbar>.container-fluid {
        position: relative;
        padding-right: 95px;
        /* Reserve space for desktop icons */
    }

    .navicon {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1050;
    }

    .navbar form[role="search"] {
        margin-right: 16px !important;
    }

    .navbar-nav.nav-underline .nav-item {
        display: block;
    }

    .navbar-nav.nav-underline .nav-link {
        padding-left: 12px;
        padding-right: 12px;
        margin-right: 0;
    }
}


/* ====================================
   4. Fetures section
   ===================================== */

.features-section {
    background-color: #ffffff;
}

/* Big, clean line-drawn icons matching the image */
.feature-icon i {
    font-size: 2.2rem;
    line-height: 1;
    color: #111111;
    display: block;
}

.feature-text h6 {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.feature-text p {
    font-size: 0.8rem;
    color: #777777 !important;
    white-space: nowrap;
}


/* ====================================
   5. Product Card section
   ===================================== */
.product-card-container {
    padding-left: 1.5rem;
    padding-top: 1.6rem;
}

.product-card-container h1 {
    font-family: "Arial", sans-serif;
    text-transform: uppercase;
    font-size: 32px;
    font-weight: bold;
    color: var(--nav-bar-text);
    line-height: 2rem;
    letter-spacing: 2px;
}

.product-card-container p {
    font-family: "Arial", sans-serif;
    font-size: 15px;
    font-weight: normal;
    color: var(--mini-text-color);
    letter-spacing: 6px;
}


/* ====================================
    Products card section
   ===================================== */
/* Card container setup */
.product-card {
    background: var(--product-main-card);
    border: none;
    width: 100%;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Gray background wrapper for the image, exactly like the reference image */
.product-img-wrapper {
    position: relative;
    width: 100%;
    background: var(--product-inner-card);
    /* Subtle gray backing panel */
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1.05;
    /* Keeps image heights proportional */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating round heart button on top-right of image container */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

/* Text and metadata hierarchy sizing */
.product-info {
    padding: 12px 4px 0 4px;
    background: transparent;
    margin-left: 1px;
}

.product-title {
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0 0 2px 0;
    color: #17191c;
}

p.product-price {
    font-family: 'Arial', sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    color: #17191c;
    letter-spacing: 1px;
}

.product-rating {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Round Color Swatches */
.swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
    margin-bottom: 10px;
    border: 1px solid transparent;
}

.swatch.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #17191c;
    /* Selected ring outline effect */
}

/* ================================
    Product Mobile device responsive 
   ================================ */
@media(max-width:991.98px) {
    .product-card {
        right: 0.5rem;
    }
}