@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-white: #ffffff;
    --primary: #333e48;      /* Electro dark slate */
    --accent: #2252d1;       /* Royal Blue */
    --accent-hover: #1b43b4;
    --border-color: #ededed;
    --border-dark: #dddddd;
    
    --text-primary: #333e48;
    --text-secondary: #747474;
    --text-muted: #9c9c9c;
    
    --success: #00b853;
    --warning: #ff9f00;
    --danger: #ea3a3a;
    
    --font-sans: 'Open Sans', 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

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

button, input, select, textarea {
    font-family: var(--font-sans);
    outline: none;
}
.text-danger{color: var(--danger);}
input, select, textarea {
    background-color: var(--bg-white);
    border: 1px solid var(--border-dark);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 62, 72, 0.1);
}

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

.container {
    max-width: 1430px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- HEADER DESIGN (Electro style) --- */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

/* 1. Top Bar */
.top-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* 2. Main Header (Logo, Search, Cart) */
.main-header {
    padding: 24px 0;
}

.main-logo {
    max-width: 150px;
}

.main-header-inner {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    gap: 30px;
}

/* Logo SotechCI */
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.04em;
}

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

.logo span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: -6px;
    width: 5px;
    height: 5px;
    background-color: var(--accent);
    border-radius: 50%;
}

/* Search bar */
.search-bar-wrap {
    display: flex;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.search-bar-wrap input {
    border: 2px solid var(--accent);
    border-right: none;
    border-top-left-radius: 40px;
    border-bottom-left-radius: 40px;
    padding: 12px 24px;
    font-size: 14px;
    height: 48px;
}

.search-btn {
    background-color: #2252d1;
    color: #ffffff;
    font-weight: 700;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    padding: 0 30px;
    font-size: 14px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background-color: #1b43b4;
    color: #ffffff;
}

/* Header Cart Box */
.header-cart-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon-btn {
    position: relative;
    background-color: var(--accent);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffffff;
    color: var(--accent);
    font-weight: 800;
    font-size: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-white);
}

.cart-text-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.cart-text-details .cart-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.cart-text-details .cart-total {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

/* 3. Navigation Bar */
.nav-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: #011962;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* Browse categories button menu */
.browse-categories-wrap {
    position: relative;
    width: 240px;
    z-index: 90;
}

.browse-categories-btn {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
}

.browse-categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    list-style: none;
    display: none; /* Show dynamically or on hover */
}

.browse-categories-wrap:hover .browse-categories-dropdown {
    display: block;
}

.browse-categories-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.browse-categories-dropdown li a:hover {
    background-color: #fafafa;
    color: var(--primary);
    padding-left: 25px;
}

.browse-categories-dropdown li:last-child a {
    border-bottom: none;
}

/* Horizontal menu links */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    padding-left: 40px;
    align-items: center;
}

.nav-menu-link {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu-link:hover, .nav-menu-link.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -2px;
}

/* Scrolled Sticky Menu Styles */
.nav-bar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 1px solid transparent;
    border-bottom: 1px solid var(--border-color);
}

.nav-bar.scrolled .nav-menu-link {
    color: #333e48;
}

.nav-bar.scrolled .nav-menu-link:hover, .nav-bar.scrolled .nav-menu-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- MAIN WORKSPACE --- */
main {
    flex: 1;
    padding: 30px 0 60px 0;
    
}

/* Hero Section */
.hero {
    background-color: #eaeef1;
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    background-image: radial-gradient(circle at 80% 50%, var(--accent) 0%, rgba(34, 82, 209, 0.1) 60%);
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 480px;
}

.hero-btn {
    background-color: var(--primary);
    color: var(--accent);
    padding: 12px 30px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    display: inline-block;
}

.hero-btn:hover {
    background-color: #222b33;
    color: #fff;
    transform: translateY(-2px);
}

.hero-img-box {
    text-align: center;
}

