/* Graifurt-style product detail page */
.pd-page {
    --pd-accent: #FF3B30;
    --pd-accent-dark: #E0352B;
    --pd-accent-light: #fff1f0;
    --pd-accent-soft: #ffe4e2;
    background: #f8fafc;
    padding: 24px 0 56px;
    font-family: var(--gf-font, 'Inter Tight', system-ui, sans-serif);
    font-size: 15px;
    line-height: 1.5;
    color: #0f172a;
}

.pd-container {
    max-width: var(--site-max-width, 1600px);
    margin: 0 auto;
    padding: 0 24px;
}

.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.pd-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pd-breadcrumb a:hover {
    color: var(--pd-accent);
}

.pd-breadcrumb-sep {
    color: #cbd5e1;
    user-select: none;
}

.pd-breadcrumb-current {
    color: #0f172a;
    font-weight: 500;
}

.pd-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
}

.pd-gallery {
    padding: 32px;
    border-right: 1px solid #e2e8f0;
    background: #fff;
}

.pd-image-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.pd-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
}

.pd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pd-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.pd-thumb.is-active {
    border-color: var(--pd-accent);
    box-shadow: 0 0 0 2px var(--pd-accent-soft);
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-video-block {
    margin-top: 16px;
}

.pd-video-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #000;
}

.pd-video-wrap iframe,
.pd-video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}

.pd-no-image {
    color: #94a3b8;
    text-align: center;
    padding: 48px 20px;
}

.pd-no-image i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.pd-info {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--pd-accent);
    text-decoration: none;
}

.pd-category:hover {
    color: var(--pd-accent-dark);
    text-decoration: underline;
}

.pd-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.pd-brand {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-accent);
}

.pd-brand-label {
    color: var(--pd-accent);
    font-weight: 600;
}

.pd-price-block {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pd-price-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
}

.pd-price-old {
    font-size: 15px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 8px;
}

.pd-price-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #ea580c;
    background: #ffedd5;
    padding: 2px 8px;
    border-radius: 6px;
}

.pd-price-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.pd-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.pd-price-value.is-discount {
    color: #ea580c;
}

.pd-price-currency {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
}

.pd-price-try {
    font-size: 14px;
    color: #64748b;
    margin-left: auto;
}

.pd-price-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.pd-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.pd-desc p {
    margin: 0 0 0.65em;
}

.pd-desc p:last-child {
    margin-bottom: 0;
}

.pd-desc ul,
.pd-desc ol {
    margin: 0.35em 0 0.75em;
    padding-left: 1.25rem;
}

.pd-desc li + li {
    margin-top: 0.25em;
}

.pd-desc strong,
.pd-desc b {
    font-weight: 700;
    color: #1e293b;
}

.pd-desc em,
.pd-desc i {
    font-style: italic;
}

.pd-desc a {
    color: var(--pd-accent);
    text-decoration: underline;
}

.pd-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.pd-meta li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.pd-meta i {
    color: var(--pd-accent);
    font-size: 16px;
}

.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.pd-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-qty-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.pd-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.pd-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8fafc;
    color: var(--pd-accent);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-qty-btn:hover {
    background: var(--pd-accent-light);
}

.pd-qty-input {
    width: 52px;
    height: 36px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.pd-qty-input:focus {
    outline: none;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pd-btn-cart {
    flex: 1;
    min-width: 0;
    background: var(--pd-accent);
    color: #fff;
}

.pd-btn-cart:hover {
    background: var(--pd-accent-dark);
    color: #fff;
}

.pd-btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.pd-btn-outline {
    flex: 1;
    min-width: 0;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.pd-btn-outline:hover {
    border-color: var(--pd-accent);
    color: var(--pd-accent-dark);
}

.pd-btn-whatsapp {
    flex: 1;
    min-width: 0;
    background: #fff;
    color: #0f172a;
    border: 1.5px solid #25D366;
    white-space: nowrap;
}

.pd-btn-whatsapp i {
    color: #25D366;
    font-size: 1.15em;
}

.pd-btn-whatsapp:hover {
    background: #f0fdf4;
    color: #0f172a;
    border-color: #1ebe57;
}

.pd-btn-whatsapp:hover i {
    color: #1ebe57;
}

/* Image modal */
.pd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
}

.pd-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-modal-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    padding: 16px;
}

.pd-modal-inner img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    background: #fff;
}

.pd-modal-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    .pd-layout {
        grid-template-columns: 1fr;
    }

    .pd-gallery {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 24px;
    }

    .pd-info {
        padding: 24px;
    }

    .pd-title {
        font-size: 22px;
    }

    .pd-image-box {
        min-height: 280px;
    }
}

@media (max-width: 576px) {
    .pd-container {
        padding: 0 16px;
    }

    .pd-page {
        padding: 16px 0 40px;
    }

    .pd-btn-row {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .pd-btn-cart,
    .pd-btn-outline,
    .pd-btn-whatsapp {
        width: auto;
        flex: 1;
        min-width: 0;
        padding: 11px 12px;
        font-size: 13px;
    }
}

.pd-model-block {
    margin-bottom: 20px;
}

.pd-model-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.pd-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 6px;
}

.pd-model-btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    box-sizing: border-box;
    box-shadow: none;
}

.pd-model-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 11px;
}

.pd-model-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--pd-accent-dark);
}

.pd-model-stock {
    font-size: 10px;
    color: #94a3b8;
}

.pd-model-btn:hover:not(:disabled) {
    border-color: #fca5a5;
    background: #fff5f5;
}

.pd-model-btn.is-selected {
    background: var(--pd-accent-light);
    border-color: var(--pd-accent);
    box-shadow: inset 0 0 0 1px var(--pd-accent);
}

.pd-model-btn.is-out,
.pd-model-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f1f5f9;
}

.pd-model-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.35);
}

.pd-model-hint {
    margin: 8px 0 0;
    font-size: 11px;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .pd-model-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .pd-model-btn {
        min-height: 48px;
        padding: 5px 6px;
    }
}

.pd-btn-cart.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pd-related {
    margin-top: 32px;
}

.pd-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pd-related-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.pd-related-head a {
    font-size: 14px;
    font-weight: 600;
    color: var(--pd-accent);
    text-decoration: none;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.pd-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pd-related-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.pd-related-media {
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-related-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

.pd-related-placeholder {
    color: #cbd5e1;
    font-size: 28px;
}

.pd-related-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-related-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-related-price {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
