/* ============================================================
   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 - see includes/partials/site_header.php
   (styled by theme/HomePageHeader.css .style-* rules)
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Hero banner
   ------------------------------------------------------------ */
.hero-banner {
    display: block;
    width: 100%;
    background: #000;
    aspect-ratio: 25 / 4;
}

.hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ------------------------------------------------------------
   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;
}

/* ------------------------------------------------------------
   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);
}
