/* ==========================================================================
   Catalog Styles
   Hero section, product grid, product cards, category cards
   Clean, flat, spacious aesthetic
   ========================================================================== */

/* --- Hero — Fullscreen Slideshow (Industry Standard) --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
    background-color: #0c0c0c;
}

/* Slide container */
.hero-slides {
    position: absolute;
    inset: 0;
}

/* Individual slide */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide--active {
    opacity: 1;
    z-index: 1;
}

/* Slide image — uses <img> for proper loading & SEO */
.hero-slide-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1) translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.hero-slide--active .hero-slide-img {
    animation: heroZoom 8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes heroZoom {
    from { transform: scale(1) translateZ(0); }
    to   { transform: scale(1.06) translateZ(0); }
}

/* Dark gradient overlay — applied as pseudo-element on each slide
   so it shares the same stacking context as .hero-slide-content */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.10) 30%,
        rgba(0, 0, 0, 0.70) 100%
    );
}

/* Per-slide text content */
.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 0 5vw 120px;
    max-width: 680px;
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    pointer-events: none;
}

.hero-slide-content--active {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    pointer-events: auto;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2rem;
    max-width: 480px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* CTA button — clean pill style */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 14px 36px;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* Navigation arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-arrow--prev { left: 2vw; }
.hero-arrow--next { right: 2vw; }

/* Bottom nav: dots + progress bar */
.hero-nav {
    position: absolute;
    bottom: 40px;
    right: 5vw;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-dot:hover {
    border-color: #fff;
}

.hero-dot--active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.15);
}

/* Progress bar */
.hero-progress {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 1px;
    transition: width 0.1s linear;
}

/* --- Featured Section --- */
.featured-section {
    background-color: var(--color-surface);
}

.featured-grid {
    gap: var(--space-8);
}

/* --- Category Cards --- */
.category-card {
    display: block;
    text-align: center;
    color: var(--color-text);
    background-color: var(--color-surface);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transform: translateY(0) translateZ(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.category-card:hover {
    color: var(--color-text);
    transform: translateY(-4px) translateZ(0);
    border-color: var(--color-border);
}

.category-card-image {
    aspect-ratio: 4 / 3;
    background-color: var(--color-border-light);
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1) translateZ(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.category-card:hover .category-card-image img {
    transform: scale(1.04) translateZ(0);
}

.category-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-border-light);
}

.category-card-name {
    font-size: var(--text-xl);
    padding: var(--space-4) var(--space-4) var(--space-2);
}

.category-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    padding: 0 var(--space-4) var(--space-4);
}

/* --- Product Cards --- */
.product-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transform: translateY(0) translateZ(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: var(--color-border);
}

.product-card-link {
    display: block;
    color: var(--color-text);
    text-decoration: none;
}

.product-card-link:hover {
    color: var(--color-text);
}

.product-card-image {
    aspect-ratio: 4 / 3;
    background-color: #f5f3ef;
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1) translateZ(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04) translateZ(0);
}

/* Hover overlay */
.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: var(--space-6);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 8px;
    transform: translateY(8px) translateZ(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.product-card:hover .product-card-view {
    transform: translateY(0) translateZ(0);
}

/* Category badge */
.product-card-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f5f3ef 0%, #ebe8e2 100%);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    gap: var(--space-2);
}

.product-card-info {
    padding: var(--space-4) var(--space-5) var(--space-5);
}

.product-card-name {
    font-size: 1rem;
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.product-card:hover .product-card-name {
    color: var(--color-accent);
}

.product-card-price {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--color-primary);
}

.product-card-currency {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-right: 2px;
}

.product-card-price--enquiry {
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-text-muted);
}

/* Sale pricing */
.product-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card-price--sale {
    color: var(--color-accent);
}

.product-card-price--original {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* Sale badge */
.product-card-sale-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

/* Pre-order badge on card */
.product-card-preorder-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: #553C9A;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

/* --- Product Grid --- */
.product-grid {
    gap: var(--space-6);
}

/* --- Category Page --- */
.breadcrumb {
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    color: var(--color-text-muted);
}

.breadcrumb-link {
    color: var(--color-text-light);
}

.breadcrumb-link:hover {
    color: var(--color-accent);
}

.breadcrumb-sep {
    margin: 0 var(--space-2);
}

.breadcrumb-current {
    color: var(--color-text);
}

.category-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pagination-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-link--active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-surface);
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .hero {
        height: 85vh;
        min-height: 500px;
    }

    .hero-slide-content {
        padding: 0 4vw 100px;
    }

    .hero-arrow {
        width: 44px;
        height: 44px;
    }

    .hero-nav {
        right: 4vw;
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 75vh;
        min-height: 450px;
    }

    .hero-heading {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-slide-content {
        padding: 0 1.5rem 90px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-nav {
        right: 1.5rem;
        bottom: 24px;
    }

    .hero-progress {
        width: 50px;
    }

    .product-grid,
    .featured-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 480px) {
    .product-grid,
    .featured-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }
}
