/* ============================================
   Go Beauty - Main Stylesheet (Admin)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #E8A0BF;
    --primary-dark: #BA4F7C;
    --primary-light: #F5E6E0;
    --secondary: #D4A69A;
    --accent: #C9668E;
    --success: #10b981;
    --warning: #f5a623;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg-main: #fcf9f8;
    --bg-card: #ffffff;
    --bg-sidebar: #1a1a1a;
    --bg-sidebar-hover: #262626;
    --text-primary: #2d2d2d;
    --text-secondary: #7a7a7a;
    --text-muted: #9ca3af;
    --border: #f0e6e4;
    --shadow: 0 4px 15px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 40px rgba(186,79,124,.1);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
    --gradient-1: linear-gradient(135deg, #E8A0BF, #BA4F7C);
    --gradient-2: linear-gradient(135deg, #D4A69A, #E8A0BF);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --bg-sidebar: #0a0a0a;
    --bg-sidebar-hover: #1a1a1a;
    --text-primary: #f0e6ea;
    --text-secondary: #b0a0a8;
    --text-muted: #64748b;
    --border: #2d2d2d;
    --shadow: 0 4px 20px rgba(0,0,0,.3);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:var(--font-body); background:var(--bg-main); color:var(--text-primary); min-height:100vh; transition:var(--transition); }
h1,h2,h3,h4,h5,h6 { font-family:var(--font-display); font-weight:700; }
a { color:var(--primary-dark); text-decoration:none; transition:var(--transition); }
a:hover { color:var(--primary); }

/* Scrollbar */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--text-muted); border-radius:3px; }

