/* ===================================================================
   MAIN.CSS - Sepatu Nyaman (GABUNGAN)
   -------------------------------------------------------------------
   BAGIAN 1: GAYA UNTUK HALAMAN KATEGORI
   ... (Gaya-gaya sebelumnya) ...
   ================================================================= */

/* Fondasi Halaman */
body {
    background-color: var(--primary-background);
    font-family: 'Inter', sans-serif;
    color: var(--primary-text-color); 
    line-height: 1.7;
}
.post-title.entry-title, .sidebar-container, #sidebar-wrapper, .share-buttons, #share-container, #sticky-container, .post-meta-container, .related-posts, #comments, .top-post-section, #menu-label-outer {
    display: none !important; visibility: hidden !important;
}
.content-wrapper, .post-outer-container, .content-single .post-container, .post-body.entry-content {
    max-width: 100% !important; width: 100% !important; padding: 0 !important; margin: 0 !important;
}
main#main {
    padding-top: 0 !important;
}
body.is-page .content-single .post-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Struktur Utama */
.sn-store-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; } 
.sn-store-wrapper { display: flex; gap: 2rem; }
.sn-main-content { 
    flex-grow: 1; 
    padding-bottom: 4rem; 
    margin-top: -7rem;
}

/* Header Kategori */
.sn-category-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 12rem 1rem 16rem;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 1rem;
    color: var(--white-text-color);
}
#header-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.sn-header-slide {
    width: 100%;
    height: 100%;
}
.sn-header-slide img, .sn-header-slide picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#header-slider .glider-slide {
    transition: opacity 1.5s ease-in-out;
}
.sn-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.sn-category-header h1, .sn-category-header p {
    position: relative;
    z-index: 2;
    color: var(--white-text-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.sn-category-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
}
.sn-category-header p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Breadcrumb Kustom */
.sn-breadcrumbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 2;
}
.sn-breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.sn-breadcrumbs a, .sn-breadcrumbs .sn-breadcrumb-separator { color: var(--white-text-color); opacity: 0.8; }
.sn-breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.sn-breadcrumbs .sn-breadcrumb-current { color: var(--white-text-color); opacity: 1; }

/* Sidebar Filter (Desktop) */
.sn-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding-top: 1.5rem;
}
.sn-filter-group { margin-bottom: 2rem; }
.sn-filter-title {
    font-size: 1.1rem; font-weight: 700; color: var(--darkest-grey);
    margin-bottom: 1rem; border-bottom: 2px solid var(--light-grey); padding-bottom: 0.5rem;
}
.sn-filter-group ul { list-style: none; padding: 0; margin: 0; }
.sn-filter-group li { margin-bottom: 0.75rem; }
.sn-filter-group label { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; font-weight: 600; }
.sn-filter-group input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--link-color); }

/* CSS untuk Jumlah pada Filter */
.sn-filter-group label { 
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.sn-filter-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-text-color);
    background-color: var(--secondary-background);
    padding: 2px 8px;
    border-radius: 99px;
}
.sn-filter-group li.disabled label {
    cursor: not-allowed;
    opacity: 0.5;
}

/* CSS untuk Tombol Reset Filter */
.sn-reset-filter-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-bottom 0.4s ease-out;
}
.sn-reset-filter-wrapper.visible {
    max-height: 100px;
    margin-bottom: 1.5rem;
}
.sn-reset-filter-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 700;
    color: var(--link-color);
    background-color: transparent;
    border: 2px solid var(--link-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sn-reset-filter-btn:hover {
    background-color: var(--link-color);
    color: var(--white-text-color);
}

/* Toolbar */
.sn-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap; gap: 1rem;
}
.sn-product-count { font-weight: 600; color: var(--secondary-text-color); }
.sn-sort-control select {
    padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid var(--light-grey);
    background-color: var(--primary-background); color: var(--primary-text-color); font-weight: 600;
}

/* Pojok Editor */
.sn-editors-corner {
    background-color: var(--secondary-background);
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}
.sn-editor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--primary-background);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.sn-editor-text h3 {
    margin: 0 0 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--darkest-grey);
}
.sn-editor-text p {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
}

