/* Hero */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Tablet */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero {
    position: relative;
    height: 75vh;
    min-height: 480px;
    max-height: 820px;
    overflow: hidden;
    color: #fff;
    padding-top: 80px; /* Adjust based on header height */
}


.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    paddding: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 620px;
    gap: 1rem;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
}

.hero-text {
    font-size: 0.98rem;
    max-width: 550px;
}

/* Categories */
.categories-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.category-card {
    scroll-snap-align: start;
}

.category-image {
    width: 100%;
    aspect-ratio: 1 / 1;   /* forces perfect square */
    overflow: hidden;
    border-radius: 8px;   /* optional, looks premium */
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* fills without distortion */
    display: block;
}
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;   /* forces perfect square */
    overflow: hidden;
    border-radius: 8px;   /* optional, looks premium */
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* bigger cards */
    gap: 30px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* fills without distortion */
    display: block;
}


.category-title {
    padding: 0.75rem 1rem 1rem;
    font-size: 1rem;
}

/* Collection section */
.collection-section {
    background-color: var(--bg-soft);
}

.collection-tabs {
    margin: 1.75rem 0 1.25rem;
    flex-wrap: wrap;
}

.tab-panels .tab-panel {
    display: none;
}

.tab-panels .tab-panel.active {
    display: block;
}

/* Make product images same size as categories */
.product-card .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;       /* same perfect square */
    overflow: hidden;
    border-radius: 8px;        /* same rounded corners */
    background-color: #fff;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;         /* fill without distortion */
    display: block;
}

.product-card .quick-buy {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.4rem 1.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.product-card:hover .quick-buy {
    opacity: 1;
    transform: translate(-50%, 0);
}

.product-title {
    padding: 0.75rem 1rem 0 1rem;
    font-size: 0.95rem;
}

.product-price {
    padding: 0 1rem 1rem;
    font-weight: 600;
}

.view-all-wrapper {
    margin-top: 2rem;
    text-align: center;
}

/* Banner */
.banner-section {
    background-color: var(--bg-soft);
}

.banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.banner-text p:first-child {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: var(--muted);
}

.banner-text h2 {
    font-size: 2.2rem;
    margin: 0.5rem 0 0.75rem;
}

/* Blogs */
.blog-section {
    background-color: #fff;
}

.blog-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-image {
    position: relative;
}

.blog-date {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    background: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    text-align: center;
    font-weight: 600;
}

.blog-body {
    padding: 0.9rem 1rem 1.1rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    border-radius: 999px;
    background-color: var(--primary);
    color: #fff;
    margin-bottom: 0.5rem;
}

.blog-link {
    margin-top: 0.6rem;
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary);
}

/* About */
.about-section {
    background: radial-gradient(circle at top left, #1f2937, #020617);
    color: #fff;
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item + .faq-item {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    border: none;
    background: none;
    font-size: 0.98rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    font-size: 0.9rem;
    color: var(--muted);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        height: 65vh;
    }

    .categories-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .banner-inner,
    .about-inner,
    .blog-carousel {
        grid-template-columns: 1fr;
    }
}
.sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}
.new-price {
    color: #e63946;
    font-weight: bold;
    font-size: 22px;
}
.product-image {
    position: relative;
}

.sale-badge-small {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e60023;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 8px;
}

.discounted-price {
    color: #e53935; /* red color for discount */
    font-weight: bold;
}
/* Trust / Announcement Ticker */
.trust-ticker {
    width: 100%;
    height: 36px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.trust-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    padding-left: 100%;
    animation: trustScroll 40s linear infinite;
}


.trust-track span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
}

/* Smooth infinite scroll */
@keyframes trustScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
