/* ============================================
   Product Detail Page (PDP)
   ============================================ */

.pdp-section {
    padding: 5.25rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 40% at 85% 10%, rgba(0, 87, 168, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 10% 90%, rgba(0, 63, 122, 0.2) 0%, transparent 65%),
        #060a12;
}

.pdp-container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pdp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pdp-breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.pdp-breadcrumb a:hover {
    color: #fff;
}

.pdp-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.25);
}

.pdp-breadcrumb .current {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.pdp-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.pdp-gallery {
    position: sticky;
    top: 5rem;
}

.pdp-gallery-main {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pdp-gallery-main img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.pdp-gallery-main .pdp-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0b2345, #0057A8);
    color: #fff;
    font-family: Outfit, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.pdp-badge-overlay {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 2;
}

.pdp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pdp-badge-highlight {
    background: rgba(201, 162, 39, 0.88);
    color: #fff;
}

.pdp-badge-category {
    background: rgba(0, 87, 168, 0.82);
    color: #fff;
}

/* Glass description / info card */
.pdp-info {
    position: relative;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    padding: 1.35rem 1.4rem 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdp-info::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.06) 42%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.pdp-info > * {
    position: relative;
    z-index: 1;
}

.pdp-store-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.35rem;
    transition: color 0.2s;
}

.pdp-store-link:hover {
    color: #fff;
}

.pdp-store-link i {
    font-size: 0.68rem;
}

.pdp-title {
    font-family: Outfit, sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.pdp-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.pdp-price {
    font-family: Outfit, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.pdp-stock-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.pdp-stock-tag.in-stock {
    background: rgba(39, 174, 96, 0.22);
    color: #9af0bc;
    border: 1px solid rgba(39, 174, 96, 0.35);
}

.pdp-stock-tag.out-of-stock {
    background: rgba(231, 76, 60, 0.22);
    color: #ffb4ab;
    border: 1px solid rgba(231, 76, 60, 0.35);
}

.pdp-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 0.75rem 0;
}

.pdp-description {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
    white-space: pre-line;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.pdp-cart {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.pdp-qty-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pdp-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.65rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.pdp-qty-btn {
    width: 2rem;
    height: 2.35rem;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: background 0.15s;
}

.pdp-qty-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pdp-qty-group input {
    width: 2.75rem;
    height: 2.35rem;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: transparent;
    outline: none;
}

.pdp-qty-group input::-webkit-outer-spin-button,
.pdp-qty-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdp-qty-group input[type='number'] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.pdp-cart .btn {
    flex: 1;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
}

.pdp-unavailable {
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-radius: 0.75rem;
    color: #ffb4ab;
    font-size: 0.84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pdp-trust {
    display: flex;
    gap: 0.85rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    flex-wrap: wrap;
}

.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.68);
}

.pdp-trust-item i {
    color: #7eb6ef;
    font-size: 0.8rem;
}

/* Related products from same store */
.pdp-related {
    margin-top: 2rem;
    padding: 1.35rem 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.15rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.pdp-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pdp-related-header h2 {
    font-family: Outfit, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-primary, #0F1C2E);
    margin: 0;
}

.pdp-related-header p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--color-text-secondary, #4A5B6E);
}

.pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.pdp-related-empty {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #4A5B6E);
    margin: 0;
}

@media (max-width: 1024px) {
    .pdp-grid {
        grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    }

    .pdp-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pdp-section {
        padding: 4.75rem 0 2rem;
    }

    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pdp-gallery {
        position: static;
    }

    .pdp-info {
        padding: 1.1rem 1.05rem 1.05rem;
    }

    .pdp-related {
        margin-top: 1.5rem;
        padding: 1.1rem 0.9rem 1.2rem;
    }

    .pdp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

@media (max-width: 420px) {
    .pdp-related-grid {
        grid-template-columns: 1fr;
    }
}