.sn-editors-corner a {
    text-decoration: none;
    line-height: 0;
}

/* Grid Produk */
.sn-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    min-height: 300px;
    transition: opacity 0.3s ease-in-out;
}
.sn-product-grid.filtering {
    opacity: 0.5;
}

/* CSS untuk Skeleton Loader */
.sn-skeleton-card {
    background-color: var(--primary-background);
    border: 1px solid var(--light-grey);
    border-radius: 12px;
    padding: 1rem;
}
.skeleton-image {
    width: 100%;
    padding-top: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: var(--secondary-background);
    animation: shimmer 1.5s infinite linear;
    background-image: linear-gradient(90deg, var(--secondary-background) 0px, #e8e8e8 40px, var(--secondary-background) 80px);
    background-size: 600px;
}
.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background-color: var(--secondary-background);
    animation: shimmer 1.5s infinite linear;
    background-image: linear-gradient(90deg, var(--secondary-background) 0px, #e8e8e8 40px, var(--secondary-background) 80px);
    background-size: 600px;
}
.skeleton-text.short {
    width: 60%;
}
@keyframes shimmer {
    from { background-position: -300px; }
    to { background-position: 300px; }
}
@keyframes shimmer {
    0% {
        background-position: -300px;
    }
    100% {
        background-position: 300px;
    }
}

/* Kartu Produk */
.sn-product-card {
    background-color: var(--primary-background); border: 1px solid var(--light-grey);
    border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    position: relative;
}
.sn-product-card.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}
.sn-product-card:hover { 
    transform: translateY(-5px) translateZ(0); 
    box-shadow: 0 15px 25px -5px rgba(0,0,0,0.08); 
}
.sn-product-link { display: block; text-decoration: none; color: inherit; flex-grow: 1; display: flex; flex-direction: column; }
.sn-product-image-wrapper { 
    position: relative; 
    background-color: var(--secondary-background);
    overflow: hidden;
}
.sn-product-image-wrapper img, .sn-product-image-wrapper picture { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    transition: transform 0.4s ease;
}
.sn-product-card:hover .sn-product-image-wrapper img {
    transform: scale(1.1);
}
.sn-product-badge {
    position: absolute; top: 12px; left: 12px; background-color: var(--sale-color);
    color: var(--white-text-color); padding: 4px 10px; font-size: 0.8rem; font-weight: 700; border-radius: 99px; z-index: 5;
}
.sn-comfort-score-badge {
    position: absolute; bottom: 12px; right: 12px; background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); color: white; padding: 6px 12px; font-size: 0.85rem;
    font-weight: 700; border-radius: 8px; display: flex; align-items: center; gap: 6px; z-index: 5;
}
.sn-comfort-score-badge svg { width: 1rem; height: 1rem; color: var(--star-color); }
.sn-product-details { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.sn-brand-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.25rem;
}
.sn-product-brand {
    font-size: 0.85rem; font-weight: 600; color: var(--secondary-text-color);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.sn-product-name {
    font-size: 1.1rem; font-weight: 600; color: var(--darkest-grey);
    line-height: 1.4; margin-bottom: 1rem; flex-grow: 1;
}
.sn-price-box { display: flex; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; }
.sn-price { font-size: 1.25rem; font-weight: 700; color: var(--darkest-grey); }
.sn-old-price { font-size: 0.9rem; color: var(--secondary-text-color); text-decoration: line-through; }

/* Tombol Bandingkan */
.sn-compare-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    
    border-radius: 50%; 
    
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--darkest-grey);
}
.sn-compare-button:hover { 
    background-color: var(--secondary-background);
    transform: scale(1.1);
}
/* Optimasi untuk Mode Gelap */
[data-theme="dark"] .sn-compare-button {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .sn-compare-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}
.sn-compare-button.selected {
    background-color: var(--link-color);
    border-color: var(--link-color);
    color: var(--white-text-color);
}
.sn-compare-button svg {
    width: 20px;
    height: 20px;
}

