/* Google Fonts: Outfit for Headings, Inter for Body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0f172a;        /* Dark Slate */
    --primary-light: #1e293b;
    --accent: #0d9488;         /* Teal */
    --accent-hover: #0f766e;
    --accent-light: #ccfbf1;
    --secondary: #06b6d4;      /* Cyan */
    --success: #22c55e;        /* Green for success & WhatsApp */
    --success-hover: #16a34a;
    --warning: #f59e0b;        /* Orange/Yellow */
    --danger: #ef4444;         /* Red */
    --bg-light: #f8fafc;       /* Slate 50 */
    --bg-white: #ffffff;
    --text-main: #334155;      /* Slate 700 */
    --text-dark: #0f172a;      /* Slate 900 */
    --text-muted: #64748b;     /* Slate 500 */
    --border-color: #e2e8f0;   /* Slate 200 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.2s ease;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
}

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

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

/* Top bar style */
.topbar {
    background-color: var(--primary);
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    padding: 8px 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Header main */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
}

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

/* Search bar */
.search-form {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 10px;
}

.search-form button:hover {
    color: var(--accent);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.btn-whatsapp-header {
    background-color: var(--success);
    color: #ffffff;
}

.btn-whatsapp-header:hover {
    background-color: var(--success-hover);
}

.cart-icon-btn {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.cart-icon-btn:hover {
    background: var(--border-color);
}

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

/* Desktop Navigation */
.nav-bar {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 12px 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* ====================================================
   BANNER SLIDER (IMAGE ONLY HORIZONTAL)
==================================================== */
.tm-home-banner-slider {
    position: relative;
    max-width: 1265px;
    margin: 18px auto 28px;
    overflow: hidden;
}

.tm-banner-viewport {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.tm-banner-track {
    display: flex;
    transition: transform 600ms ease;
    will-change: transform;
}

.tm-banner-slide {
    flex: 0 0 100%;
    display: block;
    text-decoration: none;
}

.tm-banner-slide img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ── Prev / Next arrows ── */
.tm-banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}

.tm-banner-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.tm-banner-prev { left: 16px; }
.tm-banner-next { right: 16px; }

/* ── Dot indicators ── */
.tm-banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.tm-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

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

/* ====================================================
   BACK-TO-TOP BUTTON  (fixed bottom-left, no WhatsApp conflict)
==================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent);
    transform: scale(1.08);
}





/* Category grid (circles or rounded square cards) */
.section-title {
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}



/* Product list layout grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 30px;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 5;
}

.badge-promo { background-color: var(--danger); }
.badge-featured { background-color: var(--accent); }
.badge-bestseller { background-color: var(--primary); }

.product-img {
    position: relative;
    padding: 20px;
    background: var(--bg-light);
    aspect-ratio: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-height: 160px;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.product-compatibility {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 15px;
}

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

.product-old-price {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--text-muted);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.btn-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

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

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

/* Promo Banner Section */
.promo-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    padding: 60px 0;
    margin: 50px 0;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.promo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
    gap: 30px;
}

.promo-text {
    max-width: 60%px;
}

.promo-text h3 {
    color: white;
    font-size: 32px;
    margin-bottom: 10px;
}

.promo-text p {
    color: #cbd5e1;
    font-size: 16px;
}

/* Why choose us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

/* Catalog Sidebar Page */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    margin: 40px 0;
}

.sidebar {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    height: fit-content;
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h5 {
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.filter-links {
    list-style: none;
}

.filter-links li {
    margin-bottom: 8px;
}

.filter-links a {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
}

.filter-links a:hover,
.filter-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Product details styling */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    margin: 40px 0;
}

.product-gallery {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.1;
    height: fit-content;
}

.product-gallery img {
    max-height: 350px;
    object-fit: contain;
}

.details-brand {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.details-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.details-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0 25px;
}

.details-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.details-old-price {
    font-size: 18px;
    text-decoration: line-through;
    color: var(--text-muted);
}

.details-stock {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
}

.stock-in {
    background-color: #dcfce7;
    color: #15803d;
}

.stock-out {
    background-color: #fee2e2;
    color: #b91c1c;
}

.details-short-desc {
    margin-bottom: 25px;
    font-size: 15px;
}

.compatibility-box {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary);
}

.compatibility-box h5 {
    font-size: 14px;
    margin-bottom: 5px;
}

.compatibility-box p {
    font-size: 13.5px;
    color: var(--text-main);
}

.cart-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 45px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

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

.quantity-selector input {
    width: 50px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 15px;
    font-weight: 600;
}

.btn-buy-now {
    flex: 1;
    background-color: var(--primary);
    color: white;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

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

.btn-whatsapp-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: var(--success);
    color: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 10px;
    font-size: 15px;
}

.btn-whatsapp-order:hover {
    background-color: var(--success-hover);
}

.details-long-desc {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.details-long-desc h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

.cart-table th {
    text-align: left;
    padding: 15px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

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

.cart-item-remove {
    color: var(--danger);
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
}

.cart-total-box {
    margin-left: auto;
    max-width: 400px;
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.cart-total-row.final {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Checkout Page */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
}

.form-card h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.checkout-summary-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    height: fit-content;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.checkout-summary-item span:first-child {
    font-weight: 500;
    max-width: 70%;
}

/* Success layout */
.success-card {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.success-icon {
    font-size: 60px;
    color: var(--success);
    margin-bottom: 20px;
    display: block;
}

/* About & Contact pages */
.static-page {
    max-width: 800px;
    margin: 50px auto;
}

.static-page h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.static-page p {
    margin-bottom: 15px;
}

.static-page ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.static-page li {
    margin-bottom: 8px;
}

/* Sticky WhatsApp chat btn */
.whatsapp-sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--success);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 99;
}

.whatsapp-sticky:hover {
    transform: scale(1.1);
}

/* Footer Section */
footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 4px solid var(--accent);
}

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

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 8px;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Footer Social Icons Styling */
.footer-social {
    margin-top: 25px;
}

.footer-social h4 {
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-social h4::after {
    display: none !important; /* Hide underline on sub-heading */
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.25s ease;
}

.footer-social-icons a:hover {
    background: #14b8a6;
    transform: translateY(-2px);
}

.footer-social-icons svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
}

/* --- ADMIN DASHBOARD PANELS STYLE --- */
.admin-login-body {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.admin-login-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    border-top: 4px solid var(--accent);
}

.admin-login-card h2 {
    margin-bottom: 25px;
    text-align: center;
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--primary);
    color: white;
    padding: 25px;
}

.admin-sidebar .logo {
    color: white;
    margin-bottom: 30px;
    font-size: 22px;
}

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

.admin-menu li {
    margin-bottom: 8px;
}

.admin-menu a {
    display: block;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.admin-menu a:hover,
.admin-menu a.active {
    background-color: var(--accent);
    color: white;
}

.admin-main {
    background-color: var(--bg-light);
    padding: 40px;
}

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

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--border-color);
}

