/* ============================================================
   ICE 'N' ROSES â€” LUXURY THEME MAKEOVER
   Typography, Ocean Hero Video, Logo Polish
   Loaded AFTER style.css & desktop-layout-mobile.css
   ============================================================ */

/* ------------------------------------------------------------
   1. LUXURY TYPOGRAPHY OVERRIDES
   ------------------------------------------------------------ */
:root {
    --font-display:  'Italiana', 'Playfair Display', serif;
    --font-heading:  'Cormorant Garamond', 'Playfair Display', serif;
    --font-accent:   'Cinzel', 'Playfair Display', serif;
    --font-body:     'Inter', system-ui, sans-serif;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.15 !important;
}

/* Display headings get Italiana (elegant editorial serif) */
.marketplace-hero-title,
.hero-title,
.section-title,
.story-title,
.newsletter-title {
    font-family: 'Italiana', 'Playfair Display', serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.1 !important;
}

/* Cinzel for caps section labels & buttons */
.section-label,
.marketplace-hero-badge,
.btn-primary,
.btn-secondary,
.button,
.wc-btn-primary,
.wc-btn-secondary,
.view-all-link,
.main-navigation ul li a {
    font-family: 'Cinzel', 'Playfair Display', serif !important;
    letter-spacing: 0.15em !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
}

/* Section titles compact */
.section-title-compact {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 600 !important;
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    letter-spacing: 0 !important;
}

/* Prices */
.price,
.woocommerce-Price-amount,
.amount {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* Product titles */
.woocommerce-loop-product__title,
.product_title,
.collection-card-name,
.article-card-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
}

/* ------------------------------------------------------------
   2. OCEAN VIDEO HERO BACKGROUND
   ------------------------------------------------------------ */
.marketplace-hero.hero-with-video {
    position: relative;
    min-height: 520px;
    padding: 5rem 0 4rem;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #0a1128 0%, #001f54 50%, #034078 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    filter: saturate(1.15) contrast(1.05) brightness(0.75);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(8, 5, 10, 0.35) 0%, rgba(8, 5, 10, 0.75) 100%),
        linear-gradient(180deg, rgba(8, 5, 10, 0.4) 0%, rgba(8, 5, 10, 0.6) 100%);
    backdrop-filter: blur(1px);
}

.hero-with-video .container,
.hero-with-video .marketplace-hero-content {
    position: relative;
    z-index: 2;
}

/* Fallback animated gradient if video fails to load */
.hero-with-video::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(135deg, #0a1128 0%, #001f54 35%, #034078 70%, #1282a2 100%);
    background-size: 400% 400%;
    animation: oceanShift 18s ease-in-out infinite;
}

@keyframes oceanShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero text glows over video */
.hero-with-video .marketplace-hero-content {
    background: transparent !important;
}

.hero-with-video .marketplace-hero-title,
.hero-with-video .marketplace-hero-subtitle {
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.6),
        0 4px 40px rgba(0, 0, 0, 0.4) !important;
}

.hero-with-video .marketplace-hero-badge {
    background: linear-gradient(135deg, rgba(232, 164, 184, 0.95), rgba(201, 169, 110, 0.95)) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1.25rem;
}