/* Compare Tray */
.sn-compare-tray {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background-color: var(--primary-background);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--light-grey);
    z-index: 1000;
    transition: bottom 0.4s ease-in-out;
    padding: 1rem;
}
.sn-compare-tray.visible {
    bottom: 0;
}
.sn-compare-tray-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 1rem;
}
.sn-compare-items {
    display: flex;
    gap: 1rem;
    overflow-x: auto; 
    padding-bottom: 10px;
    padding-top: 10px;
    min-width: 0; 
}
.sn-compare-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--secondary-background);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--light-grey);
    position: relative;
    flex-shrink: 0;
}
.sn-compare-item img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}
.sn-compare-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
}
.sn-remove-compare {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: var(--darkest-grey);
    color: var(--primary-background);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}
.sn-compare-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0; 
    justify-self: end;
}
.sn-compare-button-cta {
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: var(--gradient-btn-color);
    color: var(--white-text-color);
}
.sn-compare-button-cta:disabled {
    background: var(--light-grey);
    cursor: not-allowed;
    color: var(--secondary-text-color);
}
.sn-clear-compare {
    font-weight: 600;
    color: var(--secondary-text-color);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .is-top-picks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sn-product-card.is-top-pick { 
    border-left-color: transparent;
    border-right-color: transparent;
    border-top: 4px solid var(--link-color);
    border-bottom: 4px solid var(--link-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(31, 112, 217, 0.15);
}

.sn-product-card.is-top-pick::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: -150%;
    width: 75%;
    height: 100%;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
    transform: skewX(-25deg);
    animation: sparkle 5s infinite linear;
    z-index: 1;
}

/* Badge Editor Pick */
.sn-editor-pick-badge {
    background: var(--link-color);
    color: var(--white-text-color);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}
.sn-editor-pick-badge svg {
    width: 1.1em; 
    height: 1.1em;
}

@media (max-width: 768px) {
    .sn-product-card .sn-editor-pick-badge {
        font-size: 0.6rem;
        top: auto;
        bottom: 12px;
    }
}

@keyframes sparkle {
    from { left: -150%; }
    to { left: 200%; }
}

/* Modal Perbandingan */
.sn-compare-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.sn-compare-modal-content { 
    background-color: var(--primary-background);
    border-radius: 1rem;
    max-width: 1100px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh; 
}
.sn-compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-grey);
    padding: 1.5rem;
    flex-shrink: 0;
}
.sn-compare-modal-header h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: var(--darkest-grey);
}
.sn-compare-modal-close {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-text-color);
}
.sn-compare-table-wrapper {
    overflow-y: auto;
    padding: 0 1.5rem 1.5rem;
}
.sn-compare-table {
    width: 100%;
    border-collapse: collapse;
}
.sn-compare-table th, .sn-compare-table td {
    padding: 1rem;
    text-align: center;
    vertical-align: top;
    border-bottom: 1px solid var(--light-grey);
}
.sn-compare-table th {
    font-weight: 700;
    text-align: left;
    background-color: var(--secondary-background); 
    min-width: 150px;
}
.sn-compare-table td img {
    max-width: 150px;
    border-radius: 8px;
}
.sn-compare-table ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.sn-compare-table ul li {
    margin-bottom: 0.5rem;
}
.sn-compare-table .cta-cell {
    padding-top: 1.5rem;
}
.sn-compare-table .sn-cta-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Tombol Filter Mobile */
.sn-mobile-filter-trigger { 
    display: none;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: var(--secondary-background);
    border: 1px solid var(--light-grey);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-text-color);
    cursor: pointer;
    text-align: center;
}

/* Modal Filter Mobile */
.sn-filter-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10002;
    display: none;
    justify-content: flex-end;
}
.sn-filter-modal-content { 
    width: 320px;
    max-width: 90%;
    height: 100%;
    background-color: var(--primary-background);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
.sn-filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-grey);
}
.sn-filter-modal-header h3 { margin: 0; font-size: 1.25rem; color: var(--darkest-grey); }
.sn-filter-modal-close { font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--primary-text-color); }
.sn-filter-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.sn-filter-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-grey);
    background-color: var(--primary-background);
    display: flex; 
    gap: 1rem; 
}

