/* ========================================
   CSS VARIABLES — LIGHT THEME
   ======================================== */
:root {
    --primary: #671C26;
    --primary-light: #8a2835;
    --primary-dark: #4a1520;
    --primary-glow: rgba(103, 28, 38, 0.25);
    --accent: #E6B325;
    --accent-hover: #d4a11e;
    --accent-light: rgba(230, 179, 37, 0.12);
    --white: #FFFFFF;
    --bg-main: #FFFFFF;
    --bg-section: #F4F6F8;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --text-primary: #1E1E24;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 12px 30px rgba(103, 28, 38, 0.3);
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.15);
    --hero-dark-bg: #1E1E24;
    --hero-dark-card: rgba(30, 30, 36, 0.95);
    --footer-bg: #121216;
    --footer-text: #94A3B8;
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-border: rgba(226, 232, 240, 0.8);
    --scrollbar-track: #F4F6F8;
    --scrollbar-thumb: #671C26;
    --star-color: #E6B325;
    --badge-sale-bg: var(--primary);
    --input-bg: #FFFFFF;
    --dropdown-bg: rgba(255, 255, 255, 0.95);
    --page-header-from: #0E1011;
    --page-header-mid: #671C26;
    --page-header-to: #0E1011;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   CSS VARIABLES — DARK THEME
   ======================================== */
.dark {
    --bg-main: #0E1011;
    --bg-section: #16191C;
    --bg-card: #1A1D21;
    --bg-elevated: #1E2126;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: #2D3142;
    --border-strong: #3D4155;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-primary: 0 12px 30px rgba(103, 28, 38, 0.5);
    --glass: rgba(14, 16, 17, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --hero-dark-bg: #0E1011;
    --hero-dark-card: rgba(14, 16, 17, 0.95);
    --footer-bg: #0A0B0C;
    --navbar-bg: rgba(14, 16, 17, 0.85);
    --navbar-border: rgba(45, 49, 66, 0.8);
    --scrollbar-track: #16191C;
    --input-bg: #1A1D21;
    --dropdown-bg: rgba(26, 29, 33, 0.95);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.text-accent { color: var(--accent) !important; }
.text-primary-color { color: var(--primary) !important; }

/* Tech numerals font */
.tech-font {
    font-family: 'Space Grotesk', 'Vazirmatn', sans-serif;
    font-weight: 700;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }
::selection { background: var(--accent); color: #fff; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(103, 28, 38, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
}

.nav-link-accent {
    color: var(--primary) !important;
    font-weight: 600;
}
.nav-link-accent:hover {
    color: var(--primary-light) !important;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(103, 28, 38, 0.04);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
}
.btn-light:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 179, 37, 0.3);
}

/* ========================================
   SECTION UTILITIES
   ======================================== */
.section-padding { padding: 6rem 0; }
.section-header { margin-bottom: 3.5rem; }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-desc, .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   1. STICKY NAVBAR — Glassmorphism
   ======================================== */
#mainNav {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navbar-border);
    padding: 14px 0;
    transition: var(--transition);
    z-index: 1000;
}
#mainNav.scrolled {
    background: var(--navbar-bg);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(103, 28, 38, 0.3);
}
.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.footer-brand .brand-logo {
    width: 38px;
    height: 38px;
}
.brand-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-primary);
}
.brand-accent { color: var(--primary); }

.dark .brand-text { color: #fff; }

#mainNav .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}
.dark #mainNav .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
}
#mainNav .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}
.dark #mainNav .navbar-nav .nav-link:hover,
.dark #mainNav .navbar-nav .nav-link.active {
    color: var(--accent) !important;
}
#mainNav .navbar-nav .nav-link:hover::after,
#mainNav .navbar-nav .nav-link.active::after {
    width: 60%;
}

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

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-right: 4px;
}
.cart-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
    border: 2px solid var(--bg-main);
}

.user-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 8px;
    background: var(--dropdown-bg);
    backdrop-filter: blur(10px);
}
.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    font-family: 'Vazirmatn';
    font-weight: 500;
    color: var(--text-primary);
}
.dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}
.dark .theme-toggle {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--accent);
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 6px 10px;
}
.navbar-toggler-icon {
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
}
.dark .navbar-toggler {
    border-color: rgba(255,255,255,0.2);
}

/* ========================================
   2. HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    padding: 5rem 0 6rem;
    background: radial-gradient(circle at 10% 20%, rgba(103, 28, 38, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(230, 179, 37, 0.04) 0%, transparent 40%),
                var(--bg-main);
    min-height: 100vh;
    display: grid;
    place-items: center;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-grid > * {
    min-width: 0;
}
.dark .hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(103, 28, 38, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(230, 179, 37, 0.06) 0%, transparent 40%),
                var(--bg-main);
}

.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1.5rem;
}
.hero-content h1 span {
    color: var(--primary);
}
.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.9;
}
.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 3rem;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.dark .stat-number { color: var(--accent); }
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual — Tech Card */
.hero-image-container,
.hero-visual {
    position: relative;
    background: linear-gradient(145deg, #1E1E24, #2A2E3B);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    overflow: hidden;
}
.hero-3d-element {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
}
.hero-cube-1 {
    font-size: 8rem;
    color: var(--accent);
    animation: float1 6s ease-in-out infinite;
    position: absolute;
    opacity: 0.9;
    filter: drop-shadow(0 0 30px rgba(230,179,37,0.3));
}
.hero-cube-2 {
    font-size: 5rem;
    color: rgba(255,255,255,0.15);
    animation: float2 8s ease-in-out infinite;
    position: absolute;
    top: 20%;
    right: 10%;
}
.hero-cube-3 {
    font-size: 4rem;
    color: rgba(103, 28, 38, 0.4);
    animation: float3 7s ease-in-out infinite;
    position: absolute;
    bottom: 20%;
    left: 10%;
}

/* Printers Display */
.printer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.2rem;
    margin-bottom: 1.8rem;
}
.printer-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    background: rgba(103, 28, 38, 0.3);
    color: #FF8A8A;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(103, 28, 38, 0.5);
}
.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: pulse-glow 1.5s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px var(--primary-glow); }
    50% { box-shadow: 0 0 30px rgba(103, 28, 38, 0.5); }
}

