/* ===================== PRODUCT DETAILS PAGE ===================== */
.pd-breadcrumb {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 18px 0 22px;
}
.pd-breadcrumb a {
    color: var(--ink-soft);
}
.pd-breadcrumb a:hover {
    color: var(--brand-primary);
}
.pd-breadcrumb .sep {
    margin: 0 8px;
    color: var(--line);
}
.pd-breadcrumb .current {
    color: var(--ink);
    font-weight: 500;
}

.pd-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 50px;
}
@media (min-width: 992px) {
    .pd-layout {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}
@media (min-width: 1200px) {
    .pd-layout {
        grid-template-columns: 0.95fr 1fr;
    }
}

.pd-gallery {
    display: flex;
    flex-direction: column-reverse;
    gap: 14px;
}
@media (min-width: 576px) {
    .pd-gallery {
        flex-direction: row;
    }
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
@media (min-width: 576px) {
    .pd-thumbs {
        flex-direction: column;
        overflow-x: visible;
        overflow-y: auto;
        max-height: 520px;
        padding-bottom: 0;
        width: 76px;
        flex-shrink: 0;
    }
}
.pd-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 6px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
@media (min-width: 576px) {
    .pd-thumb {
        width: 76px;
        height: 76px;
    }
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pd-thumb:hover {
    border-color: var(--brand-accent);
}
.pd-thumb.is-active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(229, 118, 97, 0.16);
}

.pd-main-image-outer {
    position: relative;
    flex: 1;
    min-width: 0;
}
.pd-main-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
}
.pd-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    user-select: none;
    pointer-events: none;
}
.pd-badge-row {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}
.pd-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
}
.pd-badge--sale {
    background: var(--brand-primary);
}
.pd-badge--new {
    background: var(--ink);
}
.pd-zoom-lens {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.35);
    border: 1.5px solid var(--brand-primary);
    pointer-events: none;
    opacity: 0;
    z-index: 4;
}
.pd-zoom-lens.is-visible {
    opacity: 1;
}
.pd-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(34, 29, 27, 0.72);
    color: #fff;
    font-size: 11.5px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.2s ease;
}
@media (max-width: 991px) {
    .pd-zoom-hint {
        display: none;
    }
}
.pd-zoom-pane {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 20px);
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--surface);
    background-repeat: no-repeat;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(34, 29, 27, 0.16);
    opacity: 0;
    z-index: 30;
    pointer-events: none;
}
@media (min-width: 1200px) {
    .pd-zoom-pane {
        display: block;
    }
}
.pd-zoom-pane.is-visible {
    opacity: 1;
}

.pd-info {
    min-width: 0;
}
.pd-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 10px;
}
@media (min-width: 768px) {
    .pd-title {
        font-size: 34px;
    }
}
.pd-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: var(--ink-soft);
}
.pd-rating {
    display: flex;
    align-items: center;
    gap: 7px;
}
.pd-rating .stars {
    color: var(--brand-accent);
    font-size: 13px;
    letter-spacing: 1px;
}
.pd-rating a {
    color: var(--ink-soft);
    text-decoration: underline;
}
.pd-rating a:hover {
    color: var(--brand-primary);
}
.pd-sku {
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.pd-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.pd-price__current {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
    font-family: var(--font-display);
}
.pd-price__old {
    font-size: 17px;
    color: var(--ink-soft);
    font-weight: 400;
}
.pd-price__save {
    font-size: 12px;
    font-weight: 700;
    color: #1c8a53;
    background: #e9f7ef;
    padding: 4px 9px;
    border-radius: 999px;
}

.pd-short-desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin: 0 0 20px;
    max-width: 46ch;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1c8a53;
    margin-bottom: 22px;
}
.pd-stock.is-low {
    color: #b7791a;
}
.pd-stock.is-out {
    color: #c0392b;
}

.pd-attribute-group {
    margin-bottom: 20px;
}
.pd-attribute-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--ink);
    margin-bottom: 10px;
}
.pd-attribute-group label .pd-attr-selected {
    text-transform: none;
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0;
}
.pd-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.pd-pill {
    border: 1.5px solid var(--line);
    background: var(--surface);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}
.pd-pill:hover {
    border-color: var(--brand-primary);
}
.pd-pill.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.pd-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--line);
    padding: 2px;
    position: relative;
}
.pd-swatch span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.pd-swatch.is-active {
    border-color: var(--brand-primary);
}

.pd-purchase-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
}
.pd-purchase-row .qty-selector {
    height: auto;
    flex-shrink: 0;
}
.pd-purchase-row .qty-selector button {
    height: 100%;
    min-height: 50px;
}
.pd-purchase-row .qty-selector input {
    height: 100%;
}
.pd-btn-cart {
    flex: 1;
    padding: 14px 18px;
    font-size: 14.5px;
}
.pd-icon-btn {
    width: 50px;
    flex-shrink: 0;
    font-size: 16px;
}
.pd-icon-btn.is-active i {
    font-weight: 900;
    color: var(--brand-primary);
}
.pd-buy-now {
    width: 100%;
    border: 1.5px solid var(--ink);
    background: var(--surface);
    color: var(--ink);
    padding: 14px;
    border-radius: 4px;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 24px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}
