/* ================================================================
   PRODUCT PAGE V3 - BELOW THE FOLD CSS
   Statement band, editorial content, accordion system
   ================================================================ */

/* ----------------------------------------------------------------
   PAGE LAYOUT - CSS Grid that creates independent two-column flow.
   On desktop the .v3-hero and .v3-content wrappers become
   "transparent" via display:contents so their children participate
   directly in the grid defined on .product-page-v3.
   
   Grid layout:
     Col 1 (left)            | Col 2 (right)
     ────────────────────────|──────────────────────
     Row 1: .v3-hero-gallery | .v3-product-header
     Row 2: .v3-editorial-content | .v3-accordions
   
   Each column flows independently — accordion starts right after
   product-header ends, editorial starts right after gallery ends.
   ---------------------------------------------------------------- */
/* Grid layout moved to product-page-v3-critical.css for priority load order */

/* Mobile: simple stacked layout */
@media (max-width: 1023px) {
    .v3-hero {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin: 20px 0;
    }

    .v3-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin: 40px 0;
    }

    .v3-editorial-content,
    .v3-accordions {
        width: 100%;
    }
}


/* ----------------------------------------------------------------
   EDITORIAL CONTENT
   ---------------------------------------------------------------- */
.v3-editorial-content {
    color: #333;
}

/* Story Box */
.v3-story-box {
    background: #f9f9f9;
    padding: 32px;
    margin-bottom: 40px;
    border-radius: 8px;
    border-left: 4px solid #2c5f2d;
}

.v3-story-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

.v3-story-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Ensure content is visible even if plugins try to hide "empty" looking paragraphs */
.v3-story-text p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.v3-story-text p:last-child {
    margin-bottom: 0;
}

/* Long Description */
.v3-long-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    max-width: 650px;
}

.v3-long-description h2,
.v3-long-description h3 {
    margin: 32px 0 16px 0;
    color: #1a1a1a;
}

.v3-long-description h2 {
    font-size: 24px;
    font-weight: 600;
}

.v3-long-description h3 {
    font-size: 20px;
    font-weight: 600;
}

.v3-long-description p {
    margin: 0 0 20px 0;
}

.v3-long-description ul,
.v3-long-description ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}

.v3-long-description li {
    margin-bottom: 8px;
}

/* ----------------------------------------------------------------
   ACCORDION SYSTEM
   ---------------------------------------------------------------- */
.v3-accordions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 60px;
}

.v3-accordion-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.v3-accordion-item:hover {
    border-color: #ccc;
}

/* Header/Trigger */
.v3-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.v3-accordion-header:hover {
    background: #f9f9f9;
}

.v3-accordion-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.v3-accordion-icon {
    flex-shrink: 0;
    color: #666;
    transition: transform 0.3s ease;
}

.v3-accordion-item.is-open .v3-accordion-icon {
    transform: rotate(180deg);
}

/* Content */
.v3-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.v3-accordion-item.is-open .v3-accordion-content {
    max-height: 2000px;
    /* Large enough for most content */
}

.v3-accordion-inner {
    padding: 0 24px 24px 24px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.v3-accordion-inner p {
    margin: 0 0 12px 0;
}

.v3-accordion-inner p:last-child {
    margin-bottom: 0;
}

.v3-accordion-inner h3,
.v3-accordion-inner h4 {
    margin: 16px 0 8px 0;
    color: #333;
}

.v3-accordion-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 16px 0 12px 0 !important;
}

/* Attributes List */
.v3-attributes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v3-attributes-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.v3-attributes-list li:last-child {
    border-bottom: none;
}

.v3-attributes-list strong {
    color: #333;
    font-weight: 500;
}

/* FAQ Items */
.v3-faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.v3-faq-item {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 4px;
}