.printer-display {
    text-align: center;
    padding: 2.5rem 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.printer-display i.main-icon {
    font-size: 4.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(230,179,37,0.5));
}
.laser-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: scan 3s ease-in-out infinite alternate;
}
@keyframes scan {
    0% { top: 20%; opacity: 0.2; }
    50% { opacity: 1; }
    100% { top: 80%; opacity: 0.2; }
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.8rem;
}
.spec-box {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.spec-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}
.spec-label {
    font-size: 0.75rem;
    color: #94A3B8;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}
.hero-wave svg { display: block; width: 100%; }
.min-vh-75 { min-height: 75vh; }

@keyframes float1 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes float2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(-5deg); } }
@keyframes float3 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-25px) rotate(10deg); } }

/* ========================================
   3. TRUST BAR
   ======================================== */
.trust-bar {
    background-color: var(--bg-section);
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition);
}
.trust-item:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.trust-icon {
    width: 54px;
    height: 54px;
    background: var(--bg-card);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    border: 1px solid rgba(103, 28, 38, 0.1);
}
.trust-item h5, .trust-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.trust-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   4. SERVICES — Info Box Style
   ======================================== */
.services-section {
    background-color: var(--bg-main);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.info-box, .service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.info-box::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}
.info-box:hover, .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(103, 28, 38, 0.3);
}
.info-box:hover::before, .service-card:hover::before {
    transform: scaleX(1);
}

.info-box-header { margin-bottom: 1.5rem; }

.info-box-icon, .service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.info-box:hover .info-box-icon,
.service-card:hover .service-icon {
    background-color: var(--primary);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}

.info-box h3, .service-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}
.info-box p, .service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.info-box-footer {
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.info-box-footer i {
    color: var(--primary);
    transition: var(--transition);
}
.info-box:hover .info-box-footer i {
    transform: translateX(-6px);
}

.service-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}
.service-link:hover { color: var(--accent-hover); }

/* ========================================
   5. HOW IT WORKS — Process Steps
   ======================================== */
.how-it-works-section {
    background-color: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 45px;
    right: 15%;
    left: 15%;
    height: 2px;
    border-top: 2px dashed var(--border);
    z-index: 1;
}
@media (max-width: 992px) {
    .process-steps::before { display: none; }
}

.step-card {
    background: var(--bg-card);
    padding: 2.5rem 1.8rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 0 8px rgba(103, 28, 38, 0.08);
    transition: var(--transition);
}
.step-card:hover .step-number {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.step-icon {
    width: 65px;
    height: 65px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 18px;
}
.step-card h4, .step-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}
.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   6. MATERIALS & TECH TABS
   ======================================== */
.materials-section {
    background-color: var(--bg-main);
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Vazirmatn', sans-serif;
}
.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.tab-content:not(:has(.tab-pane)) {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content:not(:has(.tab-pane)).active {
    display: block;
}
.tab-content:has(.tab-pane) {
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.tech-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(103, 28, 38, 0.4);
}
.tech-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}
.tech-title, .tech-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tech-desc, .tech-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}
.tech-specs-list {
    list-style: none;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}
