.pd-page {
    --pd-font: 'Poppins', 'Inter', sans-serif;
    --pd-surface: #ffffff;
    --pd-border: #eeeeee;
    --pd-text: #1d1d1f;
    --pd-muted: #6f6f6f;
    --pd-soft: #999999;
    --pd-primary: var(--customer-primary, #007fbf);
    --pd-primary-deep: var(--customer-primary-hover, #00689e);
    --pd-blue: var(--customer-primary, #007fbf);
    --pd-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family: var(--pd-font);
    color: var(--pd-text);
    padding: 12px 0 96px;
}

.pd-page * {
    font-family: inherit;
}

.pd-page__head {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 28px;
}

.pd-breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: #878787;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.pd-breadcrumb span:last-child {
    color: #4b5563;
}

.pd-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.pd-breadcrumb a:hover {
    color: var(--pd-blue);
}

.pd-main,
.pd-info-sections,
.pd-tabs,
.pd-related {
    margin-bottom: 32px;
}

.pd-card {
    background: var(--pd-surface);
    border: 1px solid var(--pd-border);
    border-radius: 4px;
    box-shadow: var(--pd-shadow);
}

.pd-main {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}

.pd-gallery {
    display: grid;
    gap: 16px;
    padding: 0;
}

.pd-summary,
.pd-tabs__body {
    padding: 32px;
}

.pd-gallery__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}

.pd-gallery__track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
}

.pd-gallery__slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.pd-gallery__zoom {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pd-gallery__media,
.pd-gallery__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.pd-gallery__media {
    transition: transform 0.45s ease;
}

.pd-gallery__stage:hover .pd-gallery__media {
    transform: scale(1.06);
}





.pd-gallery__empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pd-muted);
    font-size: 14px;
}

.pd-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.pd-gallery__thumb {
    width: 78px;
    height: 78px;
    border: 1px solid var(--pd-border);
    border-radius: 4px;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pd-gallery__thumb:hover {
    transform: translateY(-2px);
}

.pd-gallery__thumb.is-active {
    border-color: var(--pd-blue);
    box-shadow: 0 0 0 1px rgba(64, 157, 214, 0.22);
}

.pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-gallery__thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: #ffffff;
    font-size: 18px;
}

.pd-summary {
    display: grid;
    gap: 20px;
    padding: 8px 0 0;
}

.pd-summary__utility,
.pd-summary__utility-right,
.pd-summary__topline,
.pd-rating,
.pd-purchase,
.pd-address__head,
.pd-form__intro {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.pd-summary__utility,
.pd-address__head,
.pd-form__intro {
    justify-content: space-between;
}

.pd-summary__utility-right {
    justify-content: flex-end;
    flex: 1 1 auto;
}

.pd-main-wishlist,
.pd-shop-card__wish {
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pd-stock {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.pd-stock.is-in {
    background: rgba(255, 231, 87, 0.22);
    color: #7f6814;
}

.pd-stock.is-out {
    background: rgba(208, 79, 79, 0.12);
    color: #b24545;
}

.pd-sku,
.pd-rating__copy,
.pd-muted,
.pd-sticky__qty,
.pd-form__status,
.pd-modal__copy span,
.pd-address__head p,
.pd-form__intro p,
.pd-modal__help p,
.pd-panel,
.pd-richtext,
.pd-richtext p,
.pd-review-card p {
    color: var(--pd-muted);
    font-size: 14px;
    line-height: 1.6;
}

.pd-product-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.pd-title-price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pd-title-price-row .pd-product-title {
    flex: 1 1 320px;
}

.pd-title-price-row .pd-price-row {
    flex: 0 0 auto;
    margin-left: auto;
}

.pd-stars {
    display: inline-flex;
    gap: 2px;
    color: #d0a95e;
    font-size: 14px;
}

.pd-summary__text {
    margin: 0;
    color: #4c4c4c;
    font-size: 14px;
    line-height: 1.6;
}

.pd-label {
    display: block;
    margin-bottom: 10px;
    color: var(--pd-text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.pd-purchase {
    justify-content: space-between;
    align-items: end;
}

.pd-price-row,
.pd-related__price {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
}

.pd-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--pd-text);
}

.pd-old-price,
.pd-related__old {
    font-size: 14px;
    color: var(--pd-soft);
    text-decoration: line-through;
}

.pd-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pd-border);
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
}

.pd-quantity button,
.pd-quantity input {
    height: 44px;
    border: 0;
    background: transparent;
    font-family: var(--pd-font);
    font-size: 15px;
}

.pd-quantity button {
    width: 42px;
    color: var(--pd-text);
    cursor: pointer;
}

.pd-quantity input {
    width: 56px;
    text-align: center;
    font-weight: 500;
    color: var(--pd-text);
    appearance: textfield;
}

.pd-quantity input::-webkit-inner-spin-button,
.pd-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pd-primary-btn,
.pd-secondary-btn,
.pd-tab,
.pd-shop-card__cta {
    font-family: var(--pd-font);
}

.pd-primary-btn {
    border: 0;
    border-radius: 12px;
    background: var(--pd-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 14px 26px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.pd-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 127, 191, 0.22);
    filter: none;
    background: var(--pd-primary-deep);
}

.pd-summary__cta .pd-primary-btn {
    min-width: 220px;
}

.pd-secondary-btn {
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--pd-text);
    font-size: 13px;
    font-weight: 500;
    padding: 11px 15px;
    cursor: pointer;
}

