@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;800;900&display=swap');
*{margin:0;padding:0;box-sizing:border-box;font-family:'Tajawal',sans-serif}
:root{--yellow:#f5c518;--yellow-dark:#d9a900;--ink:#242424;--muted:#737373;--surface:#fff;--surface-soft:#fffdf5}
body{
  background:#fff;
  color:var(--ink);
}

/* NAVBAR */
.store-navigation{position:sticky;top:0;z-index:100;background:rgba(255,255,255,0.96);backdrop-filter:blur(25px)}
.navbar{background:transparent;border-bottom:1px solid #f0e7c7;padding:14px 20px}
.nav-inner{max-width:1250px;margin:auto;display:flex;justify-content:space-between;align-items:center}
.nav-actions{display:flex;align-items:center;gap:10px}
.admin-link{color:#555;text-decoration:none;font-weight:700;font-size:13px}
.admin-link:hover{color:var(--yellow-dark)}
.logo{color:var(--ink);text-decoration:none;font-weight:900;font-size:22px}.logo span{color:var(--yellow-dark)}
.catalog-nav{min-width:0}
.catalog-tabs-bar{display:flex;justify-content:center;padding:9px 16px;background:rgba(255,253,245,.98);border-bottom:1px solid #f0e7c7}
.catalog-tabs,.nav-links{display:flex;align-items:center;gap:8px;min-width:0}
.catalog-tabs a,.nav-links a{padding:6px 10px;border-radius:18px;color:#777;text-decoration:none;font-weight:700;font-size:13px;white-space:nowrap;cursor:pointer;transition:background .2s,color .2s}
.catalog-tabs a{padding:8px 20px;border:1px solid #eee5c8;background:#fff;font-size:14px}
.catalog-tabs a.active,.catalog-tabs a:hover,.nav-links a.active,.nav-links a:hover{background:#fff5cf;color:#806500}
.catalog-tabs a.active{border-color:#ead27b;font-weight:900}
.nav-links{overflow-x:auto;scrollbar-width:thin}
.nav-links[hidden]{display:none}
.search-box{display:flex;align-items:center;flex:0 1 250px;min-width:180px;height:42px;border:1px solid #eee5c8;border-radius:13px;background:#fff;overflow:hidden}
.search-box:focus-within{border-color:var(--yellow-dark);box-shadow:0 0 0 3px rgba(217,169,0,.12)}
.search-box input{width:100%;min-width:0;height:100%;padding:0 12px;border:0;outline:0;background:transparent;color:var(--ink);font-size:13px}
.search-box input::placeholder{color:#999}
.search-box button{display:grid;place-items:center;flex:none;width:42px;height:100%;border:0;background:#fff8df;color:#806500;cursor:pointer}
.search-box button:hover{background:#ffefb8}
.search-box svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.cart-btn{background:var(--yellow);color:#242424;padding:8px 14px;border-radius:12px;text-decoration:none;font-weight:900}

/* HERO */
.hero{text-align:center;padding:64px 20px 40px;background:radial-gradient(ellipse at 50% 0%,#fff5cc 0%,#fffdf5 36%,#fff 74%);border-bottom:1px solid #f4ecd0}
.hero h1{font-size:36px;font-weight:900;letter-spacing:-1px;color:var(--ink)}
.hero h1::after{content:"";display:block;width:62px;height:5px;margin:13px auto 0;border-radius:5px;background:linear-gradient(90deg,var(--yellow-dark),#ffe477)}
.hero p{color:var(--muted);margin-top:13px;font-weight:600;font-size:15px}
.hero-location-link{display:inline-flex;align-items:center;gap:12px;margin-top:24px;padding:10px 16px 10px 13px;border:1px solid #ead27b;border-radius:18px;background:rgba(255,255,255,.88);box-shadow:0 8px 24px rgba(128,101,0,.1);color:var(--ink);text-align:right;text-decoration:none;transition:transform .2s,box-shadow .2s,border-color .2s}
.hero-location-link:hover{transform:translateY(-2px);border-color:var(--yellow-dark);box-shadow:0 12px 28px rgba(128,101,0,.16)}
.hero-location-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:14px;background:#fff3bf;color:#806500}
.hero-location-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hero-location-copy{display:grid;gap:2px}
.hero-location-copy strong{font-size:14px;font-weight:900}
.hero-location-copy>span{color:var(--muted);font-size:12px;font-weight:600}
.hero-location-arrow{margin-inline-start:6px;color:#806500;font-size:18px;font-weight:900;transition:transform .2s}
.hero-location-link:hover .hero-location-arrow{transform:translateX(-3px)}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.section-heading h1,.section-heading h2{font-size:24px;font-weight:900}
.accessories-section{padding-top:10px}
.accessory-card .badge{background:var(--yellow);color:var(--ink)}
.card-img-wrap:focus-visible{outline:2px solid var(--yellow-dark);outline-offset:3px}
.product-count{color:var(--muted);font-size:14px}
.contact-footer{margin-top:8px;background:var(--surface-soft);border-top:1px solid #f0e7c7}
.contact-footer[hidden]{display:none}
.contact-footer-inner{max-width:1200px;margin:auto;padding:30px 24px;display:flex;justify-content:space-between;align-items:center;gap:24px}
.contact-eyebrow{color:var(--yellow-dark);font-weight:800;font-size:12px}
.contact-copy h2{font-size:23px;font-weight:900;margin-top:3px}
.contact-copy p{color:var(--muted);font-size:13px;margin-top:5px}
.social-links{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.social-link{display:inline-flex;align-items:center;gap:9px;min-width:132px;padding:11px 15px;border:1px solid #eee5c8;border-radius:14px;background:#fff;color:var(--ink);text-decoration:none;font-size:13px;font-weight:800;transition:transform .2s,border-color .2s,background .2s}
.social-link:hover{transform:translateY(-3px);border-color:var(--yellow-dark);background:#fff9df}
.social-icon{width:29px;height:29px;border-radius:10px;display:grid;place-items:center;background:#fff4c2;font-size:19px;font-weight:900}
.social-whatsapp .social-icon{color:#44dc88;background:rgba(37,211,102,.12)}
.social-instagram .social-icon{color:#ff82bd;background:rgba(225,48,108,.12)}
.social-facebook .social-icon{color:#75aaff;background:rgba(24,119,242,.16)}
.location-section{max-width:1200px;margin:0 auto;padding:0 24px 26px}
.location-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}
.location-heading h2{font-size:20px;font-weight:900;margin-top:3px}
.location-heading p{color:var(--muted);font-size:13px;margin-top:4px;direction:ltr;text-align:right}
.location-link{display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:12px;background:var(--yellow);color:var(--ink);text-decoration:none;font-weight:900;font-size:13px}
.location-link:hover{background:#ffdc59}
.location-map{display:block;width:100%;height:320px;border:1px solid #eee5c8;border-radius:16px;background:#fff}
.footer-bottom{padding:13px 20px;text-align:center;color:#777;border-top:1px solid #eee5c8;font-size:11px}
.empty-products{grid-column:1/-1;text-align:center;color:var(--muted);padding:40px 16px}

/* GRID */
.container{max-width:1250px;margin:auto;padding:10px 24px 60px}
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:24px;
  justify-content:center;
  align-items:stretch;
}

/* CARD */
.product-card{
  background:var(--surface);
  border:1px solid #eee7d4;
  border-radius:24px;
  padding:16px;
  color:var(--ink);
  box-shadow: 
    0 8px 24px rgba(45,38,15,.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition:all .35s cubic-bezier(.2,.8,.2,1);
  cursor:pointer;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
}
.product-card::before{
  content:"";
  position:absolute;top:-50%;left:-50%;width:200%;height:200%;
  background: radial-gradient(circle at 30% 20%, rgba(245,197,24,0.12), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(245,197,24,0.08), transparent 35%);
  pointer-events:none;
}
.product-card:hover{
  transform:translateY(-8px) scale(1.02);
  border-color:rgba(217,169,0,0.6);
  box-shadow: 
    0 16px 38px rgba(45,38,15,.13),
    0 0 24px rgba(245,197,24,0.16),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.card-img-wrap{
  background:linear-gradient(145deg,#fffdf5,#fff8dc);
  border-radius:18px;
  height:250px;
  display:flex;align-items:center;justify-content:center;
  position:relative;
  border:1px solid #f1e8c9;
  cursor:pointer;
}
.card-img-wrap img{width:72%;height:80%;object-fit:contain;filter:drop-shadow(0 20px 30px rgba(0,0,0,.5));transition:transform .4s}
.product-card:hover .card-img-wrap img{transform:scale(1.1) rotate(-2deg)}

.badge{position:absolute;top:12px;left:12px;background:var(--yellow);color:var(--ink);border:1px solid rgba(217,169,0,0.25);padding:5px 11px;border-radius:20px;font-size:11px;font-weight:800;z-index:2}

.card-info{padding:14px 6px 2px;position:relative;z-index:2;display:flex;flex:1;flex-direction:column}
.card-info h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.6em;overflow:hidden;font-size:16px;font-weight:800;line-height:1.3}
.card-info .desc{font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0}
.price-row{display:flex;align-items:center;gap:10px;margin-top:10px}
.price{font-weight:900;font-size:20px;color:#9b7800}
.old-price{font-size:13px;color:#999;text-decoration:line-through}

.product-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}
.card-info .product-actions{margin-top:auto;padding-top:14px}
.btn-buy,.btn-whatsapp{
  width:100%;
  min-height:44px;
  padding:10px 8px;
  border-radius:13px;
  font-weight:900;font-size:13px;cursor:pointer;transition:transform .2s,background .2s,box-shadow .2s,border-color .2s;
}
.btn-buy{
  background:linear-gradient(90deg,#f5c518,#ffdc4d);
  color:#242424;border:none;
  box-shadow:0 6px 18px rgba(217,169,0,0.25);
}
.btn-whatsapp{background:#fff;border:1px solid #e7d89d;color:#6b5700}
.btn-buy:hover,.btn-whatsapp:hover{transform:translateY(-1px)}
.btn-buy:hover{background:var(--yellow-dark);box-shadow:0 10px 25px rgba(217,169,0,0.3)}
.btn-whatsapp:hover{background:#fff8df;border-color:var(--yellow-dark)}

/* MODAL */
.modal{display:none;position:fixed;inset:0;background:rgba(36,36,36,.55);backdrop-filter:blur(10px);z-index:200;justify-content:center;align-items:center;padding:20px}
.modal.active{display:flex}
.modal-content{background:#fff;color:var(--ink);border:1px solid #eee5c8;border-radius:26px;max-width:1180px;width:100%;max-height:92vh;padding:26px;position:relative;overflow-y:auto;overscroll-behavior:contain}
.close{position:sticky;float:left;top:0;z-index:2;width:38px;height:38px;margin:-8px -8px -30px 0;border:1px solid #eee5c8;border-radius:12px;background:#fff;font-size:25px;line-height:1;cursor:pointer;color:#777}
.modal-product{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:30px;align-items:start;padding-top:12px}
.modal-image-gallery{min-width:0}
.modal-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
.modal-gallery-heading strong{font-size:17px;font-weight:900}
.modal-gallery-heading span{padding:5px 10px;border-radius:999px;background:#fff5cf;color:#806500;font-size:12px;font-weight:800}
.modal-gallery-hint{margin-bottom:14px;color:var(--muted);font-size:12px}
.modal-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.modal-photo-tile{position:relative;display:grid;place-items:center;min-width:0;height:clamp(130px,16vw,180px);padding:12px;border:1px solid #eee5c8;border-radius:18px;background:linear-gradient(145deg,#fffdf5,#fff8df);cursor:zoom-in;overflow:hidden;transition:border-color .2s,box-shadow .2s,transform .2s}
.modal-photo-tile:hover{transform:translateY(-2px);border-color:var(--yellow-dark);box-shadow:0 10px 24px rgba(45,38,15,.1)}
.modal-photo-tile:focus-visible{outline:3px solid var(--yellow-dark);outline-offset:3px}
.modal-photo-tile img{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);object-fit:contain}
.modal-photo-number{position:absolute;inset-inline-start:10px;inset-block-start:10px;display:grid;place-items:center;min-width:27px;height:27px;padding:0 6px;border:1px solid rgba(217,169,0,.2);border-radius:9px;background:rgba(255,255,255,.92);color:#806500;font-size:12px;font-weight:900}
.modal-product-info{padding:36px 8px 12px}
.modal-product h2{font-size:24px;margin-bottom:12px}
.modal-product p{color:var(--muted);line-height:1.8;white-space:pre-line}
.modal-product strong{display:block;font-size:26px;margin-top:18px}
.modal-product .product-actions{margin-top:18px}
.image-lightbox[hidden]{display:none}
.image-lightbox{position:fixed;inset:0;z-index:220;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr) auto;align-items:center;justify-items:center;gap:16px;padding:24px;background:rgba(14,16,22,.94);backdrop-filter:blur(12px)}
.lightbox-close{grid-column:3;grid-row:1;width:44px;height:44px;border:1px solid rgba(255,255,255,.25);border-radius:14px;background:rgba(255,255,255,.1);color:#fff;font-size:27px;cursor:pointer}
.lightbox-image{grid-column:2;grid-row:2;width:100%;height:100%;max-width:1200px;max-height:78vh;object-fit:contain}
.lightbox-step{grid-row:2;width:48px;height:48px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.lightbox-step:hover,.lightbox-close:hover{background:rgba(255,255,255,.2)}
.lightbox-previous{grid-column:1}
.lightbox-next{grid-column:3}
.lightbox-counter{grid-column:2;grid-row:3;color:#fff;font-size:14px;font-weight:800}

@media(max-width:800px){
  .navbar{padding:12px 14px}
  .nav-inner{flex-wrap:wrap;gap:12px}
  .logo{order:1}
  .nav-actions{order:2;margin-inline-start:auto}
  .search-box{order:3;flex:1 0 100%;width:100%}
  .logo{font-size:19px}
  .catalog-nav{order:4;width:100%}
  .nav-links{width:100%;gap:18px;padding:4px 0}
  .nav-links a{white-space:nowrap}
  .admin-link{display:none}
  .hero{padding:38px 16px 22px}
  .hero h1{font-size:29px}
  .container{padding:10px 16px 42px}
  .products-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
}
@media(max-width:520px){
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-card{padding:10px;border-radius:17px}
  .card-img-wrap{height:165px}
  .card-info{padding:11px 3px 1px}
  .card-info h3{font-size:14px}
  .price{font-size:16px}
  .old-price{font-size:11px}
  .product-actions{gap:6px}
  .btn-buy,.btn-whatsapp{padding:9px 4px;font-size:11px;min-height:42px}
  .modal{padding:12px}
  .modal-content{max-height:94vh;padding:18px}
  .modal-product{grid-template-columns:1fr;gap:18px;padding-top:8px}
  .modal-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .modal-photo-tile{height:clamp(88px,28vw,112px);padding:4px;border-radius:12px}
  .modal-product-info{padding:0 2px 8px}
  .modal-product-info h2{font-size:21px;padding-inline-end:30px}
  .image-lightbox{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;padding:14px}
  .lightbox-step{width:40px;height:40px;font-size:25px}
  .lightbox-image{grid-column:1/4;grid-row:2;max-height:75vh}
  .lightbox-previous{grid-column:1;grid-row:3}
  .lightbox-next{grid-column:3;grid-row:3}
  .lightbox-counter{grid-column:2;grid-row:3}
  .lightbox-close{grid-column:3;grid-row:1}
  .contact-footer-inner{align-items:flex-start;flex-direction:column;padding:24px 16px}
  .location-section{padding:0 16px 20px}
  .location-heading{align-items:flex-start;flex-direction:column}
  .location-map{height:280px}
  .hero-location-link{margin-top:20px}
  .social-links{width:100%;justify-content:stretch}
  .social-link{flex:1;min-width:calc(50% - 8px);justify-content:center;padding:10px}
}