.v3-faq-question {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.v3-faq-answer {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ----------------------------------------------------------------
   STOCK STATUS (Out of Stock)
   ---------------------------------------------------------------- */
.v3-stock-outofstock {
    color: #C41230 !important;
    font-size: 14px;
    margin: 8px 0 12px 0;
    background: transparent !important;
    padding: 0 !important;
}

/* ----------------------------------------------------------------
   WAITLIST BUTTON (Out of Stock Products)
   ---------------------------------------------------------------- */
.v3-waitlist-button {
    margin: 15px 0;
}

/* High specificity to override theme button styles */
.v3-waitlist-button .xoo-wl-btn.button.btn,
.v3-waitlist-button a.xoo-wl-btn.button,
.v3-waitlist-button .xoo-wl-btn {
    display: block !important;
    width: 85% !important;
    max-width: 600px !important;
    padding: 16px 24px !important;
    background: #4A90C8 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    text-align: center;
}

.v3-waitlist-button .xoo-wl-btn.button.btn:hover,
.v3-waitlist-button a.xoo-wl-btn.button:hover,
.v3-waitlist-button .xoo-wl-btn:hover {
    background: #3A7FB8 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 200, 0.3);
}

.v3-waitlist-button .xoo-wl-btn.button.btn:active,
.v3-waitlist-button a.xoo-wl-btn.button:active,
.v3-waitlist-button .xoo-wl-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 144, 200, 0.2);
}

/* ----------------------------------------------------------------
   CONTACT AND READ-MORE LINKS
   ---------------------------------------------------------------- */
.v3-contact-link {
    color: inherit;
    text-decoration: underline;
    transition: font-weight 0.2s ease;
}

.v3-contact-link:hover {
    font-weight: 600;
    cursor: pointer;
}

.v3-read-more-link {
    color: #4A90C8;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    margin-left: 4px;
}

.v3-read-more-link:hover {
    color: #3A7FB8;
    text-decoration: underline;
}

/* Checkmark improvements */
.v3-checkmark {
    flex-shrink: 0;
    margin-right: 8px;
}

/* ----------------------------------------------------------------
   CUSTOMER REVIEWS
   ---------------------------------------------------------------- */
.v3-reviews-container {
    padding: 0;
}

/* Reviews Summary Bar */
.v3-reviews-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 24px;
    gap: 20px;
}

.v3-reviews-summary-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.v3-average-rating {
    display: flex !important;
    flex-direction: row !important;
    /* Force row layout */
    align-items: center !important;
    gap: 10px !important;
    height: 35px;
    /* Consistent height */
}