.hero-with-video .marketplace-hero-stats .stat {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero-with-video .marketplace-hero-stats .stat strong {
    color: #e8a4b8;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

/* Scroll-indicator below hero (optional decorative) */
.hero-with-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, var(--clr-bg) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ------------------------------------------------------------
   3. HERO LOGO â€” REFINED SIZING
   ------------------------------------------------------------ */
.hero-with-video .hero-logo {
    margin: 1.5rem auto !important;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.hero-with-video .hero-logo img,
.hero-with-video .hero-logo-img {
    max-height: 140px !important;
    max-width: 340px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    filter:
        drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 40px rgba(232, 164, 184, 0.15)) !important;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-with-video .hero-logo img:hover {
    transform: scale(1.03);
    filter:
        drop-shadow(0 10px 25px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 60px rgba(232, 164, 184, 0.3)) !important;
}

@media (max-width: 1024px) {
    .hero-with-video .hero-logo img,
    .hero-with-video .hero-logo-img {
        max-height: 120px !important;
        max-width: 280px !important;
    }
}

@media (max-width: 768px) {
    .marketplace-hero.hero-with-video {
        min-height: 440px;
        padding: 3.5rem 0 3rem;
    }
    .hero-with-video .hero-logo img,
    .hero-with-video .hero-logo-img {
        max-height: 95px !important;
        max-width: 230px !important;
    }
}

@media (max-width: 480px) {
    .marketplace-hero.hero-with-video {
        min-height: 380px;
        padding: 2.5rem 0 2.5rem;
    }
    .hero-with-video .hero-logo img,
    .hero-with-video .hero-logo-img {
        max-height: 80px !important;
        max-width: 200px !important;
    }
}

/* Title fallback styling when no logo */
.hero-with-video .marketplace-hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem) !important;
    color: #fff !important;
    margin: 1rem auto 1.5rem !important;
}

.hero-with-video .marketplace-hero-subtitle {
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    max-width: 620px;
    margin: 0 auto 2rem !important;
}

/* ------------------------------------------------------------
   4. HEADER LOGO REFINEMENTS (corner logo)
   ------------------------------------------------------------ */
.site-branding .custom-logo {
    max-height: 52px !important;
    width: auto !important;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.site-branding a:hover .custom-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 15px rgba(232, 164, 184, 0.3));
}

.site-branding a,
.site-branding .logo-text {
    font-family: 'Italiana', 'Playfair Display', serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    font-style: normal !important;
}

@media (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 40px !important;
    }
}

/* ------------------------------------------------------------
   5. GLOBAL POLISH â€” SPACING, SHADOWS, BUTTONS
   ------------------------------------------------------------ */
.btn-primary,
.wc-btn-primary,
.single_add_to_cart_button,
button.button.alt,
#place_order {
    font-family: 'Cinzel', serif !important;
    letter-spacing: 0.18em !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    padding: 1rem 2rem !important;
    border-radius: 2px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.wc-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::after,
.wc-btn-primary:hover::after {
    left: 100%;
}

/* Product card polish */
.woocommerce ul.products li.product,
.marketplace-product-grid .product {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease !important;
}

.woocommerce ul.products li.product:hover,
.marketplace-product-grid .product:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(232, 164, 184, 0.1) !important;
}

/* Soft glow accents */
.marketplace-hero-badge {
    box-shadow: 0 4px 20px rgba(232, 164, 184, 0.25) !important;
}

/* Category pills refinement */
.category-pill {
    transition: all 0.4s ease !important;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.category-pill:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 164, 184, 0.5) !important;
    box-shadow: 0 10px 30px rgba(232, 164, 184, 0.15) !important;
}

/* ------------------------------------------------------------
   6. REDUCED MOTION / PERFORMANCE
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero-with-video::before { animation: none; }
}

@media (max-width: 600px) {
    /* On small mobile, prefer animated gradient over video for performance */
    .hero-video {
        opacity: 0.7;
    }
}


/* ============================================================
   PRODUCT GRID + SELECT OPTIONS BUTTON POLISH
   ============================================================ */
