/* ============================================================
   Homepage styles - mobile-first (reference design replication)
   ============================================================ */

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Assistant', sans-serif !important;
    color: rgb(33, 37, 41);
    background: #fff;
    overflow-x: hidden;
}

/* ------------------------------------------------------------
   Header: all pages share one component
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Hero banner
   ------------------------------------------------------------ */

.hero-banner {
    display: block;
    width: 100%;
    background: #000;

    /* IMPORTANT:
       Banner keeps its own height and category cards
       will never enter/overlap this area.
    */
    aspect-ratio: 25 / 4;

    position: relative;
    z-index: 1;

    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------
   Countdown timer (Deal of the Day)
   ------------------------------------------------------------ */

.dod-label {
    color: red;
    font-size: 16px;
    font-weight: 700;
    line-height: 40px;
    margin-top: 8px;
    text-align: center;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.big-sale-text {
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
}

.countdown-container {
    background-color: #eeeded;
    border: 2px solid #000;
    border-radius: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    max-width: 520px;
    width: calc(100% - 24px);
    margin: 0 auto;
    box-sizing: border-box;
}

.countdown-box {
    background-color: #000;
    border-radius: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 9px 6px;
    text-align: center;
    width: 72px;
    box-sizing: border-box;
}

.countdown-box div:first-child {
    font-size: 22px;
    line-height: 1.2;
}

.countdown-box div:last-child {
    margin-top: 2px;
}

.dot-timer {
    color: #000;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* ============================================================
   PREMIUM WOMEN CATEGORY CARDS
   ============================================================ */

/*
   IMPORTANT FIX

   The category section is kept in normal document flow.
   No negative margin.
   No absolute positioning.
   No translateY.
   Therefore cards cannot overlap the hero banner.
*/

.premium-women-categories {
    position: relative;
    display: block;
    width: 100%;

    margin: 0;
    padding: 28px 24px 0;

    box-sizing: border-box;

    background: transparent;

    z-index: 2;
}

/* Category grid */

.premium-women-category-grid {
    position: relative;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;

    box-sizing: border-box;
}

/* Individual category card */

.premium-women-category-card {
    position: relative;

    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    overflow: hidden;

    background: #fff;

    border: 3px solid #fff;
    border-radius: 32px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12);

    text-decoration: none;

    /*
       IMPORTANT:
       Explicitly cancel any old overlap rules.
    */
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    transform: none;

    z-index: 2;
}

/* Category image container */

.premium-women-category-image {
    position: relative;

    display: block;

    width: 100%;
    height: 380px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    box-sizing: border-box;

    background: #f5f5f5;
}

/* Category image */

.premium-women-category-image img {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center;

    box-sizing: border-box;
}

/* Category label */

.premium-women-category-label {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 68px;

    margin: 0;
    padding: 18px 16px;

    box-sizing: border-box;

    background: #fff;

    color: #111;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.2;

    text-align: center;

    gap: 10px;
}

/* Arrow */

.premium-women-category-label span {
    display: inline-block;

    font-size: 24px;
    line-height: 1;

    font-weight: 400;
}

/* ============================================================
   CATEGORY CARD HOVER
   ============================================================ */

.premium-women-category-card:hover {
    text-decoration: none;

    transform: none;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

    .premium-women-categories {
        width: 100%;

        margin: 0;
        padding: 24px 18px 0;

        box-sizing: border-box;
    }

    .premium-women-category-grid {
        width: 100%;

        margin: 0 auto;
        padding: 0;

        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

    .premium-women-category-card {
        width: 100%;

        margin: 0;
        padding: 0;

        border-width: 2px;
        border-radius: 24px;

        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        transform: none;
    }

    .premium-women-category-image {
        width: 100%;
        height: 300px;
    }

    .premium-women-category-label {
        min-height: 58px;

        padding: 14px 10px;

        font-size: 17px;

        gap: 8px;
    }

    .premium-women-category-label span {
        font-size: 20px;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    /*
       Mobile banner remains completely separate
       from category cards.
    */

    .hero-banner {
        width: 100%;

        position: relative;

        margin: 0;
        padding: 0;

        aspect-ratio: 25 / 4;

        overflow: hidden;

        z-index: 1;
    }

    .premium-women-categories {
        position: relative;

        display: block;

        width: 100%;

        margin: 0;
        padding: 18px 14px 0;

        box-sizing: border-box;

        background: #fff;

        z-index: 2;
    }

    .premium-women-category-grid {
        position: relative;

        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;

        display: grid;

        grid-template-columns: 1fr;

        gap: 18px;

        box-sizing: border-box;
    }

    .premium-women-category-card {
        position: relative;

        display: block;

        width: 100%;
        height: auto;

        margin: 0;
        padding: 0;

        box-sizing: border-box;

        border-width: 2px;
        border-radius: 24px;

        overflow: hidden;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        transform: none;

        background: #fff;

        z-index: 2;
    }

    .premium-women-category-image {
        position: relative;

        width: 100%;
        height: auto;

        /*
           Responsive image ratio.
        */
        aspect-ratio: 1.35 / 1;

        margin: 0;
        padding: 0;

        overflow: hidden;

        box-sizing: border-box;
    }

    .premium-women-category-image img {
        display: block;

        width: 100%;
        height: 100%;

        margin: 0;
        padding: 0;

        object-fit: cover;
        object-position: center;
    }

    .premium-women-category-label {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 100%;

        min-height: 58px;

        margin: 0;
        padding: 14px 12px;

        box-sizing: border-box;

        font-size: 17px;
        font-weight: 800;

        line-height: 1.2;

        gap: 8px;

        text-align: center;

        background: #fff;
    }

    .premium-women-category-label span {
        display: inline-block;

        font-size: 20px;
        line-height: 1;
    }
}

/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 380px) {

    .premium-women-categories {
        padding-left: 10px;
        padding-right: 10px;
    }

    .premium-women-category-grid {
        gap: 14px;
    }

    .premium-women-category-card {
        border-radius: 20px;
    }

    .premium-women-category-label {
        min-height: 54px;

        padding: 12px 10px;

        font-size: 16px;
    }

    .premium-women-category-label span {
        font-size: 19px;
    }
}

/* ------------------------------------------------------------
   Collection sections
   ------------------------------------------------------------ */

.collection-heading {
    text-align: center;
    font-weight: 700;
    margin: 14px 0 10px;
    color: rgb(33, 37, 41);
    font-size: 21.5px;
    line-height: 25.8px;
}

.collection-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1440px;
    margin: 0 auto 6px;
    padding: 0 14px;
}

.collection-heading-row .collection-heading {
    text-align: left;
    margin: 14px 0 10px;
}

.collection-heading a {
    color: inherit;
    text-decoration: none;
}

.collection-viewall {
    font-size: 13.5px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
}

.collection-viewall:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   Product grid + cards (dynamic, from MySQL)
   ------------------------------------------------------------ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px 8px;
}

@media (min-width: 640px) {

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0 12px 12px;
    }
}