.pd-enquiry-note {
    position: fixed;
    top: 20px;
    right: 20px;
    width: min(320px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 16px;
    background: rgba(240, 253, 244, 0.96);
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
    z-index: 1100;
}

.pd-meta {
    display: grid;
    gap: 14px;
}

.pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--pd-border);
    border-radius: 999px;
    background: #fafafa;
    font-size: 12px;
    font-weight: 500;
    color: #555555;
}

.pd-trust {
    padding-top: 4px;
    border-top: 1px solid var(--pd-border);
}

.pd-trust > * {
    max-width: 100%;
}

.pd-trust img {
    max-width: 100%;
    height: auto;
}

.pd-info-sections__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pd-info-card {
    padding: 24px;
    border-radius: 16px;
}

.pd-info-card__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.pd-info-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.pd-info-card__list li {
    color: #4c4c4c;
    font-size: 14px;
    line-height: 1.7;
}

.pd-tabs {
    padding: 0;
    overflow: hidden;
}

.pd-tabs__nav {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--pd-border);
    background: #ffffff;
}

.pd-tab {
    position: relative;
    flex: 1 1 0;
    border: 0;
    background: transparent;
    color: var(--pd-muted);
    padding: 18px 20px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: color 0.28s ease, background-color 0.28s ease;
}

.pd-tab::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--pd-blue);
    transition: width 0.28s ease;
    transform: translateX(-50%);
}

.pd-tab:hover {
    color: var(--pd-blue);
}

.pd-tab.is-active {
    color: var(--pd-blue);
    background: rgba(64, 157, 214, 0.08);
}

.pd-tab:hover::after,
.pd-tab.is-active::after {
    width: 100%;
}

.pd-panel[hidden] {
    display: none;
}

.pd-description-stack {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--pd-border);
}

.pd-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--pd-border);
}

.pd-detail-column {
    display: grid;
    gap: 14px;
}

/* .pd-detail-item {
    height: 100%;
    padding: 18px;
    border: 1px solid var(--pd-border);
    border-radius: 16px;
    background: #fcfcfc;
} */

