/* Logix Mobile storefront overlay */
:root {
  --logix-red: #e11d24;
  --logix-ink: #111111;
  --logix-text: #1a1a1a;
  --logix-muted: #6b7280;
  --logix-line: #e5e7eb;
  --logix-surface: #f8f8f8;
  --font-sans: "Tajawal", "Cairo", Tahoma, sans-serif;
  --font-display: "Cairo", "Tajawal", sans-serif;
  --font-brand: "Archivo", sans-serif;
}

body.logix-body {
  font-family: var(--font-sans);
  background: #fff;
  color: var(--logix-text);
}

.logix-app {
  display: flex;
  min-height: 100vh;
  background: #fff;
}

.logix-sidebar {
  display: none;
  width: 272px;
  flex-shrink: 0;
  align-self: stretch;
  border-left: 1px solid var(--logix-line);
  background: #fff;
  padding: 0 0 24px;
  min-height: 100%;
  overflow: hidden;
}

.logix-sidebar-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 24px 32px;
}

.logix-sidebar .logix-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 0 0 14px;
  color: inherit;
}

.logix-shell {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.logix-logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 18px;
  color: inherit;
}

.logix-logo img {
  max-height: 42px;
  width: auto;
}

.logix-logo-mark {
  position: relative;
  display: block;
}

.logix-logo-word {
  font-family: var(--font-brand);
  font-size: 24px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--logix-ink);
}

.logix-logo-word span {
  color: var(--logix-red);
}

.logix-logo-sub {
  position: absolute;
  right: 0;
  bottom: -12px;
  font-family: var(--font-brand);
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  color: var(--logix-red);
  line-height: 1;
}

.logix-logo-box {
  width: 16px;
  height: 28px;
  border: 2px solid var(--logix-red);
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 4px;
}

.logix-logo-mobile {
  display: none;
}

.logix-logo-footer .logix-logo-word,
.logix-logo-footer .logix-logo-sub {
  color: #fff;
}

.logix-logo-footer .logix-logo-word span,
.logix-logo-footer .logix-logo-sub {
  color: #ffb4b7;
}

.logix-side-nav {
  display: grid;
  gap: 2px;
  margin-top: 0;
  padding: 0 12px;
}

.logix-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.logix-nav-item small {
  margin-inline-start: auto;
  color: var(--logix-muted);
}

.logix-nav-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.logix-nav-item.is-active {
  background: #fdecec;
  color: var(--logix-red);
  border-right: 3px solid var(--logix-red);
}

.logix-nav-item:hover {
  background: #f7f7f7;
}

.logix-side-subs {
  margin: 16px 24px 0;
  padding-top: 14px;
  border-top: 1px solid var(--logix-line);
}

.logix-side-subs-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.logix-side-subs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.logix-side-subs a {
  color: var(--logix-muted);
  font-size: 13px;
  position: relative;
  padding-right: 14px;
}

.logix-side-subs a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--logix-red);
  position: absolute;
  right: 0;
  top: 7px;
}

.logix-side-subs a:hover {
  color: var(--logix-red);
}

.logix-side-promo {
  margin: 16px 18px 0;
  background: var(--logix-surface);
  border-radius: 14px;
  padding: 14px;
}

.logix-side-promo p {
  margin: 0;
  color: var(--logix-red);
  font-size: 12px;
  font-weight: 800;
}

.logix-side-promo h3 {
  margin: 6px 0 12px;
  font-family: var(--font-display);
  font-size: 18px;
}

.logix-side-promo a {
  display: inline-flex;
  background: var(--logix-red);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
}

.logix-side-promo img {
  width: 100%;
  margin-top: 12px;
  border-radius: 10px;
  object-fit: contain;
  max-height: 88px;
}

.logix-header {
  border-bottom: 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}

.logix-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--logix-line);
}

.logix-search-wrap {
  position: relative;
  min-width: 0;
}

.logix-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--logix-line);
  border-radius: 10px;
  background: var(--logix-surface);
  overflow: hidden;
  min-width: 0;
}

.logix-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--logix-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  max-height: 360px;
  overflow: auto;
  padding: 6px;
}

.logix-search-results.is-open {
  display: block;
}

.logix-search-results .search-result {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
}

.logix-search-results .search-result:hover {
  background: var(--logix-surface);
}

.logix-search-results .search-result img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--logix-line);
  border-radius: 8px;
}

.logix-search input {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  outline: none;
}

.logix-search button {
  border: 0;
  background: var(--logix-red);
  color: #fff;
  width: 46px;
  height: 42px;
  margin: 3px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.logix-search button svg {
  width: 18px;
  height: 18px;
}

.logix-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.logix-text-link {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.logix-text-link:first-child {
  color: var(--logix-red);
}

.logix-icon-btn,
.logix-header .mobile-menu-toggle,
.logix-header .cart-toggle {
  border: 0;
  background: none;
  padding: 0;
  display: inline-grid;
  place-items: center;
  position: relative;
}

.logix-icon-btn svg,
.logix-header .cart-toggle svg,
.logix-header .mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.logix-header .cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--logix-red);
  color: #fff;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.logix-quickbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--logix-line);
  font-size: 13px;
}

