/* Product detail — modern PDP layout (scoped) */
.product-pdp {
    --pd-bg: #faf9f7;
    --pd-surface: #ffffff;
    --pd-text: #1a1a1a;
    --pd-muted: #5c5c5c;
    --pd-line: #ebe8e3;
    --pd-accent: #2d4a3e;
    --pd-accent-hover: #1f352c;
    --pd-gold: #b8956a;
    --pd-radius: 20px;
    --pd-radius-sm: 12px;
    --pd-shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
    --pd-shadow-lg: 0 20px 56px rgba(26, 26, 26, 0.09);
    font-family: "Inter", sans-serif;
    background: var(--pd-bg);
    color: var(--pd-text);
    padding-bottom: 4rem;
}

.product-pdp *,
.product-pdp *::before,
.product-pdp *::after {
    box-sizing: border-box;
}

.product-pdp__toolbar {
    background: var(--pd-surface);
    border-bottom: 1px solid var(--pd-line);
    padding: 0.875rem 0;
    margin-top: 0;
    position: relative;
    z-index: 0;
}

.product-pdp__crumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--pd-muted);
}

.product-pdp__crumb a {
    color: var(--pd-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-pdp__crumb a:hover {
    color: var(--pd-accent);
}

.product-pdp__crumb-sep {
    color: #c4bfb8;
    user-select: none;
}

.product-pdp__crumb-current {
    color: var(--pd-text);
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-pdp__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 0;
}

.product-pdp__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}

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

    .product-pdp__toolbar {
        padding: 1rem 0;
    }

    .product-pdp__crumb {
        font-size: 0.7rem;
        line-height: 1.35;
    }
}

.product-pdp__media {
    position: sticky;
    top: 1rem;
}

@media (max-width: 900px) {
    .product-pdp__media {
        position: static;
    }
}

.product-pdp__figure {
    margin: 0;
    border-radius: var(--pd-radius);
    overflow: hidden;
    background: linear-gradient(145deg, #f3f1ed 0%, #faf9f7 100%);
    border: 1px solid var(--pd-line);
    box-shadow: var(--pd-shadow-lg);
    aspect-ratio: 4 / 5;
    max-height: min(640px, 85vh);
}

.product-pdp__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-pdp__figure:hover img {
    transform: scale(1.02);
}

.product-pdp__info {
    padding: 0.5rem 0 1rem;
}

.product-pdp__title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: var(--pd-text);
}

.product-pdp__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem 1rem;
    margin-bottom: 1.25rem;
}

.product-pdp__price-old {
    font-size: 1.05rem;
    color: #9a9590;
    text-decoration: line-through;
    font-weight: 500;
}

.product-pdp__price-current {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--pd-accent);
    letter-spacing: -0.02em;
}

.product-pdp__sale-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #c17a4a 0%, #a8643a 100%);
    border-radius: 999px;
}

.product-pdp__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-pdp__stock {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--pd-line);
    background: var(--pd-surface);
}

.product-pdp__stock--in {
    border-color: rgba(45, 74, 62, 0.25);
    background: rgba(45, 74, 62, 0.06);
    color: var(--pd-accent);
}

.product-pdp__stock--out {
    border-color: #e8d5d5;
    background: #fdf6f6;
    color: #a34444;
}

.product-pdp__stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}

.product-pdp__prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #44413d;
    margin-bottom: 2rem;
}

.product-pdp__prose p {
    margin: 0 0 1rem;
}

.product-pdp__prose p:last-child {
    margin-bottom: 0;
}

.product-pdp__prose ul {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}

.product-pdp__prose li {
    margin-bottom: 0.5rem;
}

.product-pdp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
}

