/* ===== SHOP PAGE — NEW LAYOUT ===== */

/* ---------- BANNER ---------- */
.shop-banner {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 380px;
    overflow: hidden;
}

.shop-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.shop-banner-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 28, 24, 0.55) 0%, rgba(31, 28, 24, 0.15) 100%);
}

.shop-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    max-width: 650px;
}

.shop-banner-kicker {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--clr-pink);
    margin-bottom: 1rem;
    display: block;
}

.shop-banner-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.shop-banner-title em {
    font-style: italic;
    color: var(--clr-pink);
}

.shop-banner-sub {
    font-size: .95rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
    max-width: 440px;
}

/* ---------- SHOP BODY ---------- */
.shop-body {
    padding: 3rem 2rem 5rem;
    background: var(--clr-cream);
}

.shop-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 3rem;
}

/* ---------- SIDEBAR ---------- */
.shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 1rem;
}

.shop-sidebar::-webkit-scrollbar {
    width: 4px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, .2);
    border-radius: 999px;
}

.sidebar-section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(31, 28, 24, .06);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-navy);
    margin-bottom: 1rem;
    letter-spacing: .02em;
}

/* Search */
.sidebar-search-wrap {
    position: relative;
}

.sidebar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px !important;
    color: var(--clr-muted);
    pointer-events: none;
}

.sidebar-search {
    width: 100%;
    padding: .7rem 1rem .7rem 2.5rem !important;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(212, 175, 55, .15);
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    background: #fff;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.sidebar-search:focus {
    border-color: var(--clr-pink);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .08);
}

/* Checkbox / Radio */
.sidebar-check {
    display: flex;
    align-items: center;
    gap: .65rem;
    cursor: pointer;
    padding: .4rem 0;
    font-size: .88rem;
    color: var(--clr-navy);
    font-weight: 500;
    transition: color .2s;
}

.sidebar-check:hover {
    color: #000;
}

.sidebar-check input {
    display: none;
}

.sidebar-check-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--clr-muted);
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-check input:checked + .sidebar-check-box {
    border-color: #000;
}

.sidebar-check input:checked + .sidebar-check-box::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
}

.sidebar-clear-link {
    display: inline-block;
    margin-top: .6rem;
    font-size: .78rem;
    color: var(--clr-muted);
    text-decoration: underline;
    transition: color .2s;
}

.sidebar-clear-link:hover {
    color: var(--clr-pink);
}

/* Material Pills */
.sidebar-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.sidebar-pill {
    padding: .45rem 1rem;
    border-radius: 999px;
    border: 1.5px solid rgba(31, 28, 24, .12);
    background: transparent;
    color: var(--clr-navy);
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-pill:hover {
    border-color: var(--clr-pink);
    color: var(--clr-pink);
}

.sidebar-pill.active {
    background: var(--clr-navy);
    color: #fff;
    border-color: var(--clr-navy);
}

/* Color Swatches */
.sidebar-colors {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.sidebar-color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.sidebar-color-btn:hover {
    transform: scale(1.15);
}

.sidebar-color-btn.active {
    border-color: var(--clr-navy);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .3);
}

/* Price Range */
.sidebar-price-range {
    padding: .5rem 0;
}

.sidebar-price-range input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(31, 28, 24, .1);
    outline: none;
    cursor: pointer;
}

.sidebar-price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--clr-navy);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-price-range input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--clr-pink);
    transform: scale(1.15);
}

.sidebar-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--clr-muted);
    margin-top: .5rem;
    font-weight: 500;
}