.hero-img-box i {
    font-size: 180px;
    color: var(--primary);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Store Controls */
.store-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.store-controls .search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.store-controls .search-box input {
    border-radius: 30px;
    padding-left: 40px;
    border: 1px solid var(--border-dark);
}

.store-controls .search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.category-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.filter-btn:hover {
    background-color: #f1f5f9;
    color: var(--primary);
    border-color: var(--border-dark);
}

.filter-btn.active {
    background-color: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Layout Grid Client */
.store-layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.widget-menu {
    list-style: none;
}

.widget-menu li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid #f8f8f8;
}

.widget-menu li a:hover {
    color: var(--primary);
}

.widget-menu li:last-child a {
    border-bottom: none;
}

/* Product Card Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Product Card SotechCI (Electro style) */
.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 330 / 265;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.product-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: translate(-50%, -50%) scale(1.05);
}

.product-img-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-light);
}

.product-img-fallback i {
    font-size: 40px;
    color: #cbd5e1;
}

.product-img-fallback span {
    font-size: 11px;
    margin-top: 6px;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    color: var(--bg-white);
    z-index: 10;
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
    display: block;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--primary);
}

.product-title a:hover {
    color: var(--accent-hover);
}

.product-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Stars rating simulator */
.rating-stars {
    color: var(--accent);
    font-size: 11px;
    margin-bottom: 12px;
    display: flex;
    gap: 2px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f8f9fa;
}

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

.stock-status {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stock-in { color: var(--success); }
.stock-in .stock-dot { background-color: var(--success); }

.stock-low { color: var(--warning); }
.stock-low .stock-dot { background-color: var(--warning); }

.stock-out { color: var(--danger); }
.stock-out .stock-dot { background-color: var(--danger); }

.btn-add-cart {
    background-color: #2252d1;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: #1b43b4;
    color: #ffffff;
}

.btn-add-cart:disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.detail-img-box {
    border: 1px solid var(--border-color);
    background-color: #fafafa;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.detail-img-box img {
    max-width: 85%;
    max-height: 360px;
    object-fit: contain;
}

.detail-info-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.detail-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 12px;
}

.detail-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.detail-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.detail-meta {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
}

.detail-actions {
    display: flex;
    gap: 15px;
}

.btn-large {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: #2252d1;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1b43b4;
    color: #ffffff;
}

.btn-primary:disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
}

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

.btn-secondary:hover {
    background-color: #222b33;
    color: #fff;
}

/* --- CART PAGE --- */
.cart-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 30px;
}

.cart-items-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

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

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    background-color: #fafafa;
    border-radius: var(--radius-sm);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-title a {
    color: var(--primary);
}

.cart-item-title a:hover {
    color: var(--accent-hover);
}

.cart-item-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-dark);
    background-color: var(--bg-body);
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

.quantity-val {
    font-weight: 700;
    font-size: 13px;
    width: 15px;
    text-align: center;
}

.cart-item-total {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    min-width: 90px;
    text-align: right;
}

.btn-remove-item {
    color: var(--text-muted);
    font-size: 14px;
}

.btn-remove-item:hover {
    color: var(--danger);
}

.empty-cart-message {
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
}

.empty-cart-message i {
    font-size: 60px;
    color: #cbd5e1;
    margin-bottom: 15px;
    display: block;
}

