/* ==========================================================================
   Akram & Sons — Storefront design system
   Built on Bootstrap 5.3 grid/utilities. Brand palette carried over from the
   existing landing page so the store and the marketing page read as one site.
   ========================================================================== */

:root {
  /* Brand */
  --ak-primary:        #e11d48;
  --ak-primary-dark:   #be123c;
  --ak-primary-soft:   #fff1f3;
  --ak-ink:            #09090b;
  --ak-ink-2:          #18181b;
  --ak-ink-3:          #27272a;

  /* Neutrals — slight cool bias, chosen not inherited */
  --ak-text:           #0f172a;
  --ak-muted:          #64748b;
  --ak-faint:          #94a3b8;
  --ak-line:           #e6e8ec;
  --ak-line-soft:      #f1f3f6;
  --ak-surface:        #ffffff;
  --ak-canvas:         #f8fafc;

  /* Semantic */
  --ak-success:        #10b981;
  --ak-success-bg:     #ecfdf5;
  --ak-warn:           #f59e0b;
  --ak-warn-bg:        #fffbeb;
  --ak-info:           #3b82f6;

  /* Type */
  --ak-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --ak-radius:    12px;
  --ak-radius-sm: 8px;
  --ak-radius-lg: 18px;
  --ak-shadow:    0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --ak-shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 44px rgba(15, 23, 42, .10);
  --ak-container: 1240px;
}

/* ---------- base ---------- */

body.ak-store {
  font-family: var(--ak-font);
  color: var(--ak-text);
  background: var(--ak-canvas);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ak-store a { text-decoration: none; color: inherit; }
.ak-store a:hover { color: var(--ak-primary); }
.ak-store img { max-width: 100%; }
.ak-shell { max-width: var(--ak-container); margin: 0 auto; padding-inline: 20px; }

.ak-store :focus-visible {
  outline: 2px solid var(--ak-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- type scale ---------- */

.ak-h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.ak-h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.015em; }
.ak-h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ak-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ak-primary);
}
.ak-muted { color: var(--ak-muted); }

/* ---------- buttons ---------- */