.logix-quick-links,
.logix-quick-contact {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.logix-quick-links a:hover,
.logix-quick-contact {
  color: var(--logix-muted);
}

.logix-quick-links a:hover {
  color: var(--logix-red);
}

.logix-hero .hero-slide {
  background: var(--logix-ink);
  min-height: 340px;
}

.logix-hero .hero-slide img {
  aspect-ratio: auto;
  min-height: 340px;
  max-height: 420px;
  object-fit: cover;
  opacity: 0.88;
}

.logix-hero .hero-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 56px;
  background: linear-gradient(to left, #111 18%, rgba(17, 17, 17, 0.78), transparent);
  color: #fff;
}

.logix-hero h1,
.logix-hero .hero-overlay-content h2,
.logix-hero .hero-overlay-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

.logix-hero .hero-overlay-content h1 span,
.logix-hero .hero-overlay-content h2 span {
  color: var(--logix-red);
}

.logix-hero .hero-overlay-content p {
  font-size: 22px;
  font-weight: 700;
  margin: 14px 0 0;
}

.logix-hero .button-dark {
  background: var(--logix-red);
  border-color: var(--logix-red);
  margin-top: 22px;
  border-radius: 8px;
  letter-spacing: 0;
  font-size: 14px;
}

.logix-hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-size: 14px;
}

.logix-hero .hero-dots {
  left: auto;
  right: 56px;
  transform: none;
}

.logix-hero .hero-dot {
  border-color: #fff;
}

.logix-hero .hero-dot.active {
  background: var(--logix-red);
  border-color: var(--logix-red);
}

.logix-category-grid {
  grid-template-columns: repeat(5, 1fr);
}

.logix-cat-card {
  border: 1px solid var(--logix-line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-align: start;
}

body.logix-body .logix-cat-card img,
.logix-cat-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  min-height: 140px;
  object-fit: contain;
  background: #fff;
  filter: none !important;
}

.logix-cat-bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--logix-red);
  border-radius: 99px;
  margin: 12px 0 8px;
}

.logix-cat-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
}

.logix-cat-cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--logix-muted);
}

body.logix-body .section h2,
body.logix-body .section-head h2,
body.logix-body .shop-hero h1,
body.logix-body .page-title,
body.logix-body .product-info h1,
body.logix-body .product-copy h3 {
  font-family: var(--font-display);
}

body.logix-body .product-card {
  border: 1px solid var(--logix-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

body.logix-body .product-media {
  background: #fff;
}

body.logix-body .product-main-image {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 12px;
}

body.logix-body .product-copy {
  padding: 0 14px 16px;
}

body.logix-body .quick-add-bar,
body.logix-body .button-dark,
body.logix-body .add-to-cart,
body.logix-body .checkout-btn,
body.logix-body .auth-box button,
body.logix-body .newsletter-section button {
  background: var(--logix-red);
  border-color: var(--logix-red);
  color: #fff;
}

body.logix-body .badge-new,
body.logix-body .badge-sale {
  background: var(--logix-red);
}

body.logix-body .features {
  background: var(--logix-surface);
}

body.logix-body .newsletter-section {
  background: #111;
  color: #fff;
}

body.logix-body .footer {
  background: #111;
}

body.logix-body .desktop-nav {
  display: none !important;
}

@media (min-width: 1101px) {
  .logix-sidebar {
    display: block;
    overflow: hidden !important;
  }
  .logix-header .mobile-menu-toggle,
  .logix-logo-mobile {
    display: none !important;
  }
  .logix-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .logix-search-wrap {
    max-width: 760px;
  }
}

@media (max-width: 1100px) {
  .logix-logo-mobile {
    display: flex;
  }
  .logix-quick-contact,
  .logix-text-link:first-child {
    display: none;
  }
  .logix-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .logix-hero .hero-overlay-content {
    padding: 28px;
  }
  .logix-hero-badges {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .logix-topbar {
    grid-template-columns: auto 1fr auto;
  }
  .logix-search-wrap {
    grid-column: 1 / -1;
  }
  .logix-category-grid,
  body.logix-body .product-grid,
  body.logix-body .product-strip {
    grid-template-columns: 1fr 1fr;
  }
  .logix-actions .logix-text-link {
    display: none;
  }
}

body.logix-body .announcement,
body.logix-body .section-kicker,
body.logix-body .newsletter-section span,
body.logix-body .footer-grid h4,
body.logix-body .product-info .brand,
body.logix-body .filter-group h4 {
  letter-spacing: 0;
  text-transform: none;
}

body.logix-body .product-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

body.logix-body .product-media,
body.logix-body .logix-cat-card,
body.logix-body .gallery-main {
  overflow: hidden;
}

body.logix-body .logix-cat-card img,
body.logix-body .product-main-image,
body.logix-body .gallery-main img {
  max-height: 100%;
}

body.logix-body .shop-hero {
  background: #fff;
  text-align: start;
  padding: 36px 0 8px;
}

body.logix-body .shop-hero h1,
body.logix-body .page-title,
body.logix-body .product-info h1,
body.logix-body .empty-state h2,
body.logix-body .newsletter-section h2,
body.logix-body .cart-item h3,
body.logix-body .summary-card h3,
body.logix-body .section h2,
body.logix-body .section-head h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

body.logix-body .newsletter-section {
  padding: 40px 24px;
}

body.logix-body .newsletter-section form {
  border: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  min-width: min(100%, 420px);
}

body.logix-body .newsletter-section input,
body.logix-body .newsletter-section button {
  padding: 12px 16px;
}

body.logix-body .newsletter-section button {
  background: var(--logix-red);
  color: #fff;
}

body.logix-body .footer-grid a:hover {
  color: #fff;
}

body.logix-body .logix-logo-footer {
  display: inline-flex;
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  body.logix-body .product-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
