/* ============================================
   LED PRODUCT DETAIL PAGE STYLES - FIXED
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    margin-top: 30px;
    padding: 20px 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #357abd;
}

.breadcrumb__separator {
    margin: 0 10px;
    color: #999;
}

/* Detail Page Layout */
.led-detail-page {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.led-detail__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Image Section */
.led-detail__image-section {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0; /* FIX: prevent grid blowout */
    overflow: hidden; /* FIX: contain children */
}

.led-detail__image-container {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.led-detail__image-container.zoomed {
    cursor: zoom-out;
    overflow: hidden;
}

.led-detail__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, transform-origin 0.15s ease, opacity 0.15s ease;
}

.led-detail__image-container.zoomed .led-detail__image {
    /* Scale is now set via inline style with transform-origin */
}

/* Image Thumbnails */
.led-detail__thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #c9a96e #f0f0f0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    max-width: 100%; /* FIX: prevent overflow */
}

.led-detail__thumbnails::-webkit-scrollbar {
    height: 6px;
}

.led-detail__thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.led-detail__thumbnails::-webkit-scrollbar-thumb {
    background: #c9a96e;
    border-radius: 3px;
}

.led-detail__thumbnails::-webkit-scrollbar-thumb:hover {
    background: #b89960;
}

.thumbnail {
    width: 70px;
    height: 70px;
    min-width: 70px; /* FIX: prevent shrinking */
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #f5f5f5;
}

.thumbnail:hover {
    border-color: #c9a96e;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border-color: #c9a96e;
    border-width: 3px;
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide thumbnails if only one image */
.led-detail__thumbnails:empty {
    display: none;
}

/* Info Section */
.led-detail__info-section {
    padding-top: 0;
    min-width: 0; /* FIX: prevent grid blowout */
}

.led-detail__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 5px;
    line-height: 1.3;
}

.led-detail__sku {
    color: #999;
    font-size: 0.8rem;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    display: block;
    text-align: left;
}

/* Options */
.led-detail__options {
    margin-bottom: 40px;
    margin-top: 15px;
}

.led-option {
    margin-bottom: 20px;
}

.led-option__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #666;
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.led-option__label i {
    color: #c9a96e;
    font-size: 0.65rem;
}

/* RAL Colors - Non-clickable display without labels */
.led-option__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    cursor: default;
    pointer-events: none;
}

.color-swatch[data-color="white"] {
    background: #ffffff;
    border: 2px solid #d0d0d0;
}

.color-swatch[data-color="black"] {
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
}

