*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0d6e3f;
    --primary-dark: #094d2c;
    --primary-light: #e8f5ee;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --red: #dc2626;
    --text: #1a1a2e;
    --text-light: #64748b;
    --white: #ffffff;
    --bg: #f8fafc;
    --border: #e2e8f0;
    --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
header {
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.95);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo svg { width: 36px; height: 36px; }
.logo span { color: var(--accent); }
nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}
nav a:hover { background: var(--primary-light); color: var(--primary); }

/* BREADCRUMB */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 14px; height: 14px; color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* PRODUCT DETAIL */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Gallery */
.gallery { position: sticky; top: 96px; }
.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}
.gallery-main img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s;
    cursor: zoom-in;
}
.gallery-main:hover img { transform: scale(1.08); }
.gallery-thumbs {
    display: flex;
    gap: 12px;
}
.gallery-thumbs button {
    width: 90px;
    height: 90px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-thumbs button:hover,
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }

/* Info */
.product-info-section { padding-top: 8px; }
.product-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.product-status svg { width: 14px; height: 14px; }
.product-info-section h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
}
.brand-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.brand-line .brand-name {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 6px;
}
.brand-line .divider {
    width: 4px;
    height: 4px;
    background: var(--border);
    border-radius: 50%;
}
.brand-line .sku { color: var(--text-light); }

.price-box {
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.price-box .price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--red);
}
.price-box .price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Speed selector */
.option-group { margin-bottom: 24px; }
.option-group label {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.speed-options {
    display: flex;
    gap: 12px;
}
.speed-opt {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.speed-opt:hover { border-color: var(--primary); }
.speed-opt.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
.speed-opt .speed-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.speed-opt .speed-price {
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 600;
}
.speed-opt .speed-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Quantity */
.quantity-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.quantity-row label { font-weight: 700; font-size: 0.95rem; }
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.qty-control button {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text);
}
.qty-control button:hover { background: var(--primary-light); }
.qty-control input {
    width: 56px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    background: var(--white);
}
.qty-control input:focus { outline: none; }

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}
.btn-buy {
    flex: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    padding: 18px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(13,110,63,0.3);
}
.btn-buy:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,110,63,0.4);
}
.btn-buy svg { width: 22px; height: 22px; }
.btn-call {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding: 18px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-call:hover {
    background: var(--primary-light);
}
.btn-call svg { width: 20px; height: 20px; }

/* Delivery info */
.delivery-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.delivery-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.delivery-item:last-child { border-bottom: none; }
.delivery-item svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.delivery-item .label { font-size: 0.9rem; }
.delivery-item .label strong { display: block; font-size: 0.95rem; }
.delivery-item .label span { color: var(--text-light); font-size: 0.85rem; }

/* SPECS SECTION */
.specs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}
.tabs {
    display: flex;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
}
.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}
.tab-content.active { display: block; }

.spec-table {
    width: 100%;
    border-collapse: collapse;
}
.spec-table tr { border-bottom: 1px solid #f1f5f9; }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    width: 200px;
    border-radius: 8px 0 0 8px;
}
.spec-table td {
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.desc-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.desc-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}
.desc-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.desc-content ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}
.highlight-box {
    background: linear-gradient(135deg, var(--primary-light), #f0fdf4);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
}
.highlight-box p { color: var(--primary-dark); margin: 0; font-weight: 500; }

/* RELATED PRODUCTS */
.related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header .tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.related-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.related-card-img {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.related-card-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}
.related-card-img .no-img {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-card-img .no-img svg { width: 36px; height: 36px; color: var(--primary); }
.related-card-body { padding: 20px; }
.related-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}
.related-card-body h4 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.related-card-body .card-type {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.related-card-body .card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--red);
}
.related-card-body .card-specs {
    list-style: none;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.related-card-body .card-specs li {
    font-size: 0.75rem;
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-light);
}

/* FOOTER */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 48px 24px 28px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand .logo { color: var(--white); font-size: 1.3rem; margin-bottom: 14px; }
.footer-brand p { opacity: 0.8; font-size: 0.9rem; line-height: 1.7; max-width: 360px; }
footer h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--white);
    opacity: 0.75;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
}
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.footer-contact a { color: inherit; text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.footer-contact a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .gallery { position: static; }
    .action-buttons { flex-direction: column; }
    .footer-top { grid-template-columns: 1fr; gap: 24px; }
    .header-inner { height: 60px; }
    nav { display: none; }
    .spec-table th { width: 140px; }
    .product-info-section h1 { font-size: 1.5rem; }
}