.pd-buy-now:hover {
    background: var(--ink);
    color: #fff;
}

.pd-marketplace {
    margin-bottom: 24px;
}
.pd-marketplace__label {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.pd-marketplace__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pd-marketplace-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    transition: border-color 0.2s ease;
}
.pd-marketplace-badge:hover {
    border-color: var(--brand-primary);
}
.pd-marketplace-badge i {
    font-size: 15px;
}
.pd-marketplace-badge--amazon i {
    color: #232f3e;
}
.pd-marketplace-badge--flipkart i {
    color: #2874f0;
}
.pd-marketplace-badge--meesho i {
    color: #f43397;
}
.pd-marketplace-badge--ebay i {
    color: #e53238;
}

.pd-trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
}
@media (min-width: 480px) {
    .pd-trust-badges {
        grid-template-columns: 1fr 1fr;
    }
}
.pd-trust-badges li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink-soft);
}
.pd-trust-badges i {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.pd-share {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--ink-soft);
}
.pd-share a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--ink);
    transition:
        background 0.2s ease,
        color 0.2s ease;
}
.pd-share a:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* ---------- Tabs: Description / Additional Info / Reviews ---------- */
.pd-tabs-section {
    margin-bottom: 56px;
}
.pd-tabs-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}
.pd-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pd-tabs::-webkit-scrollbar {
    display: none;
    height: 0;
}
.pd-tabs-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    display: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}
.pd-tabs-arrow.is-visible {
    display: flex;
}
.pd-tabs-arrow:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.pd-tab {
    border: none;
    background: none;
    padding: 14px 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}
.pd-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--brand-primary);
    opacity: 0;
    transform: scaleX(0.6);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
.pd-tab.is-active {
    color: var(--ink);
}
.pd-tab.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.pd-tab-panel {
    display: none;
}
.pd-tab-panel.is-active {
    display: block;
}
.pd-tab-panel p {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--ink-soft);
    max-width: 78ch;
    margin: 0 0 16px;
}
.pd-tab-panel ul {
    max-width: 78ch;
    margin: 0 0 16px;
    padding-left: 20px;
    list-style: disc;
}
.pd-tab-panel ul li {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.pd-spec-table {
    width: 100%;
    max-width: 640px;
    border-collapse: collapse;
}
.pd-spec-table tr {
    border-bottom: 1px solid var(--line);
}
.pd-spec-table th,
.pd-spec-table td {
    text-align: left;
    padding: 13px 16px;
    font-size: 13.5px;
}
.pd-spec-table th {
    width: 40%;
    color: var(--ink-soft);
    font-weight: 600;
    background: var(--surface-alt);
}
.pd-spec-table td {
    color: var(--ink);
}

.pd-review-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.pd-review-score {
    text-align: center;
    flex-shrink: 0;
}
.pd-review-score__num {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.pd-review-score .stars {
    color: var(--brand-accent);
    font-size: 14px;
    margin: 8px 0 4px;
    display: block;
}
.pd-review-score__count {
    font-size: 12.5px;
    color: var(--ink-soft);
}
.pd-review-bars {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}
.pd-review-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ink-soft);
}
.pd-review-bar__track {
    flex: 1;
    height: 6px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.pd-review-bar__fill {
    height: 100%;
    background: var(--brand-accent);
    border-radius: 4px;
}
.pd-review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.pd-review-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.pd-review-item__author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}
.pd-review-item__author img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}
.pd-review-item__date {
    font-size: 12px;
    color: var(--ink-soft);
}
.pd-review-item .stars {
    color: var(--brand-accent);
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
}
.pd-review-item p {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0;
}
.pd-review-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #1c8a53;
    margin-left: 8px;
}

.pd-related {
    background: var(--surface);
    padding: 48px 0 56px;
    margin-top: 8px;
}
.pd-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.pd-related__head h2 {
    font-family: var(--font-display);
    font-size: 26px;
    margin: 0;
}
.pd-related__arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.pd-related__arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
.pd-related__arrow:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.pd-related__viewport {
    overflow: hidden;
}
.pd-related__track {
    display: flex;
    gap: 22px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.pd-related__slide {
    flex: 0 0 calc((100% - 3 * 22px) / 4);
    min-width: 0;
}
@media (max-width: 1150px) {
    .pd-related__slide {
        flex-basis: calc((100% - 2 * 22px) / 3);
    }
}
@media (max-width: 860px) {
    .pd-related__slide {
        flex-basis: calc((100% - 22px) / 2);
    }
}
@media (max-width: 560px) {
    .pd-related__slide {
        flex-basis: 74%;
    }
    .pd-related__arrows {
        display: none;
    }
}