.sidebar-apply-price {
    margin-top: .8rem;
    padding: .5rem 1.2rem;
    border: 1.5px solid var(--clr-navy);
    background: transparent;
    color: var(--clr-navy);
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-apply-price:hover {
    background: var(--clr-navy);
    color: #fff;
}

/* ---------- SHOP MAIN ---------- */
.shop-main {
    min-width: 0;
}

/* Top Bar */
.shop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-filter-toggle {
    display: none;
    /* Only on mobile */
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    border: 1.5px solid rgba(31, 28, 24, .12);
    background: #fff;
    color: var(--clr-navy);
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.shop-filter-toggle .material-symbols-outlined {
    font-size: 18px !important;
}

.shop-filter-toggle:hover {
    border-color: var(--clr-pink);
}

.shop-result-count {
    font-size: .88rem;
    color: var(--clr-muted);
}

.shop-result-count strong {
    color: var(--clr-navy);
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.shop-sort label {
    font-size: .82rem;
    color: var(--clr-muted);
    font-weight: 500;
}

.shop-sort select {
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(212, 175, 55, .15);
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    color: var(--clr-navy);
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.shop-sort select:focus {
    border-color: var(--clr-pink);
}

/* ---------- PRODUCT GRID ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ---------- PRODUCT CARD ---------- */
.shop-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(31, 28, 24, .04);
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(31, 28, 24, .1);
}

.shop-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.shop-card-img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f0e1;
}

.shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.shop-card:hover .shop-card-img img {
    transform: scale(1.06);
}

.shop-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(31, 28, 24, .2);
}

.shop-card-placeholder .material-symbols-outlined {
    font-size: 48px !important;
}

.shop-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--clr-navy);
    color: #fff;
    padding: .3rem .85rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.shop-card-body {
    padding: 1.2rem 1rem;
}

.shop-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-navy);
    margin-bottom: .35rem;
    line-height: 1.3;
}

.shop-card-price {
    font-size: .88rem;
    color: var(--clr-muted);
    font-weight: 500;
}

/* ---------- EMPTY STATE ---------- */
.shop-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--clr-muted);
}

.shop-empty .material-symbols-outlined {
    font-size: 56px !important;
    color: rgba(212, 175, 55, .3);
    margin-bottom: 1rem;
}

.shop-empty h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--clr-navy);
    margin-bottom: .5rem;
}

/* ---------- PAGINATION ---------- */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}

.shop-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(31, 28, 24, .1);
    background: #fff;
    color: var(--clr-navy);
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.shop-page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--clr-pink);
    color: var(--clr-pink);
}

.shop-page-btn.active {
    background: var(--clr-navy);
    color: #fff;
    border-color: var(--clr-navy);
}

.shop-page-btn.disabled {
    opacity: .35;
    pointer-events: none;
}

.shop-page-btn .material-symbols-outlined {
    font-size: 20px !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .shop-container {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        background: var(--clr-cream);
        z-index: 1000;
        padding: 2rem 1.5rem;
        box-shadow: 8px 0 40px rgba(0, 0, 0, .12);
        transition: left .35s cubic-bezier(.4, 0, .2, 1);
    }

    .shop-sidebar.open {
        left: 0;
    }

    .shop-filter-toggle {
        display: inline-flex;
    }

    .shop-banner-content {
        padding: 2rem;
    }

    .shop-banner-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-body {
        padding: 2rem 1rem 4rem;
    }

    .shop-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-sort {
        margin-left: 0;
    }

    .shop-banner {
        min-height: 280px;
        height: 40vh;
    }

    .shop-banner-content {
        padding: 1.5rem;
    }
}

/* ===== PRODUCT DETAIL PAGE (kept from original) ===== */

.product-detail-wrapper {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: white;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, .05);
    color: var(--clr-muted);
    font-size: .9rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.product-placeholder-link {
    cursor: pointer;
    height: 100%;
}

.product-info-wrap {
    padding-top: 2rem;
}

.product-meta-cat {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--clr-pink);
    margin-bottom: .75rem;
}

.product-detail-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    color: var(--clr-navy);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--clr-navy);
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
}

.product-detail-desc {
    font-size: .95rem;
    color: var(--clr-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(225, 193, 110, .1);
}

.product-spec-list {
    margin-bottom: 2.5rem;
}

.product-spec-item {
    display: flex;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(225, 193, 110, .05);
}

.product-spec-label {
    width: 120px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--clr-navy);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.product-spec-val {
    font-size: .9rem;
    color: var(--clr-muted);
}

/* Add to Cart Form */
.product-add-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--clr-cream);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover .img-base {
    opacity: 0.6;
}

.product-card:hover .img-hover {
    opacity: 1;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-option-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.product-option-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--clr-navy);
}