.color-swatch[data-color="chrome"] {
    background: linear-gradient(135deg, #e8e8e8 0%, #b8b8b8 50%, #e8e8e8 100%);
    border: 2px solid #c0c0c0;
}

.color-swatch[data-color="brushed"] {
    background: linear-gradient(90deg, #c0c0c0 0%, #a0a0a0 50%, #c0c0c0 100%);
    border: 2px solid #b0b0b0;
}

.color-swatch[data-color="gold"] {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 50%, #ffd700 100%);
    border: 2px solid #d4af37;
}

.color-swatch[data-color="ral color"] {
    background: conic-gradient(from 0deg,
        #e63946 0deg 60deg,
        #f77f00 60deg 120deg,
        #fcbf49 120deg 180deg,
        #06d6a0 180deg 240deg,
        #118ab2 240deg 300deg,
        #073b4c 300deg 360deg
    );
    border: 2px solid #999;
}

/* Temperature Buttons */
.led-option__temps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* FIXED: Beam section with side-by-side layout */
.led-option__beam-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.led-option__beams {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 auto;
}

/* FIXED: Made temperature buttons 20% smaller */
.temp-btn {
    padding: 8px 16px;  /* Reduced from 10px 20px */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;  /* Reduced from 0.9rem */
    color: #666;
    position: relative;
    padding-left: 28px;  /* Reduced from 35px */
}

.temp-btn::before {
    content: '';
    position: absolute;
    left: 8px;  /* Reduced from 10px */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;  /* Reduced from 14px */
    height: 12px;
    border-radius: 50%;
    background: var(--temp-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.beam-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    color: #666;
    min-width: 80px;
}

.temp-btn:hover,
.beam-btn:hover {
    border-color: #c9a96e;
    color: #333;
    background: #fafafa;
}

.temp-btn.active,
.beam-btn.active {
    background: #c9a96e;
    border-color: #c9a96e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(201, 169, 110, 0.3);
}

/* Beam Visualizer - Adjusted for side-by-side layout */
.beam-visualizer {
    position: relative;
    width: 160px;
    height: 160px;
    background: #1a1a2e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animation when beam color changes */
.beam-visualizer.color-changing {
    animation: beamPulse 0.6s ease-out;
}

@keyframes beamPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

#beam-canvas {
    display: block;
    transition: opacity 0.3s ease;
}

/* Canvas fade effect during color change */
#beam-canvas.color-transitioning {
    animation: canvasFade 0.4s ease-in-out;
}

@keyframes canvasFade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.beam-visualizer__label {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Description */
.led-detail__description {
    margin-bottom: 35px;
}

.led-detail__description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 18px;
}

.led-detail__description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* FIXED: Better formatting for Key Features section */
.led-detail__description .key-features-title {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 12px;
    display: block;
}

.led-detail__description ul {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.led-detail__description li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

.led-detail__description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a90e2;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Specifications Table */
.led-detail__specs {
    margin-bottom: 35px;
}

.led-detail__specs h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 18px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 18px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
    font-size: 0.95rem;
}

.specs-table td:last-child {
    color: #666;
    font-size: 0.95rem;
}

/* Tags */
.led-detail__tags {
    margin-bottom: 35px;
    padding-top: 10px;
}

.led-detail__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background: #e8f4fd;
    color: #4a90e2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #4a90e2;
    color: #fff;
    transform: translateY(-1px);
}

/* Actions - UPDATED to match global button styles, 40% smaller */
.led-detail__actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Override global button styles for product detail page - 20% smaller */
.led-detail__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.6rem; /* 20% smaller than global 1rem 2rem */
    font-family: var(--font-heading);
    font-size: 0.72rem; /* 20% smaller than global 0.9rem */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.6px; /* 20% smaller than global 2px */
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.led-detail__actions .btn--primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.led-detail__actions .btn--primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.led-detail__actions .btn--secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.led-detail__actions .btn--secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .led-detail__content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }

    .led-detail__image-section {
        position: relative;
        margin-bottom: 0;
    }

    .led-detail__image-container {
        max-height: 400px;
    }

    .led-detail__title {
        font-size: 1.75rem;
    }

    .thumbnail {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }
}

@media (max-width: 640px) {
    .led-detail__content {
        padding: 15px;
        gap: 20px;
    }

    .led-detail__image-section {
        margin-bottom: 0;
        max-width: 100%; /* FIX: constrain image section */
        overflow: hidden; /* FIX: prevent overflow */
    }

    .led-detail__image-container {
        max-height: 280px;
        aspect-ratio: 1 / 1;
    }

    .led-detail__title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .breadcrumb {
        font-size: 0.75rem;
        padding: 15px 0;
    }

    .led-detail__actions {
        flex-direction: column;
        margin-top: 30px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stack beam controls vertically on mobile */
    .led-option__beam-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .led-option__beams {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .beam-visualizer {
        width: 140px;
        height: 140px;
    }

    #beam-canvas {
        width: 140px;
        height: 140px;
    }

    /* FIXED: Optimize thumbnails for mobile - prevent overflow */
    .led-detail__thumbnails {
        gap: 6px;
        padding: 8px 0;
        margin-top: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .thumbnail {
        width: 55px;
        height: 55px;
        min-width: 55px; /* FIX: use min-width instead of just width */
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .thumbnail.active {
        border-width: 2px;
    }

    /* Adjust options spacing */
    .led-detail__options {
        margin-bottom: 30px;
        margin-top: 10px;
    }

    .led-option {
        margin-bottom: 15px;
    }

    /* Reduce description spacing */
    .led-detail__description,
    .led-detail__specs,
    .led-detail__tags {
        margin-bottom: 25px;
    }

    .led-detail__description h2,
    .led-detail__specs h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .led-detail__content {
        padding: 12px;
    }

    .led-detail__image-section {
        max-width: 100%;
        overflow: hidden;
    }

    .led-detail__image-container {
        max-height: 240px;
    }

    .led-detail__title {
        font-size: 1.2rem;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
        min-width: 50px; /* FIX: prevent shrinking */
    }

    .led-detail__thumbnails {
        gap: 5px;
        max-width: 100%;
    }

    .beam-visualizer {
        width: 120px;
        height: 120px;
    }

    #beam-canvas {
        width: 120px;
        height: 120px;
    }

    .temp-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        padding-left: 24px;
    }

    .temp-btn::before {
        left: 6px;
        width: 10px;
        height: 10px;
    }

    .beam-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 70px;
    }
}