/* Sidebar Totals & checkout form */
.cart-summary-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.summary-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.summary-box h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-row.total-row {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.checkout-form-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.checkout-form-box h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-group input, .form-group textarea {
    padding: 8px 12px;
    font-size: 13px;
}

.btn-checkout-submit {
    background-color: #2252d1;
    color: #ffffff;
    width: 100%;
    padding: 12px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-top: 10px;
    box-shadow: var(--shadow-sm);
}

.btn-checkout-submit:hover {
    background-color: #1b43b4;
    color: #ffffff;
}

/* --- AUTH (LOGIN) --- */
.auth-wrapper {
    max-width: 400px;
    width: 100%;
    margin: 40px auto;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

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

.auth-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

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

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.alert-danger {
    background-color: #fdf2f2;
    color: var(--danger);
    border: 1px solid #fbd5d5;
}

.alert-success {
    background-color: #f3faf5;
    color: var(--success);
    border: 1px solid #def7ec;
}

/* --- FOOTER DESIGN --- */
footer {
    background-color: var(--primary);
    background-color: #a8dadc;
    color: #fff;
    padding: 50px 0 30px 0;
    margin-top:  60px !important;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 35px;
    margin-bottom: 25px;
}

.footer-about .logo {
    color: #fff;
    margin-bottom: 15px;
}

.footer-about p {
    color: #333;
    font-size: 13px;
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: #333;
    font-size: 13px;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 12px;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }

/* Toast Notifications */
.toast-notification {
    animation: slideInUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* --- NEW ELECTRO SINGLE PRODUCT FULLWIDTH STYLING --- */

.single-product-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.single-product-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

/* Left Column: Image Gallery block */
.product-gallery-box {
    text-align: center;
}

.product-gallery-main {
    border: 1px solid var(--border-color);
    background-color: #fafafa;
    border-radius: var(--radius-sm);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    position: relative;
}

.product-gallery-main img {
    max-width: 85%;
    max-height: 380px;
    object-fit: contain;
}

/* Right Column: Info & Action block */
.product-summary-box {
    display: flex;
    flex-direction: column;
}

.product-summary-category {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.product-summary-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 12px;
}

.product-summary-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-summary-price-box {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.product-summary-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.product-summary-meta {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 13px;
}

.product-meta-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-meta-val {
    font-weight: 700;
    color: var(--primary);
}

.product-action-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-action-btn-add {
    background-color: #2252d1;
    color: #ffffff;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(34, 82, 209, 0.2);
}

.product-action-btn-add:hover {
    background-color: #1b43b4;
    color: #ffffff;
    box-shadow: none;
}

.product-action-btn-add:disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Electro Tabs Section */
.product-tabs-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
}

.product-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: #fafafa;
}

.product-tab-link {
    padding: 18px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    display: block;
}

.product-tab-link.active {
    background-color: var(--bg-white);
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -1px;
}

.product-tab-link:hover:not(.active) {
    color: var(--primary);
    background-color: #f5f5f5;
}

.product-tabs-content {
    padding: 30px;
}

.product-tab-pane {
    display: none;
    line-height: 1.7;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.product-tab-pane.active {
    display: block;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-color);
}

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

.spec-table td {
    padding: 12px 20px;
}

.spec-table td.spec-label {
    width: 25%;
    font-weight: 700;
    color: var(--primary);
}

/* Hero Section Fullwidth (Style Electro v2.0) */
.home-hero-section-fw {
    width: 100%;
    background-color: #011962;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='none' stroke='rgba%28255,%20255,%20255,%200.15%29' stroke-width='2.5' d='M0,160 C320,300 640,20 960,300 1280,180 1360,220 1440,160'/%3E%3Cpath fill='none' stroke='rgba%28255,%20255,%20255,%200.08%29' stroke-width='1.5' d='M0,200 C320,80 640,300 960,100 1150,220 1295,150 1440,240'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #011962 0%, #1e40af 100%);
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    border-bottom: 1px solid #1e3a8a;
    padding: 25px 0 35px 0;
    margin-top: 0;
    margin-bottom: 40px;
}

/* Overrides pour la lisibilité sur fond bleu foncé tendance */
.home-hero-section-fw .hero-slide-slogan {
    color: rgba(255, 255, 255, 0.75) !important;
}
.home-hero-section-fw .hero-slide-title {
    color: #ffffff !important;
}
.home-hero-section-fw .hero-slide-content p {
    color: rgba(255, 255, 255, 0.8) !important;
}
.home-hero-section-fw .hero-slide-price {
    color: rgba(255, 255, 255, 0.7) !important;
}
.home-hero-section-fw .hero-slide-price span {
    color: #ffffff !important;
}
.home-hero-section-fw .hero-btn-yellow {
    background-color: #ffffff !important;
    color: #011962 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}
.home-hero-section-fw .hero-btn-yellow:hover {
    background-color: #f1f5f9 !important;
    color: #1b43b4 !important;
    transform: translateY(-2px) !important;
}
.home-hero-section-fw .slider-dot {
    background-color: rgba(255, 255, 255, 0.3) !important;
}
.home-hero-section-fw .slider-dot.active {
    background-color: #ffffff !important;
}

.home-hero-section-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Category menu styling in Hero */
.hero-category-widget {
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent); /* Yellow top border */
    padding: 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-category-widget .widget-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--accent);
    padding: 15px 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-category-widget .widget-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-category-widget .widget-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
    text-decoration: none;
}

.hero-category-widget .widget-menu li:last-child a {
    border-bottom: none;
}

.hero-category-widget .widget-menu li a:hover {
    color: var(--primary);
    background-color: #f8fafc;
    padding-left: 24px;
}

.hero-category-widget .widget-menu li a i {
    font-size: 9px;
    color: #cbd5e1;
    transition: var(--transition);
}

.hero-category-widget .widget-menu li a:hover i {
    transform: translateX(3px);
    color: var(--primary);
}

/* Slider Container */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: transparent;
    flex-grow: 1;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Slides */
.hero-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 30px 95px;
    min-height: 440px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    background: transparent;
}

