@import url('animations.css');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&display=swap');

:root {
    --font-family-main: var(--font-primary);
}

/* ===================================
   GLOBAL STYLES & RESET
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Modern shop layout for shoes/clothing/accessories */
.shop-modern-layout {
    display: flex;
    gap: 48px;
    margin-top: 48px;
}

.shop-sidebar-modern {
    width: 280px;
    background: var(--color-light);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 220px;
    max-width: 320px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.shop-content-modern {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.shop-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    position: relative;
    min-height: 420px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
}

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

.product-image {
    width: 100%;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

:root {
    /* Modern charcoal + vivid accent palette */
    --primary-color: #0f172a;
    --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    --secondary-color: #ef4444;
    --secondary-gradient: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --accent-color: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;

    --text-color: #0b1120;
    --text-light: #334155;
    --text-lighter: #64748b;
    --bg-page: #f8fafc;
    --bg-light: #f1f5f9;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-elevated: rgba(255, 255, 255, 0.92);
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --border-subtle: rgba(15, 23, 42, 0.06);

    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.18);
    --shadow-xl: 0 32px 70px rgba(15, 23, 42, 0.22);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Bebas Neue', cursive;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* E-commerce specific colors */
    --price-color: #0f172a;
    --sale-color: #ef4444;
    --rating-color: #fbbf24;
}

body {
    --navbar-height: 72px;
    font-family: var(--font-family-main, var(--font-primary));
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-page);
    /* Ensure main content is not hidden under the fixed navbar */
    padding-top: calc(var(--navbar-height) + env(safe-area-inset-top));
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.2px;
    color: var(--text-color);
}

p {
    color: var(--text-light);
}

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

.page-header {
    padding: 48px 0 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 32px;
}

/* Feature Section: Relaxation & Massage */
.feature-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(247,246,245,1));
}
.feature-section .section-header { text-align: center; margin-bottom: 40px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}
.feature-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.feature-image { height: 220px; overflow: hidden; background: var(--bg-light); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-content { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature-title { font-size: 1.25rem; font-weight: 700; }
.feature-desc { color: var(--text-light); line-height: 1.5; }

@media (max-width: 768px) {
    .feature-image { height: 180px; }
    .feature-section { padding: 48px 0; }
}


img {
    max-width: 100%;
    display: block;
    /* Improve image rendering on mobile */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Ensure images don't exceed viewport */
img[loading="lazy"] {
    background: var(--bg-light);
    min-height: 100px;
}

/* Better image aspect ratio handling */
.product-image img,
.category-image img,
.photo-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* ===================================
   BREADCRUMBS
   =================================== */
.breadcrumb {
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.breadcrumb-list li + li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--text-light);
    opacity: 0.5;
}

.breadcrumb-list li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-list li a:hover {
    color: var(--secondary-color);
}

.breadcrumb-list li a i {
    margin-right: 4px;
    font-size: 13px;
}

.breadcrumb-list li[aria-current="page"] {
    font-weight: 600;
    color: var(--text-color);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: var(--transition);
}

/* Circular grey background behind the navbar (centered) */
.navbar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

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

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* When an image logo is present, hide the text mark (fallback is shown if the image is removed onerror). */
.nav-logo a .site-logo-img + .logo-text {
    display: none;
}

.site-logo-img {
    height: 52px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
    border-radius: 0;
    padding: 0;
    background: transparent;
    /* Ensure crisp logo rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: opacity 0.2s ease;
}

.site-logo-img:hover {
    opacity: 0.8;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 0;
    padding: 0;
    /* Invert the dark SVG to white for dark footer background */
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 0.8;
}

.nav-logo .logo-text {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-style: normal !important;
}

.nav-logo .admin-badge {
    margin-left: 10px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-size: 14px;
}

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

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    /* Touch-friendly - Apple HIG recommends 44px min */
    -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover {
    background: var(--bg-light);
    transform: scale(1.05);
}

/* Active state for touch feedback */
.icon-btn:active {
    transform: scale(0.95);
    background: var(--bg-light);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hamburger menu active state - X animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   SEARCH OVERLAY
   =================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 800px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 25px 80px 25px 25px;
    font-size: 24px;
    border: 2px solid var(--secondary-color);
    background: white;
    border-radius: 50px;
    outline: none;
}

.search-close {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    color: var(--text-color);
    font-size: 24px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 45%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 18% 85%, rgba(56, 189, 248, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 85% 15%, rgba(248, 113, 113, 0.16) 0%, transparent 55%),
        radial-gradient(circle at 45% 35%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    display: none;
    padding: 80px 0;
}

.hero-slide.active {
    display: block;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

.hero-text {
    animation: fadeInLeft 1s ease;
}

.hero-label {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 90px;
    line-height: 1;
    margin-bottom: 25px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
    }
    to {
        text-shadow: 0 0 30px rgba(56, 189, 248, 0.55), 0 0 40px rgba(56, 189, 248, 0.3);
    }
}

.highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 36px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible,
.nav-link:focus-visible,
.icon-btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.35);
    outline-offset: 3px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid rgba(15, 23, 42, 0.2);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

input, textarea, select {
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-color);
    transition: var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.card, .modal-content, .orders-table, .stat-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-white);
}