.sn-filter-modal-footer .sn-apply-filters-btn,
.sn-filter-modal-footer .sn-reset-filter-btn {
    flex-grow: 1; 
    width: 50%;
}

.sn-filter-modal-footer .sn-reset-filter-btn {
    display: none; 
}

.sn-filter-modal-footer .sn-reset-filter-btn.visible {
    display: block; 
}

.sn-apply-filters-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-btn-color);
    color: var(--white-text-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

/* Aturan Responsif */
@media (max-width: 992px) {
    .sn-sidebar { display: none; }
    .sn-mobile-filter-trigger { display: block; }
    .sn-product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 768px) {
    .sn-product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .sn-category-header h1 { font-size: 2rem; }
    .sn-category-header p { font-size: 1rem; }
    .sn-editors-corner {
        flex-direction: column;
        text-align: center;
    }
    .sn-category-header {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .sn-main-content {
        margin-top: -4rem;
    }
    .sn-breadcrumbs {
        padding: 1rem;
    }
}
@media (min-width: 768px) {
    .sn-compare-tray-inner {
        grid-template-columns: 1fr auto;
    }
    .sn-compare-actions {
        justify-self: auto;
    }
}

/* CSS untuk Paginasi */
.sn-load-more-wrapper {
    text-align: center;
    padding: 2rem 0;
}
#muat-lebih-banyak {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white-text-color);
    background: var(--gradient-btn-color);
    border: none;
    border-radius: 99px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#muat-lebih-banyak:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
#muat-lebih-banyak:disabled {
    background: var(--light-grey);
    cursor: not-allowed;
    color: var(--secondary-text-color);
}

/* CSS untuk Sorotan Fitur */
.sn-feature-spotlight { 
    background-color: var(--secondary-background);
    border: 1px solid var(--light-grey);
    border-left: 5px solid var(--link-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none; /* Sembunyi secara default */
    align-items: center;
    gap: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.sn-feature-spotlight.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.spotlight-icon {
    flex-shrink: 0;
    color: var(--link-color);
}
.spotlight-icon svg {
    width: 40px;
    height: 40px;
}
.spotlight-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
    color: var(--darkest-grey);
}
.spotlight-text p {
    margin: 0;
    color: var(--secondary-text-color);
}
.spotlight-dismiss-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-text-color);
}
#product-grid {
    transition: opacity 0.25s ease-in-out;
}


/* ===================================================================
   BAGIAN 2: GAYA UNTUK HALAMAN DETAIL PRODUK
   ================================================================= */

.sn-container { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.loading-state { text-align: center; font-size: 1.2rem; padding: 4rem 0; }

/* Breadcrumbs untuk halaman detail */
.sn-breadcrumbs:not(:has(ol)) { 
    margin-bottom: 2rem; 
    font-size: 1.1rem; 
    font-weight: 600; 
    position: static; 
    padding: 0;
    text-shadow: none;
}
.sn-breadcrumbs:not(:has(ol)) a { color: var(--secondary-text-color); text-decoration: none; }
.sn-breadcrumbs:not(:has(ol)) a:hover { color: var(--link-color); }
.sn-breadcrumbs:not(:has(ol)) span { color: var(--primary-text-color); }
.sn-breadcrumbs:not(:has(ol)) .delimiter { margin: 0 0.5rem; color: var(--light-grey); }


/* --- Skeleton Loading Styles untuk Halaman Detail --- */
.skeleton-breadcrumbs { display: flex; gap: 0.75rem; margin-bottom: 2rem; }
.skeleton-breadcrumbs .skeleton-line { height: 20px; }

.skeleton-gallery .main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}
.skeleton-thumbnails .thumb { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; }

.skeleton-info .skeleton-line { margin-bottom: 1.5rem; }
.skeleton-info .skeleton-line.title { height: 2.5rem; border-radius: 8px; }

/* Layout Detail Produk */
.sn-detail-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 3rem; 
    align-items: start; 
}