.v3-rating-number {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.v3-summary-stars {
    display: flex !important;
    align-items: center !important;
    /* Vertically center all children */
    margin-top: 4px !important;
    /* Visual offset for perfect alignment with text glyphs */
}

.v3-summary-stars .star-rating {
    font-size: 16px !important;
}

/* Summary stars span: match review stars pattern for correct clipping */
.v3-summary-stars .star-rating span {
    font-size: 16px !important;
    overflow: hidden !important;
    /* CRITICAL: must be hidden for width-based clipping */
    padding: 0 !important;
    /* Remove WooCommerce 1.5em padding */
    height: 1em !important;
    /* Match font-size */
    line-height: 1 !important;
    text-indent: -9999px !important;
    /* Hide screen-reader text */
}

/* Make summary stars gold like header stars */
.v3-summary-stars .star-rating span::before {
    color: #d4af37 !important;
    text-indent: 0 !important;
    font-size: 16px !important;
}

.v3-rating-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.v3-reviews-summary-right {
    flex-shrink: 0;
}

/* Write Review Button */
.v3-write-review-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2c5f2d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v3-write-review-btn:hover {
    background: #234d24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.2);
    color: #fff;
    text-decoration: none;
}

/* Reviews List */
.v3-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* Individual Review Card */
.v3-review-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.v3-review-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.v3-review-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.v3-review-stars {
    display: flex;
}

.v3-review-stars .star-rating {
    font-size: 14px !important;
    color: #d4af37;
}

.v3-review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.v3-reviewer-name {
    font-weight: 600;
    color: #1a1a1a;
}

.v3-verified-badge {
    flex-shrink: 0;
}

.v3-review-date {
    color: #999;
}

.v3-review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.v3-review-text p {
    margin: 0 0 8px 0;
}

.v3-review-text p:last-child {
    margin-bottom: 0;
}

/* No Reviews State */
.v3-no-reviews {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.v3-no-reviews p {
    font-size: 16px;
    color: #666;
    margin: 0 0 8px 0;
}

.v3-no-reviews-subtext {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px !important;
}

/* Helper class for hiding fallback ingress on mobile */
@media (max-width: 1023px) {
    .v3-desktop-only {
        display: none !important;
    }
}

/* Review Form Container */
.v3-review-form-container {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.v3-form-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: block;
}

/* Star Rating Display (WooCommerce Default) - removed overflow visible to prevent text overlap */
/* Empty ruleset removed - overflow visible was causing text overlap issues */

.v3-reviews-summary .star-rating::before,
.v3-review-stars .star-rating::before {
    color: #e5e5e5 !important;
}

/* Allow summary stars spans to display ::before (but NOT review stars which need clipping) */
.v3-reviews-summary .star-rating span {
    font-size: inherit !important;
    height: auto !important;
    overflow: visible !important;
}

.v3-reviews-summary .star-rating span::before {
    color: #d4af37 !important;
    text-indent: 0 !important;
}

/* Header Star Rating (from critical CSS) */
.v3-reviews-summary .v3-stars .star-rating {
    font-size: 14px !important;
}

/* VISIBILITY FIX: Force header stars visible but ALLOW width-based clipping */
body .v3-product-header .star-rating span,
body .v3-stars .star-rating span,
.v3-product-header .star-rating span {
    clip-path: none !important;
    /* Do NOT set width - let WooCommerce's inline width: XX% work for clipping */
    overflow: hidden !important;
    /* CRITICAL: must be hidden for proper star count */
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    /* WooCommerce expects absolute positioning for overlay */
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    clip: auto !important;
    font-size: 14px !important;
    text-indent: -9999px !important;
}

/* Fix review stars to allow width-based clipping */
.v3-review-stars .star-rating span {
    /* Do NOT set width - let WooCommerce's inline width: XX% work */
    overflow: hidden !important;
    /* Required for clipping */
    text-indent: -9999px !important;
    /* Hide text, show ::before */
}

/* Ensure gold color is always applied */
/* NOTE: .v3-summary-stars removed - it has its own rule with 16px font-size */
body .v3-product-header .star-rating span::before,
body .v3-stars .star-rating span::before,
.star-rating span::before {
    color: #d4af37 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 14px !important;
    text-indent: 0 !important;
    display: inline-block !important;
}

/* Numeric rating display (e.g., "5,0") */
.v3-numeric-rating {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-left: 6px;
    margin-right: 6px;
    display: inline-block;
}

/* ----------------------------------------------------------------
   MOBILE OPTIMIZATIONS
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .v3-story-box {
        padding: 24px 20px;
    }

    .v3-accordion-header {
        padding: 16px 20px;
    }

    .v3-accordion-inner {
        padding: 0 20px 20px 20px;
    }

    /* Reviews - Mobile Adjustments */
    .v3-reviews-summary-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .v3-reviews-summary-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .v3-average-rating {
        flex-direction: row;
        gap: 12px;
    }

    .v3-rating-number {
        font-size: 28px;
    }

    .v3-reviews-summary-right {
        width: 100%;
    }

    .v3-write-review-btn {
        width: 100%;
        text-align: center;
    }

    .v3-review-card {
        padding: 16px;
    }
}

/* ----------------------------------------------------------------
   FIX: Review Form Positioning
   ---------------------------------------------------------------- */
/* Reset any WooCommerce CSS that positions #respond off-screen */
.v3-review-form-container #respond {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

/* Ensure form fields are visible */
.v3-review-form-container #respond .comment-form {
    position: static !important;
    left: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Style the comment form fields */
.v3-review-form-container #respond .comment-form-rating,
.v3-review-form-container #respond .comment-form-comment,
.v3-review-form-container #respond .comment-form-author,
.v3-review-form-container #respond .comment-form-email {
    margin-bottom: 16px;
}

