/**
 * E-commerce product detail — Amazon.in inspired
 */
.pdp {
    --amz-bg: #eaeded;
    --amz-white: #fff;
    --amz-text: #0f1111;
    --amz-muted: #565959;
    --amz-link: #007185;
    --amz-link-hover: #c7511f;
    --amz-orange: #ff9900;
    --amz-yellow: #ffd814;
    --amz-yellow-hover: #f7ca00;
    --amz-yellow-border: #fcd200;
    --amz-deal-red: #cc0c39;
    --amz-price-deal: #b12704;
    --amz-green: #007600;
    --amz-border: #d5d9d9;
    --amz-font: "Amazon Ember", Arial, sans-serif;

    background: var(--amz-bg);
    padding: 88px 0 2.5rem;
    font-family: var(--amz-font);
    color: var(--amz-text);
    min-height: 60vh;
}

.pdp-fluid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .pdp-fluid { padding: 0 24px; }
}

.pdp-breadcrumb {
    background: var(--amz-white);
    padding: 10px 16px;
    font-size: 12px;
    color: var(--amz-muted);
    border: 1px solid var(--amz-border);
    margin-bottom: 12px;
}

.pdp-breadcrumb a {
    color: var(--amz-link);
    text-decoration: none;
}

.pdp-breadcrumb a:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

.pdp-breadcrumb span { margin: 0 4px; }

.pdp-card {
    background: var(--amz-white);
    border: 1px solid var(--amz-border);
    padding: 20px;
    margin-bottom: 16px;
}

.pdp-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 992px) {
    .pdp-main {
        grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }
}

/* Media column */
.pdp-media__view-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pdp-media__tab {
    border: 1px solid var(--amz-border);
    background: var(--amz-white);
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 20px;
    color: var(--amz-text);
}

.pdp-media__tab.is-active {
    border-color: var(--amz-orange);
    box-shadow: 0 0 0 1px var(--amz-orange) inset;
    font-weight: 600;
}

.pdp-media__stage {
    position: relative;
    border: 1px solid var(--amz-border);
    background: var(--amz-white);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pdp-media__stage img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.pdp-media__panel { display: none; width: 100%; }
.pdp-media__panel.is-active { display: flex; align-items: center; justify-content: center; }

.pdp-360 {
    width: 100%;
    user-select: none;
    touch-action: none;
    cursor: grab;
    text-align: center;
    padding: 12px;
}

.pdp-360.is-dragging { cursor: grabbing; }

.pdp-360 img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    pointer-events: none;
}

.pdp-360__hint {
    font-size: 12px;
    color: var(--amz-muted);
    margin-top: 8px;
}

.pdp-360__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 17, 17, 0.75);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.pdp-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pdp-thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border: 2px solid var(--amz-border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: var(--amz-white);
    padding: 0;
}

.pdp-thumb.is-active {
    border-color: var(--amz-orange);
    box-shadow: 0 0 0 1px var(--amz-orange);
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Buy box */
.pdp-buy__title {
    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 400;
    margin: 0 0 6px;
}

.pdp-buy__brand {
    font-size: 13px;
    color: var(--amz-link);
    margin-bottom: 8px;
}

.pdp-buy__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--amz-link);
}

.pdp-stars {
    display: inline-flex;
    gap: 1px;
}