/* ============ SIDEBAR ============ */
.gt-sidebar {
    position:fixed; left:0; top:0; bottom:0; width:var(--sidebar-width);
    background:var(--bg-sidebar); z-index:1040; transition:var(--transition);
    display:flex; flex-direction:column; overflow:hidden;
}
.gt-sidebar.collapsed { width:70px; }
.gt-sidebar .sidebar-brand {
    padding:20px; display:flex; align-items:center; gap:12px;
    border-bottom:1px solid rgba(255,255,255,.1); min-height:70px;
}
.gt-sidebar .sidebar-brand .brand-icon {
    width:40px; height:40px; border-radius:10px; background:var(--gradient-1);
    display:flex; align-items:center; justify-content:center; font-weight:800;
    color:#fff; font-size:18px; flex-shrink:0;
}
.gt-sidebar .sidebar-brand .brand-text { color:#fff; font-size:18px; font-weight:700; white-space:nowrap; }
.gt-sidebar.collapsed .brand-text,
.gt-sidebar.collapsed .nav-text,
.gt-sidebar.collapsed .sidebar-section-title { display:none; }

.sidebar-nav { flex:1; overflow-y:auto; padding:10px 0; }
.sidebar-section-title { padding:12px 20px 6px; color:rgba(255,255,255,.4); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:1px; }
.sidebar-nav .nav-item { padding:2px 10px; }
.sidebar-nav .nav-link {
    display:flex; align-items:center; gap:12px; padding:10px 14px;
    color:rgba(255,255,255,.7); border-radius:var(--radius-sm); font-size:14px;
    font-weight:500; transition:var(--transition); white-space:nowrap;
}
.sidebar-nav .nav-link:hover { background:var(--bg-sidebar-hover); color:#fff; }
.sidebar-nav .nav-link.active { background:var(--gradient-1); color:#fff; box-shadow:0 8px 20px rgba(186,79,124,.3); }
.sidebar-nav .nav-link i { font-size:18px; width:22px; text-align:center; flex-shrink:0; }
.sidebar-nav .nav-badge {
    margin-left:auto; background:var(--accent); color:#fff; font-size:11px;
    padding:2px 8px; border-radius:10px; font-weight:600;
}

.sidebar-footer { padding:15px; border-top:1px solid rgba(255,255,255,.05); }
.sidebar-footer .user-info { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.8); }
.sidebar-footer .user-avatar {
    width:36px; height:36px; border-radius:12px; background:var(--gradient-2);
    display:flex; align-items:center; justify-content:center; color:#fff;
    font-weight:700; font-size:14px; flex-shrink:0;
}
.sidebar-footer .user-name { font-size:13px; font-weight:600; }
.sidebar-footer .user-role { font-size:11px; color:rgba(255,255,255,.5); }

/* ============ MAIN CONTENT ============ */
.gt-main { margin-left:var(--sidebar-width); transition:var(--transition); min-height:100vh; }
.gt-sidebar.collapsed ~ .gt-main { margin-left:70px; }

.gt-topbar {
    height:70px; background:rgba(255,255,255,0.8); backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between;
    padding:0 24px; position:sticky; top:0; z-index:1030;
}
[data-theme="dark"] .gt-topbar { background:rgba(30,41,59,0.8); }

.gt-topbar .topbar-left { display:flex; align-items:center; gap:16px; }
.gt-topbar .topbar-right { display:flex; align-items:center; gap:12px; }
.gt-topbar .page-title { font-size:22px; font-weight:700; font-family:var(--font-display); }

.btn-toggle-sidebar {
    width:38px; height:38px; border:none; background:transparent;
    border-radius:var(--radius-sm); cursor:pointer; color:var(--text-secondary);
    display:flex; align-items:center; justify-content:center; font-size:20px;
    transition:var(--transition);
}
.btn-toggle-sidebar:hover { background:var(--primary-light); color:var(--primary-dark); }

.btn-theme-toggle {
    width:38px; height:38px; border:1px solid var(--border); background:var(--bg-card);
    border-radius:50%; cursor:pointer; color:var(--text-secondary);
    display:flex; align-items:center; justify-content:center; font-size:18px;
    transition:var(--transition);
}
.btn-theme-toggle:hover { border-color:var(--primary); color:var(--primary-dark); }

.gt-content { padding:24px; }

/* ============ CARDS ============ */
.gt-card {
    background:var(--bg-card); border-radius:var(--radius); border:1px solid var(--border);
    box-shadow:var(--shadow); transition:var(--transition); overflow:hidden;
}
.gt-card:hover { box-shadow:var(--shadow-lg); }
.gt-card .card-header-custom {
    padding:16px 20px; border-bottom:1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between;
}
.gt-card .card-header-custom h5 { font-size:18px; font-weight:700; margin:0; font-family:var(--font-display); }
.gt-card .card-body { padding:20px; }

/* ============ STAT CARDS ============ */
.stat-card {
    background:var(--bg-card); border-radius:var(--radius); padding:24px;
    border:1px solid var(--border); transition:var(--transition); position:relative; overflow:hidden;
}
.stat-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.stat-card .stat-icon {
    width:52px; height:52px; border-radius:16px; display:flex;
    align-items:center; justify-content:center; font-size:24px; color:#fff; margin-bottom:16px;
}
.stat-card.purple .stat-icon { background:var(--gradient-1); }
.stat-card.pink .stat-icon { background:var(--accent); }
.stat-card.cyan .stat-icon { background:var(--info); }
.stat-card.green .stat-icon { background:var(--success); }
.stat-card.orange .stat-icon { background:var(--warning); }
.stat-card.teal .stat-icon { background:#06b6d4; }
.stat-card.indigo .stat-icon { background:#6366f1; }
.stat-card.rose .stat-icon { background:#f43f5e; }
.stat-card .stat-value { font-size:32px; font-weight:800; margin-bottom:4px; font-family:var(--font-display); color:var(--primary-dark); }
.stat-card .stat-label { font-size:14px; color:var(--text-secondary); font-weight:500; }

/* ============ BUTTONS ============ */
.btn-gt {
    padding:10px 24px; border-radius:var(--radius-sm); font-weight:600;
    font-size:14px; border:none; cursor:pointer; transition:var(--transition);
    display:inline-flex; align-items:center; gap:8px; text-decoration:none;
}
.btn-gt-primary { background:var(--gradient-1); color:#fff; box-shadow:0 4px 15px rgba(186,79,124,0.3); }
.btn-gt-primary:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(186,79,124,0.4); color:#fff; }
.btn-gt-success { background:var(--success); color:#fff; }
.btn-gt-success:hover { background:#059669; color:#fff; transform:translateY(-2px); }
.btn-gt-danger { background:var(--danger); color:#fff; }
.btn-gt-danger:hover { background:#dc2626; color:#fff; transform:translateY(-2px); }
.btn-gt-warning { background:var(--warning); color:#fff; }
.btn-gt-outline { background:transparent; border:2px solid var(--primary); color:var(--primary-dark); }
.btn-gt-outline:hover { background:var(--primary); color:#fff; }
.btn-gt-sm { padding:6px 16px; font-size:13px; }

/* ============ FORMS ============ */
.form-control, .form-select {
    border-radius:var(--radius-sm); border:1px solid var(--border);
    background:var(--bg-card); color:var(--text-primary); padding:12px 16px;
    font-size:14px; transition:var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color:var(--primary); box-shadow:0 0 0 4px rgba(232,160,191,0.2);
    background:var(--bg-card); color:var(--text-primary);
}
.form-label { font-weight:700; font-size:13px; color:var(--text-secondary); margin-bottom:8px; }

/* ============ TABLES ============ */
.gt-card .card-body.p-0 { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table-gt { width:100%; border-collapse:collapse; min-width: 850px; }
.table-gt thead th {
    padding:12px 16px; font-size:12px; font-weight:600; text-transform:uppercase;
    letter-spacing:.5px; color:var(--text-muted); border-bottom:2px solid var(--border);
    background:var(--bg-main); white-space:nowrap;
}
.table-gt tbody td {
    padding:12px 16px; border-bottom:1px solid var(--border); font-size:14px;
    vertical-align:middle; color:var(--text-primary); white-space: nowrap;
}
.table-gt tbody tr { transition:var(--transition); }
.table-gt tbody tr:hover { background:rgba(99,102,241,.04); }

/* Sticky actions for mobile */
@media (max-width: 768px) {
    .table-gt { min-width: 700px; }
}

/* En móvil, permitimos scroll horizontal suave */
@media (max-width: 991px) {
    .table-gt { min-width: 900px; }
}

/* ============ BADGES ============ */
.badge-gt { padding:4px 10px; border-radius:6px; font-size:11px; font-weight:600; }
.badge-gt.activo, .badge-gt.completada, .badge-gt.entregado { background:rgba(16,185,129,.1); color:var(--success); }
.badge-gt.inactivo, .badge-gt.cancelada, .badge-gt.cancelado { background:rgba(239,68,68,.1); color:var(--danger); }
.badge-gt.pendiente { background:rgba(245,158,11,.1); color:var(--warning); }
.badge-gt.confirmado, .badge-gt.enviado { background:rgba(99,102,241,.1); color:var(--primary); }
.badge-gt.apartado { background:rgba(59,130,246,.1); color:var(--info); }

/* ============ POS ============ */
.pos-container { display:grid; grid-template-columns:1fr 380px; gap:20px; height:calc(100vh - 118px); }
.pos-products { overflow-y:auto; }
.pos-cart { background:var(--bg-card); border-radius:var(--radius); border:1px solid var(--border); display:flex; flex-direction:column; }
.pos-product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.pos-product-card {
    background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-sm);
    padding:12px; cursor:pointer; transition:var(--transition); text-align:center;
}
.pos-product-card:hover { border-color:var(--primary); transform:scale(1.02); box-shadow:var(--shadow-lg); }
.pos-product-card img { width:100%; height:100px; object-fit:cover; border-radius:6px; margin-bottom:8px; }
.pos-product-card .product-name { font-size:13px; font-weight:600; margin-bottom:4px; line-height:1.3; }
.pos-product-card .product-price { color:var(--primary); font-weight:700; font-size:15px; }
.pos-product-card .product-stock { font-size:11px; color:var(--text-muted); }

.pos-cart-header { padding:16px; border-bottom:1px solid var(--border); }
.pos-cart-header h5 { margin:0; font-size:16px; font-weight:700; }
.pos-cart-items { flex:1; overflow-y:auto; padding:12px; }
.pos-cart-item {
    display:flex; align-items:center; gap:10px; padding:10px;
    border-bottom:1px solid var(--border); font-size:13px;
}
.pos-cart-item .item-info { flex:1; }
.pos-cart-item .item-name { font-weight:600; }
.pos-cart-item .item-price { color:var(--text-secondary); font-size:12px; }
.pos-cart-item .item-qty { display:flex; align-items:center; gap:6px; }
.pos-cart-item .item-qty button {
    width:26px; height:26px; border:1px solid var(--border); background:var(--bg-main);
    border-radius:6px; cursor:pointer; font-size:14px; display:flex; align-items:center; justify-content:center;
    color:var(--text-primary); transition:var(--transition);
}
.pos-cart-item .item-qty button:hover { border-color:var(--primary); color:var(--primary); }
.pos-cart-item .item-subtotal { font-weight:700; min-width:80px; text-align:right; }
.pos-cart-item .item-remove { color:var(--danger); cursor:pointer; font-size:16px; }

.pos-cart-footer { padding:16px; border-top:1px solid var(--border); }
.pos-cart-total { display:flex; justify-content:space-between; font-size:20px; font-weight:800; margin-bottom:12px; }

/* ============ CATALOG (PUBLIC) ============ */
.catalog-header {
    background:var(--gradient-1); padding:40px 20px; text-align:center; color:#fff;
    position:relative; overflow:hidden;
}
.catalog-header::after {
    content:''; position:absolute; bottom:-30px; left:0; right:0; height:60px;
    background:var(--bg-main); border-radius:50% 50% 0 0;
}
.catalog-header h1 { font-size:32px; font-weight:800; margin-bottom:8px; position:relative; z-index:1; }
.catalog-header p { opacity:.9; position:relative; z-index:1; }

.catalog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; padding:20px; max-width:1200px; margin:0 auto; }
.catalog-product {
    background:var(--bg-card); border-radius:var(--radius); overflow:hidden;
    border:1px solid var(--border); transition:var(--transition);
}
.catalog-product:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.catalog-product img { width:100%; height:200px; object-fit:cover; }
.catalog-product .product-info { padding:16px; }
.catalog-product .product-name { font-weight:600; font-size:15px; margin-bottom:6px; }
.catalog-product .product-price { color:var(--primary); font-weight:800; font-size:20px; margin-bottom:10px; }
.catalog-product .btn-add-cart {
    width:100%; padding:10px; background:var(--gradient-1); color:#fff; border:none;
    border-radius:var(--radius-sm); font-weight:600; cursor:pointer; transition:var(--transition);
}
.catalog-product .btn-add-cart:hover { opacity:.9; transform:scale(1.01); }

/* ============================================
   LOGIN
   ============================================ */
.login-page {
    min-height:100vh; display:flex; align-items:center; justify-content:center;
    background:var(--bg-main); padding:20px; position:relative; overflow:hidden;
}
.login-page::before {
    content:''; position:absolute; inset:0;
    background: url('https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?q=80&w=2087&auto=format&fit=crop') center/cover;
    opacity: 0.15; filter: grayscale(1);
}
.login-card {
    background:rgba(255,255,255,0.9); backdrop-filter:blur(20px);
    border-radius:30px; padding:50px 40px;
    width:100%; max-width:440px; border:1px solid #fff;
    box-shadow:0 30px 100px rgba(186,79,124,0.15);
    position:relative; z-index:1;
}
.login-card .login-brand { text-align:center; margin-bottom:40px; }
.login-card .login-brand .brand-icon {
    width:70px; height:70px; border-radius:20px; background:var(--gradient-1);
    display:inline-flex; align-items:center; justify-content:center;
    color:#fff; font-size:32px; font-weight:800; margin-bottom:16px;
    box-shadow: 0 10px 20px rgba(186,79,124,0.3);
}
.login-card .login-brand h2 { font-size:32px; font-weight:800; font-family:var(--font-display); color:var(--primary-dark); }
.login-card .login-brand p { color:var(--text-secondary); font-size:15px; margin-top:4px; }


/* ============ ANIMATIONS ============ */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }
.fade-in-up { animation:fadeInUp .5s ease forwards; }
.anim-delay-1 { animation-delay:.1s; }
.anim-delay-2 { animation-delay:.2s; }
.anim-delay-3 { animation-delay:.3s; }
.anim-delay-4 { animation-delay:.4s; }

/* ============ RESPONSIVE ============ */
@media(max-width:991px) {
    .gt-sidebar { width:0; overflow:hidden; }
    .gt-sidebar.mobile-open { width:var(--sidebar-width); }
    .gt-main { margin-left:0 !important; }
    .pos-container { grid-template-columns:1fr; height:auto; }
    .pos-cart { min-height:400px; }
}
@media(max-width:576px) {
    .gt-content { padding:12px; }
    .stat-card .stat-value { font-size:22px; }
    .catalog-grid { grid-template-columns:repeat(2,1fr); gap:10px; padding:10px; }
}

/* ============ MISC ============ */
.empty-state { text-align:center; padding:60px 20px; color:var(--text-muted); }
.empty-state i { font-size:64px; margin-bottom:16px; opacity:.3; }
.empty-state h5 { font-size:18px; margin-bottom:8px; color:var(--text-secondary); }
.product-img-thumb { width:45px; height:45px; border-radius:8px; object-fit:cover; }
.stock-low { color:var(--danger); font-weight:600; }
.stock-ok { color:var(--success); }

/* Print */
@media print {
    .gt-sidebar, .gt-topbar, .no-print { display:none !important; }
    .gt-main { margin-left:0 !important; }
}
/* ============ PREMIUM CATALOG STYLES ============ */
.catalog-wrapper { background-color: var(--bg-main); min-height: 100vh; }

.catalog-nav { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); padding: 15px 0; border-bottom: 1px solid var(--border); z-index: 1000; }
[data-theme="dark"] .catalog-nav { background: rgba(15, 23, 42, 0.8); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--text-primary); }

.btn-cart-toggle { background: var(--bg-main); border: 1px solid var(--border); padding: 8px 15px; border-radius: 50px; position: relative; transition: var(--transition); }
.btn-cart-toggle:hover { border-color: var(--primary); color: var(--primary); }
.btn-cart-toggle .badge { position: absolute; top: -5px; right: -5px; background: var(--accent); }

.catalog-hero { 
    height: 350px; background-image: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; 
    text-align: center; color: #fff; position: relative; margin-bottom: -50px;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)); }
.hero-title { font-size: 3.5rem; font-weight: 900; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

.categories-scroller { overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.categories-scroller::-webkit-scrollbar { display: none; }
.cat-pill { 
    padding: 10px 25px; border-radius: 50px; background: var(--bg-card); border: 1px solid var(--border); 
    color: var(--text-secondary); font-weight: 600; white-space: nowrap; transition: var(--transition);
}
.cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.cat-pill:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

.product-card-premium { 
    background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; 
    transition: var(--transition); height: 100%; display: flex; flex-direction: column;
}
.product-card-premium:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.product-img-wrapper { position: relative; height: 260px; overflow: hidden; }
.product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card-premium:hover .product-img-wrapper img { transform: scale(1.1); }

.product-badge { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; z-index: 2; }
.product-overlay { 
    position: absolute; inset: 0; background: rgba(0,0,0,0.2); opacity: 0; 
    display: flex; align-items: center; justify-content: center; transition: var(--transition); 
}
.product-card-premium:hover .product-overlay { opacity: 1; }
.btn-quick-add { 
    background: #fff; color: #000; border: none; padding: 10px 20px; border-radius: 50px; 
    font-weight: 700; font-size: 0.9rem; transform: translateY(20px); transition: var(--transition); 
}
.product-card-premium:hover .btn-quick-add { transform: translateY(0); }

.product-body { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); margin: 0; }

.btn-mobile-add { 
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; 
    border: none; position: absolute; bottom: 15px; right: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.whatsapp-float { 
    position: fixed; bottom: 100px; right: 25px; background: #25d366; color: #fff; 
    width: 60px; height: 60px; border-radius: 50%; font-size: 30px; display: flex; 
    align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); 
    z-index: 999; transition: var(--transition); 
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

.floating-cart-bubble { 
    position: fixed; bottom: 25px; right: 25px; background: var(--gradient-1); color: #fff; 
    width: 65px; height: 65px; border-radius: 50%; display: none; align-items: center; 
    justify-content: center; cursor: pointer; box-shadow: 0 10px 25px rgba(99,102,241,0.4); z-index: 1001; 
}
.cart-icon-wrap { position: relative; font-size: 26px; }
.count-badge { 
    position: absolute; top: -10px; right: -10px; background: var(--accent); color: #fff; 
    font-size: 12px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

.custom-offcanvas { width: 450px !important; }
@media (max-width: 576px) { 
    .custom-offcanvas { width: 100% !important; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .catalog-hero { height: 280px; }
    .product-img-wrapper { height: 200px; }
}

.checkout-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.checkout-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; }
.checkout-item-info { flex: 1; }
.checkout-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.btn-qty { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
/* ============ RESPONSIVE IMPROVEMENTS ============ */
@media (max-width: 768px) {
    .gt-topbar { padding: 0 15px; height: 60px; }
    .page-title { font-size: 18px; }
    .gt-content { padding: 15px; }
    
    /* Stack filters and buttons on mobile */
    .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px !important;
    }
    .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 form {
        flex-direction: column;
        width: 100%;
    }
    .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 form input,
    .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 form select {
        width: 100% !important;
    }
    .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 .btn-gt {
        width: 100%;
        justify-content: center;
    }

    /* Cards adjustments */
    .gt-card .card-header-custom { padding: 12px 15px; }
    .gt-card .card-body { padding: 15px; }
    
    /* Config view: force stack on mobile items that use d-flex */
    .config-link-card {
        flex-direction: column;
        text-align: center;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .stat-card { padding: 15px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 18px; margin-bottom: 10px; }
    .table-gt thead th, .table-gt tbody td { padding: 10px; font-size: 12px; }
}

.text-break-all { word-break: break-all !important; }
