body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f7;
    margin: 0;
    padding: 0;
    color: #1d1d1f;
}

.page-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: #6e6e73;
    font-size: 14px;
}

.breadcrumb a {
    color: #6e6e73;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #0071e3;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
    gap: 30px;
    align-items: stretch;
}

.product-image-card,
.product-info-box,
.extra-card,
.related-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.product-image-card {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    background: radial-gradient(circle at top, rgba(0, 113, 227, 0.12), transparent 40%), linear-gradient(180deg, #fbfbfd 0%, #eef2f7 100%);
    overflow: hidden;
}

.product-image-card img {
    width: 100%;
    max-width: 460px;
    height: 460px;
    object-fit: contain;
}

.product-page-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.new-badge {
    background: #111111;
    color: #ffffff;
}

.lowstock-badge {
    background: #fff4db;
    color: #7a4a00;
}

.soldout-badge {
    background: #fdecec;
    color: #B00000;
}

.product-info-box {
    padding: 34px;
}

.product-eyebrow,
.section-eyebrow,
.info-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-eyebrow,
.section-eyebrow {
    color: #006edc;
    margin-bottom: 12px;
}

.product-info-box h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.product-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 4px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.price {
    margin: 18px 0 6px;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111111;
}

.product-status-row {
    margin-bottom: 22px;
}

.stock,
.delivery-note {
    margin: 0;
}

.stock {
    font-size: 15px;
    font-weight: 700;
}

.stock-ready {
    color: #1f7a37;
}

.stock-low {
    color: #9a6700;
}

.stock-out {
    color: #c62828;
}

.delivery-note {
    margin-top: 8px;
    color: #6e6e73;
    line-height: 1.6;
}

.product-reward-note {
    margin: 0 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.cart-note {
    margin: 0 0 2px;
    color: #6e6e73;
    font-size: 14px;
    line-height: 1.6;
}

.purchase-summary-card {
    margin: 4px 0 2px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.purchase-summary-row span {
    color: #6e6e73;
    font-size: 14px;
    line-height: 1.6;
}

.purchase-summary-row strong {
    color: #111111;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.description-box {
    margin: 24px 0 26px;
}

.description-box h3 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.description-box p {
    margin: 0;
    line-height: 1.75;
    color: #4b5563;
}

.product-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.info-card {
    padding: 18px 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.info-label {
    color: #6e6e73;
    margin-bottom: 8px;
}

.info-card strong {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    color: #111111;
}

.cart-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.cart-form label {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
}

.quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    margin-top: 2px;
}

.quantity-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #111111;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.quantity-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.cart-form input {
    width: 110px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background: #ffffff;
    color: #111111;
    box-sizing: border-box;
}

.cart-form input:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.product-action-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.product-action-row .primary-action-btn,
.product-action-row .secondary-action-btn {
    flex: 1 1 220px;
}

.primary-action-btn,
.secondary-action-btn,
.disabled-btn,
.related-link,
.popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-action-btn,
.secondary-action-btn,
.disabled-btn {
    min-height: 52px;
    padding: 0 22px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.primary-action-btn {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.primary-action-btn:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

.secondary-action-btn {
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.secondary-action-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.disabled-btn {
    background: #a1a1aa;
    color: #ffffff;
    cursor: not-allowed;
    width: 100%;
}

.primary-action-btn:disabled,
.secondary-action-btn:disabled,
.cart-form button:disabled {
    background: #a1a1aa;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.product-extra-section {
    margin-top: 30px;
}

.extra-card {
    padding: 32px;
}

.extra-card h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.extra-card p {
    margin: 0;
    color: #6e6e73;
    line-height: 1.75;
    max-width: 820px;
}

.related-products-section {
    margin-top: 38px;
}

.section-header-row {
    margin-bottom: 20px;
}

.section-header-row h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.related-card {
    overflow: hidden;
}

.related-image-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
    background: linear-gradient(180deg, #fbfbfd 0%, #eef2f7 100%);
}

.related-image-box img {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: contain;
}

.related-content {
    padding: 22px;
}

.related-content h3 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.related-price {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.related-stock {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
}

.related-link {
    padding: 12px 18px;
    background: #111111;
    color: #ffffff;
}

.related-link:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

.cart-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.cart-popup {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 30px 26px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: popupFade 0.3s ease;
}

.cart-popup h2 {
    margin: 0 0 12px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.cart-popup p {
    margin: 0 0 22px;
    color: #6e6e73;
    line-height: 1.65;
}

.cart-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn {
    min-width: 160px;
    padding: 13px 20px;
    font-size: 15px;
}

.popup-btn.primary-btn {
    background: #111111;
    color: #ffffff;
}

.popup-btn.primary-btn:hover {
    background: #2a2a2a;
}

.popup-btn.secondary-btn {
    background: #f3f4f6;
    color: #111111;
}

.popup-btn.secondary-btn:hover {
    background: #e5e7eb;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 960px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-image-card {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 24px 16px 60px;
    }

    .product-info-box,
    .extra-card,
    .related-content {
        padding: 24px 20px;
    }

    .product-image-card {
        padding: 24px;
        min-height: 340px;
    }

    .product-image-card img {
        height: 300px;
    }

    .product-action-row {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }

    .product-action-row .primary-action-btn,
    .product-action-row .secondary-action-btn {
        flex: none;
    }

    .primary-action-btn,
    .secondary-action-btn {
        flex: 1 1 140px;
        max-width: 200px;
        margin: 0;
        min-height: 52px;
        padding: 0 18px;
        font-size: 14px;
        white-space: nowrap;
    }

    .quantity-row {
        gap: 10px;
    }

    .quantity-btn {
        width: 44px;
        height: 44px;
    }

    .cart-form input {
        width: 90px;
        height: 44px;
    }

    .product-reward-note {
        display: flex;
        width: fit-content;
        max-width: 100%;
    }

    .cart-note {
        margin-bottom: 2px;
    }

    .product-meta-strip {
        gap: 8px;
    }

    .meta-pill {
        width: fit-content;
        max-width: 100%;
    }

    .purchase-summary-card {
        padding: 14px 16px;
    }

    .purchase-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
@media (max-width: 480px) {
    .product-action-row {
        flex-direction: column;
        align-items: center;
    }

    .primary-action-btn,
    .secondary-action-btn {
        width: 100%;
        max-width: 260px;
    }
}