.ak-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ak-font); font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: var(--ak-radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
  white-space: nowrap;
}
.ak-btn:active { transform: translateY(1px); }
.ak-btn-primary { background: var(--ak-primary); color: #fff; }
.ak-btn-primary:hover { background: var(--ak-primary-dark); color: #fff; }
.ak-btn-dark { background: var(--ak-ink); color: #fff; }
.ak-btn-dark:hover { background: var(--ak-ink-3); color: #fff; }
.ak-btn-ghost { background: #fff; color: var(--ak-text); border-color: var(--ak-line); }
.ak-btn-ghost:hover { border-color: var(--ak-primary); color: var(--ak-primary); }
.ak-btn-block { width: 100%; }
.ak-btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- top strip ---------- */

.ak-strip {
  background: var(--ak-ink); color: #d4d4d8;
  font-size: 12.5px; letter-spacing: .01em;
}
.ak-strip .ak-shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.ak-strip a { color: #d4d4d8; }
.ak-strip a:hover { color: #fff; }
.ak-strip-links { display: flex; gap: 18px; }

/* ---------- header ---------- */

.ak-header { background: var(--ak-surface); border-bottom: 1px solid var(--ak-line); position: sticky; top: 0; z-index: 40; }
.ak-header-main { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

.ak-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ak-ink); flex-shrink: 0; }
.ak-logo img { height: 38px; width: auto; }
.ak-logo-mark {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--ak-primary); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}

.ak-search { flex: 1; position: relative; min-width: 0; }
.ak-search input {
  width: 100%; height: 44px; padding: 0 46px 0 16px;
  border: 1px solid var(--ak-line); border-radius: var(--ak-radius-sm);
  background: var(--ak-canvas); font-family: var(--ak-font); font-size: 14px; color: var(--ak-text);
}
.ak-search input::placeholder { color: var(--ak-faint); }
.ak-search input:focus { outline: none; border-color: var(--ak-primary); background: #fff; }
.ak-search button {
  position: absolute; right: 5px; top: 5px; width: 34px; height: 34px;
  border: 0; border-radius: 6px; background: var(--ak-primary); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}

.ak-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ak-action {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: var(--ak-radius-sm); font-size: 13.5px; font-weight: 600; color: var(--ak-text);
}
.ak-action:hover { background: var(--ak-line-soft); color: var(--ak-text); }
.ak-action i { font-size: 19px; }
.ak-action-label { display: flex; flex-direction: column; line-height: 1.25; }
.ak-action-label small { font-size: 11px; font-weight: 500; color: var(--ak-muted); }
.ak-badge-count {
  background: var(--ak-primary); color: #fff; font-size: 10.5px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  display: inline-grid; place-items: center;
}

/* ---------- category nav ---------- */

.ak-nav { background: var(--ak-surface); border-bottom: 1px solid var(--ak-line); }
.ak-nav .ak-shell { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ak-nav .ak-shell::-webkit-scrollbar { display: none; }
.ak-nav a {
  padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--ak-text);
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.ak-nav a:hover { color: var(--ak-primary); border-bottom-color: var(--ak-primary); }
.ak-nav a.is-active { color: var(--ak-primary); border-bottom-color: var(--ak-primary); }

/* ---------- hero ---------- */

.ak-hero { padding: 28px 0 8px; }
.ak-hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
@media (max-width: 991px) { .ak-hero-grid { grid-template-columns: 1fr; } }

.ak-slider {
  position: relative; border-radius: var(--ak-radius-lg); overflow: hidden;
  background: var(--ak-ink); box-shadow: var(--ak-shadow); min-height: 300px;
}
.ak-slider .carousel-item img { width: 100%; height: 380px; object-fit: cover; }
@media (max-width: 767px) { .ak-slider .carousel-item img { height: 220px; } }

.ak-hero-fallback {
  position: relative; min-height: 380px; display: flex; flex-direction: column;
  justify-content: center; gap: 18px; padding: 44px;
  background:
    radial-gradient(900px 400px at 88% 15%, rgba(225,29,72,.30), transparent 60%),
    linear-gradient(140deg, #18181b 0%, #09090b 100%);
  color: #fff;
}
.ak-hero-fallback .ak-h1 { color: #fff; max-width: 16ch; }
.ak-hero-fallback p { color: #a1a1aa; max-width: 46ch; margin: 0; }
@media (max-width: 767px) { .ak-hero-fallback { padding: 28px; min-height: 280px; } }

.ak-hero-side { display: flex; flex-direction: column; gap: 16px; }
.ak-promo {
  border-radius: var(--ak-radius); overflow: hidden; background: var(--ak-surface);
  border: 1px solid var(--ak-line); flex: 1; min-height: 120px;
  display: flex; align-items: center; gap: 14px; padding: 18px;
}
.ak-promo-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px;
  background: var(--ak-primary-soft); color: var(--ak-primary);
}
.ak-promo h4 { font-size: 14.5px; font-weight: 700; margin: 0 0 2px; }
.ak-promo p { font-size: 12.5px; color: var(--ak-muted); margin: 0; }

/* ---------- trust bar ---------- */

.ak-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ak-line); border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius); overflow: hidden; margin: 24px 0;
}
@media (max-width: 767px) { .ak-trust { grid-template-columns: repeat(2, 1fr); } }
.ak-trust-item { background: var(--ak-surface); padding: 18px 16px; display: flex; align-items: center; gap: 12px; }
.ak-trust-item i { font-size: 22px; color: var(--ak-primary); }
.ak-trust-item strong { display: block; font-size: 13.5px; font-weight: 700; }
.ak-trust-item span { font-size: 12px; color: var(--ak-muted); }

/* ---------- section header ---------- */

.ak-section { margin: 40px 0; }
.ak-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 18px;
}
.ak-section-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ak-muted); max-width: 60ch; }
.ak-section-link { font-size: 13.5px; font-weight: 600; color: var(--ak-primary); white-space: nowrap; }

/* ---------- category tiles ---------- */

.ak-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1199px) { .ak-cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .ak-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 479px)  { .ak-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.ak-cat {
  background: var(--ak-surface); border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius); padding: 18px 12px; text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ak-cat:hover { border-color: var(--ak-primary); box-shadow: var(--ak-shadow); }
.ak-cat-img {
  width: 62px; height: 62px; border-radius: 50%; object-fit: cover;
  background: var(--ak-line-soft);
}
.ak-cat span { font-size: 13px; font-weight: 600; color: var(--ak-text); line-height: 1.35; }

/* ---------- product card ---------- */

.ak-prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1199px) { .ak-prod-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px)  { .ak-prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px)  { .ak-prod-grid { grid-template-columns: repeat(2, 1fr); } }

.ak-card {
  background: var(--ak-surface); border: 1px solid var(--ak-line);
  border-radius: var(--ak-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ak-card:hover { border-color: #d8dbe1; box-shadow: var(--ak-shadow-lg); transform: translateY(-2px); }

.ak-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--ak-line-soft); overflow: hidden; }
.ak-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ak-card-flag {
  position: absolute; top: 10px; left: 10px;
  background: var(--ak-primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px;
}
.ak-card-flag.is-out { background: var(--ak-ink-3); }

.ak-card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ak-card-cat { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ak-faint); }
.ak-card-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ak-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em;
}
.ak-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.ak-price { font-size: 16px; font-weight: 800; color: var(--ak-text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ak-price-was { font-size: 12.5px; color: var(--ak-faint); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.ak-price-off { font-size: 11.5px; font-weight: 700; color: var(--ak-success); }

.ak-card-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ak-muted); }
.ak-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ak-warn); font-weight: 600; }

/* ---------- flash sale ---------- */

.ak-flash {
  border-radius: var(--ak-radius-lg); padding: 22px; margin: 40px 0;
  background: linear-gradient(120deg, #18181b 0%, #3f1220 100%);
  color: #fff;
}
.ak-flash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ak-flash-head h2 { color: #fff; margin: 0; }
.ak-flash-head p { color: #a1a1aa; margin: 3px 0 0; font-size: 13px; }
.ak-flash .ak-card { border-color: transparent; }

/* ---------- brands ---------- */

.ak-brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 991px) { .ak-brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 575px) { .ak-brand-grid { grid-template-columns: repeat(3, 1fr); } }
.ak-brand {
  background: var(--ak-surface); border: 1px solid var(--ak-line); border-radius: var(--ak-radius);
  height: 84px; display: grid; place-items: center; padding: 14px;
}
.ak-brand:hover { border-color: var(--ak-primary); }
.ak-brand img { max-height: 46px; width: auto; object-fit: contain; }
.ak-brand span { font-size: 13px; font-weight: 600; }

/* ---------- empty state ---------- */

.ak-empty {
  background: var(--ak-surface); border: 1px dashed var(--ak-line);
  border-radius: var(--ak-radius); padding: 44px 24px; text-align: center;
}
.ak-empty i { font-size: 34px; color: var(--ak-faint); }
.ak-empty h3 { margin: 12px 0 4px; font-size: 16px; font-weight: 700; }
.ak-empty p { margin: 0; font-size: 13.5px; color: var(--ak-muted); }

/* ---------- footer ---------- */

.ak-footer { background: var(--ak-ink); color: #a1a1aa; margin-top: 56px; font-size: 13.5px; }
.ak-footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding: 44px 0 36px; }
@media (max-width: 991px) { .ak-footer-main { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 575px) { .ak-footer-main { grid-template-columns: 1fr; } }
.ak-footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.ak-footer a { color: #a1a1aa; }
.ak-footer a:hover { color: #fff; }
.ak-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.ak-footer-about p { margin: 12px 0 0; max-width: 40ch; line-height: 1.7; }
.ak-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ak-footer-contact i { color: var(--ak-primary); font-size: 15px; margin-top: 2px; }
.ak-footer-bottom {
  border-top: 1px solid var(--ak-ink-3); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px;
}
.ak-pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ak-pay span {
  border: 1px solid var(--ak-ink-3); border-radius: 5px; padding: 4px 9px;
  font-size: 11px; font-weight: 600; color: #d4d4d8;
}

/* ---------- mobile ---------- */

@media (max-width: 767px) {
  .ak-header-main { flex-wrap: wrap; gap: 12px; }
  .ak-search { order: 3; flex-basis: 100%; }
  .ak-action-label { display: none; }
  /* keep the phone reachable on mobile; drop only the secondary links */
  .ak-strip-links a:not(.ak-strip-call) { display: none; }
  .ak-strip .ak-shell { gap: 10px; }
  .ak-strip-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- inline SVG icons ---------- */

.ak-i { flex-shrink: 0; vertical-align: -.16em; }
.ak-strip .ak-i { width: 16px; height: 16px; vertical-align: -.2em; }
.ak-action .ak-i { width: 21px; height: 21px; }
.ak-nav .ak-i { width: 16px; height: 16px; }
.ak-trust-item .ak-i { width: 22px; height: 22px; color: var(--ak-primary); }
.ak-promo-icon .ak-i { width: 22px; height: 22px; }
.ak-empty .ak-i { width: 36px; height: 36px; color: var(--ak-faint); }
.ak-section-link .ak-i { width: 16px; height: 16px; }
.ak-rating .ak-i { width: 13px; height: 13px; }
.ak-footer-contact .ak-i { width: 16px; height: 16px; color: var(--ak-primary); margin-top: 3px; }
.ak-flash-head .ak-i { width: 22px; height: 22px; color: #fbbf24; }

/* ---------- floating WhatsApp button ---------- */

.ak-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 13px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .38), 0 2px 6px rgba(15, 23, 42, .18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ak-wa:hover {
  background: #1eb757;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45), 0 3px 8px rgba(15, 23, 42, .2);
}
.ak-wa-icon { display: grid; place-items: center; }
.ak-wa-text strong { font-weight: 700; font-size: 13.5px; }

@media (max-width: 767px) {
  .ak-wa { right: 14px; bottom: 14px; padding: 12px; gap: 0; }
  .ak-wa-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ak-wa, .ak-wa:hover { transition: none; transform: none; }
}

/* keep the phone number on one line in the top strip */
.ak-strip-call { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.ak-strip-links { flex-shrink: 0; }
