﻿@import url("/assets/css/theme-tokens.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background:
        radial-gradient(75rem 55rem at -6% 0%, #dce9ff 0%, transparent 45%),
        radial-gradient(75rem 55rem at 105% 0%, #ffe1e6 0%, transparent 44%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(216, 228, 243, 0.85);
}

.header-top {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--brand-ink);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
}

.brand-logo-img {
    height: 40px;
    max-width: 210px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(
        145deg,
        var(--brand-sky) 0%,
        var(--brand-cyan) 100%
    );
    box-shadow: 0 10px 22px rgba(45, 127, 249, 0.35);
}

.breadcrumb {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--brand-sky);
    text-decoration: none;
    font-weight: 700;
}

.breadcrumb-separator {
    color: #a4b4cb;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    margin-left: auto;
}

.mobile-dropdown {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 14px;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-links {
    display: grid;
    gap: 8px;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 40px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 24px;
    background:
        radial-gradient(
            38rem 24rem at -4% 0%,
            rgba(24, 72, 184, 0.13) 0%,
            transparent 52%
        ),
        radial-gradient(
            32rem 24rem at 100% 0%,
            rgba(183, 24, 53, 0.1) 0%,
            transparent 55%
        ),
        rgba(255, 255, 255, 0.93);
    border: 1px solid #dce8f7;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.product-detail::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(47, 102, 214, 0.18) 0%,
        rgba(47, 102, 214, 0) 75%
    );
    pointer-events: none;
}

.product-image {
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 22% 18%,
            rgba(24, 72, 184, 0.2) 0%,
            rgba(24, 72, 184, 0) 42%
        ),
        linear-gradient(145deg, #e8f3ff 0%, #f5f9ff 52%, #fff1f3 100%);
    display: grid;
    place-items: center;
    font-size: 110px;
    padding: 14px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-details {
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: 20px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1.18;
    color: var(--brand-ink);
    margin-bottom: 10px;
}

.product-supplier-info {
    display: none;
}

.supplier-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(
        145deg,
        var(--brand-sky) 0%,
        var(--brand-cyan) 100%
    );
}

.supplier-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-ink);
}

.supplier-type {
    font-size: 12px;
    color: var(--text-muted);
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #f1ddb7;
    background: #fff8ea;
    color: #80500a;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.stars {
    color: var(--brand-warm);
}

.product-price-section {
    margin: 22px 0;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, #edf4ff 0%, #f6fbff 65%, #fff5f7 100%);
    border: 1px solid #d8e8fd;
}

.price-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 38px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 10px;
}

.product-stock-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 12px;
}

.stock-available {
    background: #e9fff4;
    border: 1px solid #b7f3d6;
    color: var(--success);
}

.stock-low {
    background: #fff7e8;
    border: 1px solid #f3ddb5;
    color: #9b650f;
}

.stock-unavailable {
    background: #ffecec;
    border: 1px solid #f6c1c1;
    color: var(--danger);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 14px;
}

.trust-chip {
    border-radius: 999px;
    border: 1px solid #d8e5f8;
    background: #f5f9ff;
    color: #27497d;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.product-description,
.product-specs {
    background: #fff;
    border: 1px solid #e1eaf6;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

.description-title,
.specs-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-ink);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.description-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.65;
    white-space: pre-wrap;
}

.spec-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #d8e4f2;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.spec-value {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
}

.action-buttons {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    border-radius: 12px;
    border: none;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(
        145deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    box-shadow: 0 10px 20px rgba(24, 72, 184, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(24, 72, 184, 0.35);
}

.btn-secondary {
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #c0d5f4;
}

.related-section {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dce7f6;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--brand-ink);
    margin-bottom: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.product-card {
    background: #fff;
    border: 1px solid #dbe7f6;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 18px rgba(20, 42, 74, 0.08);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(20, 42, 74, 0.14);
}

.card-image {
    height: 140px;
    background: linear-gradient(145deg, #eaf2ff 0%, #ebfffc 100%);
    display: grid;
    place-items: center;
    font-size: 42px;
    padding: 8px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.card-info {
    padding: 10px;
}

.card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-ink);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.card-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary);
}

/* ── Professional Footer ── */
footer {
    margin-top: 56px;
    background: linear-gradient(145deg, #0e213b 0%, #18345a 100%);
    color: #e8f2ff;
    padding: 56px 24px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-wrap {
    margin-bottom: 14px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 5px 10px;
    border-radius: 10px;
}

.footer-brand-tagline {
    font-size: 13.5px;
    line-height: 1.65;
    color: #bdd1f4;
    max-width: 280px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-col-title {
    font-family: "Sora", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7fb3ff;
    margin-bottom: 12px;
}

.footer-link {
    font-size: 13.5px;
    color: #c5daff;
    text-decoration: none;
    padding: 3px 0;
    transition:
        color 0.18s,
        padding-left 0.18s;
    display: block;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-about-text {
    font-size: 13px;
    line-height: 1.65;
    color: #bdd1f4;
    margin: 0 0 14px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #cce0ff;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 0 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(200, 220, 255, 0.65);
}

.footer-bottom-sep {
    opacity: 0.5;
}

.footer-creator-inline {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #7fb3ff;
    opacity: 1;
}

@media (max-width: 900px) {
    .breadcrumb {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 12px 14px;
    }

    .logo {
        font-size: 21px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .container {
        padding: 20px 14px 34px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 18px;
    }

    .product-image {
        height: 290px;
        font-size: 80px;
        padding: 10px;
    }

    .product-name {
        font-size: 26px;
    }

    .product-price {
        font-size: 30px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .trust-row {
        gap: 6px;
    }

    .trust-chip {
        font-size: 11.5px;
        padding: 5px 9px;
    }

    .spec-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 10px;
    }

    footer {
        padding: 40px 16px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand-tagline {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 34px 14px 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
