/* ── Products Index ── */

.products-page {
    background: #f5f0e8;
    min-height: 100vh;
    padding: 60px 0 80px;
}

.products-page-header {
    text-align: center;
    margin-bottom: 48px;
}

.products-page-header .eyebrow {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9a8770;
    margin-bottom: 10px;
}

.products-page-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: #221c18;
    margin: 0 0 28px;
}

/* Category filter */
.products-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    background: none;
    border: 1px solid #c5b49a;
    color: #6b5d4f;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: #221c18;
    border-color: #221c18;
    color: #f5f0e8;
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}

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

.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #e8e0d2;
    margin-bottom: 14px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.product-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0a090;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-card-category {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9a8770;
    margin-bottom: 5px;
}

.product-card-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.product-card-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #221c18;
}

.product-card-price {
    font-size: 0.88rem;
    color: #6b5d4f;
    white-space: nowrap;
    margin-left: 8px;
}

.product-card-link {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a8770;
    border-bottom: 1px solid #c5b49a;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color 0.2s, border-color 0.2s;
}

.product-card:hover .product-card-link {
    color: #221c18;
    border-color: #221c18;
}

/* Empty state */
.products-empty {
    text-align: center;
    padding: 80px 24px;
    color: #9a8770;
}

.products-empty h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #221c18;
}

/* Suggested products */
.products-suggested {
    padding: 40px 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-suggested-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #221c18;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.03em;
}

/* Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 56px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.products-pagination li {
    display: inline-flex;
    list-style: none;
    margin: 0;
}

.products-pagination li a,
.products-pagination li span,
.products-pagination .page-link,
.products-pagination .current {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    border: 1px solid #c5b49a;
    color: #6b5d4f;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}

.products-pagination li.active a,
.products-pagination li.active span,
.products-pagination .current {
    background: #221c18;
    border-color: #221c18;
    color: #f5f0e8;
}

.products-pagination li a:hover,
.products-pagination .page-link:hover {
    background: #221c18;
    border-color: #221c18;
    color: #f5f0e8;
}

.products-pagination li.disabled a,
.products-pagination li.disabled span {
    opacity: 0.4;
    pointer-events: none;
}


/* ── Product Detail (redesigned) ── */

.pd-section {
    background: #f5f0e8;
    min-height: 100vh;
    padding: 52px 0 80px;
}