.pd-detail-item__label {
    display: block;
    margin-bottom: 8px;
    color: var(--pd-soft);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pd-detail-item__value {
    display: block;
    color: var(--pd-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.pd-detail-fallback-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.pd-richtext ul {
    margin: 0;
    padding-left: 20px;
}

.pd-richtext li {
    margin-bottom: 8px;
}

.pd-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.pd-spec {
    border: 1px solid var(--pd-border);
    border-radius: 4px;
    padding: 18px;
    background: #fcfcfc;
}

.pd-spec span {
    display: block;
    margin-bottom: 8px;
    color: var(--pd-muted);
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pd-spec strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--pd-text);
}

.pd-review-card {
    max-width: 560px;
    border: 1px solid var(--pd-border);
    border-radius: 18px;
    background: #fcfcfc;
    padding: 24px;
}

.pd-review-card h3 {
    margin: 14px 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.pd-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.pd-section-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pd-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 12px 20px;
    border: 1px solid var(--pd-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--pd-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pd-view-all-btn:hover {
    border-color: var(--pd-blue);
    color: var(--pd-blue);
    transform: translateY(-1px);
}

.pd-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pd-shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.42);
}

.pd-shop-card__media {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.pd-shop-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pd-shop-card:hover .pd-shop-card__media img {
    transform: scale(1.05);
}

.pd-shop-card__wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.8);
}

.pd-shop-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.pd-shop-card__title {
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    
    -webkit-box-orient: vertical;
}

.pd-shop-card__price {
    margin: 0;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
}

.pd-shop-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin-top: auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: #facc15;
    color: #000000;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.pd-shop-card__cta:hover {
    background: #fde047;
}

.pd-shop-card__cta-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.pd-related__empty {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: var(--pd-muted);
}

.pd-sticky {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--pd-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    z-index: 90;
}

.pd-sticky > div {
    display: grid;
    gap: 4px;
}

.pd-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.6);
    padding: 24px;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.pd-modal {
    position: relative;
    width: min(100%, 980px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 194, 22, 0.2), transparent 21%),
        radial-gradient(circle at 88% 90%, rgba(255, 194, 22, 0.16), transparent 18%),
        linear-gradient(135deg, #fff6d6, #fffefa 48%, #fff7d7);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.pd-modal::before,
.pd-modal::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 192, 0, 0.16);
    pointer-events: none;
}

.pd-modal::before {
    width: 180px;
    height: 180px;
    left: -42px;
    bottom: -56px;
}

.pd-modal::after {
    width: 140px;
    height: 140px;
    right: -28px;
    top: -34px;
}

.pd-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #111111;
    font-size: 20px;
    cursor: pointer;
    z-index: 3;
}

.pd-modal__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    min-height: min(740px, calc(100vh - 48px));
}

.pd-modal__panel {
    position: relative;
    z-index: 1;
    padding: 34px 30px;
}

.pd-modal__panel--info {
    background: #ffffff;
    border-right: 1px solid rgba(17, 17, 17, 0.06);
}

.pd-modal__panel--form {
    background: #83DCFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pd-modal__head {
    margin-bottom: 22px;
}

.pd-modal__head p {
    margin: 0 0 6px;
    color: #af8620;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pd-modal__head h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.22;
    max-width: 300px;
}

.pd-modal__summary,
.pd-address {
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
}

.pd-modal__summary {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px;
}

.pd-modal__thumb {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    background: #f4ead0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a6140;
    font-size: 28px;
    font-weight: 600;
}

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

.pd-modal__copy {
    display: grid;
    gap: 4px;
}

.pd-modal__copy strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--pd-text);
}

.pd-address {
    padding: 18px;
    margin-top: 18px;
}

.pd-address__head p,
.pd-form__intro p {
    margin: 0;
    color: #595959;
}

.pd-address-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
}

.pd-address-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pd-address-card:hover,
.pd-address-card.is-selected {
    border-color: rgba(0, 127, 191, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 127, 191, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.pd-address-card input[type="radio"] {
    margin-top: 4px;
    accent-color: #007fbf;
    flex-shrink: 0;
}

.pd-address-card__body {
    display: grid;
    gap: 4px;
}

.pd-address-card__body strong {
    color: #111111;
    font-size: 14px;
    font-weight: 600;
}

.pd-address-card__body span,
.pd-address-empty {
    color: #595959;
    font-size: 13px;
    line-height: 1.55;
}

.pd-address-empty {
    margin: 8px 0 0;
}

.pd-address-toggle {
    width: 100%;
    margin-top: 16px;
}

.pd-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
    width: min(100%, 430px);
    margin: auto;
    justify-content: center;
}

.pd-form-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pd-field-heading {
    width: 100%;
}

.pd-field-heading .pd-label {
    margin-bottom: 12px;
}

.pd-form-panel[hidden] {
    display: none !important;
}

.pd-form__intro {
    align-items: flex-start;
}

.pd-form__intro p {
    margin-top: 6px;
}

#customAddressPanel {
    padding: 20px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
}

