/**
 * Single Product Page Styles
 *
 * Hero section: 100vh, gallery left + product info right
 *
 * @package AC_Child
 */

/* ═══════════════════════════════════════════════════════════════
   RESET / BASE
   ═══════════════════════════════════════════════════════════════ */

/* Override GeneratePress container constraints */
.ac-single-product-page .site-content,
.ac-single-product-page .content-area,
.ac-single-product-page .site-main,
.ac-single-product-page #primary,
.ac-single-product-page #main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.ac-single-product-page .inside-article {
    padding: 0 !important;
    margin: 0 !important;
}

.ac-single-product-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

.ac-single-product {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION – 70vh (desktop)
   ═══════════════════════════════════════════════════════════════ */
.ac-sp-hero {
    display: flex;
    min-height: 70vh;
    width: 100%;
}

/* ───────────────────────────────────────────────────────────────
   LEFT: Gallery
   ─────────────────────────────────────────────────────────────── */
.ac-sp-gallery {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    position: relative;
    min-height: 70vh;
}

/* Main image area */
.ac-sp-gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 30px 0px 30px 0px;
    overflow: hidden;
}

.ac-sp-main-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Color / variant swatches */
.ac-sp-swatches {
    position: absolute;
    bottom: 50px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-sp-swatch {
    width: 22px;
    height: 22px;
    border-radius: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.ac-sp-swatch:hover,
.ac-sp-swatch.active {
    border-color: #333;
}

/* Thumbnails strip */
.ac-sp-gallery-thumbs {
    flex: 0 0 100px;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: top;
    padding: 30px 10px;
    position: relative;
    overflow: hidden;
}

.ac-sp-thumbs-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: calc(70vh - 120px);
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 40px;
}

.ac-sp-thumbs-track::-webkit-scrollbar {
    display: none;
}

.ac-sp-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    background: #fff;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-sp-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ac-sp-thumb.active {
    border-color: #a64d2e;
}

.ac-sp-thumb:hover {
    border-color: #999;
}

.ac-sp-thumb.active:hover {
    border-color: #a64d2e;
}

/* Scroll arrow */
.ac-sp-thumbs-arrow {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.ac-sp-thumbs-arrow:hover {
    opacity: 0.6;
}

.ac-sp-thumbs-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ───────────────────────────────────────────────────────────────
   RIGHT: Product Info
   ─────────────────────────────────────────────────────────────── */
.ac-sp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 60px;
    position: relative;
    min-height: 70vh;
}

/* Category + Cart Status Row */
.ac-sp-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ac-sp-category-row .ac-product-cart-status {
    flex-shrink: 0;
}

.ac-sp-category-row .ac-sp-category {
    flex: 1;
    text-align: right;
}

/* Cart status icon */
.ac-product-cart-status {
    display: flex;
    align-items: center;
}

/* Category */
.ac-sp-category {
    font-family: 'Delight', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
    display: block;
}

/* Product title */
.ac-sp-title {
    font-family: 'Delight', sans-serif;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 900;
    line-height: 0.95;
    color: #1a1a1a;
    margin: 0;
    text-align: right;
    text-transform: capitalize;
    letter-spacing: -1px;
}

/* Condition tag (Usato-Vintage) */
.ac-sp-condition {
    font-family: 'Delight', sans-serif;
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 400;
    color: #1a1a1a;
    display: block;
    text-align: right;
    margin-bottom: 24px;
}

/* Badges + Price row */
.ac-sp-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ac-sp-badges {
    display: flex;
    gap: 8px;
}

.ac-sp-badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: 'Delight', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ac-sp-badge-bestseller {
    background: #1a1a1a;
    color: #fff;
}

.ac-sp-badge-sale {
    background: #1a1a1a;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
}