.pdp-star {
    width: 16px;
    height: 16px;
    background: var(--amz-orange);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.pdp-star--empty { background: #ddd; }

.pdp-buy__price-block { margin-bottom: 16px; }

.pdp-price-deal {
    font-size: 13px;
    color: var(--amz-deal-red);
    margin-bottom: 4px;
}

.pdp-price-current {
    font-size: 1.75rem;
    color: var(--amz-price-deal);
    line-height: 1.2;
}

.pdp-price-current--normal { color: var(--amz-text); }

.pdp-price-mrp {
    font-size: 13px;
    color: var(--amz-muted);
    margin-top: 4px;
}

.pdp-price-mrp s { color: var(--amz-muted); }

.pdp-price-off {
    font-size: 13px;
    color: var(--amz-deal-red);
}

.pdp-buy__facts {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.pdp-buy__facts dt {
    font-weight: 700;
    display: inline;
}

.pdp-buy__facts dd {
    display: inline;
    margin: 0 0 4px;
    color: var(--amz-muted);
}

.pdp-buy__facts dl { margin: 0; }

.pdp-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}

.pdp-qty-select {
    padding: 6px 10px;
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    background: #f0f2f2;
    font-size: 14px;
}

.pdp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.pdp-btn-cart,
.pdp-btn-buy {
    flex: 1 1 140px;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.pdp-btn-cart {
    background: var(--amz-yellow);
    border: 1px solid var(--amz-yellow-border);
    color: var(--amz-text);
}

.pdp-btn-cart:hover { background: var(--amz-yellow-hover); }

.pdp-btn-buy {
    background: var(--amz-orange);
    color: var(--amz-text);
}

.pdp-btn-buy:hover { filter: brightness(0.95); }

.pdp-btn-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdp-trust {
    font-size: 12px;
    color: var(--amz-muted);
    line-height: 1.8;
}

.pdp-trust b { color: var(--amz-green); font-weight: 700; }

.pdp-out-stock {
    background: #fff4f4;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Stacked product detail sections */
.pdp-detail-section {
    margin-bottom: 16px;
}

.pdp-detail-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--amz-text);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--amz-orange);
}

.pdp-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdp-info-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e7e7e7;
    font-size: 14px;
    line-height: 1.5;
}

.pdp-info-list li:last-child {
    border-bottom: none;
}

.pdp-info-list__label {
    flex: 0 0 200px;
    font-weight: 700;
    color: var(--amz-text);
}

.pdp-info-list__value {
    flex: 1 1 200px;
    color: var(--amz-muted);
    min-width: 0;
}

.pdp-detail-content {
    font-size: 14px;
    line-height: 1.75;
    color: var(--amz-text);
}

.pdp-detail-content p { margin: 0 0 0.75em; }
.pdp-detail-content ul,
.pdp-detail-content ol {
    margin: 0.5em 0;
    padding-left: 1.25em;
}
.pdp-detail-content ul { list-style: disc; }
.pdp-detail-content ol { list-style: decimal; }
.pdp-detail-content a { color: var(--amz-link); }

@media (max-width: 575px) {
    .pdp-info-list__label {
        flex: 0 0 100%;
    }
}

/* Detail tabs — legacy, kept for reference */
.pdp-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--amz-border);
    margin-bottom: 0;
}

.pdp-tabs__btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 18px;
    font-size: 14px;
    cursor: pointer;
    color: var(--amz-muted);
    margin-bottom: -1px;
}

.pdp-tabs__btn.is-active {
    color: var(--amz-orange);
    border-bottom-color: var(--amz-orange);
    font-weight: 600;
}

.pdp-tabs__panel {
    display: none;
    padding: 20px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--amz-text);
}

.pdp-tabs__panel.is-active { display: block; }

.pdp-tabs__panel ul { padding-left: 1.25em; }
.pdp-tabs__panel a { color: var(--amz-link); }

.pdp-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pdp-spec-table th,
.pdp-spec-table td {
    border: 1px solid var(--amz-border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.pdp-spec-table th {
    background: #f7fafa;
    width: 35%;
    font-weight: 600;
}

.pdp-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdp-download-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    color: var(--amz-link);
    text-decoration: none;
    font-size: 13px;
    background: #f7fafa;
}

.pdp-download-btn:hover {
    background: #edf1f1;
}

/* Related products */
.pdp-related__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 14px;
}

.pdp-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .pdp-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pdp-related-card {
    border: 1px solid var(--amz-border);
    background: var(--amz-white);
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: box-shadow 0.15s;
}

.pdp-related-card:hover {
    box-shadow: 0 2px 8px rgba(15, 17, 17, 0.12);
}

.pdp-related-card__img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.pdp-related-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pdp-related-card__name {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdp-related-card__price {
    font-size: 14px;
    color: var(--amz-price-deal);
    font-weight: 700;
}

.pdp-related__all {
    display: inline-block;
    margin-top: 16px;
    color: var(--amz-link);
    font-size: 13px;
    text-decoration: none;
}

.pdp-related__all:hover { color: var(--amz-link-hover); text-decoration: underline; }

.pdp-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 12px;
}

.pdp-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