@media (min-width: 992px) {

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {

    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    background: #fff;
    border: 0.8px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    height: 100%;
}

.card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f2f2f2;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.discount-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgb(56, 142, 60);
    border-radius: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    z-index: 1;
}

.card-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}

.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.card-title {
    text-align: left;
    color: rgb(38, 38, 38);
    font-weight: 500;
    font-size: 14px;
    line-height: 16.8px;
    margin: 0;
    min-height: 33.6px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.card-title:hover {
    color: rgb(38, 38, 38);
}

.card-heart {
    border: none;
    background: none;
    padding: 0;
    margin-left: 4px;
    cursor: pointer;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-price-row {
    margin-top: 3px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.card-price {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.rupee {
    font-size: 11px;
}

.card-mrp {
    font-size: 12px;
    color: rgb(154, 154, 154);
    margin-left: 5px;
    text-decoration: line-through;
}

.card-discount {
    color: rgb(56, 142, 60);
    font-size: 13px;
    font-weight: 500;
    margin-left: 6px;
}

.card-rating {
    color: rgb(3, 151, 3);
    font-size: 12px;
    font-weight: 500;
    margin: 2px 0 0;
}

.card-atc {
    margin-top: 6px;
    background-color: rgb(0, 0, 0);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
    transition: background-color 0.15s ease-in-out;
}

.card-atc:hover {
    background-color: #424649;
}

.card-atc.is-added {
    background-color: rgb(56, 142, 60);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.home-footer {
    margin-top: 16px;
}

.home-footer-inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 12px 0;
    box-sizing: border-box;
}

.home-footer-cols {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.home-footer-col {
    flex: 0 0 auto;
    width: 33.3333%;
    max-width: 100%;
    padding: 0 12px;
    text-align: center;
    box-sizing: border-box;
}

.home-footer-col svg {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    fill: rgb(33, 37, 41);
}

.home-footer-col h6 {
    font-weight: 700;
    margin: 8px 0 0;
    font-size: 16px;
    color: rgb(33, 37, 41);
    line-height: 19.2px;
}

.home-footer-col span {
    color: rgb(40, 44, 63);
    font-size: 13px;
}

.home-policies {
    padding: 0 10px;
}

.home-policies .accordion {
    max-width: 400px;
    margin: 12px auto 0;
}

.home-policies .accordion-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
}

.home-policies .accordion-button {
    background-color: #fff;
    box-shadow: none;
    justify-content: center;
    font-size: 16px;
    font-family: 'Assistant', sans-serif;
    color: rgb(33, 37, 41);
    text-align: left;
}

.home-policies .accordion-button:not(.collapsed) {
    background-color: #fff;
    color: rgb(33, 37, 41);
}

.home-policies .accordion-button:focus {
    box-shadow: none !important;
}

.home-policies .accordion-button::after {
    margin-left: 10px;
}

.home-policies .contact-us-btn .accordion-button::after {
    width: 0;
}

.home-policies .policy-link {
    color: rgb(40, 44, 63);
    font-size: 13px;
    margin: 16px 0;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.home-policies .policy-link:hover {
    color: rgb(40, 44, 63);
}