.sn-gallery-wrapper .main-image-container { 
    border: 1px solid var(--light-grey); 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 1rem; 
    background-color: var(--secondary-background); 
    position: relative; 
    cursor: crosshair; /* Ganti cursor untuk menandakan interaksi zoom */
}
.sn-gallery-wrapper .main-image-container picture, .sn-gallery-wrapper #main-product-image { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.thumbnail-images { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
.thumbnail-images picture, .thumbnail-images img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s ease; background-color: var(--secondary-background); }
.thumbnail-images img:hover { border-color: var(--secondary-text-color); }
.thumbnail-images img.active { border-color: var(--link-color); }
.thumbnail-images .thumb-wrapper.active img { border-color: var(--link-color); }
.sn-info-wrapper h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin: 0 0 1rem; color: var(--darkest-grey); }
.sn-product-brand-detail { font-size: 1rem; font-weight: 700; color: var(--secondary-text-color); text-transform: uppercase; margin-bottom: 0.5rem; }
.sn-comfort-score { display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.sn-comfort-score svg { width: 1.5rem; height: 1.5rem; color: var(--star-color); }
.sn-price-container { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sn-price { font-size: 2rem; font-weight: 800; color: var(--darkest-grey); }
.sn-old-price { font-size: 1.2rem; font-weight: 600; color: var(--secondary-text-color); text-decoration: line-through; flex-shrink: 0; }
.sn-editor-pick-badge-detail { position: absolute; top: 16px; right: 16px; background: var(--link-color); color: var(--white-text-color); padding: 6px 16px; font-size: 0.9rem; font-weight: 700; border-radius: 99px; z-index: 3; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.sn-editor-pick-badge-detail svg { width: 1.2em; height: 1.2em; }
.main-image-container.is-top-pick { border-color: var(--link-color); border-width: 3px; box-shadow: 0 0 25px -5px rgba(31, 112, 217, 0.3);}
.main-image-container.is-top-pick::before { content: ''; position: absolute; top: 0; left: -150%; width: 75%; height: 100%; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%); transform: skewX(-25deg); animation: sparkle 5s infinite linear; z-index: 1; }

.sn-cost-calculator { background-color: var(--secondary-background); border: 1px solid var(--light-grey); border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; }
.sn-cost-calculator p { margin: 0 0 0.75rem 0; font-size: 0.9rem; font-weight: 600; }
.sn-cost-input-wrapper { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.sn-cost-input-wrapper input[type="number"] { width: 70px; padding: 0.5rem; border-radius: 6px; border: 1px solid var(--light-grey); font-weight: 700; text-align: center; font-size: 1rem; background-color: var(--primary-background); color: var(--primary-text-color); -moz-appearance: textfield; appearance: none; }
.sn-cost-input-wrapper input[type=number]::-webkit-inner-spin-button, .sn-cost-input-wrapper input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cost-qty-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--light-grey); background-color: var(--primary-background); color: var(--primary-text-color); font-weight: bold; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.cost-qty-btn:hover { background-color: var(--light-grey); }
[data-theme="dark"] .sn-cost-input-wrapper input { color: var(--primary-text-color); }
.sn-cost-result { font-size: 1rem; font-weight: 600; margin: 0 !important; }
.sn-cost-result strong { color: var(--success-color); font-size: 1.2rem; }
.sn-color-selector h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.75rem; }
#color-selector-container { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.color-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--light-grey); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; padding: 2px; background: transparent; }
.color-swatch-inner { width: 100%; height: 100%; border-radius: 50%; }
.color-swatch.active { border-color: var(--link-color); transform: scale(1.1); box-shadow: 0 0 0 2px var(--link-color); }
.sn-size-selector h3 { font-size: 1rem; font-weight: 700; margin: 0 0 1rem; }
.size-options { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.size-options button { padding: 0.75rem 1.25rem; border: 2px solid var(--light-grey); background-color: var(--primary-background); color: var(--primary-text-color); border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.size-options button:hover { border-color: var(--link-color); color: var(--link-color); }
.size-options button.active { background-color: var(--link-color); color: var(--white-text-color); border-color: var(--link-color); }
.sn-affiliate-button { display: block; width: 100%; padding: 1.25rem; text-align: center; font-size: 1.1rem; font-weight: 700; color: var(--white-text-color); background: var(--gradient-btn-color); border-radius: 8px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sn-affiliate-button:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.sn-style-gallery { text-align: center; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--light-grey); }
.sn-style-gallery h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 2rem; color: var(--darkest-grey); }
.sn-carousel-wrapper { position: relative; margin: 0 -1rem; }
.sn-style-grid { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; /* Firefox */ }
.sn-style-grid {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--light-grey) var(--secondary-background);
    padding: 0 1rem 1.5rem 1rem;
}
.sn-style-grid::-webkit-scrollbar { height: 8px; }
.sn-style-grid::-webkit-scrollbar-track { background: var(--secondary-background); border-radius: 4px; }
.sn-style-grid::-webkit-scrollbar-thumb { background-color: var(--light-grey); border-radius: 4px; }
.sn-style-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 1.5rem;
}
.sn-style-item {
    width: 100%;
}
.sn-style-item picture, .sn-style-item img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: block; cursor: pointer; }
#sn-lightbox-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: 10003; display: none; justify-content: center; align-items: center; padding: 1rem; }
#sn-lightbox-modal.visible { display: flex; }
#sn-lightbox-modal #lightbox-picture { overflow: hidden; cursor: zoom-in; }
#sn-lightbox-modal #lightbox-picture.zoomed { cursor: grab; }
#sn-lightbox-modal #lightbox-picture.zoomed:active { cursor: grabbing; }
#sn-lightbox-modal picture, #sn-lightbox-modal img { max-width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.2s ease; }
#sn-lightbox-close { position: absolute; top: 2rem; right: 2rem; font-size: 2.5rem; color: white; background: none; border: none; cursor: pointer; }
.lightbox-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.5); border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 2rem; cursor: pointer; display: none; }
.lightbox-nav-btn:hover { background-color: rgba(255, 255, 255, 0.8); }
#lightbox-prev-btn { left: 2rem; }
#lightbox-next-btn { right: 2rem; }

