/**
 * Product Landing Page Styles
 * Modern Aesthetic - Flickity Slider, Sticky Nav, Galleries
 * 
 * @package ATH_ATRAHI_DESIGN
 * @version 3.0
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Gold Accent Colors */
    --product-gold: #b99d63;
    --product-gold-light: #d4c4a0;
    --product-gold-hover: #a08550;
    
    /* Dark Backgrounds */
    --product-dark: #1a1a1a;
    --product-darker: #0f0f0f;
    --product-card-bg: #1e1e1e;
    --product-card-bg-light: #2a2a2a;
    --product-border: #3a3a3a;
    
    /* HIGH CONTRAST TEXT - White on Dark */
    --product-text: #ffffff;           /* Pure white for main text */
    --product-text-secondary: #e5e5e5; /* Very light gray */
    --product-text-muted: #b0b0b0;     /* Muted but still readable */
    
    /* Utilities */
    --product-radius: 12px;
    --product-radius-lg: 20px;
    --product-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.product-landing-page {
    background: var(--product-darker);
    min-height: 100vh;
}

.product-hero-section {
    background: linear-gradient(135deg, var(--product-dark) 0%, var(--product-darker) 100%);
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--product-border);
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.product-breadcrumb a {
    color: #cccccc; /* Light gray for breadcrumb links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
    color: #b99d63; /* Gold on hover */
}

.product-breadcrumb .sep {
    color: rgba(255,255,255,0.5); /* More visible separator */
}

.product-breadcrumb .current {
    color: #b99d63; /* Gold for current page */
    font-weight: 600;
}

.product-hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}

/* ============================================
   FLICKITY SLIDER
   ============================================ */
.product-slider-section {
    background: var(--product-darker);
    padding: 40px 0;
}

.product-flickity-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--product-radius-lg);
    box-shadow: var(--product-shadow);
}

.product-flickity-slider {
    width: 100%;
}

.product-flickity-slider .carousel-cell {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    margin-right: 10px;
}

.product-flickity-slider .carousel-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.product-flickity-slider .carousel-cell a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Flickity Controls */
.product-flickity-slider .flickity-prev-next-button {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border: 2px solid var(--product-gold);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-flickity-slider .flickity-prev-next-button:hover {
    background: var(--product-gold);
}

.product-flickity-slider .flickity-prev-next-button .flickity-button-icon {
    fill: var(--product-gold);
    transition: fill 0.3s ease;
}

.product-flickity-slider .flickity-prev-next-button:hover .flickity-button-icon {
    fill: var(--product-dark);
}

.product-flickity-slider .flickity-page-dots {
    bottom: 20px;
}

.product-flickity-slider .flickity-page-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border: 2px solid var(--product-gold);
    opacity: 1;
    margin: 0 6px;
}

.product-flickity-slider .flickity-page-dots .dot.is-selected {
    background: var(--product-gold);
}

/* ============================================
   STICKY NAVIGATION
   ============================================ */
.product-sticky-nav {
    background: var(--product-dark);
    border-bottom: 1px solid var(--product-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.product-sticky-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.sticky-nav-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.sticky-nav-list li {
    margin: 0;
}

.sticky-nav-link {
    display: block;
    padding: 16px 24px;
    color: #ffffff; /* White text for nav links */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.sticky-nav-link:hover,
.sticky-nav-link.active {
    color: #b99d63; /* Gold on hover/active */
    border-bottom-color: #b99d63;
    background: rgba(185, 157, 99, 0.1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .sticky-nav-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .sticky-nav-list::-webkit-scrollbar {
        display: none;
    }
    
    .sticky-nav-link {
        padding: 14px 18px;
        white-space: nowrap;
        font-size: 0.9rem;
    }
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.product-content-wrapper {
    background: var(--product-darker);
    padding: 60px 0;
}

.product-section {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--product-border);
}

.product-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--product-gold);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.section-title.centered {
    justify-content: center;
    text-align: center;
}

.title-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Section Content Background for better readability */
.product-section .prose,
.product-section .section-content {
    background: var(--product-card-bg-light);
    padding: 30px;
    border-radius: var(--product-radius);
    border: 1px solid var(--product-border);
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--product-card-bg-light);
    padding: 24px;
    border-radius: var(--product-radius);
    border: 1px solid var(--product-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.info-card:hover {
    border-color: var(--product-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(185, 157, 99, 0.2);
    background: rgba(40, 40, 45, 0.95);
}

.info-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--product-gold) 0%, var(--product-gold-hover) 100%);
    border-radius: 12px;
    color: var(--product-dark);
    box-shadow: 0 4px 15px rgba(185, 157, 99, 0.3);
}

.info-card-icon svg {
    width: 26px;
    height: 26px;
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--product-gold-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.info-card-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.info-card-value a {
    color: var(--product-gold);
    text-decoration: none;
}

.info-card-value a:hover {
    text-decoration: underline;
}

/* ============================================
   PROSE CONTENT - HIGH CONTRAST FOR READABILITY
   ============================================ */
.prose {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #ffffff; /* Pure white - nền đen chữ trắng */
}

.prose p {
    margin-bottom: 1.5em;
    color: #f0f0f0; /* Very light gray for paragraphs */
}

.prose h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--product-gold);
}

.prose h3 {
    font-size: 1.4rem;
    color: var(--product-gold-light);
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose ul, .prose ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.prose li {
    margin-bottom: 0.75em;
    color: #f0f0f0; /* Light text for list items */
}

.prose li::marker {
    color: var(--product-gold);
}

.prose strong, .prose b {
    color: #fff;
    font-weight: 600;
}

.prose em, .prose i {
    color: var(--product-gold-light);
    font-style: italic;
}

.prose img {
    max-width: 100%;
    border-radius: var(--product-radius);
    margin: 2em 0;
    box-shadow: var(--product-shadow);
}

.prose a {
    color: var(--product-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--product-gold-light);
}

.prose blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--product-gold);
    border-radius: 0 var(--product-radius) var(--product-radius) 0;
    font-style: italic;
    color: #ffffff; /* White text in blockquote */
}