.product-option-select {
    padding: .85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(225, 193, 110, .2);
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    color: var(--clr-navy);
    outline: none;
    transition: var(--transition);
    background: white;
}

.product-option-select:focus {
    border-color: var(--clr-pink);
}

.product-add-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.product-qty-input {
    width: 80px;
    padding: .85rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(225, 193, 110, .2);
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    outline: none;
}

.product-add-btn {
    flex: 1;
    background: var(--clr-navy);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.product-add-btn:hover {
    background: var(--clr-pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.product-tryon-link {
    align-items: center;
    border: 1px solid rgba(225, 193, 110, .16);
    border-radius: 999px;
    color: var(--clr-navy);
    display: inline-flex;
    font-weight: 700;
    gap: .45rem;
    justify-content: center;
    margin-top: 1rem;
    min-height: 46px;
    padding: .8rem 1.2rem;
    text-decoration: none;
}

.product-tryon-link:hover {
    border-color: var(--clr-pink);
    color: var(--clr-pink);
}

.product-alert {
    padding: 1rem;
    background: rgba(231, 76, 60, .05);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, .2);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 500;
}

/* Reviews Section */
.reviews-section {
    background: #f0f7fc;
    padding: 5rem 2rem;
}

.reviews-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.reviews-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--clr-navy);
}

.reviews-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.review-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-item-author {
    font-weight: 600;
    color: var(--clr-navy);
    font-size: .95rem;
}

.review-item-date {
    font-size: .8rem;
    color: var(--clr-muted);
}

.review-stars-wrap {
    color: #f59e0b;
    display: flex;
    gap: 2px;
}

.review-item-text {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--clr-muted);
    font-style: italic;
}

.review-reply {
    background: rgba(225, 193, 110, .08);
    border-left: 3px solid var(--clr-pink);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    padding: 1rem;
}

.review-reply strong {
    color: var(--clr-navy);
    display: block;
    font-size: .85rem;
    margin-bottom: .35rem;
}

.review-reply p {
    color: var(--clr-muted);
    margin: 0;
}

.review-item-img {
    margin-top: 1rem;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid rgba(225, 193, 110, .1);
}

.pagination {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Write Review Form */
.write-review-panel {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.write-review-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--clr-navy);
    margin-bottom: 1.5rem;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-form-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.review-form-group label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--clr-navy);
}

.review-form-group select,
.review-form-group textarea,
.review-form-group input {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(225, 193, 110, .2);
    font-family: 'DM Sans', sans-serif;
    font-size: .9rem;
    outline: none;
}

.review-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.review-form-group select:focus,
.review-form-group textarea:focus,
.review-form-group input:focus {
    border-color: var(--clr-pink);
}

.submit-review-btn {
    background: var(--clr-navy);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    transition: var(--transition);
}

.submit-review-btn:hover {
    background: var(--clr-pink);
    transform: translateY(-2px);
}

/* 3D Card */
.product-3d-card {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 12px;
    background: #ffffff;
}

.product-3d-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--clr-navy);
}

.product-3d-card__header p {
    margin: 0.25rem 0 0;
    color: var(--clr-muted);
    font-size: 0.9rem;
}

.product-3d-card .three-viewer,
.product-3d-card .three-viewer__canvas {
    min-height: 360px;
}

/* AJAX Loading Fade */
.loading-fade {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* =========================================
   NEW PRODUCT DETAILS DESIGN
   ========================================= */
.pd-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.pd-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
}

/* Gallery */
.pd-gallery-main {
    margin-bottom: 1rem;
    background: var(--clr-bg);
    border-radius: 8px;
    overflow: hidden;
}

.pd-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    transition: opacity 0.2s ease-in-out;
}

.pd-gallery-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaeaea;
    color: var(--clr-muted);
}

.pd-gallery-thumbs {
    display: flex;
    gap: 1rem;
}

.pd-thumb-btn {
    flex: 1;
    background: none;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
    aspect-ratio: 3/4;
    background: #f8f6f0;
}

.pd-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-thumb-btn.active {
    border-color: var(--clr-navy);
}

.pd-thumb-btn.video-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-muted);
}

.pd-thumb-btn.video-thumb span {
    font-size: 2rem;
}

