/**
 * ==========================================
 * HAND AND VISION - PREMIUM STORE (SERVICES STYLE)
 * Light, Minimalist, Lilac & Petrol Theme
 * ==========================================
 * Matches archive-service.php style
 */

/* ==========================================================================
   HERO SECTION (Matches hv-services-hero)
   ========================================================================== */

.hv-shop-page {
    background: var(--hv-white);
}

.hv-shop-hero-premium {
    position: relative;
    min-height: 60vh; /* Matches compact unified style */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--hv-petrol);
    background: var(--hv-white);
}

.hv-shop-hero-premium__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hv-shop-hero-premium__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hv-white) 0%, var(--hv-cream) 50%, var(--hv-warm-cream) 100%);
}

.hv-shop-hero-premium__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbFloat 25s ease-in-out infinite;
    mix-blend-mode: multiply;
}

.hv-shop-hero-premium__orb--1 {
    width: 600px;
    height: 600px;
    background: var(--hv-lilac);
    top: -10%;
    inset-inline-end: -5%;
    animation-delay: 0s;
}

.hv-shop-hero-premium__orb--2 {
    width: 500px;
    height: 500px;
    background: var(--hv-blue-soft);
    bottom: -10%;
    inset-inline-start: -10%;
    animation-delay: -8s;
}

.hv-shop-hero-premium__orb--3 {
    width: 400px;
    height: 400px;
    background: var(--hv-pink);
    top: 60%;
    inset-inline-start: 60%;
    transform: translate(-50%, -50%);
    animation-delay: -15s;
}

.hv-shop-hero-premium__lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hv-charcoal) 1px, transparent 1px),
        linear-gradient(90deg, var(--hv-charcoal) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.03;
}

.hv-shop-hero-premium__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 140px 0 80px;
}

.hv-shop-hero-premium__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hv-shop-hero-premium__overline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.hv-shop-hero-premium__line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(38, 70, 83, 0.2) 100%);
}

.hv-shop-hero-premium__line:last-child {
    background: linear-gradient(90deg, rgba(38, 70, 83, 0.2) 0%, transparent 100%);
}

.hv-shop-hero-premium__text {
    font-family: 'Heebo', 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--hv-stone);
}

.hv-shop-hero-premium__title {
    margin: 0 0 48px;
}

.hv-shop-hero-premium__title-line {
    display: block;
    font-family: 'Heebo', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--hv-petrol);
}

.hv-shop-hero-premium__title-line--accent {
    font-weight: 300;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(135deg, var(--hv-petrol) 0%, var(--hv-lilac) 100%);
}

.hv-shop-hero-premium__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    font-weight: 300;
    color: var(--hv-charcoal);
    max-width: 760px;
    margin: 0 auto 80px;
}

.hv-shop-hero-premium__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.hv-shop-hero-premium__stat {
    text-align: center;
}

.hv-shop-hero-premium__stat-number {
    display: block;
    font-family: 'Heebo', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 100;
    color: var(--hv-petrol);
    line-height: 1;
    margin-bottom: 8px;
}

.hv-shop-hero-premium__stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hv-stone);
}

.hv-shop-hero-premium__stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(38, 70, 83, 0.1);
}

.hv-shop-hero-premium__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--hv-stone);
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
}

.hv-shop-hero-premium__scroll span {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hv-shop-hero-premium__scroll svg {
    opacity: 0.6;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* ==========================================================================
   CATEGORY FILTERS (Clean & Minimal)
   ========================================================================== */

.hv-shop-filters-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hv-shop-filters {
    padding: 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hv-shop-filters__categories {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.hv-shop-filters__artist {
    flex-shrink: 0;
}

.hv-filter-btn {
    text-decoration: none;
    font-family: 'Heebo', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hv-stone);
    padding: 10px 24px;
    border: 1px solid transparent;
    border-radius: 100px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hv-filter-btn:hover {
    color: var(--hv-lilac);
    background: var(--hv-snow);
}

.hv-filter-btn--active {
    color: var(--hv-white);
    background: var(--hv-petrol);
    box-shadow: 0 4px 12px rgba(37, 75, 97, 0.2);
}

/* Select Styling */
.hv-select-wrapper {
    position: relative;
    min-width: 200px;
}

.hv-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 10px 40px 10px 20px;
    font-family: 'Heebo', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hv-stone);
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hv-select:hover, .hv-select:focus {
    border-color: var(--hv-lilac);
    outline: none;
    color: var(--hv-petrol);
}

.hv-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--hv-stone);
    transition: color 0.3s ease;
}

.hv-select:hover + .hv-select-arrow {
    color: var(--hv-lilac);
}

/* RTL Support for Select */
html[dir="rtl"] .hv-select {
    padding: 10px 20px 10px 40px;
}

html[dir="rtl"] .hv-select-arrow {
    right: auto;
    left: 16px;
}

@media (max-width: 768px) {
    .hv-shop-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .hv-shop-filters__categories {
        justify-content: center;
    }

    .hv-shop-filters__artist {
        width: 100%;
    }
}

/* ==========================================================================
   PRODUCT GRID (Clean White Theme)
   ========================================================================== */

.hv-shop-category,
.hv-shop-all {
    position: relative;
    padding: 100px 0;
    background: var(--hv-white);
}

.hv-shop-category:nth-child(even) {
    background: var(--hv-snow); /* Subtle alternation */
}

.hv-shop-category__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hv-shop-category__title-wrap h2 {
    font-family: 'Heebo', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--hv-petrol);
    margin: 0 0 16px 0;
}

