/* Main Shared Styles */
:root {
    --primary: #0a0a0f;
    --primary-light: #16161d;
    --accent: #c8a45e;
    --accent-light: #d4b76a;
    --text: #1a1a1a;
    --text-muted: #666;
    --text-light: #999;
    --bg: #fff;
    --bg-alt: #fafafa;
    --border: #e8e8e8;
    --success: #2d8a5f;
    --warning: #b38600;
    --danger: #b32d2d;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* Header */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav>a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
}

.main-nav>a:hover,
.main-nav>a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.cart-btn.show {
    display: flex;
}

.cart-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    background: var(--accent);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.login-btn:hover {
    background: var(--accent-light);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: none;
}

.user-dropdown.show {
    display: block;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.user-btn i {
    font-size: 16px;
}

.user-btn .fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.user-dropdown.open .user-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
    overflow: hidden;
}

.user-dropdown.open .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.user-menu-header strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-menu-header small {
    color: var(--text-muted);
    font-size: 12px;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s;
}

.user-menu a:hover {
    background: var(--bg-alt);
}

.user-menu a i {
    width: 16px;
    color: var(--text-muted);
}

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.user-menu a.logout {
    color: #dc3545;
}

.user-menu a.logout i {
    color: #dc3545;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(200, 164, 94, 0.15);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    background: var(--accent);
    color: var(--primary);
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.btn-hero:hover {
    background: var(--accent-light);
}

.btn-hero-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.btn-hero-outline:hover {
    background: #fff;
    color: var(--primary);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.cat-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.cat-card:hover::before {
    transform: scaleX(1);
}

.cat-card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.cat-card:hover .cat-card-icon {
    background: var(--primary);
}

.cat-card-icon i {
    font-size: 22px;
    color: var(--primary);
    transition: color 0.3s;
}

.cat-card:hover .cat-card-icon i {
    color: #fff;
}

.cat-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cat-card p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-img {
    aspect-ratio: 1;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.add-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.add-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

.add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-sku {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
}

.product-price small {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-light);
}

.price-hidden {
    font-size: 13px;
    color: var(--accent);
}

.price-hidden a {
    color: var(--accent);
}

.btn-main {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.btn-main:hover {
    background: var(--primary-light);
    color: #fff;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-icon {
    color: var(--accent);
    font-size: 32px;
    margin-bottom: 16px;
}

.feature h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* CTA Register */
.cta-register {
    background: var(--bg-alt);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.cta-register h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cta-register p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cta-register .btn {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

/* Auth Pages (Login/Register) */
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
}

.login-header {
    background: var(--primary);
    padding: 40px;
    text-align: center;
}

.login-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 8px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.login-body {
    padding: 40px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
    margin-bottom: 16px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 10, 15, 0.08);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #1a1a24;
}

.login-footer {
    padding: 24px 40px;
    background: #fafafa;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.back-link:hover {
    color: var(--primary);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Footer */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 16px;
}

footer h5 {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 13px;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 0 20px;
    }

    .mobile-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 16px;
    }

    .main-nav.show {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Detail Specific Styles */
.breadcrumb-nav {
    padding: 40px 0 20px;
}

.breadcrumb {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item {
    font-size: 13px;
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding-right: 0.5rem;
    color: var(--text-light);
    content: "/";
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

.product-detail-container {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 60px;
}

.product-image-section {
    padding: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.product-image-section img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-image-section:hover img {
    transform: scale(1.05);
}

.product-info-section {
    padding: 60px 40px;
    border-left: 1px solid var(--border);
}

.product-sku-detail {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.product-title-detail {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
}

.product-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-alt);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.product-price-detail {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-price-detail span {
    color: var(--accent);
}

.product-price-note {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-available {
    background: #f0fff4;
    color: #2d8a5f;
    border: 1px solid #c6f6d5;
}

.stock-low {
    background: #fffcf0;
    color: #b38600;
    border: 1px solid #ffeeba;
}

.stock-out {
    background: #fff5f5;
    color: #b32d2d;
    border: 1px solid #feb2b2;
}

.product-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
}

.product-specs {
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.product-specs h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

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

.spec-label {
    color: var(--text-muted);
    font-weight: 500;
}

.spec-value {
    color: var(--primary);
    font-weight: 700;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.quantity-selector label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.quantity-input {
    width: 100px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
}

.btn-premium {
    padding: 18px 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.btn-premium:hover {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 15px 40px rgba(200, 164, 94, 0.4);
    transform: translateY(-3px);
}

.btn-premium:disabled {
    background: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.related-products {
    margin-top: 100px;
}

.related-products h4 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 40px;
}

/* Tech Banner */
.tech-service-banner {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border-radius: 24px;
    padding: 60px;
    margin-top: 80px;
    border: 1px solid rgba(200, 164, 94, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.ts-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.ts-icon {
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
    box-shadow: 0 15px 40px rgba(200, 164, 94, 0.4);
    flex-shrink: 0;
}

.ts-text {
    flex: 1;
}

.ts-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

.ts-text h3 span {
    color: var(--accent);
}

.ts-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 650px;
    line-height: 1.6;
}

.ts-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 18px 40px;
    border-radius: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
    font-size: 16px;
}

.ts-whatsapp:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.4);
}

/* Response Overrides for Product Detail */
@media (max-width: 992px) {
    .product-info-section {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 40px;
    }

    .product-image-section {
        min-height: auto;
        padding: 40px;
    }

    .product-title-detail {
        font-size: 2rem;
    }

    .ts-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .product-image-section {
        padding: 30px;
    }

    .product-info-section {
        padding: 30px;
    }
}

/* Products Page Specific Styles */
/* Sidebar Navigation */
.sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.sidebar-header {
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-header i {
    color: var(--accent);
    margin-right: 8px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Level 1 - Categories */
.nav-cat {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 14px;
}

.nav-cat:hover {
    background: var(--bg-alt);
}

.nav-cat.active {
    background: var(--primary);
    color: #fff;
}

.nav-cat i.icon {
    width: 28px;
    margin-right: 10px;
    font-size: 16px;
}

.nav-cat .arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-cat.open .arrow {
    transform: rotate(90deg);
}

/* Level 2 - Brands */
.nav-brands {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #f9f9f9;
}

.nav-brands.open {
    max-height: 2000px;
}

.nav-brand {
    display: flex;
    align-items: center;
    padding: 10px 16px 10px 48px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.nav-brand:hover {
    background: #f0f0f0;
    color: var(--accent);
}

.nav-brand.active {
    background: var(--accent);
    color: #fff;
}

.nav-brand .count {
    margin-left: auto;
    background: #e0e0e0;
    color: #666;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

.nav-brand.active .count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.nav-brand .arrow {
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s;
}

.nav-brand.open .arrow {
    transform: rotate(90deg);
}

/* Level 3 - Subcategories */
.nav-subcats {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f0f0f0;
}

.nav-subcats.open {
    max-height: 1000px;
}

.nav-subcat {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 72px;
    cursor: pointer;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s;
    font-size: 12px;
    color: var(--text-light);
}

.nav-subcat:hover {
    background: #e8e8e8;
    color: var(--accent);
}

.nav-subcat.active {
    background: #fff3cd;
    color: var(--accent);
    font-weight: 500;
}

.nav-subcat .count {
    margin-left: auto;
    font-size: 10px;
    color: #999;
}

.brands-loading {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* Filter Price */
.price-section {
    padding: 16px;
}

.price-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.price-row input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
}

/* Login Banner in Products */
.login-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.login-banner.hidden {
    display: none;
}

.login-banner h5 {
    margin: 0;
    font-size: 16px;
}

.login-banner p {
    margin: 4px 0 0;
    opacity: 0.9;
    font-size: 13px;
}

.login-banner .btn {
    background: #fff;
    color: #667eea;
    border: none;
    font-weight: 600;
}

/* Product Modal */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal-overlay.show {
    display: flex;
}

.product-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-alt);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.modal-close:hover {
    background: var(--border);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

.modal-img {
    background: var(--bg-alt);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.modal-detail {
    padding: 40px;
}

.modal-sku {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-price small {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

.modal-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
}

.modal-stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.modal-stock.out-stock {
    background: #f8d7da;
    color: #721c24;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
    max-height: 150px;
    overflow-y: auto;
}

.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.qty-selector button {
    background: var(--bg-alt);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
}

.qty-selector button:hover {
    background: var(--border);
}

.qty-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 600;
}

.modal-btn-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    min-width: 200px;
}

.modal-btn-cart:hover {
    background: var(--accent);
}

.modal-login-msg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.modal-login-msg a {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
}

.sidebar-filters {
    display: block;
}

@media (max-width: 768px) {
    .sidebar-filters {
        display: none;
    }

    .sidebar-filters.show {
        display: block;
    }
}

/* Fixes for Subcategories */
.nav-subcats {
    display: none;
    padding-left: 20px;
    margin-top: 5px;
    border-left: 1px solid var(--border);
    margin-left: 10px;
}

.nav-subcats.open {
    display: block;
    animation: slideDown 0.3s ease;
}

.nav-subcat {
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-subcat:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.nav-subcat.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-subcat .count {
    font-size: 10px;
    color: #999;
    margin-left: 4px;
}

/* Fix for Product Images in Grid */
.product-img {
    width: 100%;
    height: 250px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    /* Visual consistency border */
    border-radius: 4px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}