.product-detail {
    padding: 12rem 0 6rem;
    min-height: 100vh;
    background: var(--hero-gradient);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.product-visual-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.thumbnail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 5px;
}

.thumb-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-light);
}

.thumb-item.active {
    border-color: var(--primary);
    background: var(--card-hover);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.thumb-icon-360 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
}

.thumb-icon-360 svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}

/* Viewer & Display */
.product-visual {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-viewer,
.static-display {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    padding: 2rem;
    min-height: 500px;
}

.product-viewer {
    cursor: grab;
}

.product-viewer:active {
    cursor: grabbing;
}

.main-image {
    width: auto;
    max-width: 90%;
    max-height: 450px;
    z-index: 5;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
    user-select: none;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drag-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: opacity 0.3s;
    z-index: 10;
}

.product-viewer:hover .drag-hint {
    opacity: 0.7;
}

.drag-hint .icon {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Info Section */
.product-title {
    font-size: 3.5rem;
    margin: 1rem 0 2rem;
    color: var(--text-main);
}

body.dark-mode .product-title {
    color: #ffffff;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.product-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding: 2rem;
    background: var(--glass);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.meta-label {
    display: block;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.meta-value {
    font-weight: 600;
    color: var(--text-main);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    margin-left: 1.5rem;
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
}

/* Benefits Section */
.benefits {
    padding: 4rem 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

body.dark-mode .benefits {
    background: #0a0a0a;
    border-bottom: 1px solid #222;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--glass);
    border-radius: 12px;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Explanation Columns Section */
.explanation-columns {
    padding: 6rem 0;
    background: #fcfcfc;
}

body.dark-mode .explanation-columns {
    background: #111;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.exp-col .sub-title {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.exp-col .col-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

.header-main-desc {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-col .main-desc-body {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    opacity: 0.9;
}

.exp-col .disclaimer {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.time-block {
    margin-bottom: 1.5rem;
}

.time-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.time-block ul {
    list-style: none;
    padding-left: 0;
}

.time-block ul li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.time-block ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.intro-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

body.dark-mode .ingredient-item {
    border-bottom-color: #222;
}

.ing-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.ing-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ing-text h4 {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.ing-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.full-ing-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-main);
    text-decoration: underline;
    font-weight: 600;
}

/* Accordion */
.accordion-item.active .accordion-body {
    max-height: 2000px;
    /* Increased for long content */
}

.column-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.accordion-title-box {
    display: flex;
    flex-direction: column;
}

.column-accordion-toggle .plus-icon {
    font-size: 1.5rem;
    color: var(--primary);
    display: none;
    /* Hide on desktop by default */
}

.small-toggle {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    margin-top: 2rem;
}

body.dark-mode .small-toggle {
    border-color: #333;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--text-main);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body p {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (min-width: 993px) {
    .exp-col.accordion-item .accordion-body {
        max-height: none !important;
        overflow: visible !important;
    }

    .exp-col.accordion-item .column-accordion-toggle {
        cursor: default;
        pointer-events: none;
    }
}

@media (max-width: 992px) {
    .explanation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .exp-col {
        background: #fff;
        padding: 1.5rem 1.5rem 0.5rem;
        border-radius: 15px;
        border: 1px solid #eee;
        margin-bottom: 1rem;
    }

    body.dark-mode .exp-col {
        background: #1a1a1a;
        border-color: #333;
    }

    .column-accordion-toggle .plus-icon {
        display: block;
    }

    .exp-col .col-title {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

    .exp-col .sub-title {
        font-size: 0.75rem;
    }

    .exp-col.accordion-item:not(.active) .accordion-body {
        max-height: 0;
    }
}

/* Sidebar Styling */
.sidebar-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
}

.sidebar-wrapper.active {
    visibility: visible;
    pointer-events: all;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sidebar-wrapper.active .sidebar-overlay {
    opacity: 1;
}

.sidebar-content {
    position: absolute;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: var(--bg-darker);
    border-left: 1px solid var(--glass-border);
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}

.sidebar-wrapper.active .sidebar-content {
    right: 0;
}

.close-sidebar {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-sidebar:hover {
    opacity: 1;
}

.sidebar-header {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.sidebar-header h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--primary);
}

.purchase-links {
    display: grid;
    gap: 1.5rem;
}

.purchase-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.purchase-item:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    background: var(--card-hover);
}

.item-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-text h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.item-text span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 1200px) {
    .detail-grid {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .product-detail {
        padding: 8rem 0 4rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .product-visual-container {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    .thumbnail-sidebar {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .product-visual {
        width: 100%;
    }

    .product-viewer,
    .static-display {
        min-height: 350px;
        padding: 1rem;
    }

    .main-image {
        max-height: 300px;
    }

    .product-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .product-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .product-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
        text-align: left;
        margin-bottom: 2.5rem;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar-content {
        max-width: 100%;
    }
}

@media (max-width: 576px) {

    .product-viewer,
    .static-display {
        min-height: 300px;
    }

    .main-image {
        max-height: 250px;
    }

    .product-title {
        font-size: 1.8rem;
    }
}