/* Loading State */
.led-detail-page__loading {
    text-align: center;
    padding: 100px 20px;
    color: #666;
}

.led-detail-page__loading i {
    font-size: 3rem;
    color: #4a90e2;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* ============================================
   CSS ADDITIONS FOR INLINE HEX COLORS
   Add these to led-product-detail.css
   ============================================ */

/* Color swatches with inline styles (hex colors from category) */
.color-swatch[style*="background-color"] {
    /* Inline styles override CSS classes */
    border: 2px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.color-swatch[style*="background-color"]:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 0, 0, 0.3);
}

/* Special handling for very light colors (white, light gray) */
.color-swatch[data-color="white"],
.color-swatch[data-color="ral color"] {
    border: 2px solid #d0d0d0;
}

/* Special handling for very dark colors (black) */
.color-swatch[data-color="black"] {
    border: 2px solid #2a2a2a;
}

/* ============================================
   LED PRODUCT DETAIL PAGE - LOADING STATE
   ============================================ */

/* Loading State Styling */
.led-detail__loading {
    text-align: center;
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.led-detail__loading-spinner {
    margin-bottom: 20px;
}

.led-detail__loading-spinner i {
    font-size: 3rem;
    color: #c9a96e;
}

.led-detail__loading p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Smooth fade-in animation for content */
#product-content {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hide breadcrumb initially */
#breadcrumb-nav {
    animation: slideDown 0.3s ease-in;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RELATED PRODUCTS SECTION - IMPROVED VERSION
   ============================================ */

.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.related-products__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.related-products__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}

.related-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Related Product Card - Enhanced with Glow Effect */
.related-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

/* Elegant glow effect on hover */
.related-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #c9a96e, #b89960, #c9a96e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.related-product-card:hover::before {
    opacity: 1;
}

.related-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(201, 169, 110, 0.25);
}

.related-product-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    overflow: hidden;
}

/* Overlay gradient that appears on hover */
.related-product-card__image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 110, 0) 0%,
        rgba(201, 169, 110, 0.1) 50%,
        rgba(201, 169, 110, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.related-product-card:hover .related-product-card__image-wrapper::after {
    opacity: 1;
}

.related-product-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

/* Shimmer effect on image */
.related-product-card__image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.related-product-card:hover .related-product-card__image-wrapper::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.related-product-card__content {
    padding: 20px;
    background: #fff;
    position: relative;
    z-index: 1;
}

.related-product-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    min-height: 2.8em; /* Reserve space for 2 lines */
}

.related-product-card:hover .related-product-card__title {
    color: #c9a96e;
}

/* Subtle bottom border that expands on hover */
.related-product-card__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a96e, transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-product-card:hover .related-product-card__content::after {
    width: 80%;
}

/* Empty state */
.related-products__empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 0.95rem;
}

/* Optional: Add a subtle corner ribbon effect */
.related-product-card__corner {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent rgba(201, 169, 110, 0.15) transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.related-product-card:hover .related-product-card__corner {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
    .related-products {
        margin-top: 50px;
        padding-top: 30px;
    }

    .related-products__title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .related-products__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }

    .related-product-card__title {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .related-products {
        margin-top: 40px;
        padding-top: 25px;
    }

    .related-products__title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .related-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .related-product-card {
        border-radius: 12px;
    }

    .related-product-card__content {
        padding: 15px;
    }

    .related-product-card__title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        min-height: 2.5em;
    }

    /* Reduce hover effects on mobile for performance */
    .related-product-card:hover {
        transform: translateY(-4px);
    }

    .related-product-card:hover .related-product-card__image {
        transform: scale(1.05);
    }
}

/* Extra small devices - single column */
@media (max-width: 480px) {
    .related-products__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-product-card__title {
        font-size: 1rem;
    }
}