.v3-review-form-container #respond .comment-form-rating label,
.v3-review-form-container #respond .comment-form-comment label,
.v3-review-form-container #respond .comment-form-author label,
.v3-review-form-container #respond .comment-form-email label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.v3-review-form-container #respond textarea,
.v3-review-form-container #respond input[type="text"],
.v3-review-form-container #respond input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.v3-review-form-container #respond textarea:focus,
.v3-review-form-container #respond input[type="text"]:focus,
.v3-review-form-container #respond input[type="email"]:focus {
    outline: none;
    border-color: #2c5f2d;
}

.v3-review-form-container #respond textarea {
    min-height: 120px;
    resize: vertical;
}

.v3-review-form-container #respond .form-submit {
    margin-top: 20px;
}

.v3-review-form-container #respond .form-submit input[type="submit"] {
    background: #2c5f2d;
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v3-review-form-container #respond .form-submit input[type="submit"]:hover {
    background: #234d24;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.2);
}

/* Hide rating dropdown (nice-select) in review form */
#review_form .comment-form-rating .nice-select {
    display: none !important;
}


/* Ensure v3-stars section doesn't have overflow visible */
.v3-stars .star-rating {
    overflow: hidden !important;
}

/* Hide WooCommerce product rating container completely - we use our custom v3-reviews-summary instead */
.woocommerce-product-rating {
    display: none !important;
}

/* ----------------------------------------------------------------
   RELATED PRODUCTS / CROSS-SELLS
   ---------------------------------------------------------------- */
.related.products,
.upsells.products,
.cross-sells.products {
    max-width: var(--v3-page-max-width, 2160px);
    margin: 0 auto;
    padding: 0 var(--v3-page-padding, clamp(16px, 3vw, 56px));
    box-sizing: border-box;
    width: 100%;
}

.related-products,
.editorial-related {
    border-top: 1px solid #e0e0e0;
    padding: 32px 0;
    margin: 0 16px;
}

.related-products__title,
.editorial-related__title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

.editorial-related__subtitle {
    font-size: 14px;
    color: #666;
    margin: -8px 0 16px 0;
    font-style: italic;
}