.sn-review-section, #user-reviews-section { margin-top: 4rem; border-top: 1px solid var(--light-grey); padding-top: 3rem; }
.sn-review-section h2, .sn-review-section h3, #user-reviews-section h3 { font-family: 'Playfair Display', serif; text-align: center; margin-bottom: 2rem; color: var(--darkest-grey); }
.sn-review-section h2, #user-reviews-section h2 { font-size: 2rem; }
.sn-review-section h3, #user-reviews-section h3 { font-size: 1.8rem; }
#review-content-container { max-width: 800px; margin: 0 auto 2.5rem auto; }
.sn-review-meta { text-align: center; color: var(--secondary-text-color); font-size: 0.9rem; margin-top: -1.5rem; margin-bottom: 2rem; }
#review-content-container p { margin-bottom: 1.5rem; }
#review-content-container h4 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 2rem 0 1rem 0; }
#review-content-container ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
#review-content-container blockquote { border-left: 4px solid var(--link-color); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; font-size: 1.1rem; color: var(--secondary-text-color); }
#review-content-container figure { margin: 2rem 0; display: flex; flex-direction: column; align-items: center; }
#review-content-container figure img { max-width: 100%; border-radius: 8px; }
#review-content-container figcaption { text-align: center; font-size: 0.9rem; color: var(--secondary-text-color); margin-top: 0.5rem; }
.sn-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.sn-pros-cons h3 { font-size: 1.2rem; margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem; text-align: left; }
.sn-pros-cons ul { list-style: none; padding: 0; margin: 0; }
.sn-pros-cons li { margin-bottom: 0.75rem; padding-left: 1.75rem; position: relative; text-align: left; }
.sn-pros-cons li::before { content: ''; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; background-size: contain; background-repeat: no-repeat; }
.pros li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd' /%3E%3C/svg%3E"); }
.cons li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd' /%3E%3C/svg%3E"); }
.sn-specs-table { width: 100%; border-collapse: collapse; border: 1px solid var(--light-grey); border-radius: 8px; overflow: hidden; }
.sn-specs-table th, .sn-specs-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--light-grey); }
.sn-specs-table tr:last-child th, .sn-specs-table tr:last-child td { border-bottom: none; }
.sn-specs-table th { background-color: var(--secondary-background); font-weight: 700; width: 30%; }
.sn-field-test-section { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--light-grey); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.review-author { font-weight: 700; }
.review-date { font-size: 0.85rem; color: var(--secondary-text-color); }
.star-rating { display: flex; gap: 0.25rem; }
.star-rating svg { width: 1.25rem; height: 1.25rem; color: var(--light-grey); }
.star-rating .filled svg { color: var(--star-color); }
.review-text { margin-top: 1rem; }
.write-review-controls { text-align: center; margin: 2rem 0; }
#write-review-btn { padding: 0.75rem 2rem; font-size: 1rem; font-weight: 700; color: var(--white-text-color); background: var(--gradient-btn-color); border-radius: 8px; border: none; cursor: pointer; }
#user-review-form { max-width: 800px; margin: 0 auto; padding: 2rem; border: 1px solid var(--light-grey); border-radius: 8px; background-color: var(--secondary-background); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border-radius: 8px; border: 1px solid var(--light-grey); background-color: var(--primary-background); color: var(--primary-text-color); font-size: 1rem; }
.form-group textarea { min-height: 120px; }
.rating-input { display: flex; gap: 0.5rem; cursor: pointer; }
.rating-input svg { width: 1.8rem; height: 1.8rem; color: var(--light-grey); transition: color 0.2s; }
.rating-input svg.filled, .rating-input:hover svg { color: var(--star-color); }
.rating-input:hover svg ~ svg { color: var(--light-grey); }
#form-feedback { text-align: center; margin-top: 1rem; font-weight: 600; }
#badge-promo, #badge-stock { background-color: var(--sale-color); color: var(--white-text-color); padding: 4px 14px; font-size: 0.95rem; font-weight: 700; border-radius: 99px; display: inline-block; margin-bottom: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
#badge-stock { background-color: var(--danger-color); }

