/* T-Doc Professional IT Website Styles */
/* Brand Colors: Deep Blue (#0a1628), Electric Blue (#00bfff), Orange Accent (#ff6b35) */

:root {
    /* Primary Colors - T-Doc Green (darker emerald) */
    --primary: #00b300;
    --primary-dark: #009900;
    --primary-light: #00cc00;
    
    /* Secondary Colors - Silver/Gray */
    --secondary: #c0c0c0;
    --secondary-dark: #a0a0a0;
    --secondary-light: #d0d0d0;
    
    /* Background Colors - Black Theme */
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a8b4c4;
    --text-muted: #6b7a8f;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Fonts */
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(0, 179, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-x: hidden;
}

/* Light mode overrides (toggled via JS class) */
body.light-mode .card,
body.light-mode .form-input,
body.light-mode .form-select,
body.light-mode textarea.form-input {
    border-color: rgba(0,0,0,0.12);
}
body.light-mode .form-input,
body.light-mode .form-select,
body.light-mode textarea.form-input {
    background: rgba(0,0,0,0.03);
    color: var(--text-primary);
}
body.light-mode .form-input:focus,
body.light-mode .form-select:focus {
    border-color: var(--primary);
}
body.light-mode .btn-outline {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}
body.light-mode .card {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 { color: var(--text-primary); }
body.light-mode p { color: var(--text-secondary); }
body.light-mode .header { border-bottom: 1px solid rgba(0,0,0,0.08); }
body.light-mode .header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important; }
body.light-mode .flash-message,
body.light-mode .flash-close { color: white; }


a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Product Detail Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}
.product-detail-grid img,
.product-detail-grid video {
    max-width: 100%;
}
.product-main-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: var(--bg-darker);
}
.product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.product-thumb:hover {
    border-color: var(--primary);
}
.product-actions-row {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

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

.preloader-inner span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-darker);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    background: var(--menu-bg, rgba(10, 22, 40, 0.98));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.header-top {
    background: var(--menu-top-bg, var(--bg-darker));
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.contact-info {
    display: flex;
    gap: var(--space-lg);
}

.contact-info a {
    color: var(--menu-top-text, var(--text-secondary));
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.contact-info a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.header-actions .btn-link {
    color: var(--menu-top-text, var(--text-secondary));
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header-actions .btn-link:hover {
    color: var(--primary);
}

.user-greeting {
    color: var(--menu-top-text, var(--primary));
    font-weight: 500;
}

/* Navbar */
.navbar {
    padding: var(--space-md) 0;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--menu-text, var(--text-primary));
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--menu-text, var(--text-primary));
    padding: var(--space-sm) 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--menu-hover, var(--primary));
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--menu-hover, var(--primary));
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.cart-icon {
    position: relative;
    color: var(--cart-icon-color, var(--text-primary));
    font-size: 1.25rem;
    padding: var(--space-sm);
}

.cart-icon:hover {
    color: var(--menu-hover, var(--primary));
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--cart-badge-bg, var(--secondary));
    color: var(--cart-badge-text, white);
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--menu-text, var(--text-primary));
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-darker);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--bg-darker);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Flash Messages */
.flash-message {
    padding: var(--space-md) 0;
    position: relative;
}

.flash-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flash-success { background: var(--success); }
.flash-error { background: var(--error); }
.flash-warning { background: var(--warning); }
.flash-info { background: var(--info); }