.pd-address__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pd-address__grid input:nth-child(5) {
    grid-column: 1 / 2;
}

.pd-address__grid input,
.pd-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--pd-text);
    font-family: var(--pd-font);
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pd-field {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
}

.pd-field textarea {
    flex: 1 1 auto;
    min-height: 210px;
    resize: vertical;
}

.pd-form.is-address-collapsed .pd-field textarea {
    min-height: clamp(260px, 42vh, 460px);
}

.pd-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
}

.pd-checkbox input {
    accent-color: #007fbf;
}

.pd-form__submit {
    width: 100%;
    margin-top: auto;
    background: var(--pd-primary);
    background: black;
    color: white;
}

.pd-form__status {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1100px) {
    .pd-main {
        grid-template-columns: 1fr;
    }

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

    .pd-related__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .pd-modal__panel--info {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    }
}

@media (max-width: 768px) {
    .pd-page {
        padding-top: 8px;
        padding-bottom: 120px;
    }

    .pd-summary,
    .pd-tabs__body {
        padding: 24px;
    }

    .pd-gallery {
        gap: 14px;
    }

    .pd-main {
        gap: 24px;
    }

    .pd-summary__utility,
    .pd-summary__utility-right,
    .pd-purchase,
    .pd-address__head,
    .pd-form__intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .pd-summary__utility-right {
        justify-content: flex-start;
    }

    .pd-summary__cta {
        display: none;
    }

    .pd-info-sections__grid,
    .pd-detail-grid {
        grid-template-columns: 4fr;
    }

    .pd-specs,
    .pd-address__grid,
    .pd-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-related__grid {
        gap: 12px;
        padding-inline: 5px;
    }

    .pd-related__grid > .pd-shop-card:nth-child(n + 7) {
        display: none;
    }

    .pd-section-title {
        font-size: 24px;
        letter-spacing: 1.6px;
    }

    .pd-product-title {
        font-size: 20px;
    }

    .pd-sticky {
        display: flex;
    }

    .pd-overlay {
        padding: 12px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .pd-modal {
        width: 100%;
        max-height: calc(100dvh - 24px);
        margin: auto 0;
        overflow-y: auto;
        border-radius: 20px;
    }

    .pd-modal::before,
    .pd-modal::after {
        content: none;
    }

    .pd-modal__layout {
        min-height: 0;
    }

    .pd-modal__panel {
        padding: 22px 18px 18px;
    }

    .pd-modal__head h3 {
        font-size: 24px;
        max-width: none;
    }

    .pd-form {
        height: auto;
        gap: 16px;
    }

    .pd-form__intro > div {
        width: 100%;
    }

    .pd-form__intro p {
        display: none;
    }

    .pd-secondary-btn,
    .pd-form__submit {
        width: 100%;
    }

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

    .pd-address__grid input:nth-child(5) {
        grid-column: auto;
    }

    .pd-field textarea,
    .pd-form.is-address-collapsed .pd-field textarea {
        min-height: 132px;
    }
}

@media (max-width: 540px) {
    .pd-summary,
    .pd-tabs__body {
        padding: 18px;
    }

    .pd-gallery__thumb {
        width: 64px;
        height: 64px;
    }

    .pd-section-head {
        align-items: flex-start;
    }

    .pd-specs,
    .pd-address__grid {
        grid-template-columns: 1fr;
    }

    .pd-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pd-section-title {
        font-size: 22px;
    }

    .pd-modal__summary {
        align-items: flex-start;
    }

    .pd-modal__thumb {
        width: 72px;
        height: 72px;
    }
}

/* Refreshed first section and shared related-product cards */
.pd-main {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.pd-main__visual {
    display: flex;
}

.pd-main__visual .pd-gallery {
    width: 100%;
    position: relative;
    display: block;
}

/* MAIN CONTAINER */
.pd-gallery__stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
aspect-ratio: 4 / 5;
min-height: clamp(320px, 45vw, 560px);
max-height: 700px;
    background: #f5f5f5;
}

/* TRACK */
.pd-gallery__track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

/* SLIDE — REMOVE ALL PADDING */
.pd-gallery__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

/* 🔥 MAIN IMAGE — FULL COVER */
.pd-gallery__media,
.pd-gallery__video {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* THIS IS THE KEY CHANGE */
    display: block;
}

/* OPTIONAL: smoother look */
.pd-gallery__media {
    transition: transform 0.4s ease;
}

.pd-gallery__stage:hover .pd-gallery__media {
    transform: scale(1.03);
}

/* THUMBNAILS — OVERLAY STYLE */
.pd-gallery__thumbs {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 0;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px;
    scrollbar-width: none;
}

.pd-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

/* THUMB */
.pd-gallery__thumb {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);

    transition: all 0.25s ease;
}