.modal {
    backdrop-filter: blur(6px);
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

table th, table td {
    border-color: var(--border-light);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--secondary-gradient);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

.btn-outline:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.btn-block {
    width: 100%;
    display: block;
}

.hero-image {
    animation: fadeInRight 1s ease;
    position: relative;
}

.floating-shoe {
    width: 100%;
    max-width: 600px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    border-radius: 20px;
    mix-blend-mode: multiply;
    background: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 24px;
    color: var(--primary-color);
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 22px;
    transition: var(--transition);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */
.products-section {
    padding: 100px 0;
    background: var(--bg-page);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 56px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.product-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border-radius: 50px;
    background: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    position: relative;
    min-height: 480px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.35);
}

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

.product-image {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    background: var(--bg-light);
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.bg-red {
    background: var(--error-color);
    color: white;
}

.product-badge.bg-orange {
    background: var(--warning-color);
    color: white;
}

.product-badge.bg-gray {
    background: var(--text-light);
    color: white;
}

.product-badge.bg-primary {
    background: var(--primary-gradient);
    color: white;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.overlay-actions {
    display: flex;
    gap: 12px;
}

.overlay-actions button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.overlay-actions button:hover {
    background: white;
    transform: scale(1.1);
}

/* ===================================
   PRODUCT IMAGE GALLERY / CAROUSEL
   =================================== */
.product-image.has-gallery {
    position: relative;
}

.product-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-gallery .gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-gallery .gallery-img.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-image:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: #ffffff;
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

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

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Quick-view gallery (inside modal) */
.qv-gallery {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.qv-gallery .qv-main-img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.qv-gallery .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
    opacity: 0;
}

.qv-gallery:hover .gallery-arrow {
    opacity: 1;
}

.qv-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.qv-thumbnails img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.qv-thumbnails img.active {
    border-color: var(--secondary-color);
    opacity: 1;
}

.qv-thumbnails img:hover {
    opacity: 0.9;
}

.overlay-actions button:active {
    transform: scale(0.95);
}

.wishlist-btn:hover {
    color: #e74c3c;
}

.compare-btn:hover {
    color: var(--primary-color);
}

.quick-view-btn {
    padding: 12px 30px;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.quick-view-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.product-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Showcase mode (non-selling) */
.cart-btn,
.cart-count,
.cart-sidebar,
.cart-overlay {
    display: none !important;
}

.add-to-cart-btn,
.buy-now-btn {
    display: none !important;
}

.product-price {
    display: none !important;
}

.qv-price,
.product-price-current {
    display: none !important;
}

.product-availability {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.view-details-btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Layout for action buttons inside product cards */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.buy-now-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.buy-now-btn:hover {
    background: var(--primary-color);
    color: var(--color-light);
}

.add-to-cart-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    gap: 0;
    transition: var(--transition);
}

/* Utility for screen-reader only text (accessible but visually hidden) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Keep .btn-text for backward compatibility but visually hidden by default */
.btn-text {
    display: none;
}

/* Ensure product price is clearly visible */
.product-price {
    color: var(--price-color) !important;
    font-weight: 700;
}

/* Responsive tweaks for small screens */
@media (max-width: 600px) {
    .add-to-cart-btn, .buy-now-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .action-buttons {
        gap: 8px;
    }
    .product-price {
        font-size: 18px;
    }
    .product-card {
        min-height: 420px;
    }
}

.add-to-cart-btn:focus-visible,
.quick-view-btn:focus-visible {
    outline: 3px solid rgba(255, 107, 0, 0.25);
    outline-offset: 2px;
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Out of Stock Button Styling */
.add-to-cart-btn[disabled],
.add-to-cart-btn:disabled {
    width: auto !important;
    min-width: 120px;
    padding: 0 20px;
    border-radius: 25px !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
    color: #999 !important;
    cursor: not-allowed !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid #ddd !important;
    box-shadow: none !important;
    transform: none !important;
}

.add-to-cart-btn[disabled]:hover,
.add-to-cart-btn:disabled:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

.section-footer {
    text-align: center;
}

/* ===================================
   TECHNOLOGY SECTION
   =================================== */
.technology-section {
    padding: 100px 0;
    background: var(--primary-color);
    color: white;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.tech-label {
    display: inline-block;
    background: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.tech-title {
    font-family: var(--font-display);
    font-size: 56px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.tech-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.tech-benefits {
    margin-bottom: 40px;
}

.tech-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}

.tech-benefits i {
    color: var(--accent-color);
    font-size: 20px;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-page);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    color: #FFB800;
    margin-bottom: 20px;
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.testimonial-author p {
    font-size: 13px;
    color: var(--text-light);
}

.testimonial-stars {
    color: #FFB800;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: var(--font-display);
    font-size: 48px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.newsletter-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-size: 15px;
}

.newsletter-form .btn {
    white-space: nowrap;
}

.newsletter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-card .newsletter-content {
    text-align: left;
    flex: 1;
    min-width: 260px;
}

.newsletter-card .newsletter-content h2 {
    font-size: 28px;
    font-family: var(--font-display);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.newsletter-card .newsletter-content h2 i {
    margin-right: 8px;
    color: var(--accent-color);
}

.newsletter-card .newsletter-content p {
    font-size: 15px;
    margin-bottom: 0;
    opacity: 0.9;
}

.newsletter-card .newsletter-form {
    min-width: 320px;
}

@media (max-width: 768px) {
    .newsletter-card {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-card .newsletter-content {
        text-align: center;
    }
    .newsletter-card .newsletter-form {
        min-width: 0;
        width: 100%;
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: #0b0b0b;
    color: #ffffff;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.22);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gradient);
    box-shadow: 0 0 20px rgba(213, 0, 0, 0.35);
}

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-section {
    position: relative;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer-logo .footer-logo-img {
    width: auto;
    height: 48px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    /* Invert dark logo to white on dark footer */
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.footer-logo .footer-logo-img:hover {
    opacity: 0.8;
}

.footer-logo .footer-logo-img + .logo-text {
    display: none;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.92;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
}

.footer-section p:last-of-type {
    opacity: 0.75;
    font-style: italic;
    margin-bottom: 35px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: var(--secondary-gradient);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
    border-color: var(--secondary-color);
}

.social-links a i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.social-links a:hover i {
    color: white;
    transform: scale(1.1);
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 0;
}

.footer-section ul li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.footer-section ul li a {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(8px);
    text-shadow: 0 2px 8px rgba(255,255,255,0.3);
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Hide user login icon from navbar — customers don't need it */
.nav-icons .user-btn {
    display: none !important;
}

.footer-login-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    opacity: 1;
}

.footer-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.footer-login-btn:hover::before {
    left: 100%;
}

.footer-login-btn:hover {
    background: var(--secondary-gradient);
    border-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.footer-login-btn.admin {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ===================================
   GLOBAL UI ENHANCEMENTS
   =================================== */
.showcase-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 900;
}

.showcase-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.showcase-banner-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.showcase-banner-text i {
    color: #f59e0b;
}

.showcase-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.showcase-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.showcase-banner-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.showcase-banner-dismiss {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-size: 20px;
    line-height: 1;
}

.showcase-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.18);
}

.floating-help {
    position: fixed;
    right: 20px;
    bottom: 96px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1100;
}

.floating-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-color);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    font-weight: 600;
    font-size: 14px;
}

.floating-help-btn.primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
}

.floating-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1100;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .showcase-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .floating-help {
        right: 14px;
        bottom: 88px;
    }
    .back-to-top {
        right: 14px;
    }
    .floating-help-btn span {
        display: none;
    }
}

/* ===================================
   TRUST STRIP + CTA STRIP
   =================================== */
.trust-strip {
    padding: 36px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.trust-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.trust-item i {
    font-size: 20px;
    color: var(--secondary-color);
}

.trust-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 13px;
    color: var(--text-light);
}

.cta-strip {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(248, 250, 252, 0.9));
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.cta-strip-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
}

.cta-strip h3 {
    font-size: 28px;
    margin: 6px 0 10px;
}

.cta-strip p {
    color: var(--text-light);
}

.cta-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--text-lighter);
    font-weight: 600;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .cta-strip-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cta-actions {
        justify-content: center;
    }
}

/* ===================================
   INSOLE HIGHLIGHT SECTION
   =================================== */
.insoles-highlight {
    padding: 90px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.insoles-highlight-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.insoles-highlight h2 {
    font-family: var(--font-display);
    font-size: 48px;
    margin-bottom: 16px;
}

.insoles-highlight p {
    color: var(--text-light);
    margin-bottom: 18px;
}

.insoles-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.insoles-feature {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.insoles-feature i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 2px;
}

.insoles-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.insoles-pill {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.insoles-poster {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.characteristics-panel {
    padding: 90px 0;
    background: var(--bg-page);
}

.characteristics-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
    align-items: center;
}

.characteristics-list {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.characteristics-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.characteristics-item span {
    font-weight: 600;
}

.characteristics-poster {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

@media (max-width: 900px) {
    .insoles-highlight-grid {
        grid-template-columns: 1fr;
    }
    .insoles-highlight h2 {
        font-size: 36px;
    }
    .characteristics-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   SHOPPING CART SIDEBAR
   =================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    z-index: 3000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.cart-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

.cart-close:hover {
    background: var(--bg-light);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cart-footer .btn {
    margin-bottom: 15px;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    /* Allow overlay to receive pointer events when active so click-to-close works reliably in tests */
    pointer-events: auto;
}

/* Default: don't receive pointer events when not visible to avoid intercepting clicks */
.cart-overlay {
    pointer-events: none;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 72px;
    }
    
    .section-title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-light);
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tech-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .footer-logo {
        font-size: 36px;
    }

    .social-links {
        gap: 16px;
    }

    .social-links a {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .tech-title {
        font-size: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .footer {
        padding: 80px 0 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-logo {
        font-size: 32px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 12px;
    }

    .footer-logo .footer-logo-img {
        width: 44px;
        height: 44px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section ul li::before {
        display: none;
    }

    .footer-section ul li a:hover {
        transform: none;
    }

    .social-links {
        justify-content: center;
        gap: 20px;
        margin-top: 25px;
    }

    .social-links a {
        width: 50px;
        height: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding-top: 30px;
    }

    .footer-login-cta {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-login-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .footer-links {
        gap: 25px;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PRODUCTS PAGE STYLES
   =================================== */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.page-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1,
.page-hero h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.05;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: none;
}
.hero-content h1::after,
.page-hero h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 14px auto 0;
    border-radius: 2px;
}

.hero-content p,
.page-hero .container > p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    opacity: 1;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    color: #cbd5e1;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-stack {
    position: relative;
    width: 400px;
    height: 400px;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.hero-main-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    min-width: 180px;
    animation: float 3s ease-in-out infinite;
}

.floating-badge {
    background: var(--secondary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-floating-card h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-floating-card p {
    color: var(--price-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.shop-section {
    padding: 60px 0 100px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-group {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:first-child {
    padding-top: 0;
}

.filter-group h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
}

.filter-checkbox input {
    cursor: pointer;
}

/* Hierarchical Category Styles */
.category-group {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.primary-category {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.primary-category .filter-checkbox {
    margin-bottom: 0;
}

.primary-checkbox span {
    font-weight: 600;
    color: var(--text-color);
}

.subcategories {
    padding: 10px 15px;
    background: #ffffff;
}

.subcategory-checkbox {
    margin-bottom: 8px;
    margin-left: 20px;
    font-size: 14px;
}

.subcategory-checkbox span {
    color: var(--text-muted);
}

.subcategory-checkbox input:checked + span {
    color: var(--text-color);
}

.price-range {
    margin-top: 15px;
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-light);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

.price-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    border: none;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.size-btn {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-weight: 500;
    transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.15);
}

.shop-content {
    min-height: 600px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.results-count {
    font-size: 15px;
    color: var(--text-light);
}

.sort-select {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
        background: var(--bg-light);
        padding: 30px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    /* Mobile filter toggle */
    .filter-toggle-btn {
        display: flex;
        width: 100%;
        padding: 15px 20px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .filter-toggle-btn i {
        transition: transform 0.3s ease;
    }
    
    .filter-toggle-btn.active i {
        transform: rotate(180deg);
    }
    
    .shop-sidebar .filter-groups {
        display: none;
    }
    
    .shop-sidebar.filters-visible .filter-groups {
        display: block;
    }
    
    .page-hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .sort-select {
        width: 100%;
    }
}

/* ===================================
   ADDITIONAL PAGES STYLES
   ===================================== */

/* Technology Page */
.tech-overview {
    padding: 100px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-text-block h2 {
    font-family: var(--font-display);
    font-size: 48px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.tech-text-block p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-color);
}

.tech-diagram img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.benefits-detailed {
    padding: 100px 0;
    background: var(--bg-light);
}

.benefits-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-detail-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: white;
}

.benefit-detail-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-detail-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.benefit-detail-card ul {
    list-style: none;
}

.benefit-detail-card ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-color);
}

.benefit-detail-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.how-it-works {
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 64px;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.research-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.research-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.research-text h2 {
    font-family: var(--font-display);
    font-size: 48px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.research-text p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 30px;
    color: var(--text-color);
}

.certifications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.cert-badge i {
    font-size: 28px;
    color: var(--secondary-color);
}

.cert-badge span {
    font-weight: 600;
}

.research-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.faq-section {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.faq-item {
    padding: 0;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-item summary i {
    font-size: 14px;
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 30px 24px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.8;
}

/* Fallback for non-details faq-item (legacy divs) */
div.faq-item {
    padding: 30px;
}

div.faq-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

div.faq-item p {
    padding: 0;
    color: var(--text-light);
    line-height: 1.8;
}

/* About Page */
.mission-section {
    padding: 100px 0;
    background: linear-gradient(145deg, #fffdfb 0%, #eef2ff 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text {
    max-width: 540px;
}

.mission-text h2 {
    font-family: var(--font-display);
    font-size: 48px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.mission-text p {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
    color: var(--text-color);
}

.mission-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.values-section {
    padding: 110px 0;
    background: #ffffff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 48px 30px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 240px;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-card i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.story-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f7f7ff 0%, #eef2ff 100%);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-content h2 {
    font-family: var(--font-display);
    font-size: 56px;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-align: center;
}

.story-content p {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 25px;
    color: var(--text-color);
}

.team-section {
    padding: 100px 0;
    background: #ffffff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-member {
    text-align: center;
    background: #ffffff;
    padding: 42px 28px;
    border-radius: 28px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 320px;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
}

.member-title {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.team-member p {
    color: var(--text-light);
    line-height: 1.8;
}

.stats-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0b1629 0%, #030711 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    opacity: 0.25;
    z-index: 0;
}

.stats-section::before {
    top: -60px;
    right: -20px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.9), transparent 60%);
}

.stats-section::after {
    bottom: -80px;
    left: -20px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.8), transparent 65%);
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 64px);
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .mission-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mission-section,
    .values-section,
    .story-section,
    .team-section,
    .stats-section {
        padding: 60px 0;
    }

    .story-content h2 {
        font-size: 48px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: clamp(32px, 12vw, 48px);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        gap: 16px;
    }

    .value-card {
        padding: 36px 20px;
    }
}

/* ===================================
   HOMEPAGE 3D EFFECTS
   =================================== */
.index-home .main-content {
    perspective: 1200px;
}

.index-home .hero-visual,
.index-home .category-card,
.index-home .video-item,
.index-home .video-hero-card,
.index-home .photo-item {
    transform-style: preserve-3d;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    will-change: transform;
}

.index-home .hero-visual {
    transform: rotateX(2deg) rotateY(-2deg) translateZ(0);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.index-home .hero-visual::after {
    transform: translateZ(-20px);
}

.index-home .category-card:hover,
.index-home .video-item:hover,
.index-home .video-hero-card:hover,
.index-home .photo-item:hover {
    transform: rotateX(4deg) rotateY(-4deg) translateY(-6px) translateZ(8px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.index-home .category-card::after,
.index-home .video-item::after,
.index-home .video-hero-card::after,
.index-home .photo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(245, 158, 11, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    transform: translateZ(10px);
}

.index-home .category-card:hover::after,
.index-home .video-item:hover::after,
.index-home .video-hero-card:hover::after,
.index-home .photo-item:hover::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .index-home .main-content {
        perspective: 800px;
    }

    .index-home .category-card:hover,
    .index-home .video-item:hover,
    .index-home .video-hero-card:hover,
    .index-home .photo-item:hover {
        transform: translateY(-4px) translateZ(4px);
    }
}

/* Contact Page */
.contact-section {
    padding: 100px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-container h2 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-info > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.info-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-text p {
    color: var(--text-light);
    line-height: 1.8;
}

.social-connect {
    padding: 30px;
    background: var(--primary-color);
    border-radius: 15px;
    color: white;
    text-align: center;
}

.social-connect h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.social-connect .social-icons {
    justify-content: center;
}

.map-section {
    height: 400px;
    background: var(--bg-light);
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 64px;
    opacity: 0.3;
}

@media (max-width: 992px) {
    .tech-grid,
    .mission-grid,
    .research-content {
        grid-template-columns: 1fr;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .page-hero h1 {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .certifications {
        grid-template-columns: 1fr;
    }
    
    .page-hero h1 {
        font-size: 42px;
    }
}

/* ===================================
   AUTHENTICATION PAGES
   =================================== */
.auth-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    min-height: 100vh;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 48px;
    max-width: 500px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.auth-header p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-label span a {
    color: var(--secondary-color);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-light);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--secondary-color);
    font-weight: 600;
}

.text-link {
    color: var(--secondary-color);
    font-size: 14px;
    text-decoration: none;
}

.form-row.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===================================
   USER PROFILE
   =================================== */
.profile-section {
    padding: 100px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-sidebar {
    background: white;
    border-radius: 16px;
    padding: 32px 0;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.profile-user-info {
    text-align: center;
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 4px solid var(--secondary-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-user-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-user-info p {
    font-size: 14px;
    color: var(--text-light);
}

.profile-nav {
    padding: 16px 0;
}

.profile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-color);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.profile-nav-link:hover {
    background: var(--bg-light);
    border-left-color: var(--secondary-color);
}

.profile-nav-link.active {
    background: rgba(255, 107, 0, 0.1);
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.profile-nav-link i {
    width: 20px;
}

.profile-main {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.profile-main h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.profile-form {
    max-width: 600px;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Orders */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.order-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.order-date {
    font-size: 14px;
    color: var(--text-light);
}

.order-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-delivered {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

.status-processing {
    background: rgba(255, 107, 0, 0.1);
    color: var(--secondary-color);
}

.status-shipped {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
}

.status-pending {
    background: rgba(102, 102, 102, 0.1);
    color: var(--text-light);
}

.order-items {
    margin-bottom: 16px;
}

.order-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
}

.order-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.order-item-info h5 {
    font-size: 15px;
    margin-bottom: 4px;
}

.order-item-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.order-item-price {
    font-weight: 600;
    color: var(--secondary-color);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.order-total {
    font-size: 18px;
    font-weight: 700;
}

.order-actions {
    display: flex;
    gap: 12px;
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.review-product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.review-product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.review-product h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-date {
    font-size: 13px;
    color: var(--text-light);
}

.review-rating {
    text-align: right;
}

.review-rating .stars {
    font-size: 20px;
    color: #FFD700;
    letter-spacing: 2px;
}

.review-content h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.review-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 12px;
}

.badge-success {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

/* Addresses */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.address-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
}

.address-card:hover {
    border-color: var(--secondary-color);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.address-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: var(--secondary-color);
    color: white;
}

.address-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 16px;
}

.address-actions {
    display: flex;
    gap: 16px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.text-danger {
    color: var(--error-color) !important;
}

/* Settings */
.settings-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.danger-zone {
    border: 2px solid var(--error-color);
    border-radius: 12px;
    padding: 24px;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #E33500;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    filter: brightness(0.95);
    box-shadow: var(--shadow-md);
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

.dropdown-menu a i {
    width: 16px;
}

/* Inline suggestions (autocomplete dropdown) */
.ace1-inline-suggest-wrap {
    position: relative;
}

.ace1-inline-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 240px;
    overflow-y: auto;
    z-index: 2000;
}

.ace1-inline-suggest[hidden] {
    display: none;
}

.ace1-inline-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.ace1-inline-suggest-item:hover,
.ace1-inline-suggest-item:focus,
.ace1-inline-suggest-item.is-active {
    background: var(--bg-light);
    outline: none;
}

/* ===================================
   CHECKOUT PAGES
   =================================== */
.checkout-progress {
    background: white;
    padding: 32px 0;
    margin-top: 80px;
    border-bottom: 1px solid var(--border-color);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-light);
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.progress-step.active .step-label {
    color: var(--secondary-color);
}

.progress-line {
    width: 120px;
    height: 2px;
    background: var(--border-color);
    margin: 0 16px;
}

.checkout-section {
    padding: 48px 0 80px;
    background: var(--bg-gradient);
    position: relative;
}

.checkout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.checkout-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.checkout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.checkout-card .card-header h2,
.checkout-card .card-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.checkout-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.checkout-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.checkout-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.checkout-item-info p {
    font-size: 12px;
    color: var(--text-light);
}

.checkout-item-price {
    font-weight: 700;
    color: var(--secondary-color);
}

.order-summary {
    margin: 24px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
}

.promo-code {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.promo-code input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.checkout-security {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
}

.checkout-security i {
    color: var(--success-color);
    font-size: 24px;
}

.checkout-security h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.checkout-security p {
    font-size: 12px;
    color: var(--text-light);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-option {
    display: block;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.payment-option input:checked + .payment-option-content {
    border-color: var(--secondary-color);
    background: rgba(255, 107, 0, 0.05);
}

.payment-option-content i {
    font-size: 24px;
    color: var(--secondary-color);
}

.payment-option-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.payment-option-content p {
    font-size: 13px;
    color: var(--text-light);
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

/* Trust Strip */
.trust-strip-section {
    padding: 18px 0;
    background: var(--bg-white);
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.trust-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-white);
}

.trust-item i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--secondary-color);
    background: rgba(255, 107, 0, 0.10);
    font-size: 18px;
    margin-top: 2px;
}

.trust-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.trust-item span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.trust-item a {
    color: inherit;
    text-decoration: underline;
}

/* Order Confirmation */
.confirmation-section {
    padding: 100px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.confirmation-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-icon i {
    font-size: 48px;
    color: white;
}

.confirmation-container h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.confirmation-message {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.order-number {
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 32px;
    font-size: 16px;
}

.confirmation-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.confirmation-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.next-steps .step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.next-steps .step i {
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
    font-size: 20px;
}

.next-steps .step h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.next-steps .step p {
    font-size: 14px;
    color: var(--text-light);
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.empty-state p {
    margin-bottom: 24px;
}

/* Responsive Updates */
@media (max-width: 992px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .profile-main {
        padding: 24px 20px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 16px;
    }
    
    .progress-line {
        width: 2px;
        height: 40px;
        margin: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   QUICK VIEW MODAL
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
}

.modal-overlay.active,
.modal.active ~ .modal-overlay,
.modal.active + .modal-overlay {
    display: block;
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    z-index: 10002;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    transform: rotate(90deg);
}

/* Quick View Modal Layout */
.quick-view-content {
    max-width: 940px;
    width: 92%;
    padding: 36px;
}

.qv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.qv-left {
    min-width: 0;
}

.qv-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qv-right .qv-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.qv-right .qv-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.qv-right .qv-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .qv-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .quick-view-content {
        padding: 24px;
        width: 95%;
    }
}

.quick-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.quick-view-image {
    position: relative;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Quick view sizes highlight for missing selection UX */
.qv-sizes.highlight {
    animation: qv-shake 0.7s ease;
    box-shadow: 0 6px 24px rgba(255,107,0,0.12);
    border-radius: 8px;
}

.qv-sizes:focus-within {
    outline: 3px solid rgba(255,107,0,0.12);
}

@keyframes qv-shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.size-option:focus {
    outline: 2px solid var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.quick-view-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-view-details h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

.qv-category {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qv-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFB800;
}

.qv-rating span {
    margin-left: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.qv-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
}

.qv-description {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.qv-stock {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.qv-stock.in-stock {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success-color);
}

.qv-stock.out-of-stock {
    background: rgba(255, 61, 0, 0.1);
    color: var(--error-color);
}

.qv-stock.low-stock {
    background: rgba(255, 193, 7, 0.1);
    color: #FFA000;
}

.qv-sizes h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    background: var(--bg-white);
    transition: var(--transition);
}

.size-option:hover {
    border-color: var(--primary-color);
}

.size-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-white);
}

.qv-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.qv-actions .btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qv-actions .btn-primary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.qv-actions .btn-primary:hover {
    background: #e55f00;
}

.qv-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
}

.qv-actions .btn-secondary:hover {
    background: var(--border-color);
}

.qv-actions .btn-primary:disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
}

.qv-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.qv-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.qv-feature i {
    font-size: 24px;
    color: var(--secondary-color);
}

.qv-feature span {
    font-size: 12px;
    color: var(--text-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Quick View Mobile Responsive */
@media (max-width: 768px) {
    .quick-view-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .quick-view-details h2 {
        font-size: 22px;
    }
    
    .qv-price {
        font-size: 26px;
    }
    
    .qv-actions {
        flex-direction: column;
    }
    
    .qv-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .qv-feature {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}


/* ===================================
   SURVEY MODAL STYLES
=================================== */
#surveyModal.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

#surveyModal .modal-content {
    background: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

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

#surveyModal .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

#surveyModal .close:hover {
    color: var(--primary-color);
}

/* hCaptcha widget layout tweaks */
.captcha-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.captcha-container .h-captcha,
.captcha-container iframe {
    max-width: 100%;
}

/* ========================================
   MOBILE RESPONSIVE DESIGN - FULL WEBSITE
   ======================================== */

/* Tablets and smaller screens (max-width: 1024px) */
@media (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-logo .logo-text { font-size: 24px; }
    .nav-logo .admin-badge { font-size: 13px; }

    .nav-icons {
        gap: 10px;
    }

    .hero {
        padding: 60px 20px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
        margin: 20px 0;
    }

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

    .product-card {
        padding: 12px;
    }

    .product-image {
        height: 180px;
    }

    .section {
        padding: 50px 20px;
    }

    .section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    body {
        font-size: 14px;
        overflow-x: hidden;
    }

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-top: calc(10px + env(safe-area-inset-top));
        padding-bottom: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .nav-container {
        padding-left: calc(clamp(12px, 4vw, 16px) + env(safe-area-inset-left));
        padding-right: calc(clamp(12px, 4vw, 16px) + env(safe-area-inset-right));
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: clamp(6px, 2vw, 10px);
    }

    .nav-logo {
        flex: 0;
    }

    .nav-logo .logo-text { font-size: 22px; font-weight: 700; }
    .nav-logo .admin-badge { font-size: 12px; }

    .nav-icons {
        display: flex;
        gap: clamp(6px, 2vw, 10px);
        align-items: center;
    }

    /* Make icon buttons easier to tap on phones (min 44px target). */
    .nav-icons .icon-btn {
        width: clamp(44px, 10vw, 52px);
        height: clamp(44px, 10vw, 52px);
        padding: 0;
    }

    .nav-icons .icon-btn i {
        font-size: clamp(20px, 5vw, 24px);
    }

    .site-logo-img {
        height: clamp(40px, 9vw, 48px);
        max-width: 180px;
    }

    .nav-icons .cart-count {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: -2px;
        right: -2px;
    }

    /* Hamburger is a button too; increase hit area without changing colors. */
    .hamburger {
        width: clamp(44px, 10vw, 52px);
        height: clamp(44px, 10vw, 52px);
        padding: clamp(10px, 2.5vw, 12px);
    }

    .nav-icons a,
    .nav-icons button {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-icons .btn-secondary {
        padding: 8px 10px;
    }

    .hero {
        padding: 40px 16px;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 14px;
        margin: 12px 0;
        line-height: 1.5;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 13px;
        margin-top: 16px;
    }

    .section {
        padding: 30px 16px;
    }

    .section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .section h3 {
        font-size: 18px;
    }

    .section p {
        font-size: 13px;
        line-height: 1.6;
    }

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

    .product-card {
        padding: 10px;
        border-radius: 8px;
    }

    .product-image {
        height: 120px;
        border-radius: 6px;
    }

    .product-name {
        font-size: 12px;
        margin: 8px 0 4px;
    }

    .product-price {
        font-size: 13px;
        font-weight: 600;
    }

    .product-actions {
        gap: 4px;
        margin-top: 8px;
    }

    .product-actions button {
        padding: 6px;
        font-size: 10px;
    }

    .product-detail {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }

    .product-gallery {
        width: 100%;
        max-width: 100%;
    }

    .product-gallery img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .product-info {
        width: 100%;
    }

    .product-info h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .product-description {
        font-size: 13px;
        line-height: 1.6;
        margin: 12px 0;
    }

    .form-group {
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .form-group label {
        font-size: 13px;
        font-weight: 500;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ddd;
        border-radius: 6px;
        -webkit-appearance: none;
        appearance: none;
    }

    textarea {
        min-height: 80px;
        resize: vertical;
    }

    select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 20px;
        padding-right: 32px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: background-color 0.2s, transform 0.1s;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .btn-block {
        width: 100%;
    }

    .trust-strip {
        grid-template-columns: 1fr;
    }

    .trust-item {
        padding: 14px;
    }

    .modal {
        padding: 12px;
        align-items: flex-end;
    }

    .modal.active {
        align-items: center;
    }

    .modal-content {
        max-width: 95vw;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 85vh;
        padding: 16px;
    }

    .modal.active .modal-content {
        border-radius: 12px;
    }

    .modal-header {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
    }

    .modal-header h2 {
        font-size: 18px;
        flex: 1;
    }

    .modal-close {
        font-size: 24px;
    }

    .cart-table {
        width: 100%;
        font-size: 12px;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border-bottom: 1px solid #eee;
        padding: 12px 0;
        margin-bottom: 12px;
    }

    .cart-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
    }

    .checkout-container {
        max-width: 100%;
        padding: 16px;
    }

    .checkout-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .checkout-section {
        border: 1px solid #eee;
        padding: 16px;
        border-radius: 8px;
    }

    .checkout-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 16px;
        text-align: center;
    }

    .feature-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 12px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 16px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .testimonial-name {
        font-size: 13px;
        font-weight: 600;
    }

    .testimonial-text {
        font-size: 12px;
        margin: 8px 0;
    }

    .admin-container {
        max-width: 100%;
        margin: 60px auto 30px;
        padding: 12px;
    }

    .admin-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        margin-bottom: 16px;
    }

    .admin-header h1 {
        font-size: 20px;
        margin: 0;
    }

    .admin-tabs {
        gap: 0;
        flex-wrap: wrap;
        border-bottom: 2px solid #eee;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-tab {
        padding: 10px 12px;
        font-size: 11px;
        white-space: nowrap;
        flex: 0 0 auto;
        min-width: 70px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-admin-card {
        padding: 12px;
    }

    .product-admin-card img {
        height: 120px;
    }

    .orders-table,
    .stats-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .orders-table table {
        font-size: 12px;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card h4 {
        font-size: 11px;
    }

    .stat-card .stat-value {
        font-size: 20px;
    }

    .footer {
        padding: 30px 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 12px;
    }

    .hidden-mobile {
        display: none !important;
    }

    .visible-mobile {
        display: block !important;
    }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .navbar {
        padding-top: calc(8px + env(safe-area-inset-top));
        padding-bottom: 8px;
    }

    .nav-container {
        padding-left: calc(clamp(8px, 3.5vw, 12px) + env(safe-area-inset-left));
        padding-right: calc(clamp(8px, 3.5vw, 12px) + env(safe-area-inset-right));
        padding-top: 0;
        padding-bottom: 0;
        gap: clamp(2px, 2vw, 6px);
    }

    .nav-logo .logo-text { font-size: 20px; }
    .nav-logo .admin-badge { font-size: 12px; }

    .nav-icons {
        gap: clamp(2px, 2vw, 6px);
    }

    .nav-icons .icon-btn {
        width: clamp(44px, 12vw, 52px);
        height: clamp(44px, 12vw, 52px);
        padding: 0;
    }

    .nav-icons .icon-btn i {
        font-size: clamp(20px, 6vw, 24px);
    }

    .site-logo-img {
        height: clamp(36px, 9vw, 44px);
        max-width: 160px;
    }

    .nav-icons .cart-count {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: -2px;
        right: -2px;
    }

    .hamburger {
        width: clamp(44px, 12vw, 52px);
        height: clamp(44px, 12vw, 52px);
        padding: clamp(10px, 3vw, 12px);
    }

    .nav-icons a,
    .nav-icons button {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 44px;
    }

    .hero {
        padding: 30px 12px;
        min-height: 250px;
    }

    .hero h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 12px;
        margin: 10px 0;
    }

    .section {
        padding: 24px 12px;
    }

    .section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .section h3 {
        font-size: 15px;
    }

    .section p {
        font-size: 12px;
    }

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

    .product-card {
        padding: 8px;
    }

    .product-image {
        height: 100px;
    }

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

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

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 12px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        padding: 8px;
        font-size: 16px;
    }

    textarea {
        min-height: 70px;
    }

    .btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }

    .modal-content {
        border-radius: 12px;
        padding: 14px;
        max-height: 90vh;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .admin-container {
        margin-top: 50px;
        padding: 10px;
    }

    .admin-header h1 {
        font-size: 18px;
    }

    .admin-tab {
        padding: 8px 10px;
        font-size: 10px;
        min-width: 60px;
    }

    .product-grid {
        gap: 10px;
    }

    .product-admin-card {
        padding: 10px;
    }

    .product-admin-card img {
        height: 100px;
    }

    .orders-table table {
        font-size: 11px;
    }

    .orders-table th,
    .orders-table td {
        padding: 6px;
    }

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

    .stat-card {
        padding: 10px;
    }

    .stat-card h4 {
        font-size: 10px;
    }

    .stat-card .stat-value {
        font-size: 18px;
    }

    .footer {
        padding: 20px 12px;
    }

    .footer-section h3 {
        font-size: 14px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 11px;
    }

    .footer-login-cta {
        flex-direction: column;
        gap: 8px;
    }

    .footer-login-btn {
        width: 100%;
        justify-content: center;
    }

    .btn,
    .admin-tab,
    button,
    a.btn {
        min-height: 44px;
        min-width: 44px;
    }

    .row {
        flex-direction: column;
    }

    .container {
        width: 100%;
        padding: 0 12px;
    }
}

/* Very small phones (max-width: 360px) */
@media (max-width: 360px) {
    body {
        font-size: 12px;
    }

    .nav-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .nav-logo .logo-text {
        font-size: 18px;
    }

    .site-logo-img {
        height: 36px;
        max-width: 140px;
        padding: 0;
    }

    .nav-icons .icon-btn {
        width: 40px;
        height: 40px;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .hero h1,
    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .hero p,
    .hero-description {
        font-size: 13px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 22px;
    }

    .section h2 {
        font-size: 16px;
    }

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

    .product-card {
        padding: 6px;
    }

    .product-image {
        height: 80px;
    }

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

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

    .btn {
        padding: 10px 12px;
        font-size: 11px;
    }

    .footer-section {
        padding: 10px;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 13px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 10px;
    }

    .cart-sidebar {
        width: 100%;
    }

    .cart-header h3 {
        font-size: 16px;
    }

    .modal-content {
        margin: 10px;
        padding: 12px;
        max-height: 95vh;
    }
}


/* Landscape orientation (max-width: 768px) */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        padding: 6px 0;
    }

    .hero {
        padding: 30px 16px;
        min-height: 280px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .section {
        padding: 24px 16px;
    }

    .admin-container {
        margin-top: 55px;
    }

    .modal-content {
        max-height: 80vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    button:hover,
    a:hover {
        background-color: inherit;
        color: inherit;
    }

    .admin-tab:hover {
        background-color: inherit;
    }

    .product-card:hover {
        transform: none;
    }

    .btn,
    button {
        transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn:active,
    button:active {
        transform: scale(0.98);
    }

    .btn,
    button,
    a.btn,
    .admin-tab {
        min-height: 44px;
        min-width: 44px;
    }

    .product-actions {
        gap: 8px;
    }

    a,
    button,
    input,
    select {
        touch-action: manipulation;
    }
}

/* Print styles */
@media print {
    .navbar,
           background: var(--navbar-bg, var(--primary-bg));
           color: var(--primary-text);
           font-family: var(--font-family-main);
           border-bottom: 1px solid var(--border-color, #eee);

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn:active {
        transform: none;
    }
}

/* ===================================
   EXTENDED ADMIN PANEL STYLES
   =================================== */

/* Admin Section Header */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-section-header h2 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-section-header h2 i {
    color: var(--secondary-color);
}

.public-availability-note {
    margin: -10px 0 15px;
    color: var(--text-light);
    font-size: 14px;
}

.public-availability-note strong {
    color: var(--text-color);
}

/* Search Box */
.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    min-width: 250px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* Date Range Picker */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-picker input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.date-range-picker span {
    color: var(--text-light);
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-secondary {
    background: #f5f5f5;
    color: #616161;
}

/* Category Tree */
.category-tree {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.category-item.sub-category {
    padding-left: 40px;
    background: #fafafa;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-name i {
    color: var(--secondary-color);
}

/* Content Blocks */
.content-block-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--secondary-color);
}

.content-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.content-block-title {
    font-weight: 600;
    font-size: 16px;
}

.content-block-location {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
}

.content-block-preview {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

/* Communication Tabs */
.comm-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.comm-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.comm-tab.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.comm-tab:hover {
    color: var(--secondary-color);
}

/* Email Template Card */
.template-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.template-name {
    font-weight: 600;
    font-size: 16px;
}

.template-subject {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.template-preview {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
    max-height: 150px;
    overflow-y: auto;
}

/* Role Card */
.role-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.role-name {
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-name i {
    color: var(--secondary-color);
}

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

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.permission-item i.fa-check {
    color: var(--success-color);
}

.permission-item i.fa-times {
    color: var(--error-color);
}

/* Coupon Card */
.coupon-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border: 2px dashed var(--border-color);
}

.coupon-card.active {
    border-color: var(--success-color);
}

.coupon-card.expired {
    border-color: var(--error-color);
    opacity: 0.7;
}

.coupon-code {
    font-family: monospace;
    font-size: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.coupon-discount {
    font-size: 24px;
    font-weight: bold;
    color: var(--success-color);
}

.coupon-meta {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
}

/* Shipping Method Card */
.shipping-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shipping-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary-color);
}

.shipping-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.shipping-details p {
    font-size: 13px;
    color: var(--text-light);
}

.shipping-rate {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Analytics Charts Container */
#analytics-charts-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

/* Inventory Adjustment Modal */
.adjustment-type {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.adjustment-type button {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-weight: 500;
    transition: var(--transition);
}

.adjustment-type button.active {
    border-color: var(--secondary-color);
    background: rgba(255, 107, 0, 0.1);
    color: var(--secondary-color);
}

.adjustment-type button:hover {
    border-color: var(--secondary-color);
}

/* Customer Notes */
.customer-notes {
    margin-top: 15px;
}

.customer-note {
    background: #fafafa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid var(--secondary-color);
}

.customer-note-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.customer-note-content {
    font-size: 14px;
}

/* Audit Log Entry */
.audit-log-entry {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.audit-log-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audit-log-content {
    flex: 1;
}

.audit-log-action {
    font-weight: 600;
    margin-bottom: 5px;
}

.audit-log-details {
    font-size: 13px;
    color: var(--text-light);
}

.audit-log-time {
    font-size: 12px;
    color: var(--text-light);
}

/* Content Filters */
.content-filters select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

/* Responsive Admin Extended */
@media (max-width: 768px) {
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-section-header h2 {
        font-size: 18px;
    }

    .search-box input {
        min-width: 100%;
        width: 100%;
    }

    .date-range-picker {
        flex-direction: column;
        width: 100%;
    }

    .date-range-picker input {
        width: 100%;
    }

    .shipping-card {
        flex-direction: column;
        text-align: center;
    }

    .coupon-meta {
        flex-direction: column;
        gap: 5px;
    }

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

    .comm-tabs {
        overflow-x: auto;
    }
}

/* Placeholder Text Styling */
::placeholder {
    color: #999;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #999;
}

::-ms-input-placeholder {
    color: #999;
}

/* Development/Test Banner (disabled for customers) */
#dev-banner {
    display: none !important;
}

/* ===================================
   RESPONSIVE DESIGN - ENHANCED PRODUCT CARDS
   =================================== */

@media (max-width: 768px) {
    .product-card {
        min-height: 420px;
        padding: 20px;
    }

    .product-image {
        height: 240px;
        margin-bottom: 16px;
    }

    .product-info {
        padding: 20px 0;
    }

    .product-name {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .product-description {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 15px;
        min-height: 36px;
    }

    .product-features {
        gap: 6px;
        margin-bottom: 12px;
    }

    .feature-tag {
        font-size: 11px;
        padding: 3px 6px;
    }

    .price-section {
        margin-bottom: 12px;
    }

    .product-price-current {
        font-size: 22px;
    }

    .original-price {
        font-size: 14px;
    }

    .discount-badge {
        font-size: 10px;
        padding: 1px 4px;
    }

    .product-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .add-to-cart-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-card {
        min-height: 350px;
        padding: 16px;
    }

    .product-image {
        height: 180px;
        margin-bottom: 12px;
    }

    .product-info {
        padding: 16px 0;
    }

    .product-name {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .product-description {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .product-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        padding-top: 8px;
    }

    .product-price {
        font-size: 16px;
        text-align: left;
    }

    .add-to-cart-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Responsive adjustments for navbar circular background */
@media (max-width: 1024px) {
    .navbar::before {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 640px) {
    .navbar::before {
        width: 110px;
        height: 110px;
        top: 50%;
        transform: translate(-50%, -45%);
    }
}
/* ===================================
   WISHLIST & COMPARE FEATURES
   =================================== */

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-size: 14px;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #27ae60;
}

.toast-success i {
    color: #27ae60;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-error i {
    color: #e74c3c;
}

.toast-warning {
    border-left-color: #f39c12;
}

.toast-warning i {
    color: #f39c12;
}

.toast-info {
    border-left-color: var(--primary-color);
}

.toast-info i {
    color: var(--primary-color);
}

/* ======================================
   UPGRADE — Why Ace#1 Feature Strip
   ====================================== */
.why-ace1-strip {
    padding: 80px 0;
    background: var(--bg-light, #f8f9fa);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.why-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.why-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color, #111);
}
.why-card p {
    font-size: 0.95rem;
    color: var(--text-light, #666);
    line-height: 1.6;
}

/* ======================================
   UPGRADE — Technology Teaser
   ====================================== */
.tech-teaser {
    padding: 80px 0;
    background: #fff;
}
.tech-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.tech-teaser-text .hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light, #999);
    margin-bottom: 10px;
}
.tech-teaser-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-color, #111);
}
.tech-teaser-text > p {
    font-size: 1.05rem;
    color: var(--text-light, #555);
    line-height: 1.7;
    margin-bottom: 24px;
}
.tech-teaser-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.tech-teaser-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light, #f0f0f0);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-color, #333);
}
.tech-teaser-features span i {
    color: #667eea;
}
.tech-teaser-visual img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .tech-teaser-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ======================================
   UPGRADE — Customer Promise Strip
   ====================================== */
.customer-promise {
    padding: 50px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}
.promise-item i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.95;
}
.promise-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.promise-item p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ======================================
   UPGRADE — Innovation Timeline
   ====================================== */
.timeline-section {
    padding: 80px 0;
    background: var(--bg-light, #f8f9fa);
}
.timeline {
    position: relative;
    max-width: 700px;
    margin: 40px auto 0;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 24px;
}
.timeline-marker {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #667eea;
}
.timeline-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color, #111);
}
.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light, #666);
}

/* ======================================
   UPGRADE — Why Choose Section
   ====================================== */
.why-choose-section {
    padding: 80px 0;
    background: #fff;
}
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.why-choose-card {
    background: var(--bg-light, #f8f9fa);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid transparent;
}
.why-choose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    border-color: #667eea;
}
.why-choose-card i {
    font-size: 2.5rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.why-choose-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color, #111);
}
.why-choose-card p {
    font-size: 0.95rem;
    color: var(--text-light, #666);
    line-height: 1.65;
}

/* ======================================
   UPGRADE — Technology Deep-Dive Grid
   ====================================== */
.tech-deep-dive {
    padding: 80px 0;
    background: var(--bg-light, #f8f9fa);
}
.tech-deep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.tech-deep-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-bottom: 3px solid transparent;
}
.tech-deep-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    border-bottom-color: #667eea;
}
.tech-deep-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}
.tech-deep-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color, #111);
}
.tech-deep-card p {
    font-size: 0.95rem;
    color: var(--text-light, #666);
    line-height: 1.65;
}

/* ======================================
   UPGRADE — Enhanced Section Styling
   ====================================== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color, #111);
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light, #666);
    max-width: 600px;
    margin: 0 auto;
}

/* ======================================
   UPGRADE — Smooth scroll & page transitions
   ====================================== */
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ======================================
   UPGRADE — Scroll Reveal Animations
   ====================================== */
.sr-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.sr-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================
   UPGRADE — Newsletter Strip
   ====================================== */
.newsletter-strip {
    padding: 48px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}
.newsletter-strip-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.newsletter-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.newsletter-text h3 i {
    margin-right: 8px;
    color: #667eea;
}
.newsletter-text p {
    font-size: 0.95rem;
    opacity: 0.8;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
    padding: 12px 20px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.95rem;
    min-width: 260px;
    outline: none;
    transition: border-color 0.3s ease;
}
.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}
.newsletter-form input[type="email"]:focus {
    border-color: #667eea;
}
.newsletter-form button {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .newsletter-strip-content {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    .newsletter-form input[type="email"] {
        min-width: auto;
        width: 100%;
    }
    .newsletter-form button {
        width: 100%;
    }
}