.tech-specs-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}
.tech-specs-list i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Material Cards */
.material-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    transition: var(--transition);
    height: 100%;
}
.material-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.material-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}
.material-badge.engineering { background: #e3f2fd; color: #1565c0; }
.material-badge.general { background: #e8f5e9; color: #2e7d32; }
.material-badge.flexible { background: #fff3e0; color: #e65100; }
.material-badge.resin { background: #fce4ec; color: #c62828; }
.material-card h4 { font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.material-card p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 12px; }
.material-props { list-style: none; padding: 0; margin: 0; }
.material-props li { font-size: 0.85rem; color: var(--text-secondary); padding: 3px 0; }
.material-props li i { color: var(--accent); margin-left: 6px; font-size: 0.75rem; }

/* Tech Header (old style) */
.tech-card-wrapper { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); height: 100%; }
.tech-header {
    padding: 30px;
    text-align: center;
    color: #fff;
}
.tech-header.fdm { background: linear-gradient(135deg, #0E1011, #671C26); }
.tech-header.sla { background: linear-gradient(135deg, #E6B325, #d4a11e); }
.tech-header i { font-size: 2.5rem; margin-bottom: 10px; }
.tech-header h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 5px; }
.tech-subtitle { font-size: 0.85rem; opacity: 0.8; }
.tech-body { padding: 25px; background: var(--bg-card); }
.tech-specs { display: grid; gap: 10px; }
.spec { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tech-materials { display: flex; flex-wrap: wrap; gap: 8px; }
.material-tag {
    background: var(--bg-section);
    color: var(--text-primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ========================================
   7. PORTFOLIO
   ======================================== */
.portfolio-section {
    background-color: var(--bg-section);
    border-top: 1px solid var(--border);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.portfolio-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(103, 28, 38, 0.3);
}
.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-card:hover .portfolio-image img {
    transform: scale(1.08);
}
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-placeholder i { font-size: 3rem; color: var(--text-muted); }

.portfolio-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(30, 30, 36, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.15);
}
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 16, 17, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-info {
    padding: 1.8rem;
}
.portfolio-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}
.portfolio-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.portfolio-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
}
.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   8. CTA SECTION
   ======================================== */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(160deg, #0E1011 0%, #2a1218 50%, #0E1011 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 179, 37, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}
.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: #fff;
}
.cta-box p {
    color: #CBD5E1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
}
.cta-content p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.cta-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Dropzone Teaser */
.dropzone-teaser {
    border: 2px dashed rgba(230, 179, 37, 0.5);
    background: rgba(230, 179, 37, 0.06);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.dropzone-teaser:hover {
    background: rgba(230, 179, 37, 0.12);
    border-color: var(--accent);
    transform: scale(1.01);
}
.dropzone-teaser.dragover {
    background: rgba(230, 179, 37, 0.2);
    border-color: var(--accent);
    border-style: solid;
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(230, 179, 37, 0.25);
}
.dropzone-teaser.uploading {
    border-color: #3b82f6;
    border-style: solid;
    background: rgba(59, 130, 246, 0.08);
    cursor: wait;
    pointer-events: none;
}
.dropzone-teaser.success {
    border-color: #22c55e;
    border-style: solid;
    background: rgba(34, 197, 94, 0.1);
    cursor: default;
    pointer-events: none;
}
.dropzone-teaser.error {
    border-color: #ef4444;
    border-style: solid;
    background: rgba(239, 68, 68, 0.08);
}
.dropzone-teaser i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}
.dropzone-teaser.uploading i { color: #3b82f6; }
.dropzone-teaser.success i { color: #22c55e; }
.dropzone-teaser.error i { color: #ef4444; }
.dropzone-teaser h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}
.dropzone-teaser span {
    font-size: 0.85rem;
    color: #94A3B8;
    display: block;
}
.dropzone-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.4em;
}
.dropzone-teaser.uploading .dropzone-status { color: #3b82f6; }
.dropzone-teaser.success .dropzone-status { color: #22c55e; }
.dropzone-teaser.error .dropzone-status { color: #ef4444; }

.dropzone-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.dropzone-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 99px;
    overflow: hidden;
}
.dropzone-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 99px;
    transition: width 0.2s ease;
}
.dropzone-teaser.success .dropzone-progress-fill {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}
.dropzone-progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    min-width: 42px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ========================================
   9. FAQ
   ======================================== */
.faq-section {
    background-color: var(--bg-main);
    padding: 6rem 0;
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--bg-card);
}
.faq-question {
    padding: 1.4rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: color 0.2s ease, background 0.2s ease;
}
.faq-question:hover { color: var(--accent); }
.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent);
    flex-shrink: 0;
}
.faq-item.faq-open .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--bg-section);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 0 1.8rem;
}
.faq-item.faq-open .faq-answer {
    max-height: 600px;
    padding: 1.4rem 1.8rem;
    border-top: 1px solid var(--border);
}

/* ========================================
   10. PAGE HEADER (Inner Pages)
   ======================================== */
.page-header {
    background: linear-gradient(160deg, var(--page-header-from) 0%, var(--page-header-mid) 50%, var(--page-header-to) 100%);
    padding: 120px 0 30px;
    color: #fff;
}
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.breadcrumb { margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.6); }
.breadcrumb-item.active { color: var(--accent); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ========================================
   11. PRODUCTS
   ======================================== */
.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    position: sticky;
    top: 90px;
}
.filter-sidebar h4 { font-size: 1rem; font-weight: 700; margin-bottom: 15px; color: var(--text-primary); }
.category-filter { list-style: none; padding: 0; }
.category-filter li a {
    display: block;
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.category-filter li a:hover, .category-filter li a.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.product-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(103, 28, 38, 0.3);
}
.product-image { position: relative; overflow: hidden; aspect-ratio: 1; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-placeholder i { font-size: 3rem; color: var(--text-muted); }

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
.product-badge.sale {
    background: var(--badge-sale-bg);
    color: #fff;
}
.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    transition: var(--transition);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
}
.dark .product-actions { background: rgba(14, 16, 17, 0.9); }
.product-card:hover .product-actions { bottom: 0; }

.btn-action {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}
.btn-action:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.product-info { padding: 18px; }
.product-category {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
}
.product-info h5 { font-size: 1rem; font-weight: 700; margin: 6px 0; color: var(--text-primary); }
.product-info h5 a:hover { color: var(--accent); }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.product-tech { font-size: 0.8rem; color: var(--text-secondary); }
.product-tech i { margin-left: 4px; }
.product-rating i { font-size: 0.7rem; color: var(--star-color); }
.product-price { display: flex; align-items: center; gap: 10px; }
.current-price { font-weight: 800; color: var(--accent); font-size: 1rem; }
.compare-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; }
.product-color-row { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
.color-swatch-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    cursor: pointer;
}
.color-swatch {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.color-swatch:hover { transform: scale(1.15); }
.dark .color-swatch, .dark .color-swatch-sm { border-color: #1E293B; }

.color-picker-options { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.color-option { position: relative; cursor: pointer; line-height: 0; }
.color-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.color-option-swatch {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.color-option:hover .color-option-swatch { transform: scale(1.1); }
.color-option.selected .color-option-swatch {
    box-shadow: 0 0 0 3px var(--accent), 0 0 0 1px rgba(0,0,0,0.12);
    transform: scale(1.1);
}
.color-selected-name { display: inline-block; margin-top: 8px; font-size: 0.85rem; color: var(--text-secondary); }
.dark .color-option-swatch { border-color: #1E293B; }
.cart-item-color { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.order-item-color { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* ========================================
   12. PRODUCT DETAIL
   ======================================== */
.product-detail-image { position: relative; border-radius: 20px; overflow: hidden; }
.main-image { width: 100%; border-radius: 20px; }
.product-placeholder-large {
    width: 100%;
    height: 400px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}
.product-placeholder-large i { font-size: 5rem; color: var(--text-muted); }

.product-gallery-thumbs { display: flex; gap: 10px; }
.thumb-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}
.thumb-image:hover, .thumb-image.active { border-color: var(--accent); opacity: 1; }
.btn-zoom {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 5;
}
.btn-zoom:hover { background: var(--accent); color: #fff; }
.dark .btn-zoom { background: rgba(30,41,59,0.9); color: #fff; }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px;
}
.lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lb-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}
.lb-close:hover { background: var(--accent); }
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}
.lb-nav:hover { background: var(--accent); }
.lb-prev { right: 24px; }
.lb-next { left: 24px; }
@media (max-width: 576px) {
    .lb-prev { right: 8px; }
    .lb-next { left: 8px; }
    .lightbox { padding: 20px; }
}

.product-detail-info { padding-left: 20px; }
.product-category-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}
.product-detail-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.product-detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.product-detail-rating i { color: var(--star-color); font-size: 0.9rem; }
.product-detail-rating span { color: var(--text-secondary); font-size: 0.9rem; }
.views-count { margin-right: auto; }
.product-detail-price { margin-bottom: 15px; }
.product-detail-price .current-price { font-size: 1.8rem; }
.product-short-desc { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }

.product-specs { background: var(--bg-section); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.spec-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-secondary); }
.spec-value { font-weight: 600; color: var(--text-primary); }

.add-to-cart-form { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-section);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}
.qty-btn:hover { background: var(--accent); color: #fff; }
.quantity-selector input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
    background: var(--input-bg);
    color: var(--text-primary);
}

/* Product Tabs */
.product-tabs { background: var(--bg-section); border-radius: 20px; padding: 20px; }
.product-tabs .nav-tabs { border-bottom: 2px solid var(--border); }
.product-tabs .nav-tabs .nav-link {
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 24px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
}
.product-tabs .nav-tabs .nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}
.product-description { padding: 20px 0; line-height: 2; color: var(--text-secondary); }
.product-description h1, .product-description h2, .product-description h3,
.article-detail-content h1, .article-detail-content h2, .article-detail-content h3 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 1.5em 0 0.6em;
    line-height: 1.6;
}
.product-description h1, .article-detail-content h1 { font-size: 1.6rem; }
.product-description h2, .article-detail-content h2 { font-size: 1.35rem; }
.product-description h3, .article-detail-content h3 { font-size: 1.15rem; }
.product-description ul, .product-description ol,
.article-detail-content ul, .article-detail-content ol {
    padding-right: 1.5rem;
    margin: 0.8em 0;
}
.product-description li, .article-detail-content li { margin-bottom: 0.4em; }
.product-description table, .article-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.product-description th, .product-description td,
.article-detail-content th, .article-detail-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    color: var(--text-primary);
}
.product-description th, .article-detail-content th { background: var(--bg-section); font-weight: 700; }
.product-description pre, .article-detail-content pre {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
}
.product-description code, .article-detail-content code {
    font-family: 'Consolas', 'Menlo', monospace;
    font-size: 0.9em;
    color: var(--accent);
}
.product-description pre code, .article-detail-content pre code { color: var(--text-primary); }
.product-description blockquote, .article-detail-content blockquote {
    border-right: 4px solid var(--accent);
    background: var(--bg-section);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 1em 0;
    color: var(--text-secondary);
}
.product-description a, .article-detail-content a { color: var(--accent); }
.product-description hr, .article-detail-content hr { border-color: var(--border); margin: 1.5em 0; }
.specs-table td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.specs-table td:first-child { font-weight: 600; width: 150px; background: var(--bg-section); }