/* ACTIVE */
.pd-gallery__thumb.is-active {
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
}

/* THUMB IMAGE */
.pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-main__purchase {
    align-self: start;
}

.pd-purchase-panel {
    display: grid;
    gap: 22px;
    padding: 2px 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.pd-purchase-panel__intro {
    display: grid;
    gap: 14px;
}

.pd-category-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #3f3f46;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
}

.pd-category-link:hover {
    color: #111827;
}

.pd-category-link--muted {
    color: #9ca3af;
    pointer-events: none;
}

.pd-main .pd-product-title {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.045em;
    text-align: left;
}

.pd-main__purchase .pd-label {
    margin-bottom: 0;
    color: #7a7f87;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.pd-purchase-panel__group {
    display: grid;
    gap: 10px;
    padding: 0;
    border-bottom: 0;
}

.pd-purchase-panel__group--size {
    gap: 18px;
}

.pd-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pd-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pd-size-btn {
    min-width: 78px;
    padding: 18px 24px;
    border: 0;
    border-radius: 999px;
    background: #f4f4f1;
    color: #8a8f98;
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pd-size-btn.is-active {
    background: #1f1f1f;
    color: #ffffff;

}

.pd-color-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-color-btn.is-active {
    border-color: #d1d5db;
    box-shadow: 0 0 0 1px #ffffff inset;
}

.pd-color-btn:hover {
    transform: scale(1.06);
}

.pd-color-btn__swatch {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    display: block;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.pd-color-btn__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pd-purchase-panel__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    background: #ffffff;
}

.pd-purchase-panel__group--compact {
    padding: 20px 0px;
    background: #ffffff;

}

.pd-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pd-main__purchase .pd-rating__copy {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
}

.pd-main__purchase .pd-price-row {
    gap: 14px;
    justify-content: flex-end;
    text-align: right;
}

.pd-main__purchase .pd-price {
    font-size: 25px;
    font-weight: 700;
    color: #111111;
}

.pd-main__purchase .pd-old-price {
    font-size: 18px;
}

.pd-main__purchase .pd-quantity {
    width: fit-content;
    border: 1px solid #e8e8e4;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.pd-main__purchase .pd-quantity button,
.pd-main__purchase .pd-quantity input {
    height: 50px;
    border: 0;
    background: transparent;
    color: #111827;
    font-family: var(--pd-font);
}

.pd-main__purchase .pd-quantity button {
    width: 44px;
    font-size: 18px;
    cursor: pointer;
}

.pd-main__purchase .pd-quantity input {
    width: 68px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.pd-quantity-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    
}

.pd-selected-color-label {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.pd-quantity-preset {
    border: 1px solid #dbe3ea;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pd-quantity-preset:hover,
.pd-quantity-preset.is-active {
    border-color: #007fbf;
    background: #007fbf;
    color: #ffffff;
}

.pd-summary__cta--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}


.pd-accordion,
.pd-accordion__content,
.pd-tabs,
.pd-panel {
    background: #ffffff;
}

.pd-main__purchase .pd-summary__cta .pd-primary-btn {
    width: 100%;
    min-width: 0;
    padding: 18px 28px;
    border-radius: 999px;
    background: var(--pd-primary);
    color: #ffffff;
    font-size: 17px;
   
}

.pd-main__purchase .pd-summary__cta .pd-primary-btn:hover {
    transform: none;
    filter: none;
    box-shadow: 0 12px 28px rgba(0, 127, 191, 0.22);
    background: var(--pd-primary-deep);
}

.pd-main-wishlist {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    box-shadow: none;
    font-size: 28px;
    font-weight: 400;
}

.pd-enquiry-note {
    top: 20px;
    right: 20px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(240, 253, 244, 0.96);
    color: #166534;
}

.pd-primary-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
}

.pd-primary-btn[disabled]:hover {
    transform: none;
    box-shadow: none;
    background: var(--pd-primary);
}

.pd-accordion {
    overflow: hidden;

    background: #ffffff;
}

.pd-accordion summary {
    list-style: none;
}

.pd-accordion summary::-webkit-details-marker {
    display: none;
}

.pd-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    cursor: pointer;
    color: #111111;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
}

.pd-accordion__summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #111111;
    border-right: 2px solid #111111;
    transform: rotate(135deg);
    transition: transform 0.2s ease, margin 0.2s ease;
}