.hv-shop-category__description {
    font-size: 1.0625rem;
    color: var(--hv-charcoal);
    max-width: 600px;
}

.hv-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* ==========================================================================
   PRODUCT CARDS (Matches Services Vibe)
   ========================================================================== */

.hv-product-card {
    position: relative;
    background: transparent;
    transition: all 0.4s ease;
}

.hv-product-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.hv-product-card__image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--hv-snow);
    margin-bottom: 24px;
}

.hv-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hv-product-card:hover .hv-product-card__image img {
    transform: scale(1.08); /* Slow gentle zoom */
}

/* Badges - Minimalist */
.hv-product-card__badge {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    padding: 6px 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--hv-lilac);
    color: var(--hv-white);
    z-index: 10;
}

.hv-product-card__badge--sold {
    background: var(--hv-stone);
}

/* Card Content */
.hv-product-card__content {
    text-align: center;
}

.hv-product-card__artist {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--hv-stone); /* Muted */
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.hv-product-card:hover .hv-product-card__artist {
    color: var(--hv-lilac);
}

.hv-product-card__title {
    font-family: 'Heebo', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--hv-petrol);
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.hv-product-card:hover .hv-product-card__title {
    color: var(--hv-lilac);
}

.hv-product-card__price {
    font-size: 1rem;
    font-weight: 500;
    color: var(--hv-charcoal);
}

.hv-product-card__price del {
    color: var(--hv-silver);
    margin-right: 8px;
    font-size: 0.9em;
}

.hv-product-card__price ins {
    text-decoration: none;
}

/* Add to Cart - Clean Outline */
.hv-product-card__actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.hv-product-card:hover .hv-product-card__actions {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CTA SECTION (Matches hv-services-cta-premium)
   ========================================================================== */

.hv-shop-cta-premium {
    position: relative;
    padding: 120px 0;
    background: var(--hv-warm-cream); /* Beige */
    overflow: hidden;
    color: var(--hv-petrol);
}

.hv-shop-cta-premium__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, #fff0f5 0%, transparent 70%);
    opacity: 0.5;
}

.hv-shop-cta-premium__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hv-shop-cta-premium__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: var(--hv-lilac);
    border: 1px solid rgba(165, 126, 212, 0.2);
    margin-bottom: 40px;
}

.hv-shop-cta-premium__overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--hv-stone);
    margin-bottom: 24px;
}

.hv-shop-cta-premium__title {
    font-family: 'Heebo', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 100;
    line-height: 1.1;
    color: var(--hv-petrol);
    margin: 0 0 32px;
}

.hv-shop-cta-premium__desc {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--hv-charcoal);
    margin: 0 auto 56px;
    max-width: 650px;
}

.hv-shop-cta-premium__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   SINGLE PRODUCT - GALLERY EXPERIENCE (Light Theme)
   ========================================================================== */

.hv-single-product {
    background: var(--hv-white);
}

.hv-product-main {
    padding: 100px 0;
    background: var(--hv-white);
}

.hv-product-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 1024px) {
    .hv-product-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Product Gallery */
.hv-product-gallery {
    position: sticky;
    top: 120px;
}

.hv-product-gallery .woocommerce-product-gallery {
    background: var(--hv-snow); /* Light gray placeholder bg */
    padding: 40px;
}

.hv-product-gallery .woocommerce-product-gallery__image {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.hv-product-gallery .woocommerce-product-gallery__image img {
    transition: transform 0.6s ease;
}

.hv-product-gallery .woocommerce-product-gallery__image:hover img {
    transform: scale(1.02);
}

/* Product Info */
.hv-product-info {
    padding: 20px 0;
}

.hv-product-artist {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hv-product-artist .hv-overline {
    color: var(--hv-lilac);
    margin-bottom: 8px;
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hv-product-artist h3 {
    font-family: 'Heebo', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--hv-petrol);
    margin: 0;
}

.hv-product-title {
    font-family: 'Heebo', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--hv-petrol);
    margin: 0 0 24px;
}

.hv-product-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--hv-charcoal);
    margin-bottom: 32px;
}

.hv-product-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--hv-stone);
    margin-bottom: 40px;
}

/* Tabs / Description */
.hv-product-description {
    background: var(--hv-snow);
    padding: 100px 0;
}

.hv-product-tab {
    margin-bottom: 60px;
}

.hv-product-tab h2 {
    font-size: 1.75rem;
    color: var(--hv-petrol);
    margin-bottom: 24px;
}

.hv-product-content {
    font-size: 1.0625rem;
    color: var(--hv-charcoal);
    line-height: 1.8;
}

/* Specs */
.hv-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.hv-spec-label {
    font-weight: 500;
    color: var(--hv-petrol);
}

.hv-spec-value {
    color: var(--hv-stone);
}

/* Related */
.hv-related-products {
    padding: 100px 0;
    background: var(--hv-white);
}

.hv-section-header {
    margin-bottom: 60px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .hv-shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hv-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hv-shop-hero-premium {
        padding-top: 100px;
        min-height: auto;
    }

    .hv-shop-hero-premium__stats {
        flex-direction: column;
        gap: 24px;
    }

    .hv-shop-hero-premium__stat-divider {
        width: 40px;
        height: 1px;
    }
}

@media (max-width: 600px) {
    .hv-shop-grid {
        grid-template-columns: 1fr;
    }

    .hv-shop-cta-premium__title {
        font-size: 2rem;
    }
}