/* Prices */
.ac-sp-prices {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ac-sp-price-final {
    font-family: 'Delight', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.ac-sp-price-final .woocommerce-Price-amount {
    font-family: 'Delight', sans-serif;
    font-size: 32px;
    font-weight: 800;
}

.ac-sp-price-regular {
    font-family: 'Delight', sans-serif;
    font-size: 18px;
    color: #999;
    margin-top: 2px;
}

.ac-sp-price-regular del {
    text-decoration: line-through;
}

.ac-sp-price-regular .woocommerce-Price-amount {
    font-family: 'Delight', sans-serif;
}

/* Info top wrapper - content above divider */
.ac-sp-info-top {
    padding-left: 50px;
}

/* Divider */
.ac-sp-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 24px 0 24px;
}

/* Action row: availability + buy */
.ac-sp-action-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sticky action row: JS toggles .ac-sticky-active and sets inline
   left, width, and bottom to match the row's exact natural position. */
@media (min-width: 992px) {
    .ac-sp-action-row.ac-sticky-active {
        position: fixed;
        /* bottom, left, width are set by JS inline styles */
        z-index: 100;
        background: #fff;
        box-sizing: border-box;
    }

    .ac-sp-action-row.ac-sticky-active.ac-hidden {
        display: none;
    }
}

/* Sidebar action row: hidden initially on desktop, shown instantly by scroll.
   Uses opacity/visibility (not display) to keep layout stable for JS offset calculations. */
@media (min-width: 992px) {
    .ac-sp-sidebar-action-row {
        opacity: 0;
        visibility: hidden;
    }

    .ac-sp-sidebar-action-row.ac-visible {
        opacity: 1;
        visibility: visible;
    }
}

/* Availability */
.ac-sp-availability {
    flex: 1;
}

.ac-sp-avail-title {
    font-family: 'Delight', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.ac-sp-avail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-sp-avail-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Delight', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #333;
    text-transform: uppercase;
}

.ac-sp-check {
    flex-shrink: 0;
    color: #4a9e4a;
    stroke: #4a9e4a;
}

.ac-sp-cross {
    flex-shrink: 0;
    color: #888;
    stroke: #888;
}

/* Buy button */
.ac-sp-buy {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.ac-sp-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    min-height: 120px;
    padding: 30px 40px;
    background: #fff;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    font-family: 'Delight', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ac-sp-buy-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.ac-sp-buy-btn:active {
    transform: scale(0.98);
}

.ac-sp-buy-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
}