/* Reviews */
.reviews-list { margin-bottom: 30px; }
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-user { display: flex; align-items: center; gap: 8px; }
.review-user i { font-size: 1.5rem; color: var(--accent); }
.review-rating i { font-size: 0.8rem; color: var(--star-color); }
.review-date { color: var(--text-muted); font-size: 0.8rem; margin-right: 10px; }
.review-comment { color: var(--text-primary); line-height: 1.8; }
.no-reviews { text-align: center; padding: 30px; }

/* ========================================
   13. CART
   ======================================== */
.cart-items { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.cart-header-row { display: flex; padding: 15px 20px; background: var(--bg-section); font-weight: 700; font-size: 0.85rem; color: var(--text-secondary); }
.cart-col-product { flex: 3; }
.cart-col-price { flex: 1; text-align: center; }
.cart-col-qty { flex: 1; text-align: center; }
.cart-col-total { flex: 1; text-align: center; }
.cart-col-action { flex: 0.5; text-align: center; }
.cart-item { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-image { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; margin-left: 15px; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-placeholder { width: 100%; height: 100%; background: var(--bg-section); display: flex; align-items: center; justify-content: center; }
.cart-item-info h5 { font-size: 0.95rem; margin-bottom: 4px; color: var(--text-primary); }
.cart-item-tech { font-size: 0.8rem; color: var(--text-secondary); }
.mobile-label { display: none; font-weight: 600; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.btn-remove { color: #dc3545; font-size: 0.9rem; transition: var(--transition); }
.btn-remove:hover { color: #a71d2a; }
.quantity-selector-sm { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.quantity-selector-sm button { width: 30px; height: 30px; border: none; background: var(--bg-section); cursor: pointer; font-size: 0.9rem; color: var(--text-primary); }
.quantity-selector-sm input { width: 40px; height: 30px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 0.85rem; -moz-appearance: textfield; background: var(--input-bg); color: var(--text-primary); }

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    position: sticky;
    top: 90px;
}
.cart-summary h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-primary); }
.summary-row.discount { color: #28a745; }
.summary-row.total { font-size: 1.2rem; font-weight: 800; }

/* ========================================
   14. AUTH
   ======================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-section);
    padding: 100px 0 40px;
}
.auth-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
    border: 1px solid var(--border);
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}
.auth-header h2 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.auth-header p { color: var(--text-secondary); }
.auth-footer { text-align: center; margin-top: 20px; }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ========================================
   15. PROFILE
   ======================================== */
.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--accent);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { width: 100%; height: 100%; background: var(--bg-section); display: flex; align-items: center; justify-content: center; }
.avatar-placeholder i { font-size: 2.5rem; color: var(--text-secondary); }
.profile-menu { list-style: none; padding: 0; margin-top: 20px; text-align: right; }
.profile-menu li a { display: block; padding: 10px 15px; border-radius: 8px; color: var(--text-primary); transition: var(--transition); }
.profile-menu li a:hover, .profile-menu li a.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.profile-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.profile-form-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }

/* ========================================
   16. CHECKOUT
   ======================================== */
.checkout-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.checkout-form-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.checkout-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; position: sticky; top: 90px; }
.checkout-summary h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.checkout-items { margin-bottom: 15px; }
.checkout-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.checkout-item-name { font-size: 0.9rem; }
.checkout-item-qty { color: var(--text-secondary); font-size: 0.85rem; }
.checkout-item-price { font-weight: 600; font-size: 0.9rem; }

/* ========================================
   17. ORDERS
   ======================================== */
.orders-table { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.orders-table th { background: var(--primary); color: #fff; padding: 14px 20px; font-weight: 700; font-size: 0.9rem; }
.orders-table td { padding: 14px 20px; vertical-align: middle; color: var(--text-primary); }
.order-status { padding: 4px 14px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-paid { background: #d4edda; color: #155724; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-reviewing { background: #e8daef; color: #6c3483; }
.status-quoted { background: #d6eaf8; color: #1a5276; }
.status-printing { background: #fdebd0; color: #935116; }
.status-completed { background: #d5f5e3; color: #1e8449; }

.order-detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.order-detail-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; border-bottom: 1px solid var(--border); }
.order-detail-header h3 { font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--text-primary); }
.order-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; }
.order-info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 15px; color: var(--text-primary); }
.order-info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-primary); }
.order-info-row:last-child { border-bottom: none; }

/* ========================================
   18. ARTICLES
   ======================================== */
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: var(--transition); height: 100%; }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.article-image { aspect-ratio: 16/9; overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.article-card:hover .article-image img { transform: scale(1.05); }
.article-placeholder { width: 100%; height: 100%; background: var(--bg-section); display: flex; align-items: center; justify-content: center; }
.article-placeholder i { font-size: 2.5rem; color: var(--text-muted); }
.article-content { padding: 20px; }
.article-category { display: inline-block; background: var(--accent-light); color: var(--accent); padding: 3px 12px; border-radius: 50px; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.article-content h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.article-content h4 a:hover { color: var(--accent); }
.article-content p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }
.article-meta { display: flex; gap: 15px; margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); }

.article-detail-image { width: 100%; border-radius: 20px; margin-bottom: 25px; }
.article-detail-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; color: var(--text-primary); }
.article-detail-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-detail-content { line-height: 2; color: var(--text-secondary); }

.related-articles { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 25px; position: sticky; top: 90px; }
.related-articles h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.related-article-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.related-article-item:last-child { border-bottom: none; }
.related-article-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.related-article-item h6 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.related-article-item h6 a:hover { color: var(--accent); }

/* ========================================
   19. CATEGORY DESCRIPTION
   ======================================== */
.category-description {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 30px;
}
.category-description p { color: var(--text-secondary); line-height: 1.9; margin: 0; }

/* ========================================
   20. EMPTY STATES
   ======================================== */
.empty-cart, .empty-state { padding: 60px 0; }

/* ========================================
   21. FOOTER
   ======================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top { padding: 60px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-brand .brand-text { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-desc { line-height: 1.8; margin-bottom: 20px; font-size: 0.9rem; }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-link:hover { background: var(--primary); transform: translateY(-2px); }
.footer-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-right: 5px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact li i { color: var(--accent); width: 20px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { margin: 0; }

/* ========================================
   22. CUSTOM ORDERS
   ======================================== */
.custom-order-info .info-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
}
.info-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; color: var(--text-primary); }
.steps-mini { display: flex; gap: 20px; flex-wrap: wrap; }
.step-mini { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-primary); }
.step-num {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 35px; }
.form-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    color: var(--text-primary);
}

