/* =========================================================
   تحديثات هويّة وتنسيقات تيكي بوم (TikiBoom) - الموبايل والهيدر
   ========================================================= */

:root {
  --tb-pink: #ef5da8;
  --tb-blue: #65c9dc;
  --tb-yellow: #ffd94a;
  --tb-purple: #5d3aa8;
  --tb-ink: #211735;
  --accent: #ff6b6b;
  --accent2: #7b61ff;
  --ink: #211c35;
  --soft: #fff6ef;
}

/* --- الهيدر والتصميم العام --- */
.site-header {
  height: 74px !important;
  padding: 0 4% !important;
  background: #fffdf8 !important;
  border-bottom: 1px solid #eee6df !important;
  box-shadow: 0 3px 14px rgba(40,25,15,.06) !important;
  position: sticky !important;
  top: 0 !important;
}

.tb-brand-text {
  font-weight: 1000 !important;
  letter-spacing: -1.2px !important;
  background: linear-gradient(90deg, var(--tb-pink) 0%, #ef5da8 34%, var(--tb-blue) 66%, var(--tb-yellow) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 2px 8px rgba(80,45,100,.08);
}

.tb-brand-mark {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #ff6baa, #65c9dc 58%, #ffd94a) !important;
  color: #fff !important;
  border: 3px solid #fff !important;
  box-shadow: 0 8px 20px rgba(93,58,168,.18) !important;
  transform: rotate(-4deg);
  position: relative;
}

.tb-brand-mark:after {
  content: "✦";
  position: absolute;
  top: -9px;
  left: -7px;
  font-size: 15px;
  color: #ffd94a;
  text-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.tb-nav-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
}

.tb-nav-icon svg { width: 22px; height: 22px; display: block; }
.tb-admin-icon svg { filter: drop-shadow(0 2px 2px rgba(255,190,0,.2)); }
.tb-whatsapp svg { width: 24px; height: 24px; }
.tb-cart svg { width: 26px; height: 26px; }

.icon-btn.tb-cart {
  background: linear-gradient(145deg, #fff5bf, #fff0d7) !important;
  color: #6f4c00 !important;
  border-color: #ffe19a !important;
}

.icon-btn.tb-whatsapp {
  background: linear-gradient(145deg, #eafff1, #d8f9e6) !important;
  color: #16a45a !important;
  border-color: #b9edcf !important;
}

.nav-pill.tb-admin {
  background: linear-gradient(145deg, #fff9cf, #fff1a6) !important;
  border-color: #ffe071 !important;
  color: #4e3b00 !important;
}

.nav-pill.tb-admin .nav-icon { color: #e2a900; }

.nav-pill.tb-track {
  background: linear-gradient(145deg, #eefbff, #e5f7ff) !important;
  border-color: #c9edf6 !important;
}

.tb-icon-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  width: 21px !important;
  height: 21px !important;
  display: grid !important;
  place-items: center !important;
  background: #ff5d96 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  box-shadow: 0 3px 9px rgba(255,93,150,.3);
}

.hero h1.tb-hero-brand {
  background: linear-gradient(90deg, #e94f9c, #61c9dc 55%, #ffd74a) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 4px 16px rgba(93,58,168,.12);
  box-shadow: none !important;
  padding: 0 !important;
}

.add-cart {
  background: linear-gradient(135deg, #ff6b25, #ef5da8) !important;
  box-shadow: 0 8px 18px rgba(239,93,168,.2);
}

.add-cart:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.hero-logo-image {
  display: block;
  width: min(72vw, 520px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* --- تعديلات الشاشات المتوسطة والموبايل --- */
@media (max-width: 700px) {
  .site-header {
    height: 68px !important;
    padding: 0 9px !important;
  }
  .hero {
    min-height: 0 !important;
    padding: 42px 14px 34px !important;
  }
  .season {
    margin-bottom: 18px !important;
  }
  .hero h1 {
    margin: 0 0 10px !important;
    line-height: 1 !important;
  }
  .hero-logo-image {
    width: min(78vw, 390px) !important;
  }
  .hero h1 {
    margin-bottom: 9px !important;
    font-size: 31px !important;
  }
  .hero p {
    margin-bottom: 8px !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }
  .features {
    margin-top: 12px !important;
    gap: 4px 10px !important;
    font-size: 13px !important;
  }
  .features span {
    padding: 4px !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .categories {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    padding: 15px 12px !important;
  }
  .category {
    font-size: 14px !important;
    padding: 10px 17px !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 600px) {
  .tb-brand-mark {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
  }
  .brand-copy strong {
    font-size: 22px !important;
  }
  .tb-nav-icon {
    width: 20px;
    height: 20px;
  }
  .tb-nav-icon svg {
    width: 20px;
    height: 20px;
  }
  .nav-pill.tb-admin,
  .nav-pill.tb-track {
    padding: 0 9px !important;
  }
}

/* --- حساب العميل في الهيدر: بديل الشعار العلوي --- */
.account-btn {
  min-width: 92px;
  height: 44px;
  padding: 0 13px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 23px;
  border: 2px solid transparent;
  background:
    linear-gradient(#fffdf8, #fffdf8) padding-box,
    linear-gradient(135deg, var(--tb-pink), var(--tb-blue)) border-box;
  color: var(--tb-purple);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(93,58,168,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.account-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(93,58,168,.16);
}

.account-icon {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe5f2, #e4f8ff);
  color: var(--tb-purple);
  flex: 0 0 29px;
}

.account-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-label {
  line-height: 1;
}

@media (max-width: 600px) {
  .account-btn {
    min-width: 76px;
    height: 40px;
    padding: 0 10px 0 8px;
    font-size: 13px;
    gap: 6px;
  }
  .account-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }
  .account-icon svg {
    width: 17px;
    height: 17px;
  }
}


/* =========================================================
   TikiBoom Premium storefront refresh — VISUAL ONLY
   يحافظ على الـ routes والـ forms والـ data كما هي.
   ========================================================= */
:root{
  --tb-ink:#17213f;
  --tb-muted:#68718a;
  --tb-pink2:#f74d86;
  --tb-pink-soft:#fff0f6;
  --tb-blue-soft:#eef8ff;
  --tb-card:#ffffff;
  --tb-bg:#f8f9fd;
  --tb-line:#edf0f5;
  --tb-shadow:0 14px 40px rgba(28,38,73,.09);
}

body{
  background:var(--tb-bg) !important;
  color:var(--tb-ink) !important;
  font-family:Tahoma,Arial,sans-serif !important;
}

/* Header */
.tb-main-header{
  height:78px !important;
  padding:0 max(18px,4vw) !important;
  background:rgba(255,255,255,.96) !important;
  border-bottom:1px solid var(--tb-line) !important;
  box-shadow:0 6px 24px rgba(24,34,66,.06) !important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  position:sticky !important;
  z-index:1000 !important;
}
.tb-header-brand{display:flex;align-items:center;justify-content:center;flex:1;max-width:210px;order:2;}
.tb-header-brand img{width:145px;height:auto;display:block;object-fit:contain;}
.tb-menu-btn{order:1;width:44px;height:44px;border:1px solid #edf0f5;background:#fff;border-radius:14px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;cursor:pointer;box-shadow:0 5px 15px rgba(20,30,60,.06);}
.tb-menu-btn span{width:19px;height:2px;background:#17213f;border-radius:5px;display:block;transition:.2s;}
.tb-main-header .header-buttons{order:3;gap:8px;flex:1;justify-content:flex-start;}
.tb-main-header .circle-btn,.tb-main-header .track-btn,.tb-main-header .account-btn{box-shadow:0 5px 16px rgba(20,30,60,.07) !important;}
.tb-main-header .circle-btn{width:43px;height:43px;}
.tb-main-header .track-btn{height:43px;border:1px solid #d9edf8;padding:0 14px;}
.tb-main-header .account-btn{height:43px;min-width:43px;padding:0 11px;border-color:#e9edf4;}
.tb-main-header .account-label{display:none;}

/* Side menu */
.tb-side-overlay{position:fixed;inset:0;background:rgba(15,22,42,.35);opacity:0;visibility:hidden;transition:.25s;z-index:1100;backdrop-filter:blur(3px);}
.tb-side-overlay.show{opacity:1;visibility:visible;}
.tb-side-menu{position:fixed;top:0;right:0;width:min(370px,88vw);height:100dvh;background:#fff;z-index:1110;transform:translateX(105%);transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:-18px 0 50px rgba(15,25,55,.15);padding:26px 20px;overflow:auto;}
.tb-side-menu.show{transform:translateX(0);}
.tb-side-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 4px 22px;border-bottom:1px solid #f0f1f5;}
.tb-side-head strong{display:block;font-size:18px;margin-top:4px;color:#17213f;}
.tb-side-kicker{font-size:12px;font-weight:900;color:var(--tb-pink2);}
.tb-side-head button{border:0;background:#f6f7fa;width:38px;height:38px;border-radius:12px;font-size:25px;cursor:pointer;color:#5b647b;}
.tb-side-links{display:grid;gap:8px;padding-top:18px;}
.tb-side-links a{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:16px;font-size:15px;font-weight:800;color:#29324d;transition:.2s;}
.tb-side-links a:hover{background:#fff0f6;color:#e83e79;transform:translateX(-2px);}
.tb-theme-menu-btn{width:100%;border:0;background:#f6f7fa;color:#29324d;display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:16px;font-size:15px;font-weight:800;font-family:inherit;cursor:pointer;text-align:right;transition:.2s;}
.tb-theme-menu-btn:hover{background:#fff0f6;color:#e83e79;transform:translateX(-2px);}
body.dark-mode .tb-side-menu{background:#1e1e1e;color:#eee;box-shadow:-18px 0 50px rgba(0,0,0,.35);}
body.dark-mode .tb-side-head{border-bottom-color:#333;}
body.dark-mode .tb-side-head strong{color:#fff;}
body.dark-mode .tb-side-head button{background:#2a2a2a;color:#ddd;}
body.dark-mode .tb-side-links a,body.dark-mode .tb-theme-menu-btn{color:#eee;background:#252525;}
body.dark-mode .tb-side-links a:hover,body.dark-mode .tb-theme-menu-btn:hover{background:#333;color:#ff80b5;}
.tb-menu-open{overflow:hidden;}

/* Hero */
.hero{padding:24px 4% 0 !important;background:linear-gradient(135deg,#ffe2b7 0%,#ffc8dc 34%,#d5ccff 68%,#a8eaf0 100%) !important;position:relative;overflow:hidden;border-bottom-left-radius:32px;border-bottom-right-radius:32px;}
.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;pointer-events:none;filter:blur(2px);opacity:.65;}
.hero:before{width:230px;height:230px;background:rgba(255,255,255,.24);right:-70px;top:-75px;}
.hero:after{width:180px;height:180px;background:rgba(255,255,255,.2);left:-60px;bottom:100px;}
.hero-inner{max-width:1180px;margin:auto;min-height:355px;display:flex;align-items:center;justify-content:center;gap:25px;position:relative;z-index:1;}
.hero-copy{width:min(650px,100%);text-align:center;}
.hero .season{background:rgba(255,255,255,.88) !important;border:1px solid rgba(255,255,255,.8);padding:9px 20px !important;border-radius:999px !important;font-size:15px !important;box-shadow:0 8px 20px rgba(40,30,70,.07);}
.hero-logo-image{width:min(390px,78vw) !important;margin:8px auto 5px !important;filter:drop-shadow(0 7px 10px rgba(65,45,90,.12));}
.hero h1{font-size:clamp(28px,4vw,46px) !important;line-height:1.2 !important;font-weight:1000 !important;margin:4px 0 8px !important;color:#17213f !important;}
.hero p{font-size:17px !important;color:#35405d !important;margin:0 auto 17px !important;line-height:1.8 !important;max-width:580px;}
.hero-cta{display:inline-flex;align-items:center;justify-content:center;min-width:170px;padding:13px 25px;border-radius:999px;background:linear-gradient(135deg,#ff4e86,#f34e9d);color:#fff;font-weight:900;font-size:16px;box-shadow:0 12px 24px rgba(243,78,157,.25);transition:.2s;}
.hero-cta:hover{transform:translateY(-2px);box-shadow:0 15px 28px rgba(243,78,157,.32);}
.hero-showcase{width:280px;height:290px;position:relative;display:block;}
.hero-product-float{position:absolute;width:180px;background:#fff;border:7px solid #fff;border-radius:28px;overflow:hidden;box-shadow:var(--tb-shadow);transform:rotate(-6deg);}
.hero-product-float img{width:100%;height:190px;object-fit:cover;display:block;}
.hero-product-float div{padding:9px 8px;text-align:center;font-size:12px;font-weight:900;color:#27304a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hero-product-1{right:72px;top:10px;z-index:2;}
.hero-product-2{right:0;bottom:8px;transform:rotate(7deg);z-index:1;}
.features{max-width:1180px;margin:0 auto !important;padding:16px 0 22px !important;display:grid !important;grid-template-columns:repeat(3,1fr);gap:12px !important;position:relative;z-index:2;}
.features span{background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.9);border-radius:22px;padding:13px 14px !important;display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;align-items:center;text-align:right;box-shadow:0 8px 22px rgba(38,35,70,.07) !important;}
.features b{grid-row:1/3;font-size:25px;text-align:center;}
.features strong{font-size:15px;color:#202a45;}
.features small{font-size:11px;color:#7a8297;margin-top:2px;}

/* Categories */
.categories{max-width:1180px;margin:22px auto 0 !important;padding:0 4% 5px !important;gap:10px !important;scrollbar-width:none;}
.categories::-webkit-scrollbar{display:none;}
.category{background:#fff !important;border:1px solid #e8ebf1 !important;color:#27304a !important;border-radius:999px !important;padding:11px 18px !important;box-shadow:0 6px 16px rgba(30,40,70,.05);font-size:14px !important;transition:.2s;}
.category:hover{transform:translateY(-1px);border-color:#f6b7ce !important;}
.category.active{background:linear-gradient(135deg,#ff4e86,#f35a9d) !important;border-color:transparent !important;color:#fff !important;box-shadow:0 9px 20px rgba(243,78,157,.2);}

/* Product section + cards */
.section{max-width:1180px;margin:0 auto;padding:32px 4% 105px !important;}
.section-title{margin-bottom:17px !important;}
.section-title h2{font-size:clamp(23px,3vw,31px) !important;color:#17213f;}
.section-title h2:before{content:"🔥 ";}
.products-count{font-size:14px !important;color:#68718a !important;background:#fff;border:1px solid #eceef3;padding:7px 12px;border-radius:999px;}
.products-grid{gap:16px !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
.product-card{border:1px solid #edf0f4 !important;border-radius:24px !important;background:#fff !important;box-shadow:0 9px 28px rgba(28,38,73,.07) !important;transition:transform .22s,box-shadow .22s;}
.product-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(28,38,73,.12) !important;}
.product-image{background:#f8f9fc !important;}
.product-image img{transition:transform .35s;}
.product-card:hover .product-image img{transform:scale(1.025);}
.badge,.category-badge,.offer-badge,.sold-out-badge{border-radius:999px !important;padding:5px 9px !important;font-size:10px !important;box-shadow:0 4px 10px rgba(30,30,50,.08);}
.category-badge{background:#fff !important;color:#26304b !important;border:1px solid #edf0f4;}
.offer-badge{background:#f64f88 !important;}
.product-info{padding:13px 13px 14px !important;}
.product-name{font-size:16px !important;color:#202943;}
.rating{font-size:13px !important;color:#ffb000 !important;}
.rating span{font-size:11px !important;color:#596174 !important;}
.price{color:#ef4d82 !important;font-size:15px !important;}
.old-price{color:#626b7d !important;}
.size-select,.qty-input{border:1px solid #e5e8ee !important;background:#fafbfc !important;border-radius:12px !important;min-height:40px;}
.quantity-control{margin:2px 0 10px !important;}
.qty-btn{width:31px !important;height:31px !important;border:1px solid #e4e7ed !important;background:#fff !important;color:#26304b !important;}
.add-cart{padding:11px 8px !important;border-radius:14px !important;background:linear-gradient(135deg,#ff4f87,#f04e9a) !important;box-shadow:0 8px 16px rgba(240,78,154,.18) !important;font-size:13px !important;}
.variant-thumb{width:42px !important;height:42px !important;min-width:42px !important;border-radius:11px !important;}

/* Mobile bottom nav */
.tb-bottom-nav{display:none;}

@media (min-width:768px){
  .products-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media (min-width:1050px){
  .products-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}
@media (max-width:760px){
  .tb-main-header{height:66px !important;padding:0 10px !important;}
  .tb-header-brand{max-width:none;}
  .tb-header-brand img{width:120px;}
  .tb-menu-btn{width:40px;height:40px;border-radius:12px;}
  .tb-main-header .header-buttons{gap:5px;}
  .tb-main-header .track-btn{font-size:0;width:40px;height:40px;padding:0;border-radius:50%;justify-content:center;}
  .tb-main-header .track-btn:first-letter{font-size:16px;}
  .tb-main-header .account-btn{width:40px;height:40px;padding:0;justify-content:center;}
  .tb-main-header .circle-btn{width:40px;height:40px;}
  .tb-main-header .header-buttons .circle-btn:last-child{display:none;}
  .hero{padding:18px 12px 0 !important;border-radius:0 0 26px 26px;}
  .hero-inner{min-height:0;display:block;}
  .hero-showcase{display:none;}
  .hero .season{font-size:12px !important;padding:8px 15px !important;margin-bottom:7px !important;}
  .hero-logo-image{width:min(330px,78vw) !important;}
  .hero h1{font-size:29px !important;}
  .hero p{font-size:14px !important;margin-bottom:13px !important;}
  .hero-cta{min-width:155px;padding:11px 22px;font-size:14px;}
  .features{grid-template-columns:repeat(3,1fr);gap:6px !important;padding:14px 0 17px !important;}
  .features span{display:block;text-align:center;padding:10px 5px !important;border-radius:17px;}
  .features b{display:block;font-size:20px;margin-bottom:3px;}
  .features strong{display:block;font-size:11px;}
  .features small{display:block;font-size:9px;}
  .categories{margin-top:15px !important;padding:0 12px 3px !important;}
  .category{font-size:12px !important;padding:9px 14px !important;}
  .section{padding:25px 12px 92px !important;}
  .section-title{margin-bottom:13px !important;}
  .section-title h2{font-size:23px !important;}
  .products-count{font-size:12px !important;padding:6px 10px;}
  .products-grid{gap:10px !important;}
  .product-card{border-radius:18px !important;}
  .product-info{padding:10px 9px 11px !important;}
  .product-name{font-size:13px !important;}
  .price{font-size:12px !important;}
  .price div[style]{font-size:11px !important;}
  .size-select{min-height:36px;font-size:11px !important;}
  .qty-btn{width:28px !important;height:28px !important;}
  .qty-input{width:34px !important;height:28px !important;}
  .add-cart{font-size:11px !important;padding:9px 5px !important;}
  .variant-thumb{width:37px !important;height:37px !important;min-width:37px !important;}
  .tb-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:10px;right:10px;bottom:10px;height:66px;background:rgba(255,255,255,.96);border:1px solid #e9ecf2;border-radius:22px;box-shadow:0 12px 35px rgba(20,30,60,.16);z-index:1050;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:6px;}
  .tb-bottom-nav a,.tb-bottom-nav button{border:0;background:transparent;color:#667087;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:inherit;cursor:pointer;border-radius:16px;min-width:0;}
  .tb-bottom-nav span{font-size:21px;line-height:1;position:relative;}
  .tb-bottom-nav small{font-size:9px;font-weight:800;}
  .tb-bottom-nav .active{color:#f24f88;background:#fff0f6;}
  .tb-bottom-nav .tb-gift-nav{background:linear-gradient(135deg,#ff4f87,#f6b44f);color:#fff;border-radius:50%;width:52px;height:52px;align-self:center;justify-self:center;box-shadow:0 7px 16px rgba(245,79,136,.25);transform:translateY(-12px);}
  .tb-bottom-nav .tb-gift-nav small{font-size:8px;}
  .tb-bottom-cart b{position:absolute;top:-7px;right:-9px;background:#ff3d63;color:#fff;border:2px solid #fff;border-radius:99px;font-size:9px;min-width:18px;height:18px;display:grid;place-items:center;}
  footer{padding-bottom:95px !important;}
}

@media (max-width:390px){
  .tb-main-header .whatsapp{display:none;}
  .tb-header-brand img{width:108px;}
  .features strong{font-size:10px;}
  .features small{font-size:8px;}
  .products-grid{gap:8px !important;}
}

/* ===== Final polish: header / pricing / tracking ===== */
.pricing-mode-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:0 12px;
  border:1px solid #eee7f3;
  border-radius:999px;
  background:linear-gradient(135deg,#fff7fb,#f4fbff);
  color:#28314c;
  box-shadow:0 5px 16px rgba(20,30,60,.06);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.pricing-mode-badge span:first-child{color:#7655b7;}
.pricing-mode-badge span:last-child{color:#e84682;}
.pricing-mode-badge i{width:1px;height:18px;background:#ddd8e5;display:block;}
.tb-main-header .track-btn{
  position:relative;
  overflow:visible;
  animation:tbTrackPulse 2.8s ease-in-out infinite;
  box-shadow:0 7px 18px rgba(243,78,157,.12) !important;
}
.tb-main-header .track-btn::after{
  content:'✨';
  position:absolute;
  top:-9px;
  left:-5px;
  font-size:12px;
  animation:tbTrackSpark 1.7s ease-in-out infinite;
}
@keyframes tbTrackPulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes tbTrackSpark{0%,100%{opacity:.35;transform:scale(.8) rotate(-8deg)}50%{opacity:1;transform:scale(1.15) rotate(8deg)}}
.tb-side-links a[href*="api.whatsapp.com"]{
  color:#159b58;
  background:#f1fff7;
}
.tb-side-links a[href*="api.whatsapp.com"]:hover{
  background:#e4fff0;
  color:#0b8549;
}

@media (max-width:760px){
  .tb-main-header .header-buttons{flex:0 0 auto;justify-content:flex-end;min-width:0;}
  .pricing-mode-badge{height:40px;min-height:40px;padding:0 7px;gap:5px;font-size:8px;}
  .pricing-mode-badge i{height:15px;}
  .tb-main-header .track-btn{width:44px !important;height:40px !important;font-size:0 !important;border-radius:999px !important;padding:0 11px !important;}
  .tb-main-header .track-btn::first-letter{font-size:17px;}
  .tb-main-header .account-btn{width:40px !important;height:40px !important;}
  .tb-header-brand img{width:112px !important;}
}
@media (max-width:420px){
  .pricing-mode-badge{font-size:0;width:40px;padding:0;gap:0;}
  .pricing-mode-badge span{font-size:0;}
  .pricing-mode-badge span:first-child::before{content:'📦';font-size:16px;}
  .pricing-mode-badge span:last-child::before{content:'🛍️';font-size:16px;}
  .pricing-mode-badge i{display:none;}
  .tb-header-brand img{width:104px !important;}
}


/* =========================================================
   TikiBoom cross-device repair — visual/layout only
   Android + iPhone + Desktop
   ========================================================= */
*{box-sizing:border-box;}
html,body{width:100%;max-width:100%;overflow-x:hidden !important;}

/* Header: stable 3-column layout so Android/desktop never crushes controls */
.tb-main-header{
  width:100% !important;
  min-height:78px !important;
  height:78px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items:center !important;
  gap:14px !important;
  padding:0 clamp(14px,4vw,54px) !important;
  direction:ltr !important;
  overflow:visible !important;
}
.tb-menu-btn{grid-column:1 !important;justify-self:start !important;}
.tb-header-brand{grid-column:2 !important;justify-self:center !important;order:initial !important;flex:none !important;width:auto !important;max-width:none !important;}
.tb-header-brand img{width:150px !important;max-width:18vw !important;height:auto !important;}
.tb-main-header .header-buttons{
  grid-column:3 !important;
  justify-self:end !important;
  direction:rtl !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  min-width:0 !important;
  flex:none !important;
}
.tb-main-header .header-buttons > *{flex:0 0 auto !important;}
.tb-main-header .account-btn{width:44px !important;min-width:44px !important;padding:0 !important;height:44px !important;}
.tb-main-header .track-btn{min-width:108px !important;height:44px !important;padding:0 13px !important;font-size:12px !important;white-space:nowrap !important;}
.pricing-mode-badge{min-width:155px !important;height:44px !important;min-height:44px !important;font-size:11px !important;padding:0 12px !important;}
.tb-main-header .circle-btn{width:44px !important;height:44px !important;flex:0 0 44px !important;}

/* Keep the hero elegant on large screens: no floating product cards that can collide */
.hero-showcase{display:none !important;}
.hero-inner{max-width:1120px !important;min-height:360px !important;display:flex !important;align-items:center !important;justify-content:center !important;}
.hero-copy{width:min(760px,100%) !important;margin:0 auto !important;}
.hero-logo-image{width:min(430px,72vw) !important;}
.features{max-width:1120px !important;}

/* Product grid: consistent card widths at every desktop/tablet size */
.section{width:100% !important;max-width:1240px !important;margin:0 auto !important;}
.products-grid{width:100% !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;align-items:stretch !important;}
.product-card{min-width:0 !important;width:100% !important;}
.product-image{width:100% !important;aspect-ratio:1 / 1.03 !important;}
.product-image img{width:100% !important;height:100% !important;object-fit:cover !important;}
.product-info{min-width:0 !important;}
.product-name{white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}
.variant-select-wrap{display:flex !important;align-items:center !important;gap:7px !important;min-width:0 !important;}
.variant-select-wrap .variant-select{flex:1 1 auto !important;min-width:0 !important;}
.variant-thumb{flex:0 0 42px !important;overflow:hidden !important;}
.variant-thumb img{width:100%;height:100%;object-fit:cover;display:block;}

/* Bottom nav is mobile/tablet navigation only */
@media (min-width:761px){
  .tb-bottom-nav{display:none !important;}
}

/* Tablet / Android phones */
@media (max-width:760px){
  .tb-main-header{
    min-height:68px !important;height:68px !important;
    grid-template-columns:42px minmax(90px,1fr) auto !important;
    gap:7px !important;padding:0 10px !important;
  }
  .tb-menu-btn{width:40px !important;height:40px !important;}
  .tb-header-brand{width:auto !important;min-width:0 !important;}
  .tb-header-brand img{width:116px !important;max-width:31vw !important;}
  .tb-main-header .header-buttons{gap:5px !important;max-width:none !important;}
  .tb-main-header .track-btn{width:40px !important;min-width:40px !important;height:40px !important;padding:0 !important;border-radius:50% !important;font-size:0 !important;}
  .tb-main-header .track-btn::before{content:'🚚';font-size:16px;}
  .tb-main-header .track-btn::after{content:'✨';top:-7px;left:-4px;font-size:10px;}
  .tb-main-header .account-btn{width:40px !important;min-width:40px !important;height:40px !important;}
  .tb-main-header .circle-btn{display:none !important;}
  .pricing-mode-badge{width:40px !important;min-width:40px !important;height:40px !important;min-height:40px !important;padding:0 !important;gap:0 !important;}
  .pricing-mode-badge span{font-size:0 !important;}
  .pricing-mode-badge span:first-child::before{content:'📦';font-size:16px;}
  .pricing-mode-badge span:last-child::before{content:'🛍️';font-size:16px;}
  .pricing-mode-badge i{display:none !important;}

  .hero{padding:20px 12px 0 !important;}
  .hero-inner{display:block !important;min-height:0 !important;}
  .hero-copy{width:100% !important;}
  .hero-logo-image{width:min(335px,80vw) !important;}
  .hero h1{font-size:clamp(26px,7.2vw,32px) !important;}
  .hero p{font-size:14px !important;line-height:1.65 !important;}
  .features{width:100% !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:7px !important;}
  .features span{min-width:0 !important;}
  .categories{width:100% !important;max-width:none !important;overflow-x:auto !important;}
  .section{padding-left:12px !important;padding-right:12px !important;padding-bottom:100px !important;}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}
  .product-image{aspect-ratio:1 / 1.02 !important;}
  .product-info{padding:10px 8px 11px !important;}
  .product-name{font-size:13px !important;}
  .price{font-size:11px !important;line-height:1.55 !important;}
  .price div[style]{font-size:10px !important;}
  .variant-thumb{width:34px !important;height:34px !important;min-width:34px !important;flex-basis:34px !important;}
  .size-select{min-width:0 !important;font-size:10px !important;}
  .quantity-control{justify-content:center !important;}
  .add-cart{width:100% !important;}
}

/* Very small phones: never allow header overflow */
@media (max-width:380px){
  .tb-main-header{grid-template-columns:38px minmax(70px,1fr) auto !important;padding:0 7px !important;gap:4px !important;}
  .tb-menu-btn{width:37px !important;height:37px !important;}
  .tb-header-brand img{width:100px !important;max-width:29vw !important;}
  .tb-main-header .header-buttons{gap:3px !important;}
  .tb-main-header .track-btn,.tb-main-header .account-btn,.pricing-mode-badge{width:36px !important;min-width:36px !important;height:36px !important;}
  .tb-main-header .account-icon{width:25px !important;height:25px !important;}
  .tb-bottom-nav{left:7px !important;right:7px !important;bottom:7px !important;}
  .tb-bottom-nav .tb-gift-nav{width:50px !important;height:50px !important;}
}

/* Desktop: more breathing room and a stable 4-column catalog */
@media (min-width:761px){
  .hero{padding-left:5% !important;padding-right:5% !important;}
  .categories{padding-left:4% !important;padding-right:4% !important;}
  .section{padding-left:4% !important;padding-right:4% !important;}
}
@media (min-width:1050px){
  .products-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:18px !important;}
}
@media (min-width:761px) and (max-width:1049px){
  .tb-main-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;}
  .tb-header-brand img{width:135px !important;max-width:25vw !important;}
  .pricing-mode-badge{min-width:135px !important;font-size:10px !important;}
  .tb-main-header .track-btn{min-width:96px !important;}
  .products-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important;}
}


/* =========================================================
   TikiBoom final requested polish — visual/UI only
   1) Remove wholesale/retail badge from header
   2) Keep account button only in that slot
   3) Center header logo on every viewport
   4) Preserve each product image's natural aspect ratio
   5) Remove quick-add controls from home cards; details page handles ordering
   ========================================================= */
.tb-main-header{
  position:sticky !important;
  top:0 !important;
  min-height:82px !important;
  height:82px !important;
  display:grid !important;
  grid-template-columns:1fr auto 1fr !important;
  align-items:center !important;
  padding:0 clamp(16px,4vw,54px) !important;
  gap:12px !important;
}
.tb-menu-btn{grid-column:1 !important;justify-self:start !important;}
.tb-header-brand{
  grid-column:2 !important;
  grid-row:1 !important;
  justify-self:center !important;
  align-self:center !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  max-width:none !important;
  margin:0 !important;
  position:static !important;
}
.tb-header-brand img{
  display:block !important;
  width:clamp(118px,11vw,170px) !important;
  max-width:100% !important;
  height:auto !important;
  margin:0 !important;
}
.tb-main-header .header-buttons{
  grid-column:3 !important;
  grid-row:1 !important;
  justify-self:end !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  direction:rtl !important;
  gap:8px !important;
}
/* The pricing badge is intentionally gone; account stays as the account control. */
.pricing-mode-badge{display:none !important;}

/* Product cards: two-up catalog stays, but images are never cropped/zoomed. */
.products-grid{align-items:start !important;}
.product-card{height:auto !important;align-self:start !important;overflow:hidden !important;}
.product-card > a:first-child{display:block !important;width:100% !important;}
.product-image{
  width:100% !important;
  height:auto !important;
  aspect-ratio:auto !important;
  min-height:0 !important;
  overflow:hidden !important;
  display:block !important;
  background:#fff !important;
}
.product-image img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center !important;
  display:block !important;
  transform:none !important;
}
.product-image:hover img{transform:none !important;}
.product-info{padding-bottom:14px !important;}
.product-details-link{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:10px 10px 0 !important;
  padding:10px 8px !important;
  border-radius:13px !important;
  background:linear-gradient(135deg,#fff0f6,#eef8ff) !important;
  border:1px solid #f0dbe7 !important;
  color:#ec4f8b !important;
  text-decoration:none !important;
  font-size:11px !important;
  font-weight:900 !important;
  text-align:center !important;
}
.product-details-link:hover{transform:translateY(-1px);}

@media (max-width:760px){
  .tb-main-header{
    min-height:68px !important;height:68px !important;
    grid-template-columns:1fr auto 1fr !important;
    padding:0 9px !important;gap:4px !important;
  }
  .tb-menu-btn{width:40px !important;height:40px !important;}
  .tb-header-brand{justify-self:center !important;}
  .tb-header-brand img{width:clamp(104px,28vw,126px) !important;}
  .tb-main-header .header-buttons{gap:5px !important;justify-self:end !important;}
  .tb-main-header .track-btn{width:40px !important;min-width:40px !important;height:40px !important;}
  .tb-main-header .account-btn{width:40px !important;min-width:40px !important;height:40px !important;}
  .tb-main-header .circle-btn{display:none !important;}
  .product-image{height:auto !important;aspect-ratio:auto !important;}
  .product-image img{height:auto !important;object-fit:contain !important;}
  .product-details-link{font-size:10px !important;padding:9px 5px !important;margin:9px 7px 0 !important;}
}

@media (min-width:761px){
  .tb-header-brand img{width:clamp(135px,10vw,170px) !important;}
}

@media (max-width:380px){
  .tb-main-header{grid-template-columns:40px minmax(0,1fr) auto !important;}
  .tb-header-brand{position:absolute !important;left:50% !important;transform:translateX(-50%) !important;}
  .tb-header-brand img{width:103px !important;}
}

/* Final storefront polish: compact card metadata + clearer product CTA. */
.product-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 10px;color:#777;font-size:11px;font-weight:800;}
.product-card-meta span{background:#faf7f2;border:1px solid #eee7df;border-radius:999px;padding:5px 8px;white-space:nowrap;}
.product-details-link{display:flex !important;align-items:center;justify-content:center;gap:6px;width:100%;min-height:42px;padding:10px 12px !important;border-radius:13px !important;background:linear-gradient(135deg,#ff6b25,#ef5da8) !important;color:#fff !important;font-weight:900 !important;text-decoration:none !important;box-shadow:0 7px 16px rgba(239,93,168,.16);transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;}
.product-details-link:hover{transform:translateY(-1px);filter:saturate(1.06);box-shadow:0 9px 20px rgba(239,93,168,.2);}
.product-details-link span{font-size:15px;}
@media(max-width:700px){.product-card-meta{font-size:10px;gap:5px}.product-card-meta span{padding:4px 6px}.product-details-link{min-height:40px;font-size:12px !important;padding:9px 7px !important;}}

/* Requested fix: keep the storefront logo mathematically centered on phones. */
@media (max-width:760px){
  .tb-main-header{position:sticky !important;}
  .tb-header-brand{
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    justify-self:auto !important;
    z-index:2 !important;
    margin:0 !important;
  }
  .tb-header-brand img{display:block !important;}
  /* Use the inline SVG truck only; suppress emoji pseudo-icons that render as broken glyphs. */
  .tb-main-header .track-btn::before,
  .tb-main-header .track-btn::after{content:none !important;display:none !important;}
  .tb-main-header .track-btn{gap:0 !important;}
  .tb-main-header .track-btn .tb-ui-icon{width:21px !important;height:21px !important;flex:0 0 21px !important;}
  .tb-main-header .track-btn span{display:none !important;}
}


/* TikiBoom mobile header + image stability adjustments */
@media (max-width: 600px){
  .tb-main-header{grid-template-columns:44px minmax(0,1fr) auto !important;gap:8px !important;padding-inline:12px !important;}
  .tb-menu-btn{grid-column:1 !important;}
  .tb-header-brand{grid-column:2 !important;justify-self:center !important;min-width:0 !important;}
  .tb-header-brand img{width:clamp(104px,27vw,128px) !important;max-width:100% !important;}
  .tb-main-header .header-buttons{grid-column:3 !important;gap:5px !important;}
}
.hero-showcase img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;}
.hero-logo-image{display:block;width:min(100%,634px);height:auto;aspect-ratio:634/121;object-fit:contain;}


/* ===== [v4] كروت المنتجات: عمودين متراصين بدون فراغ أبيض بين الكروت =====
   كل كارت بارتفاعه الطبيعي، والكارت الذي بعده ينزل تحته مباشرة في نفس العمود (Masonry). */
.products-grid{display:block !important;column-count:2;column-gap:10px;}
@media (min-width:768px){.products-grid{column-count:3 !important;column-gap:20px !important;}}
@media (min-width:1024px){.products-grid{column-count:4 !important;column-gap:22px !important;}}
.product-card{display:block !important;width:100%;height:auto !important;align-self:auto !important;margin:0 0 10px !important;break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid;}
@media (min-width:768px){.product-card{margin-bottom:20px !important;}}
.product-card .product-info{display:block !important;flex:none !important;}
.product-card .product-details-link{margin-top:10px !important;}

/* [v3] زر الإشعارات والتواصل داخل القائمة الجانبية */
#tbEnableNotificationsMenuBtn[data-on="1"]{opacity:.75;}