.select_options_btn,
.product_type_variable,
.product_type_grouped,
.product_type_external {
    background: linear-gradient(135deg, #1a1a1a, #2a1a24) !important;
    color: #e8a4b8 !important;
    border: 1px solid rgba(232,164,184,.4) !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: .15em !important;
    font-size: .72rem !important;
    text-transform: uppercase !important;
    padding: .75rem 1.2rem !important;
    border-radius: 2px !important;
    transition: all .4s ease !important;
    display: inline-block !important;
    width: auto !important;
    text-align: center !important;
}

.select_options_btn:hover,
.product_type_variable:hover {
    background: linear-gradient(135deg, #e8a4b8, #c9a96e) !important;
    color: #000 !important;
    border-color: #e8a4b8 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232,164,184,.25);
}

/* Simple-product Add to Cart in loop */
.woocommerce ul.products li.product .add_to_cart_button.product_type_simple {
    background: linear-gradient(135deg, #c9a96e, #d4af37) !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: .15em !important;
}

.woocommerce ul.products li.product .add_to_cart_button.added {
    background: #00a32a !important;
    color: #fff !important;
}

/* Added to cart confirmation */
.woocommerce ul.products li.product .added_to_cart {
    display: inline-block;
    margin-top: .5rem;
    color: #00c864;
    font-family: 'Cinzel', serif;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* ============================================================
   PAYMENT METHODS LAYOUT FIX (checkout)
   ============================================================ */
.woocommerce-checkout #payment {
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    background: transparent !important;
    padding: 0 !important;
    border-bottom: none !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: .75rem !important;
    padding: 1rem 1.25rem !important;
    list-style: none !important;
    transition: all .3s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: rgba(232,164,184,.35);
    background: rgba(232,164,184,.04);
}

.woocommerce-checkout #payment ul.payment_methods li input[type=radio] {
    margin-right: .75rem;
    accent-color: #e8a4b8;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline-flex !important;
    align-items: center;
    gap: .75rem;
    font-family: 'Cinzel', serif !important;
    font-size: .8rem !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff !important;
    cursor: pointer;
    margin: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li img {
    max-height: 26px;
    width: auto;
    margin-left: .5rem;
    filter: brightness(1.1);
}

.woocommerce-checkout #payment .payment_box {
    background: rgba(0,0,0,0.25) !important;
    border-radius: 6px !important;
    margin-top: .75rem !important;
    padding: 1rem !important;
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    border: none !important;
}

.woocommerce-checkout #payment .payment_box::before {
    display: none !important;
}

#place_order {
    background: linear-gradient(135deg, #d4af37, #c9a96e) !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
    letter-spacing: .2em !important;
    font-size: .9rem !important;
    padding: 1.1rem 2rem !important;
    border: none !important;
    border-radius: 4px !important;
    width: 100% !important;
    margin-top: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all .4s ease;
}

#place_order:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212,175,55,.35) !important;
}

/* ============================================================
   VARIANT / OPTION REQUIRED — VISUAL FEEDBACK
   ============================================================ */
.single_add_to_cart_button.variation-selection-required,
.single_add_to_cart_button:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
    filter: grayscale(.6);
    position: relative;
}

.inr-variant-warning {
    background: linear-gradient(135deg, rgba(232,164,184,.12), rgba(212,175,55,.08));
    border: 1px solid rgba(232,164,184,.35);
    color: #e8a4b8;
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    font-size: .72rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    text-align: center;
    animation: inrPulse 2s ease-in-out infinite;
}

@keyframes inrPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .65; }
}

/* Variations table polish */
.woocommerce div.product form.cart .variations {
    margin-bottom: 1.5rem !important;
}

.woocommerce div.product form.cart .variations label {
    font-family: 'Cinzel', serif !important;
    font-size: .75rem !important;
    letter-spacing: .15em !important;
    text-transform: uppercase !important;
    color: #e8a4b8 !important;
}

.woocommerce div.product form.cart .variations select {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(232,164,184,.25) !important;
    color: #fff !important;
    padding: .85rem 1rem !important;
    font-family: 'Inter', sans-serif !important;
    border-radius: 4px !important;
    transition: all .3s ease !important;
}

.woocommerce div.product form.cart .variations select:focus {
    border-color: #e8a4b8 !important;
    box-shadow: 0 0 0 3px rgba(232,164,184,.15) !important;
    outline: none !important;
}