.pending-file-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.pending-file-icon {
    font-size: 1.8rem;
    color: #22c55e;
    flex-shrink: 0;
}
.pending-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pending-file-info strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    word-break: break-all;
}
.pending-file-info span {
    font-size: 0.8rem;
    color: #6b7280;
}

.custom-order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.custom-order-card:hover { box-shadow: var(--shadow-lg); }
.custom-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0;
}
.custom-order-header h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; color: var(--text-primary); }
.order-badge { font-size: 0.75rem; padding: 4px 12px; border-radius: 50px; white-space: nowrap; }
.custom-order-body { padding: 15px 20px; }
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
.info-item { font-size: 0.88rem; color: var(--text-primary); }
.info-label { color: var(--text-secondary); margin-left: 5px; }
.admin-response-box {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}
.admin-response-box.response-note { border-right: 3px solid var(--accent); }
.admin-response-box h6 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--accent); }
.response-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.response-item { display: flex; align-items: center; gap: 10px; color: var(--text-primary); }
.response-item i { font-size: 1.2rem; color: var(--accent); }
.response-item small { display: block; color: var(--text-secondary); font-size: 0.75rem; }
.response-item strong { font-size: 0.95rem; }
.response-item.price-highlight strong.price-big { color: var(--accent); font-size: 1.1rem; }
.custom-order-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* co-stepper */
.status-badge-lg { font-size: 0.85rem; padding: 6px 16px; border-radius: 50px; }
.co-stepper {
    display: flex;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 24px;
    overflow-x: auto;
}
.co-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
    flex-shrink: 0;
}
.co-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-section);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2px solid var(--border);
    transition: var(--transition);
}
.co-step.active .co-step-dot { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-light); }
.co-step.done .co-step-dot { background: #28a745; color: #fff; border-color: #28a745; }
.co-step-label { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); text-align: center; white-space: nowrap; }
.co-step.active .co-step-label { color: var(--accent); }
.co-step.done .co-step-label { color: #28a745; }
.co-step-line { flex: 1; height: 3px; background: var(--border); margin-top: 18px; border-radius: 2px; min-width: 24px; }
.co-step-line.done { background: #28a745; }

/* co-alert */
.co-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.co-alert i:first-child { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.co-alert strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.co-alert p { margin: 0; font-size: 0.88rem; color: var(--text-secondary); }
.co-alert-danger { background: #fdf0f0; border-color: #f5c6cb; color: #721c24; }
.co-alert-danger i:first-child { color: #dc3545; }
.co-alert-warning { background: #fff8e1; border-color: #ffeaa7; color: #856404; }
.co-alert-warning i:first-child { color: var(--accent); }
.co-alert-success { background: #eafaf1; border-color: #c3e6cb; color: #155724; }
.co-alert-success i:first-child { color: #28a745; }
.co-alert-info { background: #eef4fc; border-color: #bee5eb; color: #0c5460; }
.co-alert-info i:first-child { color: #17a2b8; }

/* co-pay-banner */
.co-pay-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.co-pay-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(230, 179, 37, 0.15);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.co-pay-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 30px;
    flex-wrap: wrap;
}
.co-pay-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}
.co-pay-text { flex: 1; min-width: 140px; }
.co-pay-text h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.co-pay-text p { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.co-pay-price { text-align: center; min-width: 120px; }
.co-pay-price-label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.co-pay-price-value { display: block; font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.co-pay-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}
.co-pay-btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,179,37,0.4); }

/* co-card */
.co-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.co-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-section);
}
.co-card-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.co-card-header h4 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--text-primary); }
.co-card-sub { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-top: 1px; }
.co-card-body { padding: 25px; }

/* co-info-grid */
.co-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-section);
    border-radius: 12px;
    padding: 14px 16px;
}
.co-info-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.co-info-label { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 1px; }
.co-info-value { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }

/* co-description / co-file */
.co-description-block, .co-desc-block {
    background: var(--bg-section);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--border);
}
.co-desc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.co-desc-header i { color: var(--accent); }
.co-desc-body { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.9; }
.co-desc-note { border-right: 3px solid var(--accent); }