.hero-slide-content {
    z-index: 2;
    text-align: left;
}

.hero-slide-slogan {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.hero-slide-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 15px;
    color: var(--primary);
    text-transform: uppercase;
}

.hero-slide-title strong {
    font-weight: 800;
}

.hero-slide-img-box {
    text-align: right;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-slide-img {
    max-height: 340px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.08));
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide-img:hover {
    transform: scale(1.04);
}

.hero-btn-yellow {
    background-color: #2252d1;
    color: #ffffff;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 30px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    border: none;
    box-shadow: 0 4px 12px rgba(34, 82, 209, 0.2);
}

.hero-btn-yellow:hover {
    background-color: #1b43b4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(27, 67, 180, 0.15);
}

/* Slider Navigation Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    padding: 0;
    margin: 0;
    line-height: 1;
    outline: none;
}

.slider-nav i {
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.prev-slide {
    left: 24px;
}

.next-slide {
    right: 24px;
}

.slider-dots {
    position: relative;
    display: flex;
    gap: 8px;
    z-index: 5;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(51, 62, 72, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot.active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background-color: var(--accent);
}

/* Bannières Promo Nouveautés - 4 Colonnes Style Electro */
.electro-promo-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.electro-promo-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    padding: 20px;
    border-radius: 4px;
    background-color: #f5f5f5; /* Fond gris clair uni */
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 150px;
}

.electro-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    background-color: #ededed;
}

.electro-promo-card-body {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-left: 10px;
}

.promo-line-1 {
    font-size: 11px;
    font-weight: 400;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    display: block;
}

.promo-line-2 {
    font-size: 16px;
    font-weight: 300;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    display: block;
}

.promo-line-2 strong {
    font-weight: 800;
}

.promo-line-3 {
    font-size: 16px;
    font-weight: 300;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    display: block;
    margin-bottom: 8px;
}

.promo-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.promo-arrow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    transition: var(--transition);
}

.electro-promo-card:hover .promo-arrow {
    transform: translateX(4px);
}

.electro-promo-card-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 110px;
    transition: transform 0.3s ease;
}

.electro-promo-card:hover .electro-promo-card-img-wrap {
    transform: scale(1.06);
}

.electro-promo-card-img {
    max-height: 105px;
    max-width: 100%;
    object-fit: contain;
}