/* Aturan Responsif Halaman Detail */
@media (max-width: 1023px) {
    .sn-detail-wrapper { grid-template-columns: 1fr 1fr; }
    .sn-zoom-preview-container { display: none; } /* Sembunyikan zoom di tablet ke bawah */
}
@media (max-width: 767px) {
    .sn-detail-wrapper { grid-template-columns: 1fr; }
    .sn-info-wrapper h1 { font-size: 2rem; }
    .sn-pros-cons { grid-template-columns: 1fr; }
    #sn-lightbox-modal picture, #sn-lightbox-modal img {
        max-height: 80vh; 
    }
    .lightbox-nav-btn {
        top: auto;
        bottom: 1.5rem;
        transform: translateY(0);
    }
    #lightbox-prev-btn { left: 1.5rem; }
    #lightbox-next-btn { right: 1.5rem; }
}
@media (min-width: 768px) {
    .sn-style-carousel {
        grid-auto-columns: 45%;
    }
    .sn-compare-tray-inner {
        grid-template-columns: 1fr auto; 
    }
    .sn-compare-actions {
        justify-self: auto; 
    }
}
@media (min-width: 1025px) {
    .sn-style-carousel {
        grid-auto-columns: 31%;
    }
}
.sn-related-products-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--light-grey);
}
.sn-related-products-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
.sn-related-grid-wrapper {
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--light-grey) var(--secondary-background);
}
.sn-related-grid-wrapper::-webkit-scrollbar { height: 8px; }
.sn-related-grid-wrapper::-webkit-scrollbar-track { background: var(--secondary-background); border-radius: 4px; }
.sn-related-grid-wrapper::-webkit-scrollbar-thumb { background-color: var(--light-grey); border-radius: 4px; }
#related-product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 250px;
    gap: 1.5rem;
}
.sn-view-all-container {
    text-align: center;
    margin-top: 2rem;
}
.sn-view-all-container a {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white-text-color);
    background: var(--gradient-btn-color);
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sn-view-all-container a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===================================================================
   BAGIAN 5: [GAYA BARU] UNTUK FITUR ZOOM INTERAKTIF DI LIGHTBOX
   ================================================================= */