/* Info */
.pd-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-muted);
    margin-bottom: 0.5rem;
}

.pd-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--clr-navy);
    margin: 0 0 0.5rem;
}

.pd-reviews {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pd-stars {
    color: #b49f7e;
    display: flex;
}

.pd-stars span {
    font-size: 1.2rem;
}

.pd-review-count {
    font-size: 0.85rem;
    color: var(--clr-muted);
}

.pd-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #b49f7e;
    margin-bottom: 1.5rem;
}

.pd-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--clr-text);
    margin-bottom: 2rem;
}

/* Variants */
.pd-variant-group {
    margin-bottom: 1.5rem;
}

.pd-variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pd-variant-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-navy);
}

.pd-variant-selected {
    font-size: 0.9rem;
    color: var(--clr-muted);
    margin-left: 0.25rem;
}

.pd-size-guide-link {
    font-size: 0.8rem;
    color: var(--clr-muted);
    text-decoration: underline;
}

.pd-colors {
    display: flex;
    gap: 0.75rem;
}

.pd-color-label {
    cursor: pointer;
    position: relative;
}

.pd-color-label input {
    display: none;
}

.pd-color-swatch {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    box-shadow: inset 0 0 0 2px white;
    transition: transform 0.2s, border-color 0.2s;
}

.pd-color-label input:checked+.pd-color-swatch {
    border-color: var(--clr-navy);
    transform: scale(1.1);
}

.pd-sizes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pd-size-label {
    cursor: pointer;
    flex: 1;
    min-width: 60px;
}

.pd-size-label input {
    display: none;
}

.pd-size-box {
    display: block;
    text-align: center;
    padding: 0.75rem 0;
    border: 1px solid #ddd;
    color: var(--clr-navy);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pd-size-label input:checked+.pd-size-box {
    border-color: var(--clr-navy);
    background: #f8f6f0;
    font-weight: 600;
}

/* Buttons */
.pd-fitting-room-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #fffaf7;
    color: var(--clr-navy);
    border: 1px solid rgba(17, 24, 39, 0.1);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.pd-fitting-room-btn:hover {
    background: #f2ebd9;
}

.pd-add-to-cart-btn,
.pd-buy-now-btn {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.pd-add-to-cart-btn {
    background: var(--clr-navy);
    color: white;
    margin-bottom: 0.5rem;
}

.pd-add-to-cart-btn:hover {
    background: #b49f7e;
}

.pd-buy-now-btn {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--clr-navy);
    margin-bottom: 2rem;
}

.pd-buy-now-btn:hover {
    border-color: var(--clr-navy);
}

.pd-out-of-stock {
    padding: 1rem;
    background: #fee2e2;
    color: #991b1b;
    text-align: center;
    margin-bottom: 2rem;
}

/* Tabs */
.pd-tabs {
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.pd-tab-headers {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.pd-tab-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-muted);
    cursor: pointer;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.pd-tab-btn.active {
    color: var(--clr-navy);
    border-bottom-color: var(--clr-navy);
}

.pd-tab-content {
    position: relative;
    min-height: 100px;
}

.pd-tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--clr-text);
}

.pd-tab-pane.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* Related section */
.pd-related-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.pd-related-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--clr-navy);
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pd-related-card {
    text-align: left;
}

.pd-related-img-wrap {
    background: #f8f6f0;
    margin-bottom: 1rem;
    overflow: hidden;
}

.pd-related-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    transition: transform 0.3s ease;
}

.pd-related-card:hover .pd-related-img-wrap img {
    transform: scale(1.05);
}

.pd-related-info h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
    color: var(--clr-navy);
}

.pd-related-info p {
    font-size: 0.95rem;
    color: var(--clr-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pd-title {
        font-size: 2rem;
    }

    .pd-related-grid {
        grid-template-columns: 1fr;
    }
}

/* Toast Notification */
.pd-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    color: var(--clr-navy);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    border-left: 4px solid #b49f7e;
}

.pd-toast.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.pd-toast span {
    color: #b49f7e;
    font-size: 1.5rem;
}

.pd-toast-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.pd-toast-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--clr-muted);
}

