/* =============================================
   USMAN ELECTRIC POINT — Global Styles
   ============================================= */
:root {
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #ffedd5;
  --accent: #ea580c;
  --green: #15803d;
  --green-light: #dcfce7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --yellow: #ca8a04;
  --yellow-light: #fef9c3;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface2: #f3f3f1;
  --border: #e5e5e0;
  --text: #1a1a1a;
  --text2: #444441;
  --muted: #888780;
  --shadow-md: 0 1px 4px rgba(0,0,0,0.06);
  --radius: 6px;
  --sidebar-bg: #ffffff;
  --sidebar-text: #444441;
  --sidebar-active: var(--primary);
  --header-bg: #ffffff;
  --header-text: #1a1a1a;
  --btn-primary-bg: var(--primary);
  --btn-primary-text: #ffffff;
  --card-bg: #ffffff;
  --footer-bg: #1a1a1a;
  --footer-text: #e5e5e0;
  --utility-bg: #c2410c;
}

*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Nunito',sans-serif;background:var(--bg);color:var(--text);min-height:100vh;}
h1,h2,h3,h4,h5{font-family:'Outfit',sans-serif;}

/* UTILITY BAR */
.utility-bar{background:var(--utility-bg);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:6px 24px;font-size:12px;font-weight:500;}
.utility-clock{display:flex;align-items:center;gap:6px;letter-spacing:.2px;}
.utility-links{display:flex;align-items:center;gap:20px;}
.utility-links a,.utility-links span{color:#fff;text-decoration:none;cursor:pointer;opacity:.95;}
.utility-links a:hover,.utility-links span:hover{opacity:1;text-decoration:underline;}
@media(max-width:640px){.utility-clock{font-size:10px;}.utility-links{gap:12px;font-size:11px;}}

/* FLOATING CHECKOUT */
.floating-checkout{position:fixed;bottom:24px;right:24px;background:var(--primary);color:#fff;border:none;padding:14px 22px;border-radius:30px;font-size:14px;font-weight:600;font-family:'Outfit',sans-serif;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.18);z-index:200;transition:transform .15s,opacity .15s;}
.floating-checkout:hover{transform:translateY(-2px);opacity:.92;}
@media(max-width:640px){.floating-checkout{bottom:16px;right:16px;padding:12px 18px;font-size:13px;}}

/* SEARCH */
.pub-search-wrap{background:var(--header-bg);border-bottom:1px solid var(--border);padding:10px 24px;display:flex;align-items:center;gap:10px;}
.pub-search-inp{flex:1;max-width:560px;padding:10px 16px 10px 40px;background:var(--surface2);border:1.5px solid var(--border);border-radius:24px;font-size:13px;color:var(--text);font-family:'Nunito',sans-serif;transition:border .15s;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zm-5.242 1.156a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;}
.pub-search-inp:focus{outline:none;border-color:var(--primary);background-color:#fff;}
.pub-search-count{font-size:12px;color:var(--muted);font-weight:600;white-space:nowrap;}

/* HERO SLIDER */
.hero-slider{position:relative;padding:60px 48px 70px;min-height:320px;display:flex;align-items:center;transition:background .5s;overflow:hidden;}
.hero-content{max-width:620px;position:relative;z-index:1;}
.hero-tag{color:rgba(255,255,255,.65);font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;margin-bottom:12px;}
.hero-title{color:#fff;font-family:'Outfit',sans-serif;font-size:32px;font-weight:700;line-height:1.25;margin-bottom:12px;text-shadow:0 1px 4px rgba(0,0,0,.3);}
.hero-sub{color:rgba(255,255,255,.78);font-size:14px;line-height:1.7;margin-bottom:24px;}
.hero-cta{background:var(--primary);color:#fff;border:none;padding:12px 28px;border-radius:var(--radius);font-size:14px;font-weight:600;font-family:'Outfit',sans-serif;cursor:pointer;transition:opacity .2s;box-shadow:0 2px 8px rgba(0,0,0,.2);}
.hero-cta:hover{opacity:.88;}
.hero-dots{position:absolute;bottom:18px;left:48px;display:flex;gap:6px;z-index:2;}
.hero-dot{width:22px;height:3px;border-radius:2px;background:rgba(255,255,255,.3);cursor:pointer;transition:all .25s;}
.hero-dot.active{background:var(--primary);width:32px;}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.15);border:none;color:#fff;font-size:28px;line-height:1;width:40px;height:40px;border-radius:50%;cursor:pointer;z-index:2;transition:background .2s;backdrop-filter:blur(4px);}
.hero-arrow:hover{background:rgba(255,255,255,.28);}
.hero-arrow-prev{left:14px;}
.hero-arrow-next{right:14px;}
@media(max-width:900px){.hero-slider{padding:44px 32px 54px;min-height:260px;}.hero-title{font-size:26px;}}
@media(max-width:640px){.hero-slider{padding:32px 20px 48px;min-height:220px;}.hero-title{font-size:20px;}.hero-sub{font-size:13px;}}

/* CATEGORY NAV */
.cat-nav{display:flex;gap:10px;overflow-x:auto;padding:16px 24px;background:var(--surface);border-bottom:1px solid var(--border);scrollbar-width:none;}
.cat-nav::-webkit-scrollbar{display:none;}
.cat-chip{flex-shrink:0;padding:8px 18px;border-radius:20px;background:var(--surface2);border:1px solid var(--border);font-size:13px;font-weight:600;color:var(--text2);cursor:pointer;white-space:nowrap;transition:all .15s;font-family:'Outfit',sans-serif;}
.cat-chip:hover{background:var(--primary-light);border-color:var(--primary-light);color:var(--primary-dark);}
.cat-chip.active{background:var(--primary);border-color:var(--primary);color:#fff;}

/* PRODUCT GRID */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;padding:20px 24px;}
@media(max-width:640px){.product-grid{grid-template-columns:repeat(2,1fr);gap:10px;padding:12px;}}

/* PRODUCT CARD */
.product-card{background:var(--surface);border-radius:10px;overflow:hidden;box-shadow:var(--shadow-md);transition:transform .15s,box-shadow .15s;cursor:pointer;display:flex;flex-direction:column;}
.product-card:hover{transform:translateY(-3px);box-shadow:0 4px 12px rgba(0,0,0,.1);}
.product-card img{width:100%;height:180px;object-fit:contain;background:var(--surface2);padding:12px;}
.product-card .card-body{padding:12px 14px 14px;flex:1;display:flex;flex-direction:column;}
.product-card .p-name{font-size:13px;font-weight:700;color:var(--text);line-height:1.35;margin-bottom:6px;font-family:'Outfit',sans-serif;}
.product-card .p-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:10px;font-weight:700;margin-bottom:8px;width:fit-content;}
.badge-instock{background:var(--green-light);color:var(--green);}
.badge-outofstock{background:var(--red-light);color:var(--red);}
.badge-new{background:var(--blue-light);color:var(--blue);}
.badge-sale{background:var(--yellow-light);color:var(--yellow);}
.product-card .p-price{font-size:15px;font-weight:800;color:var(--primary);}
.product-card .p-old-price{font-size:12px;color:#999;text-decoration:line-through;margin-left:6px;}
.product-card .p-price-hidden{font-size:11px;color:var(--muted);font-style:italic;margin-top:4px;}

/* PRODUCT DETAIL MODAL */
.pd-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:250;display:flex;align-items:center;justify-content:center;padding:16px;}
.pd-box{background:#fff;border-radius:14px;width:100%;max-width:700px;max-height:90vh;overflow-y:auto;position:relative;}
.pd-close{position:absolute;top:12px;right:12px;background:rgba(0,0,0,.06);border:none;width:36px;height:36px;border-radius:50%;font-size:18px;cursor:pointer;z-index:2;}
.pd-grid{display:flex;gap:24px;padding:24px;}
.pd-img{flex:1;min-width:0;}
.pd-img img{width:100%;border-radius:10px;background:var(--surface2);}
.pd-info{flex:1.2;min-width:0;}
.pd-info h2{font-size:20px;margin-bottom:8px;font-family:'Outfit',sans-serif;}
.pd-cat{display:inline-block;background:var(--primary-light);color:var(--primary-dark);padding:4px 12px;border-radius:20px;font-size:11px;font-weight:700;margin-bottom:10px;}
.pd-price{font-size:24px;font-weight:800;color:var(--primary);margin:10px 0;}
.pd-old-price{font-size:14px;color:#999;text-decoration:line-through;margin-left:8px;}
.pd-desc{font-size:13px;color:var(--text2);line-height:1.7;margin:14px 0;white-space:pre-wrap;}
.pd-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
.pd-btn{padding:10px 20px;border-radius:8px;border:none;font-weight:700;font-size:13px;cursor:pointer;font-family:'Outfit',sans-serif;}
.pd-btn-primary{background:var(--primary);color:#fff;}
.pd-btn-sec{background:var(--surface2);color:var(--text);border:1px solid var(--border);}
.pd-price-hidden-box{padding:14px;background:var(--primary-light);border-radius:8px;color:var(--primary-dark);font-weight:700;font-size:14px;margin:12px 0;}
@media(max-width:640px){.pd-grid{flex-direction:column;}.pd-img{max-width:100%;}}

/* CHECKOUT MODAL */
.co-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:300;display:flex;align-items:center;justify-content:center;padding:16px;}
.co-box{background:#fff;border-radius:14px;width:100%;max-width:480;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);}
.co-header{padding:18px 22px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;}
.co-header h3{margin:0;font-size:17px;font-family:'Outfit',sans-serif;}
.co-body{padding:20px 22px;}
.co-cart-summary{background:#f7f7f5;border-radius:10px;padding:14px;margin-bottom:18px;}
.co-cart-item{display:flex;justify-content:space-between;font-size:13px;padding:4px 0;border-bottom:1px dashed #ddd;}
.co-big-btn{width:100%;padding:12px;border-radius:8px;border:none;font-weight:700;font-size:14px;cursor:pointer;margin-bottom:10px;font-family:'Outfit',sans-serif;}
.co-input{width:100%;padding:10px 12px;border-radius:6px;border:1px solid #ddd;margin-bottom:12px;font-size:13px;font-family:'Nunito',sans-serif;}
.co-label{display:block;font-size:12px;font-weight:700;color:#555;margin-bottom:4px;}
.co-back-btn{width:100%;padding:12px;border-radius:8px;border:1px solid #ddd;background:#fff;color:#555;font-weight:700;font-size:14px;cursor:pointer;margin-top:8px;font-family:'Outfit',sans-serif;}

/* ADMIN PANEL */
.admin-layout{display:flex;min-height:100vh;}
.admin-sidebar{width:240px;background:var(--sidebar-bg);border-right:1px solid var(--border);padding:20px 0;position:fixed;height:100vh;overflow-y:auto;}
.admin-sidebar .logo{padding:0 20px 20px;font-size:18px;font-weight:800;font-family:'Outfit',sans-serif;color:var(--primary);}
.admin-sidebar .nav-item{display:flex;align-items:center;gap:10px;padding:10px 20px;font-size:13px;font-weight:600;color:var(--sidebar-text);cursor:pointer;border-left:3px solid transparent;}
.admin-sidebar .nav-item:hover{background:var(--surface2);}
.admin-sidebar .nav-item.active{border-left-color:var(--sidebar-active);color:var(--sidebar-active);background:var(--primary-light);}
.admin-main{margin-left:240px;flex:1;padding:24px;}
.admin-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;}
.admin-header h1{font-size:22px;}
.admin-card{background:var(--surface);border-radius:10px;padding:20px;box-shadow:var(--shadow-md);margin-bottom:20px;}
.admin-table{width:100%;border-collapse:collapse;font-size:13px;}
.admin-table th{text-align:left;padding:10px 12px;background:var(--surface2);font-weight:700;color:var(--text2);border-bottom:2px solid var(--border);}
.admin-table td{padding:10px 12px;border-bottom:1px solid var(--border);}
.admin-table tr:hover{background:var(--surface2);}
.admin-btn{padding:6px 14px;border-radius:6px;border:none;font-weight:700;font-size:12px;cursor:pointer;font-family:'Outfit',sans-serif;}
.admin-btn-primary{background:var(--primary);color:#fff;}
.admin-btn-danger{background:var(--red-light);color:var(--red);}
.admin-btn-sm{padding:4px 10px;font-size:11px;}
.admin-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
@media(max-width:900px){.admin-sidebar{width:200px;}.admin-main{margin-left:200px;}}
@media(max-width:768px){.admin-sidebar{display:none;}.admin-main{margin-left:0;}.admin-form-grid{grid-template-columns:1fr;}}

/* LOGIN MODAL */
.login-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:400;display:flex;align-items:center;justify-content:center;padding:16px;}
.login-box{background:#fff;border-radius:14px;width:100%;max-width:380px;padding:28px;box-shadow:0 20px 60px rgba(0,0,0,.3);}
.login-box h3{margin:0 0 18px 0;font-size:18px;font-family:'Outfit',sans-serif;text-align:center;}
.login-box input{width:100%;padding:12px 14px;border-radius:8px;border:1px solid var(--border);margin-bottom:12px;font-size:14px;}
.login-box button{width:100%;padding:12px;border-radius:8px;border:none;background:var(--primary);color:#fff;font-weight:700;font-size:14px;cursor:pointer;font-family:'Outfit',sans-serif;}

/* FOOTER */
.site-footer{background:var(--footer-bg);color:var(--footer-text);padding:32px 24px;text-align:center;font-size:13px;line-height:1.8;}
.site-footer strong{font-size:15px;color:#fff;}
.site-footer .dev-credit{margin-top:12px;opacity:.5;font-size:11px;}

/* UTILITIES */
.text-center{text-align:center;}
.mt-8{margin-top:8px;}
.mb-12{margin-bottom:12px;}
.flex{display:flex;}
.gap-8{gap:8px;}
.w-full{width:100%;}