.ac-sp-buy-btn--disabled:hover {
    background: #fff;
    color: #999;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet landscape */
@media (max-width: 1200px) {
    .ac-sp-gallery {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .ac-sp-info {
        padding: 80px 40px 40px;
    }

    .ac-sp-title {
        font-size: clamp(36px, 4.5vw, 60px);
    }

    .ac-sp-condition {
        font-size: clamp(24px, 2.5vw, 40px);
    }

    .ac-sp-buy-btn {
        min-width: 160px;
        min-height: 100px;
        padding: 24px 30px;
        font-size: 15px;
    }
}

/* Tablet portrait */
@media (max-width: 991px) {
    .ac-sp-hero {
        flex-direction: column;
        min-height: auto;
    }

    .ac-sp-gallery {
        flex: none;
        max-width: 100%;
        width: 100%;
        min-height: 60vh;
    }

    .ac-sp-gallery-main {
        padding: 40px 20px 40px 30px;
    }

    .ac-sp-gallery-thumbs {
        flex: 0 0 80px;
        width: 80px;
        padding: 30px 8px;
    }

    .ac-sp-thumb {
        width: 64px;
        height: 64px;
    }

    .ac-sp-info {
        min-height: auto;
        padding: 40px 30px 60px;
    }

    .ac-sp-category-row {
        margin-bottom: 8px;
    }

    .ac-sp-swatches {
        bottom: 20px;
        left: 30px;
    }

    .ac-sp-action-row {
        flex-direction: column;
        gap: 24px;
    }

    .ac-sp-buy {
        width: 100%;
    }

    .ac-sp-buy-btn {
        width: 100%;
        min-height: 70px;
        min-width: auto;
    }
}

/* Mobile Swipe Gallery - Hidden on Desktop */
.ac-sp-mobile-gallery {
    display: none;
}

/* Mobile */
@media (max-width: 600px) {
    .ac-sp-gallery {
        min-height: 50vh;
        flex-direction: column;
    }

    /* Hide desktop main image and thumbnails on mobile */
    .ac-sp-gallery-main {
        display: none;
    }

    .ac-sp-gallery-thumbs {
        display: none;
    }

    /* Show mobile swipe gallery */
    .ac-sp-mobile-gallery {
        display: block;
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .ac-sp-mobile-gallery-track {
        display: flex;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .ac-sp-mobile-gallery-track::-webkit-scrollbar {
        display: none;
    }

    .ac-sp-mobile-slide {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
    }

    .ac-sp-mobile-slide img {
        max-width: 100%;
        max-height: 45vh;
        object-fit: contain;
        display: block;
    }

    /* Position Indicator Bar */
    .ac-sp-mobile-position-bar {
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 2px;
        display: flex;
        gap: 2px;
    }

    .ac-sp-mobile-position-segment {
        flex: 1;
        height: 100%;
        background-color: #e0e0e0;
        border-radius: 1px;
        transition: background-color 0.2s ease;
    }

    .ac-sp-mobile-position-segment.active {
        background-color: #c35226;
    }

    /* Color swatches on mobile - positioned top left */
    .ac-sp-swatches {
        position: absolute;
        top: 30px;
        left: 20px;
        bottom: auto;
        z-index: 10;
    }

    .ac-sp-info {
        padding: 24px 20px 40px;
    }

    .ac-sp-category-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        flex-direction: row-reverse;
    }

    .ac-sp-category-row .ac-product-cart-status {
        order: 1;
    }

    .ac-sp-category-row .ac-sp-category {
        flex: 1;
        text-align: left;
        order: 2;
    }

    .ac-sp-category {
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 1px;
        color: #1a1a1a;
    }

    .ac-sp-title {
        font-size: 56px;
        font-weight: 900;
        line-height: 0.95;
        text-align: left;
        margin-bottom: 8px;
        letter-spacing: -1.5px;
    }

    .ac-sp-condition {
        font-size: 36px;
        font-weight: 400;
        text-align: left;
        margin-bottom: 24px;
        display: block;
    }

    .ac-sp-meta-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .ac-sp-meta-row .ac-sp-prices {
        order: 1;
    }

    .ac-sp-meta-row .ac-sp-badges {
        order: 2;
    }

    .ac-sp-prices {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .ac-sp-price-final {
        font-size: 32px;
        font-weight: 800;
        color: #1a1a1a;
        line-height: 1;
    }

    .ac-sp-price-final .woocommerce-Price-amount {
        font-size: 32px;
        font-weight: 800;
    }

    .ac-sp-price-regular {
        font-size: 16px;
        color: #bbb;
    }

    .ac-sp-price-regular del {
        text-decoration: line-through;
    }

    .ac-sp-badges {
        display: flex;
        gap: 8px;
    }

    .ac-sp-badge {
        padding: 6px 12px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .ac-sp-badge-bestseller {
        background: #1a1a1a;
        color: #fff;
    }

    .ac-sp-badge-sale {
        background: #1a1a1a;
        color: #fff;
    }

    .ac-sp-divider {
        border: none;
        border-top: 1px solid #1a1a1a;
        margin: 20px 0;
    }

    .ac-sp-action-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .ac-sp-availability {
        margin-bottom: 0;
    }

    .ac-sp-avail-title {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: #1a1a1a;
        margin-bottom: 12px;
    }

    .ac-sp-avail-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .ac-sp-avail-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.5px;
        color: #333;
        text-transform: uppercase;
    }

    .ac-sp-check {
        flex-shrink: 0;
        color: #4a9e4a;
        stroke: #4a9e4a;
        width: 18px;
        height: 18px;
    }

    .ac-sp-buy {
        width: 100%;
    }

    .ac-sp-buy-btn {
        width: 100%;
        min-height: 70px;
        padding: 20px;
        background: transparent;
        border: 1px solid #1a1a1a;
        color: #1a1a1a;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .ac-sp-info-top {
        padding-left: 0;
    }

    /* Mobile Note Section - appears below ac-sp-info */
    .ac-sp-mobile-note-section {
        display: block;
        padding: 0 20px 30px;
    }

    .ac-sp-mobile-note-divider {
        border: none;
        border-top: 1px solid #1a1a1a;
        margin: 0 0 20px;
    }

    .ac-sp-mobile-note-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .ac-sp-mobile-condition {
        flex: 1;
    }

    .ac-sp-mobile-note {
        flex: 1;
        border-left: 1px solid #1a1a1a;
        padding-left: 16px;
    }

    /* Hide sidebar action row and note section on mobile */
    .ac-sp-sidebar-action-row,
    .ac-sp-sidebar-note-section {
        display: none !important;
    }
}

/* Desktop - hide mobile note section */
@media (min-width: 601px) {
    .ac-sp-mobile-note-section {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT SECTION – Description + Sidebar
   Same layout as hero: 50/50 split with matching padding
   ═══════════════════════════════════════════════════════════════ */
.ac-sp-content {
    display: flex;
    width: 100%;
}

/* ───────────────────────────────────────────────────────────────
   LEFT: Description & Specs (matches gallery: 50% width)
   ─────────────────────────────────────────────────────────────── */
.ac-sp-description {
    flex: 0 0 50%;
    max-width: 50%;
}

.ac-sp-desc-block {
    margin-bottom: 60px;
}

.ac-sp-desc-title {
    font-family: 'Delight', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-sp-desc-text {
    font-family: 'Delight', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.ac-sp-desc-text p {
    margin-bottom: 16px;
}

.ac-sp-desc-text p:last-child {
    margin-bottom: 0;
}

/* Specifications Table */
.ac-sp-specs-block {
    margin-bottom: 60px;
}

.ac-sp-specs-title {
    font-family: 'Delight', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-sp-specs-table {
    display: flex;
    flex-direction: column;
}

.ac-sp-spec-row {
    display: flex;
    padding: 12px 0;
}

.ac-sp-spec-row.even {
    background-color: #f9f7f5;
}

.ac-sp-spec-row.odd {
    background-color: transparent;
}

.ac-sp-spec-label {
    flex: 0 0 35%;
    font-family: 'Delight', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    padding: 0 16px;
}

.ac-sp-spec-value {
    flex: 1;
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    color: #333;
    padding: 0 16px;
}

/* Brand Details Section */
.ac-sp-brand-block {
    margin-bottom: 20px;
}

.ac-sp-brand-title {
    font-family: 'Delight', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-sp-brand-content {
    font-family: 'Delight', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.ac-sp-brand-content p {
    margin-bottom: 16px;
}

.ac-sp-brand-content p:last-of-type {
    margin-bottom: 24px;
}

.ac-sp-brand-content .arrow-btn {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.ac-sp-brand-content .arrow-btn.align-right {
    text-align: right;
}

/* Video Section */
.ac-sp-video-block {
    margin-bottom: 60px;
}

.ac-sp-video-title {
    font-family: 'Delight', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-sp-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #e8e6e4;
    overflow: hidden;
}

.ac-sp-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ───────────────────────────────────────────────────────────────
   RIGHT: Sticky Sidebar (matches info: flex: 1 with same padding)
   ─────────────────────────────────────────────────────────────── */
.ac-sp-sidebar {
    flex: 1;
    padding: 60px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Sidebar Content Wrapper - contains everything from availability to blog */
.ac-sp-sidebar-content {
    width: 100%;
}

/* Sidebar Action Row - same structure as ac-sp-action-row */
.ac-sp-sidebar-action-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
}

.ac-sp-sidebar-action-row .ac-sp-sidebar-availability {
    flex: 1;
}

.ac-sp-sidebar-action-row .ac-sp-sidebar-buy {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
}

/* Use same button styles as hero section */
.ac-sp-sidebar-action-row .ac-sp-sidebar-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    padding: 30px 0;
    background: #c35226;
    border: none;
    color: #fff;
    font-family: 'Delight', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.ac-sp-sidebar-action-row .ac-sp-sidebar-buy-btn:hover {
    background: #a84520;
}

.ac-sp-sidebar-action-row .ac-sp-sidebar-buy-btn--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ac-sp-sidebar-action-row .ac-sp-sidebar-buy-btn--disabled:hover {
    background: #c35226;
}

/* Note Section - same structure as ac-sp-action-row */
.ac-sp-sidebar-note-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.ac-sp-sidebar-condition {
    flex: 1;
}

.ac-sp-sidebar-note {
    flex: 0 0 240px;
    border-left: 1px solid #000;
    padding-left: 20px;
}

.ac-sp-note-title {
    font-family: 'Delight', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #1a1a1a;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.ac-sp-note-text {
    font-family: 'Delight', sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Blog Section */
.ac-sp-sidebar-blog {
    margin-top: 40px;
}

.ac-sp-blog-section-title {
    font-family: 'Delight', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-sp-blog-card {
    display: block;
    background: #c35226;
    padding: 40px 30px;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ac-sp-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 121, 65, 0.3);
}

.ac-sp-blog-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.ac-sp-blog-card-content {
    position: relative;
    z-index: 1;
}

.ac-sp-blog-card-title {
    font-family: 'Delight', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-sp-blog-card-excerpt {
    font-family: 'Delight', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 20px;
}

.ac-sp-blog-card-subtitle {
    font-family: 'Delight', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ac-sp-blog-card-text {
    font-family: 'Delight', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.ac-sp-blog-read-more {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   RELATED PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════════ */

.ac-sp-sidebar-related {
    margin-top: 50px;
}

.ac-sp-related-section-title {
    font-family: 'Delight', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Related Products List - Two products per row */
.ac-related-products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-related-products-list .ac-product-card {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    margin: 0;
}

.ac-related-products-list .ac-product-card-inner {
    position: relative;
}

.ac-related-products-list .ac-product-image-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ac-related-products-list .ac-product-info {
    padding: 12px 0 0;
}

.ac-related-products-list .ac-product-title {
    font-size: 14px;
}

.ac-related-products-list .ac-product-final-price {
    font-size: 14px;
}

.ac-related-products-list .ac-product-category {
    font-size: 12px;
}

.ac-related-products-list .ac-product-original-price {
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ ACCORDION SECTION
   ═══════════════════════════════════════════════════════════════ */

.ac-sp-sidebar-faq {
    margin-top: 50px;
}

.ac-sp-faq-section-title {
    font-family: 'Delight', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-sp-faq-accordion {
    background-color: #f8f6f4;
    border-radius: 12px;
    overflow: hidden;
}

.ac-sp-faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.ac-sp-faq-item:last-child {
    border-bottom: none;
}

.ac-sp-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.ac-sp-faq-header:hover {
    background-color: #f0ebe6;
}

.ac-sp-faq-question {
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.ac-sp-faq-icon {
    font-family: 'Delight', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #666;
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.ac-sp-faq-item.active .ac-sp-faq-icon {
    transform: rotate(45deg);
}

.ac-sp-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.ac-sp-faq-item.active .ac-sp-faq-content {
    max-height: 200px;
    padding: 0 20px 18px;
}

.ac-sp-faq-content p {
    font-family: 'Delight', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE – Content Section
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .ac-sp-description {
        padding: 50px 40px 80px;
    }

    .ac-sp-sidebar {
        padding: 50px 40px 60px;
    }

    .ac-sp-sidebar-action-row .ac-sp-sidebar-buy-btn {
        width: 100%;
        min-height: 100px;
        padding: 24px 0;
        font-size: 15px;
    }

    .ac-sp-sidebar-action-row .ac-sp-sidebar-buy {
        flex: 0 0 160px;
    }
}

@media (max-width: 991px) {
    .ac-sp-content {
        flex-direction: column;
    }

    .ac-sp-description {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 40px 30px 60px;
    }

    .ac-sp-spec-label {
        flex: 0 0 40%;
    }

    .ac-sp-sidebar {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 40px 30px 60px;
    }

    .ac-sp-sidebar {
        position: static;
        align-self: auto;
    }

    .ac-sp-sidebar-action-row {
        flex-direction: column;
        gap: 24px;
    }

    .ac-sp-sidebar-action-row .ac-sp-sidebar-buy-btn {
        width: 100%;
        min-height: 70px;
    }

    .ac-sp-sidebar-note-section {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .ac-sp-description,
    .ac-sp-sidebar {
        padding: 30px 20px 0;
    }

    .ac-sp-video-block {
        margin-bottom: 0;
    }

    .ac-sp-sidebar-action-row .ac-sp-sidebar-buy-btn {
        min-height: 60px;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .ac-sp-desc-title {
        font-size: 20px;
    }

    .ac-sp-desc-text {
        font-size: 14px;
    }

    .ac-sp-spec-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }

    .ac-sp-spec-label {
        flex: none;
        font-size: 12px;
        padding: 0 12px;
    }

    .ac-sp-spec-value {
        font-size: 13px;
        padding: 0 12px;
    }

    .ac-sp-specs-title,
    .ac-sp-brand-title,
    .ac-sp-video-title {
        font-size: 20px;
    }

    .ac-sp-brand-content {
        font-size: 14px;
    }

    .ac-sp-brand-link {
        font-size: 12px;
    }

    .ac-sp-video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .ac-sp-blog-card {
        padding: 30px 20px;
    }

    .ac-sp-blog-card-title {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   REVIEWS SECTION
   ═══════════════════════════════════════════════════════════════ */

.ac-sp-reviews {
    width: 100%;
}

.ac-sp-reviews-title {
    font-family: 'Delight', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    padding: 0 0 40px;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.ac-sp-reviews-wrapper {
    padding: 50px 0 60px;
    position: relative;
}

.ac-sp-reviews-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: #f5f0ec;
    z-index: -1;
}

.ac-sp-reviews-header,
.ac-sp-reviews-list,
.ac-sp-reviews-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

/* Reviews Header */
.ac-sp-reviews-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #d0c8c0;
    margin-bottom: 0;
}

.ac-sp-reviews-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ac-sp-reviews-average {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ac-sp-reviews-score {
    font-family: 'Delight', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-right: 10px;
}

.ac-sp-reviews-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ac-sp-reviews-label {
    font-family: 'Delight', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ac-sp-reviews-count {
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0;
}

/* Reviews Actions */
.ac-sp-reviews-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ac-sp-reviews-write-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ac-sp-reviews-write-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.ac-sp-reviews-sort {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
}

.ac-sp-reviews-sort label {
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 5px;
}

.ac-sp-reviews-sort-select {
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 16px;
}

.ac-sp-reviews-sort-select:focus {
    outline: none;
}

/* Reviews List */
.ac-sp-reviews-list {
    display: flex;
    flex-direction: column;
}

/* Review Card */
.ac-sp-review-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #d0c8c0;
}

.ac-sp-review-card:last-child {
    border-bottom: none;
}

/* Review Main Content */
.ac-sp-review-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid #d0c8c0;
    padding-right: 40px;
}

.ac-sp-review-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ac-sp-review-title {
    font-family: 'Delight', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ac-sp-review-text {
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Review Parameters */
.ac-sp-review-params {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}

.ac-sp-review-param {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ac-sp-review-param-label {
    font-family: 'Delight', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: capitalize;
}

.ac-sp-review-param-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ac-sp-review-param-track {
    position: relative;
    height: 10px;
    background-color: #f5e5de;
    border-radius: 2px;
    overflow: visible;
    border: #000 1px solid;
}

/* Section dividers at 25%, 50%, 75% */
.ac-sp-review-param-track::before,
.ac-sp-review-param-track::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

.ac-sp-review-param-track::before {
    left: 25%;
}

.ac-sp-review-param-track::after {
    left: 50%;
}

/* Third divider using an additional element */
.ac-sp-review-param-divider {
    position: absolute;
    top: 0;
    left: 75%;
    width: 1px;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

/* Ensure dividers are below the marker */
.ac-sp-review-param-track::before,
.ac-sp-review-param-track::after,
.ac-sp-review-param-divider {
    z-index: 1;
}

.ac-sp-review-param-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: transparent;
    border-radius: 2px;
}

.ac-sp-review-param-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: #a64d2e;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Handle marker at 100% - keep it inside the track */
.ac-sp-review-param-marker[style*="left: 100%"] {
    transform: translate(-75%, -50%);
}

/* Handle marker at 0% - keep it inside the track */
.ac-sp-review-param-marker[style*="left: 0%"] {
    transform: translate(-25%, -50%);
}

.ac-sp-review-param-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Delight', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* Review Author Sidebar */
.ac-sp-review-author {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
}

.ac-sp-review-author-name {
    font-family: 'Delight', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.ac-sp-review-author-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Delight', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #444;
}

.ac-sp-review-author-age {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.ac-sp-review-age-label {
    font-family: 'Delight', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.ac-sp-review-age-value {
    font-family: 'Delight', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

/* Reviews Footer */
.ac-sp-reviews-footer {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.ac-sp-reviews-loadmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
    font-family: 'Delight', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ac-sp-reviews-loadmore:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   REVIEWS SECTION - RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .ac-sp-reviews-title {
        font-size: 36px;
        padding: 0 40px 35px;
    }

    .ac-sp-reviews-header,
    .ac-sp-reviews-list,
    .ac-sp-reviews-footer {
        padding-left: 40px;
        padding-right: 40px;
    }

    .ac-sp-review-card {
        grid-template-columns: 1fr 240px;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .ac-sp-reviews-title {
        font-size: 32px;
        padding: 0 30px 30px;
    }

    .ac-sp-reviews-header,
    .ac-sp-reviews-list,
    .ac-sp-reviews-footer {
        padding-left: 30px;
        padding-right: 30px;
    }

    .ac-sp-review-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ac-sp-review-author {
        padding-top: 0;
        border-top: 1px solid #e0d8d0;
        padding-top: 20px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .ac-sp-review-author-age {
        margin-top: 0;
        margin-left: auto;
    }

    .ac-sp-reviews-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .ac-sp-reviews-write-btn {
        width: 100%;
    }

    .ac-sp-reviews-sort {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .ac-sp-reviews {
        padding: 40px 0 0;
    }

    .ac-sp-reviews-title {
        font-size: 28px;
        padding: 0 20px 24px;
    }

    .ac-sp-reviews-header,
    .ac-sp-reviews-list,
    .ac-sp-reviews-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ac-sp-reviews-header {
        gap: 20px;
    }

    .ac-sp-reviews-score {
        font-size: 28px;
    }

    .ac-sp-reviews-label {
        font-size: 22px;
    }

    /* Mobile: Button and sort in a row */
    .ac-sp-reviews-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .ac-sp-reviews-write-btn {
        width: auto;
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .ac-sp-reviews-sort {
        align-self: auto;
        padding: 8px;
    }

    .ac-sp-reviews-sort label {
        font-size: 13px;
    }

    .ac-sp-reviews-sort-select {
        font-size: 13px;
        padding-right: 0;
    }

    .ac-sp-reviews-loadmore {
        padding: 14px 24px;
        font-size: 13px;
    }

    .ac-sp-review-title {
        font-size: 16px;
    }

    .ac-sp-review-text {
        font-size: 13px;
    }

    .ac-sp-review-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .ac-sp-review-author-age {
        margin-left: 0;
    }

    .ac-sp-review-param-labels {
        font-size: 11px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   YOU MAY ALSO LIKE SECTION - 4 products per row
   ═══════════════════════════════════════════════════════════════ */

.ac-sp-you-may-like {
    width: 100%;
    padding: 0 0 60px;
    position: relative;
}

.ac-sp-you-may-like::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-color: #f9f7f5;
    z-index: -1;
}

.ac-sp-you-may-like-title {
    font-family: 'Delight', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    padding: 60px 0 40px;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

/* You May Also Like Products List - Four products per row */
.ac-you-may-like-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.ac-you-may-like-list .ac-product-card {
    flex: 0 0 25%;
    max-width: 25%;
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
}

.ac-you-may-like-list .ac-product-card-inner {
    position: relative;
}

.ac-you-may-like-list .ac-product-image-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ac-you-may-like-list .ac-product-info {
    padding: 16px;
    background-color: transparent;
}

.ac-you-may-like-list .ac-product-title {
    font-size: 15px;
}

.ac-you-may-like-list .ac-product-final-price {
    font-size: 15px;
}

.ac-you-may-like-list .ac-product-category {
    font-size: 13px;
}

.ac-you-may-like-list .ac-product-original-price {
    font-size: 13px;
}

/* Responsive - Tablet: 2 per row */
@media (max-width: 991px) {
    .ac-sp-you-may-like {
        padding: 0 0 40px;
    }

    .ac-sp-you-may-like-title {
        font-size: 32px;
        padding: 40px 30px 30px;
    }

    .ac-you-may-like-list {
        padding: 0 30px;
    }

    .ac-you-may-like-list .ac-product-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Responsive - Mobile: 2 per row with smaller gaps */
@media (max-width: 600px) {
    .ac-sp-you-may-like {
        padding: 0 0 30px;
    }

    .ac-sp-you-may-like-title {
        font-size: 28px;
        padding: 30px 20px 24px;
    }

    .ac-you-may-like-list {
        padding: 0 20px;
        gap: 12px;
    }

    .ac-you-may-like-list .ac-product-card {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .ac-you-may-like-list .ac-product-info {
        padding: 12px;
    }

    .ac-you-may-like-list .ac-product-title {
        font-size: 13px;
    }

    .ac-you-may-like-list .ac-product-final-price {
        font-size: 13px;
    }

    .ac-you-may-like-list .ac-product-category {
        font-size: 11px;
    }

    .ac-you-may-like-list .ac-product-original-price {
        font-size: 11px;
    }
}