.co-file-block {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-section);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 16px 20px;
}
.co-file-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.co-file-info { flex: 1; }
.co-file-name { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.co-file-type { display: block; font-size: 0.78rem; color: var(--text-secondary); }
.co-file-download {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.co-file-download:hover { background: var(--accent-hover); transform: scale(1.1); }

/* co-quote-grid */
.co-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-quote-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-section);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
}
.co-quote-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.co-quote-label { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 1px; }
.co-quote-value { display: block; font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.co-quote-price { background: var(--accent-light); border-color: var(--accent); }
.co-quote-price .co-quote-icon { background: var(--accent); color: #fff; border-color: var(--accent); }
.co-quote-price-value { color: var(--accent) !important; font-size: 1.05rem !important; }

/* co-empty-state */
.co-empty-state { text-align: center; padding: 40px 20px; }
.co-empty-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}
.co-empty-state h5 { font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.co-empty-state p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.co-empty-dots { display: flex; justify-content: center; gap: 6px; }
.co-empty-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: coDot 1.4s ease-in-out infinite;
}
.co-empty-dots span:nth-child(2) { animation-delay: 0.2s; }
.co-empty-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes coDot { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* co-sidebar */
.co-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.co-sidebar-header {
    text-align: center;
    padding: 28px 20px 20px;
    background: linear-gradient(160deg, #0E1011, #671C26);
    color: #fff;
}
.co-sidebar-avatar {
    width: 56px;
    height: 56px;
    background: rgba(230,179,37,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin: 0 auto 10px;
}
.co-sidebar-header h5 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.co-sidebar-id { font-size: 0.8rem; opacity: 0.6; }
.co-sidebar-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.co-status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.co-status-text { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.co-sidebar-rows { padding: 16px 20px; }
.co-s-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.co-s-row:last-child { border-bottom: none; }
.co-s-row-icon { color: var(--accent); font-size: 0.85rem; width: 20px; text-align: center; flex-shrink: 0; }
.co-s-label { display: block; font-size: 0.75rem; color: var(--text-secondary); }
.co-s-value { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.co-s-tracking { direction: ltr; font-family: monospace; letter-spacing: 0.5px; }
.co-s-row-success .co-s-row-icon { color: #28a745; }
.co-sidebar-price {
    text-align: center;
    padding: 18px 20px;
    background: var(--accent-light);
    border-top: 1px solid var(--border);
}
.co-spl-label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.co-spl-value { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.co-spl-value small { font-size: 0.7rem; font-weight: 500; }
.co-sidebar-actions { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.co-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}
.co-action-pay {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
}
.co-action-pay:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,179,37,0.4); }
.co-action-back {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.co-action-back:hover { background: var(--bg-section); color: var(--accent); }

/* PAYMENT */
.payment-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.payment-header { background: linear-gradient(160deg, #0E1011, #671C26); color: #fff; padding: 35px 30px; text-align: center; }
.payment-header h3 { font-weight: 800; margin-bottom: 5px; }
.payment-header p { opacity: 0.7; margin: 0; }
.payment-body { padding: 30px; }
.payment-order-title { text-align: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.payment-order-title h5 { font-weight: 700; margin: 0; color: var(--text-primary); }
.payment-summary { background: var(--bg-section); border-radius: 12px; padding: 15px; margin-bottom: 20px; }
.payment-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; color: var(--text-primary); }
.payment-total { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.payment-total span:first-child { font-weight: 600; color: var(--text-primary); }
.total-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.payment-note { background: var(--bg-section); border-radius: 12px; padding: 12px 15px; }
.payment-note h6 { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; color: var(--accent); }
.payment-note p { margin: 0; font-size: 0.88rem; color: var(--text-secondary); }
.payment-methods { padding: 15px; background: var(--bg-section); border-radius: 12px; }
.payment-methods h6 { font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }

/* co-table */
.co-table-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.co-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.co-table thead th { background: var(--primary); color: #fff; padding: 14px 18px; font-weight: 600; font-size: 0.82rem; text-align: right; white-space: nowrap; }
.co-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.co-table tbody tr:last-child { border-bottom: none; }
.co-table tbody tr:hover { background: var(--accent-light); }
.co-table tbody td { padding: 16px 18px; vertical-align: middle; color: var(--text-primary); }
.co-t-title { font-weight: 700; font-size: 0.95rem; }
.co-t-date { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

/* co-kv-grid */
.co-kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; }
.co-kv { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--bg-card); }
.co-kv-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.co-kv-label i { color: var(--accent); font-size: 0.72rem; }
.co-kv-value { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.co-kv-highlight { background: var(--accent-light); }
.co-kv-price { color: var(--accent) !important; font-size: 1.1rem !important; }

/* co-section-block */
.co-section-block { padding: 18px 20px; border-top: 1px solid var(--border); }
.co-section-label { font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; color: var(--text-primary); }
.co-section-label i { color: var(--accent); margin-left: 6px; }
.co-section-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.9; }
.co-section-note { border-left: 3px solid var(--accent); margin: 16px 18px 0; border-radius: 0 0 12px 12px; border-top: none; padding-top: 14px; }

/* ========================================
   FORMS
   ======================================== */
.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 10px 15px;
    font-family: 'Vazirmatn';
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-primary);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--text-primary); }
.form-text { font-size: 0.8rem; margin-top: 5px; color: var(--text-secondary); }
.alert { border-radius: 12px; border: none; }

.dark .form-text { color: #94A3B8; }
.dark .form-control::placeholder, .dark .form-select::placeholder { color: #6B7280; }
.dark .form-control option, .dark .form-select option { background: var(--input-bg); color: var(--text-primary); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .nav-actions-mobile {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-section { min-height: auto; display: block; }
}
@media (max-width: 768px) {
    .section-padding { padding: 4rem 0; }
    .hero-section { min-height: 100svh; display: grid; place-items: center; padding: 5rem 0 2rem; }
    .hero-content { text-align: center; }
    .hero-title { font-size: 1.8rem; }
    .hero-content p { font-size: 1rem; }
    .hero-stats { flex-wrap: wrap; gap: 16px; margin-top: 1.5rem; }
    .hero-visual {
        padding: 1rem;
        min-height: auto;
        border-radius: 16px;
    }
    .hero-3d-element {
        min-height: auto;
    }
    .printer-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.8rem;
    }
    .printer-header > div:last-child {
        font-size: 0.7rem;
    }
    .printer-display {
        padding: 1rem 0.6rem;
    }
    .printer-display i.main-icon {
        font-size: 2.5rem;
    }
    .printer-display h3 { font-size: 1rem !important; }
    .printer-display p { font-size: 0.75rem !important; }
    .spec-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }
    .spec-box { padding: 0.5rem; }
    .spec-value { font-size: 0.85rem; }
    .spec-label { font-size: 0.65rem; }
    .nav-actions { gap: 2px; }
    .cart-header-row { display: none !important; }
    .cart-item { flex-wrap: wrap; gap: 10px; }
    .cart-col-product { flex: 1 1 100%; }
    .mobile-label { display: inline; }
    .product-detail-info { padding-left: 0; margin-top: 20px; }
    .footer-grid, .footer-top .row { grid-template-columns: 1fr; }
    .order-info-grid { grid-template-columns: 1fr; }
    .response-grid { grid-template-columns: 1fr; }
    .co-info-grid { grid-template-columns: 1fr; }
    .co-quote-grid { grid-template-columns: 1fr; }
    .co-kv-grid { grid-template-columns: 1fr; }
    .co-stepper { padding: 20px 12px; gap: 0; }
    .co-step { min-width: 44px; }
    .co-step-dot { width: 32px; height: 32px; font-size: 0.75rem; }
    .co-step-label { font-size: 0.62rem; }
    .co-step-line { min-width: 12px; }
    .co-pay-inner { flex-direction: column; text-align: center; }
    .co-sidebar { position: static; }
    .steps-mini { flex-direction: column; gap: 10px; }
    .cta-content h2, .cta-box h2 { font-size: 1.5rem; }
    .orders-table { font-size: 0.85rem; }
    .footer-top { padding: 40px 0 30px; }
}
@media (min-width: 993px) {
    .nav-actions-mobile { display: none !important; }
    .mobile-nav-extras { display: none !important; }
}

/* ========================================
   DARK MODE — FORM & TEXT READABILITY
   ======================================== */
.dark .text-muted { color: #94A3B8 !important; }
.dark .breadcrumb-item a { color: #CBD5E1; }
.dark .breadcrumb-item.active { color: var(--accent); }
.dark .breadcrumb-item + .breadcrumb-item::before { color: #64748B; }
.dark .product-tech { color: #CBD5E1; }
.dark .orders-table td { color: var(--text-primary); }
.dark .product-category { color: #94A3B8; background: rgba(255,255,255,0.08); }
.dark .badge { color: #fff; }
.dark .empty-state h3 { color: var(--text-primary); }
.dark .empty-state p { color: #94A3B8; }

/* Dark mode tables */
.dark .table { color: var(--text-primary); }
.dark .table > :not(caption) > * > * { color: var(--text-primary); background-color: transparent; }
.dark .table > thead { --bs-table-bg: transparent; }
.dark .table tbody tr { border-color: var(--border); }
.dark .table tfoot td { color: var(--text-primary); }

/* Dark mode alerts */
.dark .co-alert { color: #CBD5E1; }
.dark .co-alert p { color: #94A3B8; }
.dark .co-alert-danger { background: rgba(220,53,69,0.15); border-color: rgba(220,53,69,0.3); color: #FCA5A5; }
.dark .co-alert-danger p { color: #FCA5A5; }
.dark .co-alert-warning { background: rgba(230,179,37,0.15); border-color: rgba(230,179,37,0.3); color: #FDE68A; }
.dark .co-alert-warning p { color: #FDE68A; }
.dark .co-alert-success { background: rgba(40,167,69,0.15); border-color: rgba(40,167,69,0.3); color: #86EFAC; }
.dark .co-alert-success p { color: #86EFAC; }
.dark .co-alert-info { background: rgba(23,162,184,0.15); border-color: rgba(23,162,184,0.3); color: #67E8F9; }
.dark .co-alert-info p { color: #67E8F9; }

/* Dark mode order info cards */
.dark .order-info-card p { color: #CBD5E1; }
.dark .order-items-table table { color: var(--text-primary); }

/* Dark mode checkout/payment */
.dark .checkout-item-qty { color: #94A3B8; }
.dark .payment-note p { color: #CBD5E1; }
.dark .payment-methods h6 { color: var(--text-primary); }
.dark .form-check-label { color: var(--text-primary); }

/* Dark mode page header */
.dark .page-header { background: var(--bg-section); }
.dark .page-header h1 { color: var(--text-primary); }