/* Alternative Style Option: Add subtle pattern overlay */
.related-product-card__pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(201, 169, 110, 0.02) 10px,
            rgba(201, 169, 110, 0.02) 20px
        );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.related-product-card:hover .related-product-card__pattern {
    opacity: 1;
}

/* Premium loading animation for images */
.related-product-card__image[src=""] {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e8e8e8 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* ============================================
   CROSS-PROMO SECTION — "Also From Persekian"
   Bright/light theme — sits above the dark footer
   Both cards forced to identical height via grid-auto-rows
   ============================================ */

.cross-promo {
    padding: 80px 0 100px;
    background: #faf8f5;
    position: relative;
    overflow: hidden;
}

/* Subtle warm dot-grid texture */
.cross-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(176,141,104,0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.cross-promo__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.cross-promo__header {
    text-align: center;
    margin-bottom: 56px;
}

.cross-promo__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b08d68;
    margin-bottom: 16px;
}

.cross-promo__title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.cross-promo__subtitle {
    font-size: 0.95rem;
    color: #777;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Cards grid ───────────────────────────────────────────────
   grid-auto-rows: 400px  ← single source of truth for height.
   Both columns share the same row, so they are always identical.
   No aspect-ratio on individual cards — they stretch to fill.
   ─────────────────────────────────────────────────────────── */
.cross-promo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 400px;
    gap: 20px;
    align-items: stretch;
}

/* Individual card */
.cross-promo__card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    /* height: 100% fills the grid row — no aspect-ratio needed */
    height: 100%;
    background: #e8e4de;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateZ(0);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.45s ease;
}

.cross-promo__card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* Background image */
.cross-promo__card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.cross-promo__card:hover .cross-promo__card-bg {
    transform: scale(1.06);
}

/* Gradient overlay — bottom-heavy for legibility */
.cross-promo__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.45) 40%,
        rgba(0,0,0,0.12) 70%,
        transparent 100%
    );
    transition: opacity 0.4s ease;
}

.cross-promo__card:hover .cross-promo__card-overlay {
    opacity: 0.9;
}

/* Gold accent bar — sweeps in on hover */
.cross-promo__card-accent {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #b08d68, #d4b483);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.cross-promo__card:hover .cross-promo__card-accent {
    width: 100%;
}

/* Text content */
.cross-promo__card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 28px 32px;
    z-index: 2;
}

.cross-promo__card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f0d9a8;
    background: rgba(176, 141, 104, 0.25);
    border: 1px solid rgba(240, 217, 168, 0.4);
    padding: 4px 10px;
    border-radius: 2px;
    margin-bottom: 12px;
    transition: background 0.3s, border-color 0.3s;
}

.cross-promo__card:hover .cross-promo__card-tag {
    background: rgba(176, 141, 104, 0.38);
    border-color: rgba(240, 217, 168, 0.65);
}

.cross-promo__card-title {
    font-family: 'Crimson Text', Georgia, serif;
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.cross-promo__card-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 320px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease 0.05s;
}

.cross-promo__card:hover .cross-promo__card-desc {
    max-height: 80px;
    opacity: 1;
}

/* CTA arrow */
.cross-promo__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4b483;
    transition: gap 0.3s ease, color 0.3s ease;
}

.cross-promo__card-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.35s ease;
    flex-shrink: 0;
}

.cross-promo__card:hover .cross-promo__card-cta {
    gap: 13px;
    color: #f0d9a8;
}

.cross-promo__card:hover .cross-promo__card-cta svg {
    transform: translateX(4px);
}

/* --featured modifier no longer changes height — kept for any future use */
.cross-promo__card--featured {
    /* intentionally empty */
}

/* Divider */
.cross-promo__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
}

.cross-promo__divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(176,141,104,0.35), transparent);
}

.cross-promo__divider-diamond {
    width: 6px;
    height: 6px;
    background: #b08d68;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .cross-promo {
        padding: 60px 0 72px;
    }

    .cross-promo__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
        gap: 16px;
    }

    .cross-promo__card-desc {
        max-height: 80px;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .cross-promo__header {
        margin-bottom: 36px;
    }

    .cross-promo__grid {
        grid-auto-rows: 240px;
    }

    .cross-promo__card-body {
        padding: 20px 20px 24px;
    }
}