/* ================================================================
   TechChiefX — Complete Production CSS
   Mobile-first. Single source of truth. No patches.
   ================================================================ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,700;9..144,800&display=swap');

/* ── TOKENS ── */
:root {
  --green:#059652; --green-dk:#047040; --green-dp:#02471A; --green-lt:#E8F8EF;
  --amber:#F59E0B; --amber-lt:#FFFBEB;
  --red:#DC2626;   --red-lt:#FEF2F2;
  --blue:#2563EB;  --blue-lt:#EFF6FF;
  --n50:#F9FAFB;  --n100:#F3F4F6; --n200:#E5E7EB; --n300:#D1D5DB;
  --n400:#9CA3AF; --n500:#6B7280; --n600:#4B5563; --n700:#374151;
  --n800:#1F2937; --n900:#111827;
  --s1:0 1px 3px rgba(0,0,0,.07);
  --s2:0 3px 10px rgba(0,0,0,.09);
  --s3:0 6px 20px rgba(0,0,0,.11);
  --s4:0 12px 32px rgba(0,0,0,.13);
  --s5:0 20px 48px rgba(0,0,0,.15);
  --s6:0 28px 60px rgba(0,0,0,.20);
  --sg:0 6px 24px rgba(5,150,82,.32);
  --ring:0 0 0 3px rgba(5,150,82,.18);
  --r-xs:4px; --r-sm:6px; --r-md:10px; --r-lg:14px; --r-xl:18px; --r-2xl:24px; --r-full:9999px;
  --sans:'DM Sans',system-ui,sans-serif;
  --serif:'Fraunces',Georgia,serif;
  --nav-h:58px;
}

/* ── RESET ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--sans);background:var(--n50);color:var(--n900);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}
img{display:block;max-width:100%;height:auto}
ul{list-style:none}
button,input,select,textarea{font-family:inherit;-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
/* Prevent iOS input zoom — ALL inputs must be ≥16px */
input,select,textarea{font-size:16px}