.product-pdp .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.65rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.product-pdp .btn--primary {
    color: #fff;
    background: linear-gradient(165deg, var(--pd-accent) 0%, #243d33 100%);
    box-shadow:
        0 4px 14px rgba(45, 74, 62, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.product-pdp .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(45, 74, 62, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff;
}

.product-pdp .btn--primary:active {
    transform: translateY(0);
}

.product-pdp .btn--ghost {
    color: var(--pd-text);
    background: transparent;
    border: 1.5px solid var(--pd-line);
    box-shadow: none;
}

.product-pdp .btn--ghost:hover {
    border-color: var(--pd-gold);
    color: var(--pd-accent);
    background: rgba(184, 149, 106, 0.08);
}

.product-pdp__btn-icon {
    width: 1.1em;
    height: 1.1em;
    opacity: 0.9;
}

.product-pdp__buy-form {
    margin-bottom: 1rem;
}

.product-pdp__qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-pdp__qty-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pd-muted);
}

.product-pdp__qty-input {
    width: 5rem;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--pd-line);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.product-pdp__qty-input:focus {
    outline: none;
    border-color: var(--pd-accent);
}

.product-pdp__btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.product-pdp .btn--cart {
    color: #fff;
    background: linear-gradient(165deg, #1e3a32 0%, var(--pd-accent) 100%);
    box-shadow: 0 4px 14px rgba(45, 74, 62, 0.3);
}

.product-pdp .btn--cart:hover {
    transform: translateY(-2px);
    color: #fff;
}

.product-pdp .btn--buynow {
    color: var(--pd-accent);
    background: #fff;
    border: 2px solid var(--pd-accent);
    box-shadow: none;
}

.product-pdp .btn--buynow:hover {
    background: var(--pd-accent-soft);
    transform: translateY(-1px);
}

.product-pdp__cart-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--pd-radius-sm);
    border: 1px solid rgba(45, 74, 62, 0.2);
    background: linear-gradient(145deg, rgba(45, 74, 62, 0.08) 0%, rgba(45, 74, 62, 0.04) 100%);
}

.product-pdp__cart-status-icon {
    display: flex;
    color: var(--pd-accent);
    flex-shrink: 0;
}

.product-pdp__cart-status-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.product-pdp__cart-status-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pd-accent);
}

.product-pdp__cart-status-qty {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pd-text);
}

.product-pdp__cart-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-inline-start: auto;
}

.product-pdp__stepper-form {
    margin: 0;
}

.product-pdp__stepper-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 10px;
    border: 1.5px solid var(--pd-line);
    background: var(--pd-surface);
    color: var(--pd-text);
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.product-pdp__stepper-btn:hover:not(:disabled) {
    border-color: var(--pd-accent);
    color: var(--pd-accent);
    background: rgba(45, 74, 62, 0.06);
}

.product-pdp__stepper-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.product-pdp__stepper-value {
    min-width: 1.75rem;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--pd-text);
}

.product-pdp__cart-status-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pd-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.product-pdp__cart-status-link:hover {
    border-bottom-color: currentColor;
}

@media (max-width: 520px) {
    .product-pdp__cart-stepper {
        width: 100%;
        justify-content: flex-start;
        margin-inline-start: 0;
    }
}

.product-pdp__wish-form {
    margin-top: 0.75rem;
}

.product-pdp .btn--wishlist {
    background: var(--pd-surface);
    border: 1.5px solid var(--pd-line);
    color: var(--pd-text);
}

.product-pdp .btn--wishlist:hover {
    border-color: #c75a5a;
    color: #a34444;
}

.product-pdp .btn--wishlist.is-active {
    border-color: #c75a5a;
    background: #fdf2f2;
    color: #8b2929;
}

.product-pdp__oos {
    color: var(--pd-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-pdp__oos a {
    color: var(--pd-accent);
    font-weight: 600;
}

/* Related products */
.product-pdp__related {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--pd-line);
}

.product-pdp__related--bestsellers {
    margin-top: 2.5rem;
}

.product-pdp__related-sub {
    margin: -0.5rem 0 1.25rem;
    font-size: 0.9rem;
    color: var(--pd-muted);
    line-height: 1.5;
}

.product-pdp__related-title {
    font-family: "Poppins", sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}

.product-pdp__related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.product-card {
    border-radius: var(--pd-radius-sm);
    overflow: hidden;
    background: var(--pd-surface);
    border: 1px solid var(--pd-line);
    box-shadow: var(--pd-shadow);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pd-shadow-lg);
}

.product-card__link-img {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f1ed;
}

.product-card__link-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.product-card__body {
    padding: 1rem 1.1rem 1.15rem;
}

.product-card__title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card__title a:hover {
    color: var(--pd-accent);
}

.product-card__price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--pd-accent);
}

/* Not found */
.product-pdp--notfound .product-pdp__inner {
    padding-top: 3rem;
    text-align: center;
    max-width: 32rem;
}

.product-pdp--notfound h1 {
    font-family: "Poppins", sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.product-pdp--notfound p {
    color: var(--pd-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