.pd-accordion[open] .pd-accordion__summary::after {
    margin-top: 7px;
    transform: rotate(-45deg);
}

.pd-accordion__content {
    display: grid;
    gap: 18px;
    padding: 10px 24px 24px;
 
}

.pd-accordion__content--stack {
    gap: 14px;
}

.pd-accordion-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pd-detail-item--surface {
    padding: 18px;
    border: 1px solid #eceae3;
    border-radius: 18px;
    background: #faf9f5;
}

.pd-accordion__note {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.65;
}

.pd-accordion__note--clamp {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pd-info-line {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
}

.pd-info-line__icon,
.pd-shipping-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f5f5f2;
    color: #111111;
    flex: 0 0 auto;
}

.pd-info-line__icon {
    width: 36px;
    height: 36px;
}

.pd-info-line__icon svg,
.pd-shipping-item__icon svg {
    width: 18px;
    height: 18px;
}

.pd-shipping-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.pd-shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pd-shipping-item__icon {
    width: 48px;
    height: 48px;
}

.pd-shipping-item__label {
    display: block;
    margin-bottom: 4px;
    color: #959aa3;
    font-size: 14px;
    line-height: 1.4;
}

.pd-shipping-item strong {
    display: block;
    color: #111111;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.pd-main__purchase .pd-trust {
    padding-top: 0;
    border-top: 0;
}

.pd-shipping-html {
    display: grid;
    gap: 16px;
}

.pd-shipping-html > * {
    max-width: 100%;
}

.pd-shipping-html > :first-child {
    margin-top: 0 !important;
}

.pd-shipping-html > :last-child {
    margin-bottom: 0 !important;
}

.pd-shipping-html :where(h1, h2, h3, h4, h5, h6) {
    margin: 0 0 8px;
    color: #111111;
    line-height: 1.35;
}

.pd-shipping-html :where(p, li) {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

.pd-shipping-html :where(p, ul, ol) {
    margin-top: 0;
}

.pd-shipping-html :where(ul, ol) {
    margin-bottom: 0;
    padding-left: 20px;
}

.pd-shipping-html :where(img, svg, video, iframe, table) {
    max-width: 100%;
}

.pd-shipping-html :where(img, video, iframe) {
    display: block;
    height: auto;
    border-radius: 18px;
}

.pd-related__grid .pcard,
.pd-related__grid .pcard * {
    font-family: 'Manrope', sans-serif;
}

.pd-related__grid .pcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0f1623;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pd-related__grid .pcard:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.65);
}

.pd-related__grid .pcard__img-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    aspect-ratio: 1 / 1;
    border-radius: 18px 18px 0 0;
    border: 5px solid #ffffff;
}

.pd-related__grid .pcard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.32s ease;
}

.pd-related__grid .pcard:hover .pcard__img {
    transform: scale(1.04);
}

.pd-related__grid .pcard__btn-wish {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent !important;
    color: #64748b !important;
    border: none !important;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    line-height: 1;
    box-shadow: none;
}