.electro-promo-card-fallback-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   MEDIA QUERIES FOR RESPONSIVE DESIGN (Electro style)
   ========================================================================== */

/* 1. Large Screens & Tablets (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .home-hero-section-fw {
        padding: 15px 0;
        margin-bottom: 25px;
        background-image: none; /* simple flat color on tablet */
    }
    
    .home-hero-section-inner {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    
    .hero-category-widget {
        display: none !important; /* Hides categories widget in hero on tablet/mobile */
    }
    
    .slider-container {
        min-height: 320px;
    }
    
    .hero-slide {
        grid-template-columns: 1fr !important;
        padding: 20px 80px !important;
        min-height: 320px;
        text-align: center;
    }
    
    .hero-slide-content {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .hero-slide-title {
        font-size: 2.2rem;
    }
    
    .hero-slide-img-box {
        text-align: center;
        justify-content: center;
    }
    
    .hero-slide-img {
        max-height: 200px;
    }
    
    .slider-dots {
        position: relative;
        left: auto;
        transform: none;
        bottom: auto;
        margin-top: -30px;
    }
    
    .electro-promo-banners {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .store-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-panel {
        display: none; /* Hide sidebar completely on tablet/mobile for clean catalog layout */
    }
    
    .cart-layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 2. Mobile Landscape & Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Header Stacking */
    .top-bar-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .top-bar-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .main-header-inner {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
        justify-items: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    .search-bar-wrap {
        max-width: 100%;
    }
    
    .header-cart-box {
        justify-content: center;
    }
    
    .nav-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .browse-categories-wrap {
        width: 100%;
    }
    
    .nav-bar nav {
        display: none; /* Hide horizontal nav links on mobile */
    }
    
    /* Hero Slides on Mobile */
    .hero-slide {
        grid-template-columns: 1fr !important;
        padding: 30px 80px !important;
        min-height: 240px !important;
    }
    
    .hero-slide > div {
        text-align: center !important;
    }
    
    .hero-slide h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-slide p {
        margin-bottom: 15px !important;
    }
    
    .hero-img-box {
        display: none !important; /* Hide image inside slide for clean mobile view */
    }
    
    /* Fallback Static Hero */
    .hero {
        grid-template-columns: 1fr !important;
        padding: 30px 20px !important;
        text-align: center !important;
    }
    
    .hero > div {
        text-align: center !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-img-box {
        display: none !important;
    }
    
    /* Product Details Page */
    .single-product-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-gallery-main {
        min-height: 280px;
        padding: 15px;
    }
    
    .product-gallery-main img {
        max-height: 250px;
    }
    
    .product-summary-title {
        font-size: 20px;
    }
    
    .product-summary-price-box {
        font-size: 22px;
    }
}

/* 3. Portrait Mobiles (max-width: 576px) */
@media (max-width: 576px) {
    .electro-promo-banners {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .electro-promo-card {
        grid-template-columns: 1fr; /* Stack text and image vertically */
        padding: 20px;
        text-align: center;
        min-height: auto;
    }
    
    .electro-promo-card-body {
        text-align: center;
        margin-bottom: 15px;
        padding-left: 0;
    }
    
    .promo-link {
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-card-body {
        padding: 12px;
    }
    
    .product-title {
        font-size: 13px;
        height: 36px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .btn-add-cart {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .product-summary-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 25, 98, 0.95); /* Deep dark blue overlay */
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.lightbox-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

#lightbox-caption {
    margin-top: 20px;
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
}

#lightbox-counter {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsiveness for Lightbox */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
        z-index: 10;
        background: rgba(0,0,0,0.5);
    }
    .lightbox-next {
        right: 10px;
        z-index: 10;
        background: rgba(0,0,0,0.5);
    }
    .lightbox-content-wrapper {
        max-width: 95%;
    }
}

/* Responsive Footer & Cart */
@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cart-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