.flash-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Hero Section */
.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-card) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%2300b300" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-subtitle {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-md);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero h1 span {
    color: var(--hero-title-span-color, var(--primary));
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Section Styles */
.section {
    padding: var(--space-3xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-title p {
    margin-top: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--glow-color, rgba(0, 179, 0, 0.3));
    box-shadow: 0 8px 24px var(--glow-color-faint, rgba(0, 179, 0, 0.15));
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    text-align: center;
    padding: var(--space-2xl);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.75rem;
    color: var(--bg-darker);
    transition: transform var(--transition-normal);
    font-weight: bold;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    margin-bottom: var(--space-md);
}

.service-card p {
    font-size: 0.95rem;
}

.service-card .btn {
    margin-top: var(--space-lg);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--badge-physical, var(--secondary));
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.product-badge.featured {
    background: var(--badge-featured, var(--primary));
    color: #fff;
}

.product-badge.digital {
    background: var(--badge-digital, var(--info));
}

.product-badge.service {
    background: var(--badge-service, #8b5cf6);
}

.product-badge.physical {
    background: var(--badge-physical, var(--secondary));
}

.product-image {
    position: relative;
    height: 200px;
    background: var(--bg-darker);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.product-overlay {
    padding: 0 var(--space-lg) var(--space-lg);
    display: flex;
    gap: var(--space-sm);
}

.product-overlay .btn {
    flex: 1;
    padding: var(--space-sm);
    font-size: 0.8rem;
}

.product-info {
    padding: var(--space-lg);
}

.product-category {
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.product-info h4 {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.product-price .current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h5 {
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    text-align: center;
    padding: var(--space-3xl) 0;
}

.cta-section h2 {
    margin-bottom: var(--space-lg);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-color-faint, rgba(0, 179, 0, 0.1));
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a8b4c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: var(--space-2xl);
}
/* Fix native dropdown options visibility in dark mode */
.form-select option {
    background: #ffffff;
    color: #000000;
}

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

/* Cart Page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-table th {
    background: var(--bg-card);
    font-weight: 600;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-item-name {
    font-weight: 500;
}

.cart-item-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.quantity-input {
    width: 50px;
    text-align: center;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: var(--space-sm);
}

.cart-remove {
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.cart-remove:hover {
    color: #ff6b6b;
}

.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.cart-summary h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-md);
}

.summary-row.total span:last-child {
    color: var(--primary);
}

/* Checkout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-2xl);
}

.checkout-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.checkout-section h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.payment-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-darker);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary);
    background: rgba(0, 191, 255, 0.05);
}

.payment-method input {
    display: none;
}

.payment-method-icon {
    width: 50px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--bg-dark);
}

.payment-method-info h5 {
    margin-bottom: var(--space-xs);
}

.payment-method-info p {
    margin: 0;
    font-size: 0.85rem;
}

.eft-details {
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.eft-details h5 {
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.eft-details p {
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.eft-details strong {
    color: var(--text-primary);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-card) 100%);
    padding: 150px 0 var(--space-3xl);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-md);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb span {
    color: var(--primary);
}

/* Quote Form */
.quote-form-section {
    max-width: 800px;
    margin: 0 auto;
}

/* Account Page */
.account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-2xl);
}

.account-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    height: fit-content;
}

.account-nav {
    list-style: none;
}

.account-nav li {
    margin-bottom: var(--space-sm);
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.account-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.orders-table th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.status-processing { background: rgba(59, 130, 246, 0.2); color: var(--info); }
.status-paid, .status-complete { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.status-shipped { background: rgba(0, 191, 255, 0.2); color: var(--primary); }
.status-cancelled, .status-failed { background: rgba(239, 68, 68, 0.2); color: var(--error); }

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main {
    padding: var(--space-3xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: var(--space-2xl);
}

.footer-logo img {
    height: 40px;
    margin-bottom: var(--space-lg);
}

.footer-about p {
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.footer-col h4 {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md) !important;
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-lg) 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    margin-bottom: var(--space-md);
}

.empty-state p {
    margin-bottom: var(--space-xl);
}

/* Loading Spinner */
.loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    /* Admin sidebar responsive */
    .admin-layout {
        grid-template-columns: 200px 1fr;
    }

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

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

/* Mobile auth links - hidden on desktop, shown in mobile menu */
.mobile-auth-link {
    display: none;
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .mobile-auth-link {
        display: block;
    }
    
    .mobile-auth-link .nav-link {
        color: var(--primary);
    }
    
    .mobile-auth-link .nav-link i {
        margin-right: var(--space-sm);
        width: 20px;
        text-align: center;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 82px;
        left: 0;
        width: 100%;
        background: var(--menu-bg, var(--bg-darker));
        flex-direction: column;
        padding: var(--space-lg);
        gap: 0;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        max-height: calc(100vh - 82px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        display: block;
        padding: var(--space-md);
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--space-3xl);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
    }
    
    .cart-table tr {
        margin-bottom: var(--space-lg);
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: var(--space-md);
    }
    
    .cart-table td {
        border: none;
        padding: var(--space-sm);
        text-align: right;
        position: relative;
        padding-left: 50%;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: var(--space-md);
        font-weight: 600;
        color: var(--text-muted);
    }
    
    /* Product detail responsive */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Services grid responsive */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features grid responsive */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Admin sidebar stacks on mobile */
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    
    .admin-sidebar.mobile-open {
        left: 0;
    }
    
    .admin-mobile-toggle {
        display: flex !important;
    }
    
    .admin-main, .admin-content {
        padding: var(--space-md) !important;
    }
    
    /* Admin table scroll */
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* ─── Tablet fixes (≤1024px) ─── */
@media (max-width: 1024px) {
    .page-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .quote-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Mobile fixes (≤768px) ─── */
@media (max-width: 768px) {
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .page-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .legal-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .orders-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .orders-table thead {
        display: none;
    }

    .orders-table,
    .orders-table tbody,
    .orders-table tr,
    .orders-table td {
        display: block;
    }

    .orders-table tr {
        margin-bottom: var(--space-md);
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: var(--space-md);
        border: 1px solid rgba(128,128,128,0.1);
    }

    .orders-table td {
        border: none;
        padding: var(--space-xs) var(--space-sm);
        text-align: right;
        position: relative;
        padding-left: 45%;
        min-height: 32px;
    }

    .orders-table td::before {
        content: attr(data-label);
        position: absolute;
        left: var(--space-sm);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.82rem;
    }

    /* Account sidebar on mobile */
    .account-sidebar {
        margin-bottom: var(--space-lg);
    }

    .account-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .account-nav li a {
        padding: 6px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Service detail responsive */
    .service-detail {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
    }

    /* Hero height auto on mobile */
    .hero,
    .hero-slider,
    .hero-video-bg,
    .hero-image-bg {
        height: auto !important;
        min-height: auto !important;
    }

    .hero-slide {
        height: auto !important;
        min-height: 400px;
    }

    /* Page header */
    .page-header h1 {
        font-size: 1.8rem;
    }
}

/* Admin Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-darker);
    padding: var(--space-lg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo {
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: var(--space-xs);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--bg-card);
    color: var(--primary);
}

.admin-nav i {
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: var(--space-xl);
    background: var(--bg-dark);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-dark);
}

.stat-info h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.stat-info p {
    margin: 0;
    font-size: 0.9rem;
}

.admin-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: var(--bg-darker);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.admin-table tr:hover {
    background: var(--bg-card-hover);
}

.action-btns {
    display: flex;
    gap: var(--space-sm);
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.action-btn.edit {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.pagination a,
.pagination span {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.hidden { display: none !important; }

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin-top: 110px;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    position: relative;
}

.hero-slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-slide .container,
.hero-video-bg .container,
.hero-image-bg .container {
    position: relative;
    z-index: 2;
}

.hero-slide .hero-content,
.hero-video-bg .hero-content,
.hero-image-bg .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.hero-slider-prev { left: 20px; }
.hero-slider-next { right: 20px; }

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Hero Video Background */
.hero-video-bg {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 110px;
    min-height: auto;
    padding-top: 0;
}

.hero-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-bg .hero-slide-overlay {
    z-index: 1;
}

/* Hero Image Background */
.hero-image-bg {
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-top: 110px;
    min-height: auto;
    padding-top: 0;
}

.hero-image-bg .hero-slide-overlay {
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-slider-btn { display: none; }
    .hero-slider-dots { bottom: 10px; }
    .hero-slider,
    .hero-video-bg,
    .hero-image-bg {
        margin-top: 0 !important;
        padding-top: 100px !important;
        padding-bottom: var(--space-3xl);
    }
}


/* ─── Comprehensive Mobile/Tablet Responsive ─── */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    /* Inline grids used across pages */
    [style*="grid-template-columns: repeat(auto-fill, minmax(340px"] {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
    [style*="grid-template-columns: repeat(auto-fill, minmax(300px"] {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    }
    [style*="grid-template-columns: repeat(auto-fill, minmax(380px"] {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    }
    [style*="grid-template-columns: 1fr 1fr; gap"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Gallery masonry */
    [data-testid="gallery-masonry"] {
        columns: 2 !important;
    }
    /* Admin gallery grid */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    }
    /* Layout picker */
    .layout-picker {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Block type grid */
    .block-type-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    /* Admin header stack */
    .admin-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: var(--space-md);
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    /* All inline grids to single column */
    [style*="grid-template-columns: repeat(auto-fill"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: 1.5fr repeat"] {
        grid-template-columns: 1fr !important;
    }
    [style*="display:grid;grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="display: grid; grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="display:grid;grid-template-columns:auto 1fr 1fr auto"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    /* Gallery masonry */
    [data-testid="gallery-masonry"] {
        columns: 1 !important;
    }
    /* Gallery lightbox thumbnails */
    [data-testid="gallery-lightbox"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Stats bar wrap */
    [style*="display:flex;gap:var(--space-lg);flex-wrap:wrap;justify-content:center"] {
        gap: var(--space-sm) !important;
    }
    [style*="display:flex;gap:var(--space-lg);flex-wrap:wrap;justify-content:center"] > div {
        min-width: 100px !important;
        padding: 14px 16px !important;
    }
    /* Admin gallery cards */
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    .item-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Block type grid */
    .block-type-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Layout picker */
    .layout-picker {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Section cards */
    .section-card {
        flex-wrap: wrap;
        gap: 10px !important;
    }
    .section-card .section-actions {
        width: 100%;
        justify-content: flex-end;
    }
    /* Feature cards in features list */
    .feature-card {
        flex-wrap: wrap;
    }
    .feature-card form {
        flex-wrap: wrap;
    }
    /* Help sections */
    .help-body {
        padding-left: 20px !important;
    }
    /* Feat grid admin */
    .feat-grid {
        grid-template-columns: 1fr !important;
    }
    /* Stats bar admin */
    .stats-bar {
        gap: var(--space-sm) !important;
    }
    .stat-card {
        min-width: 0 !important;
        padding: 12px 16px !important;
    }
    /* Page header */
    .page-header {
        padding: 100px 0 var(--space-xl) !important;
    }
    .page-header h1 {
        font-size: 1.5rem !important;
    }
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }
    /* Split layout grids (Text+Image, Text+Video) */
    [style*="grid-template-columns:1fr 1fr;gap:var(--space-2xl)"] {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
    }
    /* Footer newsletter */
    .footer input[type="email"] {
        font-size: 0.82rem !important;
    }
    /* Section heading on features page */
    .section-heading {
        flex-wrap: wrap;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    /* Gallery lightbox */
    [data-testid="gallery-lightbox"] {
        grid-template-columns: 1fr !important;
    }
    /* Gallery items admin */
    .item-grid {
        grid-template-columns: 1fr !important;
    }
    /* Block type grid single */
    .block-type-grid {
        grid-template-columns: 1fr !important;
    }
    /* Account dashboard stats */
    [style*="display: grid; grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Checkout summary */
    .checkout-form {
        padding: var(--space-md) !important;
    }
}

/* ─── Product Detail Page Responsive ─── */
@media (max-width: 1024px) {
    .product-detail-grid {
        gap: var(--space-xl) !important;
    }
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
    }
    .product-main-img {
        height: 280px !important;
    }
    .product-thumb {
        width: 60px !important;
        height: 60px !important;
    }
    [data-testid="product-name"] {
        font-size: 1.4rem !important;
    }
    [data-testid="product-price"] {
        font-size: 1.8rem !important;
    }
    [data-testid="product-price"] ~ span {
        font-size: 1.1rem !important;
    }
    [data-testid="star-rating"] .fa-star {
        font-size: 1.3rem !important;
    }
    [data-testid="product-detail-section"] .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    [data-testid="product-detail-section"] [style*="rgba(234, 179, 8, 0.1)"] {
        flex-direction: column;
        text-align: center;
    }
    [data-testid="request-quote-btn"] {
        width: 100%;
    }
    #imageLightbox #lbPrev,
    #imageLightbox #lbNext {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
    /* Product actions row - stack on mobile */
    .product-actions-row {
        gap: var(--space-sm);
    }
    .product-actions-row .product-cart-btn {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    .product-actions-row .product-wish-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    .product-actions-row .btn-lg {
        font-size: 0.9rem !important;
        padding: 10px 16px !important;
    }
}
@media (max-width: 480px) {
    .product-main-img {
        height: 220px !important;
    }
    .product-thumb {
        width: 50px !important;
        height: 50px !important;
    }
    [data-testid="product-name"] {
        font-size: 1.2rem !important;
    }
    [data-testid="product-price"] {
        font-size: 1.5rem !important;
    }
    [data-testid="product-detail-section"] .products-grid {
        grid-template-columns: 1fr !important;
    }
    /* Full width stacked actions */
    .product-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    .product-actions-row .quantity-control {
        justify-content: center;
    }
    .product-actions-row .product-cart-btn,
    .product-actions-row .product-wish-btn {
        width: 100%;
    }
    .product-actions-row .btn-lg {
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
    }
}

/* ═══ Product Share Bar ═══ */
.product-share-bar {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(128,128,128,0.1);
}
.product-share-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}
.product-share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.product-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    opacity: 0.9;
}
.product-share-facebook  { background: #1877F2; }
.product-share-twitter   { background: #000000; }
.product-share-whatsapp  { background: #25D366; }
.product-share-email     { background: #6b7a8f; }
.product-share-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.product-share-pinterest { background: #E60023; }
.product-share-linkedin  { background: #0A66C2; }

@media (max-width: 480px) {
    .product-share-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .product-share-icons {
        gap: 8px;
    }
}

/* ── Icon Box, Counter, Appointment, FAQ Block Responsive ── */
@media (max-width: 768px) {
    .icon-box-grid { grid-template-columns: 1fr 1fr !important; }
    .counter-grid { grid-template-columns: 1fr 1fr !important; }
    .apt-block-grid { grid-template-columns: 1fr 1fr !important; }
    .services-responsive-grid { grid-template-columns: 1fr 1fr !important; }
    .faq-split-grid { grid-template-columns: 1fr !important; }
    .faq-cards-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
    .icon-box-grid { grid-template-columns: 1fr !important; }
    .counter-grid { grid-template-columns: 1fr 1fr !important; }
    .apt-block-grid { grid-template-columns: 1fr !important; }
    .services-responsive-grid { grid-template-columns: 1fr !important; }
}

/* FAQ Accordion */
.hp-faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.hp-faq-item.open > .hp-faq-answer { max-height: 800px; }
.hp-faq-item button i.fa-chevron-down { transition: transform .3s; }
.hp-faq-item.open > button i.fa-chevron-down { transform: rotate(180deg); }