/* ── Layout ── */
.pd-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 768px) {
    .pd-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Gallery ── */
.pd-gallery { display: flex; flex-direction: column; gap: 10px; }

.pd-gallery-main {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e8e0d2;
    position: relative;
}
.pd-gallery-main img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: opacity 0.25s ease;
}
.pd-gallery-placeholder {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
    color: #b0a090; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.pd-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.88); border: none; border-radius: 50%;
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; transition: opacity 0.2s; z-index: 10;
    color: #221c18; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.pd-gallery-prev { left: 10px; }
.pd-gallery-next { right: 10px; }
.pd-gallery-main:hover .pd-gallery-nav { opacity: 1; }
.pd-gallery-nav:hover { background: #fff; }

.pd-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-gallery-thumb {
    width: 70px; height: 88px; overflow: hidden; background: #e8e0d2;
    cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; flex-shrink: 0;
}
.pd-gallery-thumb.active { border-color: #221c18; }
.pd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Product Info ── */
.pd-info { padding-top: 4px; }

.pd-breadcrumb {
    font-size: 0.67rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: #9a8770; margin-bottom: 16px;
}
.pd-breadcrumb a { color: inherit; text-decoration: none; }
.pd-breadcrumb a:hover { color: #221c18; }

.pd-title-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.pd-title {
    flex: 1; margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 400; color: #221c18; line-height: 1.2;
}

.pd-wishlist-form { display: inline-flex; }
.pd-wishlist-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 50%; border: 2px solid #e2d6cc; background: #fff;
    cursor: pointer; transition: border-color 0.2s, background 0.2s; text-decoration: none; margin-top: 4px;
}
.pd-wishlist-btn svg { width: 20px; height: 20px; fill: #c8b8ac; transition: fill 0.2s; }
.pd-wishlist-btn:hover { border-color: #e53e3e; background: #fff5f5; }
.pd-wishlist-btn:hover svg, .pd-wishlist-btn.wishlisted svg { fill: #e53e3e; }
.pd-wishlist-btn.wishlisted { border-color: #e53e3e; background: #fff5f5; }

/* Stars */
.pd-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pd-stars { display: flex; gap: 2px; }
.pd-star { fill: #ddd; }
.pd-star.filled { fill: #c8972a; }
.pd-rating-link { font-size: 0.82rem; color: #6b5d4f; text-decoration: underline; }
.pd-rating-link:hover { color: #221c18; }

/* Price */
.pd-price { font-size: 1.3rem; color: #221c18; font-weight: 500; margin: 4px 0 14px; }

/* Payment badges */
.pd-payment-badges { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.pd-payment-badge {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: #5a4f46;
}
.pd-pay-icon { flex-shrink: 0; border-radius: 4px; }
.pd-pay-card { flex-shrink: 0; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.10)); }

.pd-divider { border: none; border-top: 1px solid #d8cfc3; margin: 0 0 20px; }

/* Size */
.pd-size-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pd-size-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #221c18; }
.pd-size-chart-link {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: #6b5d4f; text-decoration: underline; background: none; border: none;
    cursor: pointer; padding: 0; font-family: inherit;
}
.pd-size-chart-link:hover { color: #221c18; }

.pd-size-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pd-size-btn {
    min-width: 50px; padding: 7px 10px;
    border: 1.5px solid #d4c9bc; background: #fff; color: #3d2e22;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
    cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pd-size-btn:hover:not(:disabled) { border-color: #6b5d4f; background: #f5f0ea; }
.pd-size-btn.selected { border-color: #3d2e22; background: #3d2e22; color: #fff; }
.pd-size-btn--out {
    border-color: #ede8e0; color: #c8bfb5; background: #faf8f5;
    cursor: not-allowed; text-decoration: line-through; opacity: 0.6;
}

.pd-size-hint {
    font-size: 0.78rem; color: #9a8770; margin: 0 0 14px; letter-spacing: 0.03em;
}
.pd-size-hint.shake { color: #b05a2a; animation: pdShake 0.4s ease; }
@keyframes pdShake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* Qty row */
.pd-qty-row { display: flex; align-items: center; margin-bottom: 10px; }
.pd-qty-wrap { display: flex; align-items: center; }
.pd-qty-btn {
    width: 36px; height: 42px; border: 1px solid #c5b49a; background: transparent;
    color: #221c18; font-size: 1.1rem; cursor: pointer; transition: background 0.15s;
}
.pd-qty-btn:hover { background: #f0ebe3; }
.pd-qty-input {
    width: 52px; height: 42px; border: 1px solid #c5b49a;
    border-left: none; border-right: none; background: transparent;
    text-align: center; font-size: 1rem; color: #221c18; -moz-appearance: textfield;
}
.pd-qty-input::-webkit-inner-spin-button,
.pd-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Buttons */
.pd-btn-atc {
    width: 100%; height: 50px; background: #221c18; color: #faf8f5;
    border: none; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
    cursor: pointer; transition: background 0.2s; margin-bottom: 10px;
}
.pd-btn-atc:hover:not(:disabled) { background: #3a2e28; }
.pd-btn-atc:disabled { background: #b0a898; cursor: not-allowed; }

.pd-buynow-form { margin-bottom: 20px; }
.pd-btn-buynow {
    width: 100%; height: 50px; background: #fff; color: #221c18;
    border: 1.5px solid #221c18; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.pd-btn-buynow:hover:not(:disabled) { background: #221c18; color: #faf8f5; }
.pd-btn-buynow:disabled { color: #bbb; border-color: #bbb; cursor: not-allowed; }

/* Out of stock */
.pd-out-of-stock {
    display: flex; align-items: center; gap: 8px; margin: 16px 0 24px;
    font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #b03a2e;
}
.pd-stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pd-stock-dot--out { background: #b03a2e; }

/* Trust badges */
.pd-trust-badges {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; flex-direction: column; gap: 11px;
    border-top: 1px solid #e2d6cc; padding-top: 20px;
}
.pd-trust-badges li {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.83rem; color: #5a4f46;
}
.pd-trust-badges svg { flex-shrink: 0; color: #9a8770; }

/* Accordions */
.pd-accordions { border-top: 1px solid #d8cfc3; }
.pd-accordion { border-bottom: 1px solid #d8cfc3; }
.pd-accordion-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; background: none; border: none; cursor: pointer;
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: #221c18; font-family: inherit; font-weight: 600;
}
.pd-accordion-toggle:hover { color: #6b5d4f; }
.pd-accordion-icon { transition: transform 0.25s; flex-shrink: 0; }
.pd-accordion-toggle[aria-expanded="true"] .pd-accordion-icon { transform: rotate(180deg); }

.pd-accordion-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
}
.pd-accordion-content { padding: 0 0 20px; }
.pd-accordion-content p { font-size: 0.9rem; line-height: 1.8; color: #5a4f46; margin: 0 0 10px; }

/* Reviews list */
.pd-reviews-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.pd-review-item { border-bottom: 1px solid #ece6de; padding-bottom: 16px; }
.pd-review-item:last-child { border-bottom: none; }
.pd-review-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pd-review-stars { display: flex; gap: 2px; }
.pd-review-name { font-size: 0.85rem; font-weight: 600; color: #221c18; }
.pd-review-date { font-size: 0.75rem; color: #9a8770; margin-left: auto; }
.pd-review-body { font-size: 0.88rem; line-height: 1.7; color: #5a4f46; margin: 0; }
.pd-no-reviews { font-size: 0.88rem; color: #9a8770; margin-bottom: 20px; }

/* Review form */
.pd-review-form-wrap { border-top: 1px solid #ece6de; padding-top: 20px; }
.pd-review-form-title { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #221c18; margin: 0 0 16px; }
.pd-review-form { display: flex; flex-direction: column; gap: 14px; }
.pd-review-form-row { display: flex; flex-direction: column; gap: 5px; }
.pd-review-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6b5d4f; }
.pd-review-input, .pd-review-textarea {
    border: 1px solid #d4c9bc; background: #fff; padding: 10px 12px;
    font-size: 0.88rem; color: #221c18; font-family: inherit; width: 100%; box-sizing: border-box;
    transition: border-color 0.2s;
}
.pd-review-input:focus, .pd-review-textarea:focus { outline: none; border-color: #9a8770; }
.pd-review-textarea { resize: vertical; }

/* Star picker */
.pd-star-picker { display: flex; align-items: center; gap: 4px; }
.pd-star-pick { fill: #ddd; cursor: pointer; transition: fill 0.15s; }
.pd-star-pick.hover, .pd-star-pick.selected { fill: #c8972a; }

.pd-review-submit {
    align-self: flex-start; padding: 12px 28px;
    background: #221c18; color: #faf8f5;
    border: none; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    cursor: pointer; transition: background 0.2s;
}
.pd-review-submit:hover { background: #3a2e28; }
.pd-review-gate {
    font-size: 0.85rem; color: #6b5d4f; margin: 0;
    padding: 14px 16px; background: #f8f5f1;
    border-left: 3px solid #c5b49a; border-radius: 3px;
}
.pd-review-gate a { color: #221c18; font-weight: 600; text-decoration: underline; }

/* Back link */
.pd-back-link {
    display: inline-block; margin-top: 28px;
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: #9a8770; text-decoration: none;
    border-bottom: 1px solid #c5b49a; padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.pd-back-link:hover { color: #221c18; border-color: #221c18; }

/* ── Size Chart Modal ── */
.pd-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.45); z-index: 9000;
    align-items: center; justify-content: center;
}
.pd-modal-overlay.open { display: flex; }
.pd-modal {
    background: #fff; max-width: 540px; width: 90%; padding: 32px 28px;
    position: relative; max-height: 90vh; overflow-y: auto;
}
.pd-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #6b5d4f; line-height: 1;
}
.pd-modal-close:hover { color: #221c18; }
.pd-modal-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem; font-weight: 400; color: #221c18; margin: 0 0 6px;
}
.pd-modal-note { font-size: 0.8rem; color: #9a8770; margin: 0 0 16px; }
.pd-modal--wide { max-width: 820px !important; }
.pd-sizechart-images {
    display: flex; flex-direction: column; gap: 16px;
}
.pd-sizechart-img {
    width: 100%; height: auto; display: block; border: 1px solid #e8e4df;
}