/* Horizontal Scroll Track */
.related-products__track,
.editorial-related__track {
    display: flex;
    gap: 16px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;

    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.related-products__track::-webkit-scrollbar,
.editorial-related__track::-webkit-scrollbar {
    display: none;
}

/* Product Cards */
.related-product-card,
.editorial-product-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

.related-product-card__link,
.editorial-product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-product-card__image,
.editorial-product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.related-product-card__img,
.editorial-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card__link:hover .related-product-card__img,
.editorial-product-card__link:hover .editorial-product-card__img {
    transform: scale(1.05);
}

.related-product-card__name,
.editorial-product-card__name {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px 0;
    line-height: 1.3;
    color: #1a1a1a;

    /* Truncate to 2 lines */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-card__price,
.editorial-product-card__price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

@media (min-width: 768px) {
    .related-products__track,
    .editorial-related__track {
        gap: 20px;
    }

    .related-product-card__name,
    .editorial-product-card__name {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .related-products,
    .editorial-related {
        padding: 64px 0;
        margin: 0;
    }

    .related-products__title,
    .editorial-related__title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .related-products__track,
    .editorial-related__track {
        gap: 32px;
    }

    .related-product-card__name,
    .editorial-product-card__name {
        font-size: 16px;
    }

    .related-product-card__price,
    .editorial-product-card__price {
        font-size: 16px;
    }
}

/* ----------------------------------------------------------------
   LOWEST PRICE 30 DAYS FIX
   ---------------------------------------------------------------- */
/* Force children of lowest price container to inherit parent font size (14px) and color instead of global rule */
/* Also fix opacity compounding issue */
.v3-price-history .pph-lowest-price,
.v3-price-history .pph-lowest-price * {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    opacity: 1 !important;
}

/* ----------------------------------------------------------------
   STATEMENT BAND TWEAKS
   ---------------------------------------------------------------- */
.v3-statement-band {
    padding: 32px 20px !important;
    margin: 32px auto !important;
}

.v3-statement-text {
    font-size: 18px !important;
    white-space: nowrap !important;
}

/* Quote icons (handles ❝ and ❞ or similar) */
.v3-statement-band span[style*="font-size"],
.v3-statement-band h3 span,
.v3-quote-icon {
    font-size: 24px !important;
    line-height: 1 !important;
}

/* ----------------------------------------------------------------
   BACKORDER NOTICE
   ---------------------------------------------------------------- */
.v3-stock-backorder {
    background: transparent !important;
    padding: 0 !important;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 500;
}

.v3-stock-backorder a {
    color: #9e8e2e !important;
    /* Gold/Olive tone */
    text-decoration: underline;
    cursor: pointer;
}

.v3-stock-backorder a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* ----------------------------------------------------------------
   V3 IMAGE LIGHTBOX MODAL
   ---------------------------------------------------------------- */
.v3-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.v3-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.v3-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.v3-lightbox-close:hover {
    transform: scale(1.1);
    opacity: 1;
}

.v3-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.v3-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v3-lightbox.is-open .v3-lightbox-image {
    transform: scale(1);
}

.v3-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.v3-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.v3-lightbox-prev {
    left: 20px;
}

.v3-lightbox-next {
    right: 20px;
}

@media (max-width: 767px) {
    .v3-lightbox-nav {
        width: 44px;
        height: 44px;
        opacity: 0.8;
    }

    .v3-lightbox-prev {
        left: 10px;
    }

    .v3-lightbox-next {
        right: 10px;
    }

    .v3-lightbox-close {
        top: 10px;
        right: 10px;
        opacity: 1;
    }
}

/* ================================================================
   INSPIRATION SECTION (SHOP THE LOOK)
   ================================================================ */
.v3-inspiration-section {
    margin: 80px auto;
    max-width: var(--v3-page-max-width, 2160px);
    padding: 0 var(--v3-page-padding, clamp(16px, 3vw, 56px));
    box-sizing: border-box;
}

.v3-inspiration-container {
    background: #fdfbf7;
    /* Subtle warm background */
    padding: 60px;
    border-radius: 8px;
}

.v3-inspiration-title {
    font-size: 28px;
    font-weight: 500;
    color: #333;
    margin: 0 0 40px 0;
    text-align: center;
}

.v3-inspiration-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.v3-inspiration-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.v3-inspiration-card:hover {
    transform: translateY(-5px);
}

.v3-inspiration-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 20px;
    background: #f0f0f0;
}

.v3-inspiration-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    transition: transform 0.5s ease;
}

.v3-inspiration-card:hover .v3-inspiration-image {
    transform: scale(1.03);
}

.v3-inspiration-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v3-inspiration-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b8b8b;
}

.v3-inspiration-post-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.v3-inspiration-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #8a7c28;
    /* Theme gold/brown */
    margin-top: 8px;
}

.v3-inspiration-read-more svg {
    transition: transform 0.2s ease;
}

.v3-inspiration-card:hover .v3-inspiration-read-more svg {
    transform: translateX(4px);
}

/* Inspiration Responsive */
@media (max-width: 1023px) {
    .v3-inspiration-section {
        padding: 0 20px;
        margin: 60px 0;
    }

    .v3-inspiration-container {
        padding: 40px 20px;
        border-radius: 0;
        margin: 0 -20px;
    }
}

@media (max-width: 767px) {
    .v3-inspiration-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .v3-inspiration-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .v3-inspiration-post-title {
        font-size: 18px;
    }
}