.admin-stat-card.blue { border-left-color: var(--secondary); }
.admin-stat-card.teal { border-left-color: var(--accent); }
.admin-stat-card.green { border-left-color: var(--success); }
.admin-stat-card.orange { border-left-color: var(--warning); }

.admin-stat-num {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-dark);
}

.admin-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Admin Table */
.admin-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.admin-table tr:hover td {
    background-color: var(--bg-light);
}

.badge-status {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 30px;
}

.status-nouvelle { background: #dbeafe; color: #1e40af; }
.status-confirmee { background: #fef3c7; color: #92400e; }
.status-livraison { background: #ffedd5; color: #9a3412; }
.status-livree { background: #dcfce7; color: #166534; }
.status-annulee { background: #fee2e2; color: #991b1b; }

.status-active { background: #dcfce7; color: #166534; }
.status-inactive { background: #fee2e2; color: #991b1b; }

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
}

.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Responsive adjustments */
@media(max-width: 991px) {
    .header-main {
        flex-direction: column;
        align-items: stretch;
    }
    .catalog-layout,
    .product-details,
    .checkout-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    .admin-sidebar .logo {
        margin-bottom: 0;
    }
    .admin-menu {
        display: flex;
        gap: 10px;
    }
    .admin-menu a {
        padding: 8px 12px;
    }
    .admin-main {
        padding: 20px;
    }
}


@media(max-width: 767px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--bg-light);
        padding: 15px;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    .nav-links.show {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }

    /* ── Banner: mobile layout adjustments ── */
    .tm-home-banner-slider {
        margin: 10px 15px 20px;
    }
    .tm-banner-slide img {
        height: 160px; /* controlled height around 150px to 190px on mobile */
    }
    .tm-banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .tm-banner-prev { left: 8px; }
    .tm-banner-next { right: 8px; }


}