/* ── TICKER ── */
.top-bar{background:var(--green-dp);color:rgba(255,255,255,.82);font-size:12px;font-weight:500;overflow:hidden;white-space:nowrap;padding:7px 0}
.ticker-wrap{display:inline-flex;animation:ticker 40s linear infinite}
.ticker-wrap span{padding:0 32px;display:inline-flex;align-items:center;gap:8px}
.ticker-wrap span::after{content:'·';margin-left:32px;opacity:.3;font-size:18px}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ── NAVBAR ── */
.navbar{background:rgba(255,255,255,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--n200);position:sticky;top:0;z-index:900;height:var(--nav-h);transition:box-shadow .2s}
.nav-inner{max-width:1400px;margin:0 auto;padding:0 16px;height:100%;display:flex;align-items:center;gap:10px}
.nav-logo{display:flex;align-items:center;gap:9px;flex-shrink:0}
.logo-box{width:34px;height:34px;background:var(--green);border-radius:var(--r-md);display:flex;align-items:center;justify-content:center;box-shadow:var(--sg);flex-shrink:0}
.logo-box svg{width:19px;height:19px;fill:#fff}
.logo-txt{font-size:17px;font-weight:700;color:var(--n900);letter-spacing:-.3px;line-height:1}
.logo-txt em{color:var(--green);font-style:normal;font-weight:800}
/* Desktop search — hidden mobile */
.nav-search{display:none;flex:1;max-width:420px}
.search-wrap{display:flex;background:var(--n100);border:1.5px solid var(--n200);border-radius:var(--r-md);overflow:hidden;transition:border-color .15s,box-shadow .15s}
.search-wrap:focus-within{border-color:var(--green);box-shadow:var(--ring);background:#fff}
.search-wrap input{flex:1;padding:9px 14px;background:transparent;border:none;outline:none;font-size:14px;color:var(--n900)}
.search-wrap input::placeholder{color:var(--n400)}
.search-wrap button{background:var(--green);color:#fff;border:none;padding:0 18px;font-size:14px;transition:background .15s}
.search-wrap button:hover{background:var(--green-dk)}
/* Desktop links — hidden mobile */
.nav-links{display:none}
/* Nav end — always visible */
.nav-end{display:flex;align-items:center;gap:8px;margin-left:auto}
.btn-icon{position:relative;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--n100);border:1px solid var(--n200);border-radius:var(--r-md);font-size:16px;color:var(--n600);transition:all .15s;flex-shrink:0}
.btn-icon:hover{background:var(--green-lt);border-color:var(--green);color:var(--green)}
.cart-count{position:absolute;top:-6px;right:-6px;background:var(--red);color:#fff;font-size:10px;font-weight:700;min-width:17px;height:17px;border-radius:var(--r-full);display:flex;align-items:center;justify-content:center;padding:0 3px;border:2px solid #fff}
.nav-account{display:flex;align-items:center;gap:7px;padding:8px 13px;background:var(--n100);border:1px solid var(--n200);border-radius:var(--r-md);font-size:13px;font-weight:600;color:var(--n700);transition:all .15s;white-space:nowrap}
.nav-account span{display:none}
.nav-account:hover{border-color:var(--green);color:var(--green);background:var(--green-lt)}
.btn-register{padding:9px 14px;background:var(--green);color:#fff;border:none;border-radius:var(--r-md);font-size:13px;font-weight:600;white-space:nowrap;transition:background .15s}
.btn-register:hover{background:var(--green-dk);box-shadow:var(--sg)}
/* Burger — visible mobile */
.nav-burger{display:flex;flex-direction:column;justify-content:center;gap:5px;background:none;border:none;padding:8px;width:40px;height:40px;border-radius:var(--r-md);transition:background .15s}
.nav-burger:hover{background:var(--n100)}
.nav-burger span{display:block;width:20px;height:2px;background:var(--n700);border-radius:2px;transition:all .25s;transform-origin:center}

/* ── MOBILE NAV DRAWER ── */
.nav-links.open{display:flex;flex-direction:column;position:fixed;top:var(--nav-h);left:0;right:0;background:#fff;border-bottom:2px solid var(--n100);padding:10px 16px 28px;gap:2px;z-index:998;box-shadow:var(--s5);max-height:calc(100vh - var(--nav-h));overflow-y:auto;-webkit-overflow-scrolling:touch}
.nav-links.open>a,.nav-links.open>.nav-dropdown>a{display:flex;align-items:center;min-height:52px;padding:0 14px;font-size:15px;font-weight:600;color:var(--n700);border-radius:var(--r-md);border-bottom:1px solid var(--n100);transition:all .12s}
.nav-links.open>a:hover,.nav-links.open>.nav-dropdown>a:hover{background:var(--green-lt);color:var(--green)}
.nav-links.open .nav-dropdown{width:100%}
.nav-links.open .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:none;background:var(--n50);border-radius:var(--r-md);margin:4px 0 6px;padding:6px}
.nav-links.open .dropdown a{min-height:48px;display:flex;align-items:center;font-size:14px;padding:10px 13px}

/* ── DROPDOWN (desktop) ── */
.nav-dropdown{position:relative}
.dropdown{position:absolute;top:calc(100% + 10px);left:0;background:#fff;border:1px solid var(--n200);border-radius:var(--r-lg);box-shadow:var(--s6);min-width:220px;padding:8px;opacity:0;visibility:hidden;transform:translateY(-8px);transition:all .18s;z-index:200}
.nav-dropdown:hover .dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{display:flex;align-items:center;gap:11px;padding:10px 12px;font-size:14px;font-weight:500;color:var(--n700);border-radius:var(--r-sm);transition:all .12s}
.dropdown a:hover{background:var(--green-lt);color:var(--green)}
.dropdown .d-icon{width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}
.dropdown hr{border:none;border-top:1px solid var(--n100);margin:5px 0}

/* ── MOBILE SEARCH BAR ── */
.mobile-sb{background:#fff;border-bottom:1px solid var(--n200);padding:10px 16px;display:none}
.mobile-sb form{display:flex;background:var(--n100);border:1.5px solid var(--n200);border-radius:var(--r-md);overflow:hidden;transition:border-color .15s}
.mobile-sb form:focus-within{border-color:var(--green)}
.mobile-sb input{flex:1;padding:11px 14px;background:transparent;border:none;outline:none;font-size:16px;color:var(--n900)}
.mobile-sb input::placeholder{color:var(--n400)}
.mobile-sb button{background:var(--green);color:#fff;border:none;padding:0 20px;font-size:15px}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 22px;border-radius:var(--r-md);font-size:14px;font-weight:600;border:1.5px solid transparent;transition:all .15s;white-space:nowrap;cursor:pointer;min-height:46px;text-decoration:none;-webkit-tap-highlight-color:transparent}
.btn-primary{background:var(--green);color:#fff;border-color:var(--green)}
.btn-primary:hover,.btn-primary:active{background:var(--green-dk);border-color:var(--green-dk);box-shadow:var(--sg)}
.btn-outline{background:transparent;color:var(--green);border-color:var(--green)}
.btn-outline:hover,.btn-outline:active{background:var(--green);color:#fff}
.btn-white{background:#fff;color:var(--green);border-color:#fff;font-weight:700}
.btn-white:hover{background:var(--green-lt)}
.btn-ghost{background:transparent;color:var(--n600);border-color:var(--n200)}
.btn-ghost:hover,.btn-ghost:active{border-color:var(--green);color:var(--green);background:var(--green-lt)}
.btn-dark{background:var(--n900);color:#fff;border-color:var(--n900)}
.btn-dark:hover{background:var(--n700)}
.btn-danger{background:var(--red);color:#fff;border-color:var(--red)}
.btn-lg{padding:13px 28px;font-size:15px;border-radius:var(--r-lg);font-weight:700;min-height:50px}
.btn-sm{padding:8px 16px;font-size:13px;border-radius:var(--r-sm);min-height:40px}
.btn-xs{padding:5px 11px;font-size:11px;border-radius:var(--r-xs);min-height:30px}
.btn-block{width:100%}

/* ── LAYOUT ── */
.container{max-width:1400px;margin:0 auto;padding:0 16px}
.section{padding:44px 0}
.section-sm{padding:28px 0}
.sh{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px;gap:12px;flex-wrap:wrap}
.sh-tag{display:inline-flex;align-items:center;gap:6px;background:var(--green-lt);color:var(--green);font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;padding:4px 12px;border-radius:var(--r-full);margin-bottom:8px}
.sh-title{font-size:20px;font-weight:700;color:var(--n900);letter-spacing:-.3px;line-height:1.2}
.sh-title em{color:var(--green);font-style:normal}
/* Mobile-first grids: 2 col base */
.grid-4,.grid-3,.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}

/* ── HERO ── */
.hero{background:linear-gradient(145deg,var(--green-dp) 0%,#04672D 50%,var(--green) 100%);position:relative;overflow:hidden;padding:36px 0 0}
.hero::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 70% 60% at 80% 30%,rgba(6,181,98,.2),transparent)}
.hero-grid{position:relative;z-index:2;padding-bottom:52px}
.hero-cards{display:none}
.hero-tag{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);color:rgba(255,255,255,.92);font-size:11px;font-weight:600;letter-spacing:.4px;padding:6px 14px;border-radius:var(--r-full);margin-bottom:16px;backdrop-filter:blur(6px)}
.hero-tag .dot{width:6px;height:6px;border-radius:50%;background:#6EE7B7;animation:blink 2s infinite}
@keyframes blink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.7)}}
.hero h1{font-family:var(--serif);font-size:30px;font-weight:800;line-height:1.08;color:#fff;margin-bottom:14px;letter-spacing:-1px}
.hero h1 .accent{color:#6EE7B7;font-style:italic}
.hero-sub{font-size:14px;color:rgba(255,255,255,.75);margin-bottom:24px;line-height:1.72;max-width:560px}
.hero-actions{display:flex;flex-direction:column;gap:10px;margin-bottom:32px}
.hero-actions .btn{width:100%;justify-content:center}
.hero-metrics{display:flex;gap:20px;flex-wrap:wrap}
.metric{border-left:2px solid rgba(255,255,255,.2);padding-left:12px}
.metric-num{font-size:22px;font-weight:800;color:#6EE7B7;font-family:var(--serif);line-height:1;letter-spacing:-1px}
.metric-label{font-size:10px;color:rgba(255,255,255,.58);font-weight:500;margin-top:2px}
/* Hero wave */
.hero-wave{display:block;height:48px;width:100%;background:transparent}

/* ── TRUST BAR ── */
.trust-bar{background:#fff;border-bottom:1px solid var(--n200);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.trust-bar::-webkit-scrollbar{display:none}
.trust-inner{display:flex;min-width:100%;width:max-content}
.trust-cell{display:flex;align-items:center;gap:11px;padding:13px 18px;border-right:1px solid var(--n100);min-width:185px;transition:background .15s;flex-shrink:0;text-decoration:none}
.trust-cell:last-child{border-right:none}
.trust-cell:hover{background:var(--green-lt)}
.t-icon{width:36px;height:36px;background:var(--green-lt);color:var(--green);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;transition:all .15s}
.trust-cell:hover .t-icon{background:var(--green);color:#fff}
.t-title{font-size:12px;font-weight:700;color:var(--n900)}
.t-desc{font-size:11px;color:var(--n400);margin-top:1px}

/* ── PRODUCT CARDS ── */
.product-card{background:#fff;border:1px solid var(--n200);border-radius:var(--r-xl);overflow:hidden;display:flex;flex-direction:column;transition:transform .22s,box-shadow .22s,border-color .22s;position:relative}
.product-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(5,150,82,.12);border-color:var(--green)}
.product-img{position:relative;aspect-ratio:4/3;background:var(--n100);overflow:hidden;display:flex;align-items:center;justify-content:center}
.product-img img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.product-card:hover .product-img img{transform:scale(1.05)}
.product-img-placeholder{font-size:48px;opacity:.1;user-select:none}
.product-badge{position:absolute;top:10px;left:10px;font-size:10px;font-weight:800;padding:3px 9px;border-radius:var(--r-sm);text-transform:uppercase;letter-spacing:.4px;z-index:2}
.badge-new{background:var(--green);color:#fff}
.badge-refurbished{background:var(--amber);color:#fff}
.badge-featured{background:#FDE68A;color:#92400E}
.disc-badge{position:absolute;top:10px;right:10px;background:var(--red);color:#fff;font-size:10px;font-weight:800;padding:3px 9px;border-radius:var(--r-sm);z-index:2}
.product-info{padding:11px;flex:1;display:flex;flex-direction:column}
.product-brand{font-size:9px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--green);margin-bottom:4px}
.product-name{font-size:12px;font-weight:600;color:var(--n800);line-height:1.4;margin-bottom:8px;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-price{margin-bottom:6px}
.product-price .current{font-size:17px;font-weight:800;color:var(--green);font-family:var(--serif);display:block;line-height:1}
.product-price .old{font-size:11px;color:var(--n400);text-decoration:line-through;margin-top:2px}
.product-warranty{font-size:10px;color:var(--n400);font-weight:500;margin-bottom:8px;display:flex;align-items:center;gap:4px}
.product-warranty i{color:var(--green)}
.product-actions{display:flex;gap:6px}
.product-actions .btn{flex:1;font-size:11px;padding:7px 5px;min-height:38px}

/* ── PAGE HERO ── */
.page-hero{background:linear-gradient(130deg,var(--green-dp),var(--green-dk) 60%,var(--green));padding:22px 0}
.page-hero h1{font-family:var(--serif);font-size:22px;font-weight:800;color:#fff;letter-spacing:-.4px}
.breadcrumb{display:flex;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.6);margin-bottom:6px;font-weight:500;flex-wrap:wrap}
.breadcrumb a{color:rgba(255,255,255,.8);transition:color .12s}
.breadcrumb a:hover{color:#fff}

/* ── PRODUCTS PAGE ── */
.products-layout{padding:20px 0}
.sidebar-card{display:none}
.mobile-filters{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:14px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.mobile-filters::-webkit-scrollbar{display:none}
.mobile-filters a{white-space:nowrap;padding:9px 18px;background:#fff;border:1.5px solid var(--n200);border-radius:var(--r-full);font-size:13px;font-weight:600;color:var(--n600);flex-shrink:0;transition:all .15s;min-height:40px;display:flex;align-items:center}
.mobile-filters a.active,.mobile-filters a:hover{background:var(--green);color:#fff;border-color:var(--green)}
.products-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap;gap:10px}
.products-count{font-size:13px;font-weight:500;color:var(--n500)}
.sort-select{padding:9px 14px;border:1px solid var(--n200);border-radius:var(--r-md);background:#fff;font-size:14px;color:var(--n700);cursor:pointer;outline:none;min-height:42px}
.sort-select:focus{border-color:var(--green);box-shadow:var(--ring)}

/* ── PAGINATION ── */
.pagination{display:flex;gap:7px;justify-content:center;margin-top:28px;flex-wrap:wrap}
.pagination a,.pagination span{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:var(--r-md);font-size:13px;font-weight:600;border:1px solid var(--n200);background:#fff;color:var(--n600);transition:all .12s}
.pagination a:hover{border-color:var(--green);color:var(--green);background:var(--green-lt)}
.pagination span.active{background:var(--green);color:#fff;border-color:var(--green)}

/* ── CART / CHECKOUT ── */
.cart-layout{display:flex;flex-direction:column;gap:20px;padding:20px 0}
.cart-item{background:#fff;border:1px solid var(--n200);border-radius:var(--r-xl);padding:14px;display:flex;gap:13px;margin-bottom:10px;transition:box-shadow .15s}
.cart-item:hover{box-shadow:var(--s3)}
.cart-item-img{width:76px;height:76px;background:var(--n100);border-radius:var(--r-lg);overflow:hidden;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.cart-item-img img{width:100%;height:100%;object-fit:cover}
.cart-item-info{flex:1;min-width:0}
.cart-item-name{font-size:13px;font-weight:600;color:var(--n900);margin-bottom:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cart-item-cond{font-size:11px;color:var(--n400);margin-bottom:8px}
.cart-item-price{font-size:17px;font-weight:800;color:var(--green);font-family:var(--serif)}
.cart-remove{background:none;border:none;color:var(--red);font-size:12px;font-weight:600;cursor:pointer;padding:4px 8px;border-radius:var(--r-sm);transition:background .12s}
.cart-remove:hover{background:var(--red-lt)}
.qty-wrap{display:inline-flex;align-items:center;gap:8px;background:var(--n100);border:1px solid var(--n200);border-radius:var(--r-md);padding:4px 8px}
.qty-btn{width:29px;height:29px;border:none;background:#fff;border-radius:var(--r-sm);font-size:15px;display:flex;align-items:center;justify-content:center;transition:all .12s;box-shadow:var(--s1)}
.qty-btn:hover{background:var(--green);color:#fff}
.qty-num{font-weight:700;font-size:15px;min-width:22px;text-align:center}
.order-summary{background:#fff;border:1px solid var(--n200);border-radius:var(--r-xl);padding:20px}
.order-summary h3{font-size:15px;font-weight:700;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--n100)}
.summary-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--n100);font-size:14px;font-weight:500;color:var(--n600)}
.summary-row.total{font-size:15px;font-weight:700;border-bottom:none;padding-top:12px;color:var(--n900)}
.summary-row.total .value{color:var(--green);font-size:22px;font-family:var(--serif);font-weight:800}

/* ── FORMS ── */
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:13px;font-weight:600;color:var(--n700);margin-bottom:6px}
.form-control{width:100%;padding:12px 14px;border:1.5px solid var(--n200);border-radius:var(--r-md);font-size:16px;color:var(--n900);background:#fff;outline:none;transition:all .15s;min-height:48px;-webkit-appearance:none}
.form-control:focus{border-color:var(--green);box-shadow:var(--ring)}
.form-control::placeholder{color:var(--n400);font-size:14px}
textarea.form-control{resize:vertical;min-height:110px}
select.form-control{cursor:pointer;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}

/* ── ALERTS ── */
.alert{padding:12px 15px;border-radius:var(--r-md);font-size:14px;font-weight:500;margin-bottom:16px;display:flex;align-items:flex-start;gap:10px;border:1px solid;line-height:1.5}
.alert i{flex-shrink:0;margin-top:1px}
.alert-success{background:#F0FDF4;color:#14532D;border-color:#BBF7D0}
.alert-error{background:var(--red-lt);color:#7F1D1D;border-color:#FECACA}
.alert-warning{background:var(--amber-lt);color:#78350F;border-color:#FDE68A}
.alert-info{background:var(--blue-lt);color:#1E3A8A;border-color:#BFDBFE}

/* ── AUTH ── */
.auth-page{min-height:100vh;display:flex;background:var(--n50)}
/* Left panel hidden on mobile */
.auth-left{display:none}
/* Right panel = full width on mobile */
.auth-right{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:32px 16px;min-height:100vh}
.auth-card{background:#fff;border-radius:var(--r-2xl);padding:28px 22px;width:100%;max-width:440px;box-shadow:var(--s4);margin-top:16px}
.auth-logo{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.auth-logo h1{font-size:18px;font-weight:700;margin:0}
.auth-logo h1 em{color:var(--green);font-style:normal;font-weight:800}
.auth-heading{font-size:22px;font-weight:700;margin-bottom:4px;letter-spacing:-.4px;color:var(--n900)}
.auth-sub{font-size:14px;color:var(--n500);margin-bottom:22px}
.auth-footer{text-align:center;margin-top:18px;font-size:14px;color:var(--n500)}
.auth-footer a{color:var(--green);font-weight:600}
/* Left panel perks */
.auth-left-perks{margin-top:32px;display:flex;flex-direction:column;gap:13px}
.auth-perk{display:flex;align-items:center;gap:12px;color:rgba(255,255,255,.85);font-size:14px;font-weight:500}
.auth-perk-icon{width:34px;height:34px;background:rgba(255,255,255,.12);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}

/* ── STATUS BADGES ── */
.status{display:inline-flex;align-items:center;padding:4px 11px;border-radius:var(--r-full);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}
.status-pending,.status-in_progress{background:#FEF3C7;color:#92400E}
.status-paid,.status-delivered,.status-completed,.status-confirmed{background:#D1FAE5;color:#064E3B}
.status-processing{background:var(--blue-lt);color:#1E3A8A}
.status-shipped{background:#EDE9FE;color:#4C1D95}
.status-cancelled{background:var(--red-lt);color:#7F1D1D}

/* ── PROMO BLOCK ── */
.promo-block{background:linear-gradient(130deg,var(--green-dp) 0%,#065430 50%,var(--green-dk) 100%);border-radius:var(--r-2xl);padding:32px 22px;position:relative;overflow:hidden}
.promo-block::after{content:'💻';position:absolute;right:-20px;bottom:-20px;font-size:150px;opacity:.05;pointer-events:none}
.promo-eyebrow{display:inline-block;background:rgba(110,231,183,.15);color:#6EE7B7;font-size:11px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;padding:5px 14px;border-radius:var(--r-full);margin-bottom:12px}
.promo-block h2{font-family:var(--serif);font-size:26px;font-weight:800;color:#fff;margin-bottom:12px;line-height:1.15;letter-spacing:-.8px}
.promo-block h2 em{color:#6EE7B7;font-style:italic}
.promo-block p{font-size:14px;color:rgba(255,255,255,.68);line-height:1.72;margin-bottom:22px}
.promo-actions{display:flex;flex-direction:column;gap:10px}
.btn-pp{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 22px;background:#6EE7B7;color:var(--green-dp);border:none;border-radius:var(--r-lg);font-size:14px;font-weight:800;transition:all .15s;cursor:pointer;text-decoration:none;min-height:48px}
.btn-pp:hover{background:#A7F3D0}
.btn-pg{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.25);color:#fff;border-radius:var(--r-lg);font-size:14px;font-weight:600;transition:all .15s;cursor:pointer;text-decoration:none;min-height:48px}
.btn-pg:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.45)}
/* Aliases for promo buttons */
.btn-promo-primary{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 22px;background:#6EE7B7;color:var(--green-dp);border:none;border-radius:var(--r-lg);font-size:14px;font-weight:800;transition:all .15s;cursor:pointer;text-decoration:none;min-height:48px}
.btn-promo-primary:hover{background:#A7F3D0}
.btn-promo-ghost{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 22px;background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.25);color:#fff;border-radius:var(--r-lg);font-size:14px;font-weight:600;transition:all .15s;cursor:pointer;text-decoration:none;min-height:48px}
.btn-promo-ghost:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.45)}

/* ── PRODUCT DETAIL PAGE ── */
/* Mobile-first: single column */
.product-detail-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-top:0}
.product-main-img{background:var(--n100);border-radius:var(--r-xl);aspect-ratio:4/3;overflow:hidden;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.product-main-img img{width:100%;height:100%;object-fit:cover}
.product-thumbs{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px}
.thumb-img{width:64px;height:64px;border-radius:var(--r-md);object-fit:cover;border:2px solid var(--n200);cursor:pointer;flex-shrink:0;transition:border-color .15s}
.thumb-img.active,.thumb-img:hover{border-color:var(--green)}
.product-detail-brand{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--green);margin-bottom:8px}
.product-detail-title{font-family:var(--serif);font-size:22px;font-weight:800;color:var(--n900);margin-bottom:14px;letter-spacing:-.5px;line-height:1.2}
.product-detail-price{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.price-main{font-family:var(--serif);font-size:30px;font-weight:800;color:var(--green)}
.price-old{font-size:16px;color:var(--n400);text-decoration:line-through}
.price-save{background:var(--red);color:#fff;font-size:11px;font-weight:800;padding:3px 9px;border-radius:var(--r-sm)}
.product-detail-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.badge-warranty{display:inline-flex;align-items:center;gap:5px;background:var(--green-lt);color:var(--green);font-size:12px;font-weight:600;padding:5px 12px;border-radius:var(--r-full)}
.badge-stock-ok{display:inline-flex;align-items:center;gap:5px;background:#D1FAE5;color:#065F46;font-size:12px;font-weight:700;padding:5px 12px;border-radius:var(--r-full)}
.badge-stock-out{display:inline-flex;align-items:center;gap:5px;background:var(--red-lt);color:var(--red);font-size:12px;font-weight:700;padding:5px 12px;border-radius:var(--r-full)}
.product-detail-desc{font-size:14px;color:var(--n600);line-height:1.8;margin-bottom:18px}
.product-specs-box{background:var(--n50);border:1px solid var(--n200);border-radius:var(--r-lg);padding:16px;margin-bottom:20px}
.specs-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--n500);margin-bottom:10px}
.specs-body{font-size:13px;color:var(--n700);line-height:2;white-space:pre-line}
.product-detail-actions{display:flex;gap:10px;margin-top:4px}
.section-title{font-family:var(--serif);font-size:22px;font-weight:800;color:var(--n900);margin-bottom:6px}
.section-title span{color:var(--green)}

/* ── CART EXTRAS ── */
.cart-item-condition{margin-bottom:8px}
.qty-control{display:inline-flex;align-items:center;gap:8px;background:var(--n100);border:1px solid var(--n200);border-radius:var(--r-md);padding:4px 8px}
.qty-btn{width:30px;height:30px;border:none;background:#fff;border-radius:var(--r-sm);font-size:16px;display:flex;align-items:center;justify-content:center;transition:all .12s;box-shadow:var(--s1);cursor:pointer;font-weight:700}
.qty-btn:hover{background:var(--green);color:#fff}
.qty-num{font-weight:700;font-size:15px;min-width:24px;text-align:center}

/* ── BOOKING ── */
.booking-grid,.contact-grid{display:flex;flex-direction:column;gap:20px;padding:20px 0}
.booking-card{background:#fff;border:1px solid var(--n200);border-radius:var(--r-xl);padding:20px}
.service-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.service-option{border:2px solid var(--n200);border-radius:var(--r-lg);padding:14px 10px;text-align:center;cursor:pointer;transition:all .15s}
.service-option:hover,.service-option.selected{border-color:var(--green);background:var(--green-lt)}
.service-option input{display:none}
.service-icon{font-size:24px;margin-bottom:6px}
.service-name{font-size:12px;font-weight:600;color:var(--n700)}

/* ── FOOTER ── */
.footer{background:#0C1220;color:#fff;padding:44px 0 0;margin-top:52px}
.footer-top{display:grid;grid-template-columns:1fr;gap:28px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.07)}
.f-brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;color:#fff;margin-bottom:12px}
.f-brand .fi{width:34px;height:34px;background:var(--green);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.f-brand em{color:var(--green);font-style:normal;font-weight:800}
.footer p{font-size:13px;color:rgba(255,255,255,.42);line-height:1.8;margin-bottom:16px}
.f-contacts a{display:flex;align-items:center;gap:10px;font-size:13px;color:rgba(255,255,255,.5);margin-bottom:9px;font-weight:500;transition:color .15s}
.f-contacts a:hover{color:var(--green)}
.f-contacts i{color:var(--green);width:14px;flex-shrink:0}
.f-social{display:flex;gap:9px;margin-top:16px}
.f-social a{width:36px;height:36px;background:rgba(255,255,255,.07);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:14px;color:rgba(255,255,255,.5);transition:all .15s}
.f-social a:hover{background:var(--green);color:#fff}
.footer-col h5{font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:rgba(255,255,255,.3);margin-bottom:14px}
.footer-col li a{font-size:13px;color:rgba(255,255,255,.44);padding:5px 0;display:block;transition:color .15s}
.footer-col li a:hover{color:var(--green)}
.f-secure{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);padding:7px 14px;border-radius:var(--r-sm);font-size:12px;color:rgba(255,255,255,.36);font-weight:600}
.f-secure i{color:var(--green)}
.footer-bottom{padding:16px 0;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;font-size:12px;color:rgba(255,255,255,.26)}

/* ── FLOATS ── */
.wa-btn{position:fixed;bottom:22px;right:16px;width:52px;height:52px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;color:#fff;z-index:800;box-shadow:0 4px 20px rgba(37,211,102,.5);transition:transform .18s;text-decoration:none}
.wa-btn:hover{transform:scale(1.1)}
.wa-tip{position:absolute;right:62px;top:50%;transform:translateY(-50%);background:var(--n900);color:#fff;font-size:12px;font-weight:600;padding:7px 12px;border-radius:var(--r-sm);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .18s}
.wa-btn:hover .wa-tip{opacity:1}
.ai-chat-widget{position:fixed;bottom:22px;left:16px;z-index:800}
.ai-chat-toggle{width:52px;height:52px;background:var(--green);border:none;border-radius:50%;font-size:23px;color:#fff;box-shadow:var(--sg);transition:transform .18s;position:relative}
.ai-chat-toggle:hover{transform:scale(1.08)}
.ai-notif{position:absolute;top:-5px;right:-5px;background:var(--red);color:#fff;width:18px;height:18px;border-radius:50%;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff}
.ai-chat-box{position:absolute;bottom:64px;left:0;background:#fff;border:1px solid var(--n200);border-radius:var(--r-2xl);box-shadow:var(--s6);display:none;flex-direction:column;overflow:hidden;width:calc(100vw - 32px);max-width:310px}
.ai-chat-box.open{display:flex}
.ai-chat-header{background:linear-gradient(130deg,var(--green-dp),var(--green));color:#fff;padding:14px 16px;display:flex;align-items:center;gap:12px}
.ai-avatar{width:34px;height:34px;background:rgba(255,255,255,.2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.ai-chat-header strong{font-size:13px;font-weight:700;display:block}
.ai-chat-header small{font-size:11px;opacity:.7}
.ai-close{margin-left:auto;background:none;border:none;color:#fff;font-size:20px;cursor:pointer;opacity:.7;line-height:1;min-width:32px;min-height:32px;display:flex;align-items:center;justify-content:center}
.ai-close:hover{opacity:1}
.ai-chat-messages{flex:1;padding:12px;overflow-y:auto;max-height:230px;display:flex;flex-direction:column;gap:9px;-webkit-overflow-scrolling:touch}
.ai-msg{padding:10px 13px;border-radius:14px;font-size:13px;line-height:1.55;max-width:88%}
.ai-msg.ai{background:var(--green-lt);color:var(--n800);align-self:flex-start;border-bottom-left-radius:4px}
.ai-msg.user{background:var(--green);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.ai-chat-input{padding:10px;border-top:1px solid var(--n100);display:flex;gap:8px}
.ai-chat-input input{flex:1;padding:10px 12px;border:1.5px solid var(--n200);border-radius:var(--r-md);font-size:14px;outline:none;min-height:42px}
.ai-chat-input input:focus{border-color:var(--green)}
.ai-chat-input button{width:42px;height:42px;background:var(--green);border:none;border-radius:var(--r-md);color:#fff;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ai-chat-input button:hover{background:var(--green-dk)}

/* ── ADMIN ── */
.admin-layout{display:flex;min-height:100vh;background:var(--n50)}

/* Sidebar — hidden on mobile, slides in when .open */
.admin-sidebar{
  width:260px;background:var(--n900);
  flex-shrink:0;display:flex;flex-direction:column;
  position:fixed;top:0;left:0;height:100vh;
  overflow-y:auto;z-index:600;
  transition:transform .28s cubic-bezier(.4,0,.2,1);
  transform:translateX(-100%);
  -webkit-overflow-scrolling:touch;
}
.admin-sidebar.open{transform:translateX(0)}
.admin-overlay{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.55);z-index:599;
  -webkit-tap-highlight-color:transparent;
}
.admin-overlay.show{display:block}

/* Sidebar internals */
.admin-logo{padding:18px 16px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:center;gap:10px;flex-shrink:0}
.admin-logo-icon{width:34px;height:34px;background:var(--green);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px;color:#fff;flex-shrink:0}
.admin-logo h2{font-size:14px;font-weight:700;color:#fff;margin:0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-logo h2 small{display:block;font-size:10px;font-weight:400;color:rgba(255,255,255,.35);margin-top:1px}
.admin-nav{padding:10px 8px;flex:1;overflow-y:auto}
.admin-nav-label{font-size:9px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:rgba(255,255,255,.22);padding:14px 10px 6px}
.admin-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--r-sm);font-size:13px;font-weight:500;color:rgba(255,255,255,.52);margin-bottom:2px;transition:all .14s;min-height:46px;text-decoration:none;-webkit-tap-highlight-color:transparent}
.admin-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.admin-nav a.active{background:var(--green);color:#fff;font-weight:600}
.admin-nav a i{width:15px;text-align:center;flex-shrink:0;font-size:13px}
.nav-badge{margin-left:auto;background:var(--red);color:#fff;font-size:10px;font-weight:700;min-width:18px;height:18px;border-radius:var(--r-full);display:flex;align-items:center;justify-content:center;padding:0 4px;flex-shrink:0}

/* Content area */
.admin-content{flex:1;min-height:100vh;display:flex;flex-direction:column;min-width:0}

/* Topbar */
.admin-topbar{background:#fff;border-bottom:1px solid var(--n200);padding:0 14px;height:56px;display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:50;box-shadow:var(--s1)}
.admin-topbar h1{font-size:15px;font-weight:700;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.topbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}

/* Hamburger button — always visible on mobile */
.admin-menu-btn{width:40px;height:40px;background:var(--n100);border:1px solid var(--n200);border-radius:var(--r-md);display:flex;align-items:center;justify-content:center;font-size:16px;color:var(--n600);cursor:pointer;flex-shrink:0;transition:all .15s;-webkit-tap-highlight-color:transparent}
.admin-menu-btn:hover{background:var(--green-lt);border-color:var(--green);color:var(--green)}

/* Main content padding */
.admin-main,
.admin-main-content{padding:14px 14px 48px;flex:1}

/* ── STAT CARDS — 1 col on tiny, 2 on small, 4 on desktop ── */
.stat-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.stat-card{background:#fff;border:1px solid var(--n200);border-radius:var(--r-xl);padding:14px 12px;display:flex;align-items:center;gap:12px;transition:box-shadow .15s}
.stat-card:hover{box-shadow:var(--s3)}
.stat-icon{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.stat-icon.green{background:#D1FAE5;color:var(--green)}
.stat-icon.blue{background:var(--blue-lt);color:var(--blue)}
.stat-icon.orange{background:#FFF7ED;color:#EA580C}
.stat-icon.yellow{background:var(--amber-lt);color:var(--amber)}
.stat-num{font-size:18px;font-weight:800;color:var(--n900);font-family:var(--serif);line-height:1}
.stat-label{font-size:11px;color:var(--n400);font-weight:500;margin-top:2px}

/* ── ADMIN TABLE WRAP — scrollable on mobile ── */
.admin-card,.admin-table-wrap{background:#fff;border:1px solid var(--n200);border-radius:var(--r-xl);margin-bottom:16px;overflow:hidden}
.admin-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.admin-card-header,.admin-table-header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid var(--n100);flex-wrap:wrap;gap:8px}
.admin-card-header h3,.admin-table-header h3{font-size:14px;font-weight:700;margin:0;color:var(--n900)}

/* Tables — scrollable wrapper */
.table-wrap,.admin-table-wrap>div[style*="overflow"]{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse}
thead tr{background:var(--n50)}
th{text-align:left;padding:10px 12px;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--n400);border-bottom:1px solid var(--n100);white-space:nowrap}
td{padding:11px 12px;border-bottom:1px solid var(--n100);vertical-align:middle;font-size:13px}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover{background:var(--n50)}

/* Admin form inputs */
.admin-main input,.admin-main-content input,
.admin-main select,.admin-main-content select,
.admin-main textarea,.admin-main-content textarea{
  width:100%;padding:10px 12px;border:2px solid var(--n200);
  border-radius:10px;font-size:16px;font-family:inherit;
  color:var(--n900);background:#fff;outline:none;
  transition:border-color .15s,box-shadow .15s;
  -webkit-appearance:none;
}
.admin-main input:focus,.admin-main-content input:focus,
.admin-main select:focus,.admin-main-content select:focus,
.admin-main textarea:focus,.admin-main-content textarea:focus{
  border-color:var(--green);box-shadow:0 0 0 3px rgba(5,150,82,.12);
}
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:13px;font-weight:700;color:var(--n700);margin-bottom:5px}

/* Status badges */
.status-badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:var(--r-full);font-size:11px;font-weight:700;text-transform:capitalize;letter-spacing:.3px;white-space:nowrap}
.status-pending{background:#FEF3C7;color:#92400E}
.status-paid,.status-delivered,.status-completed,.status-confirmed,.status-resolved{background:#D1FAE5;color:#064E3B}
.status-processing,.status-in_progress,.status-contacted{background:var(--blue-lt);color:#1E3A8A}
.status-shipped{background:#EDE9FE;color:#4C1D95}
.status-cancelled,.status-closed{background:var(--red-lt);color:#7F1D1D}
.status-new{background:#DBEAFE;color:#1D4ED8}

/* ── ANIMATIONS ── */
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
.fade-up{animation:fadeUp .4s ease both}
.fade-up:nth-child(1){animation-delay:.04s}.fade-up:nth-child(2){animation-delay:.1s}
.fade-up:nth-child(3){animation-delay:.16s}.fade-up:nth-child(4){animation-delay:.22s}

/* ── SERVICES GRID ── */
.services-grid{display:grid;grid-template-columns:1fr;gap:16px}
.svc-card{background:var(--n50);border:1px solid var(--n200);border-radius:var(--r-xl);padding:24px;transition:all .22s;position:relative;overflow:hidden}
.svc-card:hover{border-color:var(--green);box-shadow:0 12px 40px rgba(5,150,82,.12);transform:translateY(-3px)}
.svc-card-dark{background:linear-gradient(135deg,var(--green-dp),var(--green-dk))}
.svc-card-dark:hover{box-shadow:0 12px 40px rgba(5,150,82,.3)}
.svc-icon{width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px;margin-bottom:16px}
.svc-eyebrow{font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;margin-bottom:7px}
.svc-title{font-size:17px;font-weight:700;margin-bottom:9px;letter-spacing:-.3px}
.svc-desc{font-size:13px;line-height:1.7;margin-bottom:18px}
.svc-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}
.svc-tag{font-size:10px;font-weight:700;padding:4px 10px;border-radius:20px}

/* ── MISC ── */
.booking-success,.order-success{background:#fff;border:1px solid var(--n200);border-radius:var(--r-2xl);padding:28px 22px;text-align:center;max-width:500px;margin:40px auto}
.empty-state{text-align:center;padding:56px 24px}
.empty-state .ei{font-size:52px;margin-bottom:14px}
.empty-state h3{font-size:19px;font-weight:700;margin-bottom:8px}
.empty-state p{font-size:14px;color:var(--n500);margin-bottom:22px}

/* ================================================================
   BREAKPOINT: 480px — Small phones only — force 1-col on tiny screens
   ================================================================ */
@media(max-width:479px){
  /* Form grid-2 stacks to 1 col */
  .grid-2{grid-template-columns:1fr !important}
  /* Bigger touch targets */
  .btn{min-height:50px}
  .form-control{min-height:50px;font-size:16px}
  /* Product detail title smaller */
  .product-detail-title{font-size:18px}
  .price-main{font-size:24px}
  /* Hero text tighter */
  .hero h1{font-size:26px;letter-spacing:-.5px}
  /* Reduce section padding */
  .section{padding:32px 0}
  /* CTA block less padding on mobile */
  .cta-block{padding:32px 20px !important}
  /* Empty cart box less padding */
  .empty-cart-box{padding:40px 20px !important}
  /* Budget block */
  .budget-cta{padding:24px 16px !important}
  /* Stat cards on tiny phones */
  .stat-cards{grid-template-columns:1fr 1fr}
  /* Services grid 1 col */
  .services-grid{grid-template-columns:1fr !important}
  /* Service option cards 3-per-row smaller */
  .service-cards{grid-template-columns:1fr 1fr 1fr;gap:6px}
  .service-option{padding:10px 6px}
  .service-icon{font-size:18px}
  .service-name{font-size:10px}
  /* Cart item smaller image */
  .cart-item-img{width:60px;height:60px}
  /* Nav end tighter */
  .nav-end{gap:6px}
  .btn-icon{width:36px;height:36px;font-size:14px}
}

/* ================================================================
   BREAKPOINT: 540px — Wider phones
   ================================================================ */
@media(min-width:540px){
  .grid-4,.grid-3,.grid-2{gap:14px}
  .product-info{padding:13px}
  .product-name{font-size:13px}
  .product-price .current{font-size:18px}
  .product-actions .btn{font-size:12px;padding:8px 8px}
  .services-grid{grid-template-columns:1fr 1fr}
}

/* ================================================================
   BREAKPOINT: 768px — Tablet
   ================================================================ */
@media(min-width:768px){
  :root{--nav-h:62px}
  .container{padding:0 24px}
  .section{padding:56px 0}
  .sh-title{font-size:26px}
  .sh{margin-bottom:26px}

  /* Show account name */
  .nav-account span{display:inline}

  /* Hero */
  .hero{padding:52px 0 0}
  .hero h1{font-size:42px;letter-spacing:-1.5px}
  .hero-sub{font-size:15px}
  .hero-actions{flex-direction:row;flex-wrap:wrap;gap:12px}
  .hero-actions .btn{width:auto}
  .metric-num{font-size:26px}

  /* Grids */
  .grid-4{grid-template-columns:repeat(2,1fr);gap:18px}
  .grid-3{grid-template-columns:repeat(3,1fr);gap:18px}
  .grid-2{grid-template-columns:1fr 1fr;gap:18px}

  /* Product cards */
  .product-info{padding:14px}
  .product-name{font-size:14px}
  .product-price .current{font-size:20px}
  .product-actions .btn{font-size:13px;padding:9px 10px}

  /* Services grid */
  .services-grid{grid-template-columns:1fr 1fr}

  /* Promo */
  .promo-block{padding:40px 32px}
  .promo-block h2{font-size:30px}
  .promo-actions{flex-direction:row}
  .btn-pp,.btn-pg{flex:1}

  /* Cart */
  .cart-layout{flex-direction:row;align-items:flex-start;gap:24px;padding:28px 0}
  .cart-items-col{flex:1;min-width:0}
  .order-summary{position:sticky;top:78px;width:320px;flex-shrink:0}
  .cart-item-img{width:88px;height:88px}

  /* Booking/Contact */
  .booking-grid,.contact-grid{flex-direction:row;gap:24px;align-items:flex-start;padding:28px 0}

  /* Page hero */
  .page-hero{padding:28px 0}
  .page-hero h1{font-size:28px}

  /* Footer */
  .footer{padding:56px 0 0;margin-top:64px}
  .footer-top{grid-template-columns:1fr 1fr;gap:32px}
  .footer-bottom{flex-direction:row;justify-content:space-between;text-align:left}

  /* Product detail 2-col on tablet */
  .product-detail-grid{grid-template-columns:1fr 1fr;gap:32px;align-items:start}
  .product-detail-title{font-size:26px}
  .price-main{font-size:36px}

  /* Auth */
  .auth-right{padding:48px 24px;align-items:center}
  .auth-card{padding:36px 32px;margin-top:0}

  /* Admin stats */
  .stat-cards{gap:14px}
  .stat-card{padding:18px 15px}
  .stat-num{font-size:24px}

  /* Floats */
  .wa-btn{bottom:28px;right:24px}
  .ai-chat-widget{bottom:28px;left:24px}
  .ai-chat-box{max-width:320px}
}

/* ================================================================
   BREAKPOINT: 1024px — Desktop
   ================================================================ */
@media(min-width:1024px){
  :root{--nav-h:64px}
  .container{padding:0 32px}
  .section{padding:68px 0}
  .sh-title{font-size:28px}

  /* Nav desktop elements */
  .nav-inner{gap:20px}
  .nav-search{display:flex}
  .nav-links{display:flex;align-items:center;gap:2px}
  .nav-links>a,.nav-links>.nav-dropdown>a{padding:8px 13px;font-size:14px;font-weight:500;color:var(--n600);border-radius:var(--r-sm);transition:all .15s;white-space:nowrap;display:flex;align-items:center;gap:5px}
  .nav-links>a:hover,.nav-links>.nav-dropdown>a:hover{color:var(--green);background:var(--green-lt)}
  .nav-burger{display:none}
  .mobile-sb{display:none !important}

  /* Hero 2-col */
  .hero{padding:72px 0 0}
  .hero-grid{display:grid;grid-template-columns:1fr 440px;gap:60px;align-items:flex-end;padding-bottom:80px}
  .hero-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-bottom:28px}
  .h-card{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.15);border-radius:var(--r-xl);padding:24px 18px;text-align:center;backdrop-filter:blur(10px);transition:all .25s;cursor:pointer;text-decoration:none}
  .h-card:hover{background:rgba(255,255,255,.15);transform:translateY(-6px);border-color:rgba(110,231,183,.4)}
  .h-card:nth-child(2){margin-top:28px}
  .h-card:nth-child(3){margin-top:-16px}
  .h-card-emoji{font-size:32px;margin-bottom:10px;line-height:1}
  .h-card-name{font-size:13px;font-weight:700;color:#fff;margin-bottom:3px}
  .h-card-sub{font-size:11px;color:rgba(255,255,255,.55)}
  .h-card.glow{border-color:rgba(110,231,183,.3);background:rgba(110,231,183,.08)}
  .h-card.glow .h-card-name{color:#6EE7B7}
  .hero h1{font-size:clamp(42px,4.5vw,58px);letter-spacing:-2px}
  .hero-sub{font-size:16px}

  /* Grids */
  .grid-4{grid-template-columns:repeat(4,1fr);gap:22px}
  .grid-3{grid-template-columns:repeat(3,1fr);gap:22px}
  .grid-2{grid-template-columns:1fr 1fr;gap:22px}

  /* Trust bar grid */
  .trust-inner{display:grid;grid-template-columns:repeat(4,1fr);width:auto;padding:0}
  .trust-cell{min-width:unset}

  /* Products page layout */
  .products-layout{display:grid;grid-template-columns:220px 1fr;gap:28px;padding:32px 0}
  .sidebar-card{display:block;background:#fff;border:1px solid var(--n200);border-radius:var(--r-xl);padding:20px;position:sticky;top:80px;height:fit-content}
  .mobile-filters{display:none}
  .sidebar-title{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--n400);margin-bottom:10px}
  .filter-list{margin-bottom:20px}
  .filter-list a{display:block;padding:9px 12px;border-radius:var(--r-sm);font-size:14px;font-weight:500;color:var(--n600);transition:all .12s}
  .filter-list a:hover,.filter-list a.active{background:var(--green-lt);color:var(--green);font-weight:600}

  /* Cart */
  .order-summary{width:360px}
  .cart-item-img{width:92px;height:92px}

  /* Promo 2-col */
  .promo-block{display:grid;grid-template-columns:1fr auto;gap:36px;align-items:center;padding:52px 56px}
  .promo-block h2{font-size:clamp(26px,2.8vw,40px)}
  .promo-actions{flex-direction:column;min-width:220px}
  .btn-pp,.btn-pg{flex:none;width:100%}

  /* Services 3-col */
  .services-grid{grid-template-columns:repeat(3,1fr);gap:22px}

  /* Footer 4-col */
  .footer{padding:72px 0 0;margin-top:80px}
  .footer-top{grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;padding-bottom:48px}

  /* Auth split */
  .auth-page{flex-direction:row}
  .auth-left{display:flex;flex:0 0 420px;background:linear-gradient(145deg,var(--green-dp),var(--green-dk) 60%,var(--green));flex-direction:column;justify-content:center;padding:56px;position:relative;overflow:hidden}
  .auth-left::after{content:'💻';position:absolute;bottom:-20px;right:-20px;font-size:200px;opacity:.05;pointer-events:none}
  .auth-left h2{font-family:var(--serif);font-size:34px;font-weight:800;color:#fff;margin-bottom:12px;letter-spacing:-1px}
  .auth-left h2 em{color:#6EE7B7;font-style:italic}
  .auth-left p{font-size:15px;color:rgba(255,255,255,.7);line-height:1.75;max-width:300px}
  .auth-right{align-items:center;padding:56px 40px}
  .auth-card{padding:44px;box-shadow:var(--s6)}

  /* Admin layout — desktop: show sidebar, hide burger */
  .admin-sidebar{transform:translateX(0) !important}
  .admin-overlay{display:none !important}
  .admin-content{margin-left:260px}
  .admin-menu-btn{display:none !important}
  .admin-main,.admin-main-content{padding:24px 28px 56px}
  .admin-topbar{padding:0 28px;height:62px}
  .admin-topbar h1{font-size:17px}
  .stat-cards{grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}
  .stat-card{padding:20px 16px;gap:14px}
  .stat-icon{width:48px;height:48px;border-radius:13px;font-size:20px}
  .stat-num{font-size:26px}
  .stat-label{font-size:12px}
  td{font-size:14px}

  /* Floats */
  .wa-btn{bottom:32px;right:32px;width:56px;height:56px;font-size:28px}
  .ai-chat-widget{bottom:32px;left:32px}
  .ai-chat-toggle{width:54px;height:54px;font-size:24px}
  .ai-chat-box{width:320px}
}

/* ================================================================
   BREAKPOINT: 1280px — Large desktop
   ================================================================ */
@media(min-width:1280px){
  .hero-grid{grid-template-columns:1fr 480px;gap:70px}
  .section{padding:76px 0}
  .sh-title{font-size:30px}
}

/* ================================================================
   ADMIN MOBILE — Extra mobile rules for all admin pages
   ================================================================ */

/* Prevent any page from being wider than screen */
.admin-content { max-width: 100vw; overflow-x: hidden; }

/* Tables inside admin — always scrollable */
.admin-table-wrap > div,
.admin-table-wrap > table { overflow-x: auto; -webkit-overflow-scrolling: touch; display: block; }
.admin-table-wrap table { width: 100%; min-width: 560px; }

/* Admin forms — stack all inputs full width on mobile */
.admin-main-content input,
.admin-main-content select,
.admin-main-content textarea {
  width: 100%; min-height: 46px;
  padding: 11px 13px;
  font-size: 16px; /* prevent iOS zoom */
  border: 2px solid var(--n200);
  border-radius: 10px;
  font-family: inherit;
  background: #fff;
  color: var(--n900);
  outline: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.admin-main-content input:focus,
.admin-main-content select:focus,
.admin-main-content textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(5,150,82,.12);
}
.admin-main-content input[type=number] { min-height: 46px; }
.admin-main-content input[type=file] { min-height: 0; padding: 8px 0; }
.admin-main-content input[type=checkbox] {
  width: 18px; height: 18px; min-height: 0; padding: 0;
  accent-color: var(--green); cursor: pointer;
}

/* Mobile topbar — tighter */
@media(max-width:767px) {
  .admin-topbar { padding: 0 12px; height: 52px; gap: 8px; }
  .admin-topbar h1 { font-size: 14px; }
  .admin-main, .admin-main-content { padding: 12px 12px 56px; }

  /* Stat cards — 2x2 on phone */
  .stat-cards { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
  .stat-card { padding: 12px 10px; gap: 10px; border-radius: 12px; }
  .stat-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 9px; flex-shrink: 0; }
  .stat-num { font-size: 16px; }
  .stat-label { font-size: 10px; }

  /* Admin cards */
  .admin-card, .admin-table-wrap { border-radius: 12px; margin-bottom: 12px; }
  .admin-card-header, .admin-table-header { padding: 11px 13px; }
  .admin-card-header h3, .admin-table-header h3 { font-size: 13px; }

  /* Table cells tighter on mobile */
  th { padding: 8px 10px; font-size: 9px; }
  td { padding: 9px 10px; font-size: 12px; }

  /* Buttons in admin tighter */
  .btn-sm { padding: 7px 12px; font-size: 12px; min-height: 36px; }
  .btn-xs { padding: 4px 8px; font-size: 11px; min-height: 28px; }

  /* Nav badge smaller */
  .nav-badge { font-size: 9px; min-width: 16px; height: 16px; }

  /* Alert boxes */
  .alert { font-size: 13px; padding: 10px 12px; }

  /* Admin topbar profile avatar */
  .topbar-actions img { width: 30px !important; height: 30px !important; }
  .topbar-actions a[style*="36px"] { width: 30px !important; height: 30px !important; font-size: 11px !important; }
}

/* Fix grid forms inside admin — stack on very small screens */
@media(max-width:500px) {
  .admin-main-content [style*="grid-template-columns"],
  .admin-main [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .stat-cards { grid-template-columns: 1fr 1fr !important; } /* keep stats 2-col */
}

/* ================================================================
   MOBILE POLISH — catch-all for real device issues
   ================================================================ */

/* Ensure nothing ever overflows the viewport */
html, body { max-width: 100vw; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* ── INDEX PAGE ── */
/* Services grid: 1 col mobile, 2 col tablet, 3 col desktop already handled */
/* CTA buttons wrap nicely on mobile */
.hero-actions .btn { min-height: 50px; font-size: 15px; }

/* ── PRODUCT DETAIL ── */
/* Desktop: product detail stays 2-col at 768px+ */
@media(min-width:768px) {
  .product-detail-title { font-size: 28px; }
  .price-main { font-size: 34px; }
}
@media(min-width:1024px) {
  .product-detail-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .product-detail-title { font-size: 32px; }
  .price-main { font-size: 38px; }
}

/* ── CART PAGE ── */
/* Cart layout: stacked on mobile, side-by-side on tablet */
@media(min-width:768px) {
  .cart-layout { flex-direction: row; align-items: flex-start; }
  .cart-layout > div:first-child { flex: 1; min-width: 0; }
  .order-summary { width: 300px; flex-shrink: 0; position: sticky; top: 80px; }
}
@media(min-width:1024px) {
  .order-summary { width: 340px; }
}

/* ── CHECKOUT PAGE ── */
/* booking-card on checkout */
@media(min-width:768px) {
  .cart-layout .booking-card { flex: 1; }
  .cart-layout .order-summary { width: 300px; flex-shrink: 0; position: sticky; top: 80px; }
}

/* ── BOOKING / CONTACT ── */
@media(min-width:768px) {
  .booking-grid, .contact-grid { flex-direction: row; align-items: flex-start; gap: 28px; }
  .booking-grid > *:first-child, .contact-grid > *:first-child { flex: 1; }
  .booking-grid > aside, .contact-grid > aside { width: 260px; flex-shrink: 0; }
}

/* ── FOOTER ── */
@media(min-width:768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media(min-width:1024px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ── SMALL PHONE SPECIFICS (< 380px) ── */
@media(max-width:380px) {
  .nav-end { gap: 4px; }
  .btn-icon { width: 34px; height: 34px; font-size: 13px; }
  .nav-account { padding: 6px 10px; font-size: 12px; }
  .hero h1 { font-size: 24px; }
  .hero-metrics { gap: 14px; }
  .metric-num { font-size: 18px; }
  .product-name { font-size: 11px; }
  .product-price .current { font-size: 15px; }
  .product-actions .btn { font-size: 10px; padding: 6px 3px; min-height: 34px; }
  .cart-item-img { width: 54px; height: 54px; }
  .cart-item-name { font-size: 12px; }
}

/* ── PREVENT TABLE OVERFLOW on all pages ── */
.container { overflow-x: hidden; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── TOUCH TARGETS ── */
@media (hover: none) {
  /* Make all interactive elements easier to tap */
  .btn-sm { min-height: 44px; }
  .mobile-filters a { min-height: 44px; }
  .pagination a, .pagination span { width: 44px; height: 44px; }
}