/* ============================================
   IMAGE GALLERIES
   ============================================ */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    display: block;
    border-radius: var(--product-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay svg {
    width: 48px;
    height: 48px;
    color: #fff;
}

/* ============================================
   CTA SECTION
   ============================================ */
.product-cta-section {
    background: linear-gradient(135deg, var(--product-dark) 0%, rgba(185, 157, 99, 0.15) 100%);
    padding: 80px 0;
    border-top: 1px solid var(--product-border);
}

.cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--product-card-bg-light);
    padding: 40px 50px;
    border-radius: var(--product-radius-lg);
    border: 2px solid var(--product-gold);
    box-shadow: 0 20px 50px rgba(185, 157, 99, 0.25);
}

.cta-content h3 {
    font-size: 1.75rem;
    color: #ffffff !important;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cta-content p {
    color: #e5e5e5 !important; /* Light gray for description */
    margin: 0;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-gold {
    background: #b99d63;
    color: #1a1a1a !important; /* Dark text on gold button */
    border-color: #b99d63;
}

.btn-gold:hover {
    background: #ffffff;
    color: #1a1a1a !important; /* Dark text on white button */
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #ffffff !important; /* White text on outline button */
    border-color: #b99d63;
}

.btn-outline:hover {
    background: #b99d63;
    color: #1a1a1a !important; /* Dark text when filled */
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.product-related-section {
    background: var(--product-darker);
    padding: 80px 0;
    border-top: 1px solid var(--product-border);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.related-product-card {
    display: block;
    background: var(--product-card-bg-light);
    border-radius: var(--product-radius);
    overflow: hidden;
    border: 1px solid var(--product-border);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.related-product-card:hover {
    transform: translateY(-8px);
    border-color: var(--product-gold);
    box-shadow: 0 20px 50px rgba(185, 157, 99, 0.25);
}

.related-product-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.1);
}

.related-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b99d63;
    color: #1a1a1a !important; /* Dark text on gold badge */
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.related-product-content {
    padding: 24px;
}

.related-product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff !important; /* White title */
    margin: 0 0 10px 0;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.related-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: #cccccc !important; /* Light gray meta text */
}

.related-product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cccccc !important;
}

.related-product-meta svg,
.related-product-meta .icon {
    color: #b99d63 !important; /* Gold icons */
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   FANCYBOX OVERRIDES
   ============================================ */
.fancybox__container {
    --fancybox-bg: rgba(0, 0, 0, 0.95);
}

.fancybox__toolbar {
    --fancybox-color: #fff;
    --fancybox-hover-color: var(--product-gold);
}

.fancybox__nav {
    --fancybox-color: #fff;
    --fancybox-hover-color: var(--product-gold);
}

.fancybox__counter {
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-flickity-slider .carousel-cell {
        height: 50vh;
        min-height: 350px;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .product-hero-section {
        padding: 30px 0 20px;
    }
    
    .product-hero-title {
        font-size: 1.5rem;
    }
    
    .product-flickity-slider .carousel-cell {
        height: 40vh;
        min-height: 280px;
    }
    
    .product-flickity-slider .flickity-prev-next-button {
        width: 40px;
        height: 40px;
    }
    
    .product-content-wrapper {
        padding: 40px 0;
    }
    
    .product-section {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 18px;
    }
    
    .masonry-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .cta-content h3 {
        font-size: 1.3rem;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* ============================================
   FORCE HIGH CONTRAST - Dark BG = White Text
   Nền đen thì chữ trắng - Override everything
   ============================================ */
.product-landing-page,
.product-landing-page * {
    /* Ensure all text is readable on dark background */
}

/* All text elements must be white/light on dark background */
.product-landing-page h1,
.product-landing-page h2,
.product-landing-page h3,
.product-landing-page h4,
.product-landing-page h5,
.product-landing-page h6 {
    color: #ffffff !important;
}

.product-landing-page p,
.product-landing-page span:not(.title-icon):not(.sep),
.product-landing-page div,
.product-landing-page li {
    color: #f0f0f0;
}

/* Specific overrides for contrast */
.product-landing-page .prose p,
.product-landing-page .prose li,
.product-landing-page .prose span,
.product-landing-page .section-content p,
.product-landing-page .section-content li {
    color: #ffffff !important;
}

.product-landing-page .info-card-label {
    color: #d4c4a0 !important; /* Gold light */
}

.product-landing-page .info-card-value {
    color: #ffffff !important;
}

.product-landing-page .cta-content p {
    color: #e5e5e5 !important;
}

.product-landing-page .related-product-title {
    color: #ffffff !important;
}

.product-landing-page .related-product-meta,
.product-landing-page .related-product-meta span {
    color: #cccccc !important;
}

/* Links should be gold for visibility */
.product-landing-page a:not(.btn):not(.gallery-item):not(.related-product-card) {
    color: #b99d63;
}

.product-landing-page a:not(.btn):not(.gallery-item):not(.related-product-card):hover {
    color: #d4c4a0;
}