.pd-related__grid .pcard__btn-wish:not(.is-active) {
    background: transparent !important;
    color: #64748b !important;
}

.pd-related__grid .pcard__btn-wish.is-active,
.pd-related__grid .pcard__btn-wish:hover {
    background: transparent !important;
    color: #dc2626 !important;
}

.pd-related__grid .pcard__btn-wish:hover {
    transform: scale(1.08);
}

.pd-related__grid .pcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
    background: #ffffff;
}

.pd-related__grid .pcard__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #64748b;
}

.pd-related__grid .pcard__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.pd-related__grid .pcard__name {
    flex: 1;
    color: #000000;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
}

.pd-related__grid .pcard__price {
    color: #000000;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    padding-top: 1px;
}

.pd-related__grid .pcard__actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 10px;
}

.pd-related__grid .pcard__btn-enquiry {
    flex: 1 1 100%;
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 14px;
    background: #007fbf;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, transform 0.18s ease;
}

.pd-related__grid .pcard__btn-enquiry:hover {
    background: rgb(128, 187, 250);
}

@media (max-width: 1100px) {
    .pd-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pd-main__visual {
        order: 1;
    }

    .pd-main__purchase {
        order: 2;
    }
}

@media (max-width: 768px) {
    .pd-main__visual .pd-gallery {
        gap: 12px;
    }

    .pd-page__head {
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .pd-breadcrumb {
        gap: 6px;
        font-size: 12px;
    }

    .pd-main__visual {
        order: 1;
    }

    .pd-main__purchase {
        order: 2;
    }

    .pd-gallery__stage {
        min-height: min(92vw, 620px);
        border-radius: 28px;
    }

    .pd-gallery__progress {
        top: 14px;
        left: 16px;
        right: 16px;
    }

    .pd-gallery__thumbs {
        left: 14px;
        right: 14px;
        bottom: 14px;
        justify-content: flex-start;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px;
    }

    .pd-gallery__thumb {
        width: 92px;
        height: 92px;
        flex: 0 0 92px;
        border-radius: 22px;
    }

    .pd-main .pd-product-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .pd-title-price-row {
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .pd-title-price-row .pd-product-title {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pd-title-price-row .pd-price-row {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .pd-size-options {
        gap: 12px;
    }

    .pd-size-btn {
        min-width: 70px;
        padding: 16px 20px;
        font-size: 17px;
    }

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

    .pd-purchase-panel__group--compact {
        padding: 18px 20px;
        border-radius: 22px;
    }

    .pd-main-wishlist {
        width: 58px;
        height: 58px;
    }

    .pd-shipping-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .pd-tabs__nav {
        overflow-x: auto;
    }

    .pd-tab {
        min-width: 140px;
        flex: 0 0 auto;
    }

    .pd-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pd-related__grid > .pcard:nth-child(n + 5) {
        display: none;
    }
}

@media (max-width: 540px) {
    .pd-main__visual .pd-gallery {
        gap: 12px;
    }

    .pd-main {
        gap: 24px;
    }

    .pd-gallery__stage {
        min-height: min(102vw, 500px);
        border-radius: 24px;
    }

    .pd-gallery__thumbs {
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 2px;
    }

    .pd-gallery__thumb {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
        border-radius: 18px;
    }

    .pd-gallery__arrow {
        display: none;
    }

    .pd-main .pd-product-title {
        font-size: 1.9rem;
    }

    .pd-main__purchase .pd-price {
        font-size: 1.9rem;
    }

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

    .pd-purchase-panel__group--compact {
        padding: 16px;
        border-radius: 18px;
    }

    .pd-size-options {
        gap: 10px;
    }

    .pd-size-btn {
        min-width: 58px;
        padding: 14px 16px;
        font-size: 15px;
    }

    .pd-summary__cta--split {
        gap: 12px;
    }

    .pd-enquiry-note {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .pd-main-wishlist {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .pd-accordion__summary {
        padding: 20px;
        font-size: 1.25rem;
    }

    .pd-accordion__content {
        padding: 0 20px 20px;
    }
}