/* Wadah gambar di dalam lightbox */
#sn-lightbox-modal #lightbox-picture {
    overflow: hidden; /* Sembunyikan bagian gambar yang keluar dari bingkai */
    cursor: zoom-in;  /* Tampilkan kursor 'zoom-in' saat mouse di atas gambar */
}

/* Gambar di dalam lightbox saat dalam mode zoom */
#sn-lightbox-modal #lightbox-picture.zoomed {
    cursor: grab;
    touch-action: none;
}

#sn-lightbox-modal #lightbox-picture.zoomed:active {
    cursor: grabbing;
}

/* Gaya untuk gambar di dalam lightbox agar transisi lebih mulus */
#sn-lightbox-modal #lightbox-picture img {
    transition: transform 0.3s ease;
}

/* ===================================================================
   BAGIAN 6: [GAYA BARU] UNTUK TOMBOL AKSI DI HALAMAN DETAIL
   ================================================================= */

/* Pembungkus untuk tombol "Beli" dan "Bandingkan" */
.sn-action-buttons-wrapper {
    display: flex;
    gap: 1rem; /* Jarak antara dua tombol */
    margin-top: 2rem; /* Jarak dari elemen di atasnya */
}

/* Menyesuaikan tombol afiliasi agar fleksibel */
.sn-action-buttons-wrapper .sn-affiliate-button {
    flex-grow: 1; /* Membuat tombol ini mengisi ruang yang tersedia */
}

/* Gaya untuk tombol "Bandingkan" utama di halaman detail */
.sn-compare-button-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Mencegah tombol menyusut */

    /* Gaya default (tidak terpilih) */
    background-color: transparent;
    border: 2px solid var(--light-grey);
    color: var(--secondary-text-color);
}

.sn-compare-button-main:hover {
    border-color: var(--link-color);
    color: var(--link-color);
}

/* Gaya saat tombol "Bandingkan" aktif/terpilih */
.sn-compare-button-main.selected {
    background-color: var(--link-color);
    border-color: var(--link-color);
    color: var(--white-text-color);
}

.sn-compare-button-main svg {
    width: 24px;
    height: 24px;
}

/* ===================================================================
   BAGIAN 7: [OPTIMASI FINAL] MODE GELAP UNTUK TOMBOL BANDINGKAN
   ================================================================= */

/* Aturan ini memaksa tombol bandingkan pada kartu produk untuk
   selalu menggunakan gaya mode terang, bahkan saat mode gelap aktif. */
[data-theme="dark"] .sn-compare-button {
    /* Latar belakang & border terang seperti di mode terang */
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.6);
    color: #212933; 
}

/* Aturan hover state agar konsisten dengan mode terang */
[data-theme="dark"] .sn-compare-button:hover {
    background-color: #f8f9fa;
    color: #1F70D9; 
}

/* [PERBAIKAN] Aturan untuk status .selected di mode gelap */
[data-theme="dark"] .sn-compare-button.selected {
    background-color: var(--link-color);
    border-color: var(--link-color);
    color: var(--white-text-color);
}

/* ===================================================================
   Komponen UI Bersama (Shared UI Components)
   =================================================================== */

/* Styling untuk Komponen Error */
.sn-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin: 40px auto;
    max-width: 600px;
}
.sn-error-icon svg {
    width: 60px;
    height: 60px;
    color: #ef4444; /* Merah */
    margin-bottom: 16px;
}
.sn-error-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}
.sn-error-message {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 24px;
    max-width: 90%;
}

/* Judul Section Umum */
.sn-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin: 3rem 0 2.5rem 0;
    color: var(--darkest-grey);
}
.sn-error-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color, #007bff);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.sn-error-button:hover {
    background-color: var(--primary-color-dark, #0056b3);
}
