/* Product detail page */
.pd-page {
    padding: 28px 0 80px;
    background:
        radial-gradient(circle at top left, rgba(227, 30, 36, 0.05), transparent 28%),
        linear-gradient(180deg, #f7f7f8 0%, #fff 40%);
}

.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 24px;
}

.pd-breadcrumb a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
}

.pd-breadcrumb a:hover {
    color: var(--hottex-red);
}

.pd-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: start;
}

.pd-gallery-main {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.pd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.pd-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 999px;
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pd-thumb {
    width: 78px;
    height: 78px;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.pd-thumb.active,
.pd-thumb:hover {
    border-color: var(--hottex-red);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-info h1 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 10px 0 12px;
}

.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pd-category {
    background: #fff1f1;
    color: var(--hottex-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 7px 10px;
    border-radius: 999px;
}

.pd-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.pd-stock.in {
    color: #15803d;
}

.pd-stock.out {
    color: #b91c1c;
}

.pd-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #666;
    font-size: 13px;
    margin-bottom: 18px;
}

.pd-price-box {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.pd-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--hottex-red);
    line-height: 1;
}

.pd-price-old {
    margin-top: 6px;
    color: #999;
    text-decoration: line-through;
    font-size: 15px;
}

.pd-price-note {
    margin-top: 8px;
    color: #777;
    font-size: 12px;
}

.pd-short {
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
}

.pd-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.pd-qty-row label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pd-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.pd-qty-btn {
    width: 42px;
    height: 46px;
    border: 0;
    background: #f5f5f5;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.pd-qty input {
    width: 64px;
    height: 46px;
    border: 0;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.pd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pd-btn-cart,
.pd-btn-buy {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.pd-btn-cart {
    background: #111;
    color: #fff;
}

.pd-btn-buy {
    background: linear-gradient(90deg, #e31e24, #b31419);
    color: #fff;
}

.pd-btn-cart:disabled,
.pd-btn-buy:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pd-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.pd-auth-hint {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7f7;
    border: 1px solid #ffd0d2;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.pd-auth-hint a {
    color: var(--hottex-red);
    font-weight: 800;
}

.pd-link-quote,
.pd-link-cart {
    color: #333;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.pd-link-quote:hover,
.pd-link-cart:hover {
    color: var(--hottex-red);
}

.pd-trust {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.pd-trust i {
    color: var(--hottex-red);
    width: 18px;
}

.pd-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-top: 42px;
}

.pd-panel {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 24px;
}

.pd-panel h2 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.pd-description {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.pd-specs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-specs li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.pd-specs li:last-child {
    border-bottom: 0;
}

.pd-specs strong {
    color: #222;
}

.pd-specs span {
    color: #666;
    text-align: right;
}

.pd-standards {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 14px;
    margin: 0 0 14px;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.pd-standards i {
    color: #e31e24;
}

.pd-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 8px;
}

.pd-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.45;
}

.pd-features i {
    color: #16a34a;
    margin-top: 3px;
}

.pd-variant-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.pd-variant-meta div {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px 12px;
}

.pd-variant-meta span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    font-weight: 700;
    margin-bottom: 4px;
}

.pd-variant-meta strong {
    font-size: 13px;
    color: #222;
    font-weight: 700;
}

.pd-options {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
}

.pd-option-block {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 12px 14px;
}

.pd-option-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #777;
    margin-bottom: 10px;
}

.pd-option-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-chip {
    border: 1px solid #d8d8d8;
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: 0.15s ease;
}

.pd-chip:hover {
    border-color: #999;
}

.pd-chip.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.pd-chip-color {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pd-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    display: inline-block;
}

.pd-chip-color.is-active .pd-swatch {
    border-color: rgba(255,255,255,0.55);
}

.pd-datasheet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #b91c1c;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.pd-datasheet:hover {
    text-decoration: underline;
}

.pd-subhead {
    margin: 18px 0 8px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 575px) {
    .pd-variant-meta {
        grid-template-columns: 1fr;
    }
}

.pd-empty {
    color: #777;
    margin: 0;
}

.pd-related {
    margin-top: 48px;
}

.pd-related-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 18px;
}

.pd-related-head h2 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

.pd-related-head a {
    color: var(--hottex-red);
    font-weight: 700;
    text-decoration: none;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pd-related-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.pd-related-image {
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f6f6f7;
    margin-bottom: 12px;
}

.pd-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-related-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    min-height: 42px;
}

.pd-related-price {
    color: var(--hottex-red);
    font-weight: 800;
}

@media (max-width: 991px) {
    .pd-layout,
    .pd-details-grid {
        grid-template-columns: 1fr;
    }

    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .pd-actions {
        grid-template-columns: 1fr;
    }

    .pd-related-grid {
        grid-template-columns: 1fr;
    }
}
