/* Cart button hover: keep icon and badge distinct */
.cart-btn-mobile:hover, .cart-btn-mobile:focus {
  background: #000000 !important; /* subtle light background */
  border-color: #000000 !important;
  box-shadow: 0 2px 8px rgba(15,23,42,0.08);
}
.cart-btn-mobile:hover svg,
.cart-btn-mobile:focus svg {
  color: #ffffff;
  fill: #ffffff;
}
.cart-btn-mobile:hover .cart-badge-mobile,
.cart-btn-mobile:focus .cart-badge-mobile {
  background: #ffffff!important;
  color: #000000;
  border: 1.5px solid #fff;
}
@media (max-width: 575.98px) {
  .navbar .container {
    position: relative;
  }
  .navbar-brand.navbar-brand-centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* --- Mobile navbar/logo/cart tweaks --- */
@media (max-width: 575.98px) {
  .navbar-brand img.main-logo {
    max-height: 26px !important;
    height: 26px !important;
  }
  .navbar-toggler {
    padding: 0.18rem 0.5rem;
    font-size: 1.1rem;
    min-width: 36px;
    min-height: 36px;
  }
  .cart-btn-mobile {
    padding: 0.18rem 0.5rem;
    font-size: 1.1rem;
    min-width: 36px;
    min-height: 36px;
  }
  .cart-badge-mobile {
    position: absolute;
    top: -7px;
    right: -7px;
    font-size: 0.75rem;
    padding: 0.22em 0.22em;
  }
}

/* Prevent horizontal scroll on mobile due to navbar */
body, html {
  overflow-x: hidden;
}
:root {
  --bg-body: #f4f4f5;
  --bg-elevated: #ffffff;
  --bg-subtle: #f9fafb;
  --border-subtle: #e5e7eb;
  --text-main: #020617;
  --text-muted: #6b7280;
  --accent: #111827;
  --accent-soft: #e5e7eb;
  --accent-soft-2: #e0f2fe;
  --radius-lg: 1.2rem;
  --radius-xl: 1.6rem;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.18);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #f9fafb, #e5e7eb);
  color: var(--text-main);
}

.navbar { font-size: 0.9rem; backdrop-filter: blur(16px); }
.bg-glass { background: rgba(249, 250, 251, 0.8) !important; }
.brand-mark { font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; }
.brand-pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #111827;
  margin-right: 0.35rem;
  font-size: 0.7rem;
}
.nav-link { color: var(--text-muted); }
.nav-link:hover, .nav-link:focus { color: var(--text-main); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hero-title { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.2; font-weight: 600; }
.hero-title-sm { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.hero-subtitle { font-size: 0.9rem; color: var(--text-muted); max-width: 480px; }

/* Wrapper around slider – little breathing room */
.hero-shell {
  padding-top: 1.5rem;
  padding-bottom: 2.2rem;
}


/* Hero / slider */
.hero-carousel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  /* Vertically center carousel content on homepage */
  height: 60vh;
  min-height: 400px;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-slide {
  height: 60vh;
  min-height: 400px;
}

.hero-carousel .carousel-item,
.hero-slide {
  display: flex;
  align-items: center;
}

/* DESKTOP hero slide */
.hero-slide {
  /* IMPORTANT: no display:flex here, Bootstrap controls display via .carousel-item */
  min-height: 440px;              /* taller slider on desktop */
  position: relative;
  color: #f9fafb;
}

/* Dark overlay */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.92),
    rgba(15, 23, 42, 0.75)
  );
}

/* Background images – swap to your own later if you want */
.hero-slide-1,
.hero-slide-2,
.hero-slide-3 {
  background-size: cover;
  background-position: center;
}

.hero-slide-1 {
  background-image: url("https://almalaabis.com/assets/img/almalaabisslider1.jpg");
}
.hero-slide-2 {
  background-image: url("https://almalaabis.com/assets/img/almalaabisslider2.jpg");
}
.hero-slide-3 {
  background-image: url("https://almalaabis.com/assets/img/almalaabisslider3.jpg");
}

/* Mobile-specific carousel images */
@media (max-width: 767.98px) {
  .hero-slide-1 {
    background-image: url('https://almalaabis.com/assets/img/almalaabisslider1.jpg');
  }
  .hero-slide-2 {
    background-image: url('https://placehold.co/600x400?text=Mobile+Slide+2');
  }
  .hero-slide-3 {
    background-image: url('https://placehold.co/600x400?text=Mobile+Slide+3');
  }
}

/* Text block inside hero – add space above & below */
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 2.5rem 0 3rem;   /* top & bottom spacing inside slide */
}

/* About page specific styles */
.about-hero {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #f9fafb, #e0f2fe);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.about-image {
  width: 100%;
  height: 360px; /* rectangle crop for desktop */
  border-radius: 0.9rem;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 767px) {
  .about-image { height: auto; }
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.2;
  font-weight: 600;
}
.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-main);
  max-width: 480px;
}


.section-block { padding: 3rem 0; }
.section-subtle { background: rgba(249, 250, 251, 0.8); }
.section-header { margin-bottom: 1.4rem; }
.section-subtitle { font-size: 0.85rem; color: var(--text-muted); }

.category-card-link { text-decoration: none; color: inherit; }
.category-card-simple {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.category-card-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.category-thumb { width: 100%; height: 400px; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #f7f7f7; }
.category-simple-body {
  padding: 1.1rem 1.4rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strip-highlight { padding: 1.2rem 0 1.8rem; }
.strip-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); }
.strip-points {
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--text-muted);
}

.category-hero {
  padding-top: 4.4rem;
  padding-bottom: 1.8rem;
  background: linear-gradient(135deg, #f9fafb, #e0f2fe);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.breadcrumb-minimal { --bs-breadcrumb-divider: "›"; font-size: 0.78rem; }
.breadcrumb-minimal .breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-minimal .breadcrumb-item.active { color: var(--text-main); }

.product-card {
  border-radius: var(--radius-lg);
  border: none;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Product image – tuned for portrait shots + lazy fade-in */
.product-card img,
.product-img {
  width: 100%;
  height: 480px;
  object-fit: contain; /* show full image without cropping */
  object-position: center;
  background-color: #f7f7f7;
  border-radius: 1.2rem 1.2rem 0 0;
  display: block;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* Before actual src is loaded */
.product-img.lazy {
  opacity: 0;
  transform: scale(1.01);
}

/* After load */
.product-img:not(.lazy) {
  opacity: 1;
  transform: scale(1);
}

.product-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-title { font-size: 0.98rem; font-weight: 500; }
.product-sub { font-size: 0.82rem; color: var(--text-muted); }
.product-meta-row { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; }
.product-tag {
  font-size: 0.72rem;
  padding: 0rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.size-pill-row {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.size-pill {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
  padding: 0.12rem 0.6rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease,
    transform 0.08s ease;
}
.size-pill:hover { background: #e5e7eb; }
.size-pill.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  transform: translateY(-1px);
}

.product-footer {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

/* Fancy "Add to cart" pill button */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: none;
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: linear-gradient(135deg, #111827, #020617);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    opacity 0.12s ease;
}

.btn-add-cart:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.45);
  opacity: 0.96;
  color: #ffffff;
}

.btn-add-cart:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

/* Small arrow nudge on hover */
.btn-add-cart-icon {
  font-size: 0.9rem;
  transform: translateX(0);
  transition: transform 0.12s ease;
}

.btn-add-cart:hover .btn-add-cart-icon {
  transform: translateX(2px);
}


.size-row-error { box-shadow: 0 0 0 1px #dc2626; border-radius: 999px; }

.dot { width: 6px; height: 6px; border-radius: 999px; background: #9ca3af; }

.order-summary ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.order-summary li { margin-bottom: 0.3rem; }

#cartSidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 360px;
  max-width: 92vw;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -28px 0 48px rgba(15, 23, 42, 0.28);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
#cartSidebar.open { transform: translateX(0); }
#cartOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: none;
  z-index: 1040;
}
#cartOverlay.show { display: block; }

.cart-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; }
.cart-footer {
  padding: 0.9rem 1.25rem 1.2rem;
  border-top: 1px solid var(--border-subtle);
  background: #f9fafb;
}
.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  font-size: 0.85rem;
}
.cart-item-title { font-size: 0.86rem; margin-bottom: 0.1rem; }
.cart-item-meta { font-size: 0.78rem; color: var(--text-muted); }
.quantity-input { width: 70px; }
.cart-thumb {
  width: 54px;
  height: 72px;
  border-radius: 0.6rem;
  object-fit: contain;
  object-position: center center;
  background-color: #f7f7f7;
  margin-right: 0.6rem;
}

/* make the items area scrollable but leave footer visible */
#cartSidebar .cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.9rem 1.25rem 1.1rem; /* bottom padding to avoid content under footer */
}

/* Sticky footer inside the aside so it's always visible */
#cartSidebar .cart-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  background: rgba(255,255,255,0.98); /* match sidebar background */
  padding: 0.9rem 1.25rem 1.4rem;
  border-top: 1px solid var(--border-subtle);
  /* ensure footer doesn't overlap content visually on mobile */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* extra bottom spacing to respect mobile safe area (iPhone notch, etc.) */
#cartSidebar .cart-footer {
  padding-bottom: calc(1.4rem + env(safe-area-inset-bottom));
}

/* If the checkout button is narrow on mobile, make it full width */
#cartSidebar .cart-footer .btn {
  width: 100%;
}

/* Ensure overlay click still closes sidebar on mobile and footer visible above overlay */
#cartOverlay {
  z-index: 1040; /* keep same as before */
}
#cartSidebar {
  z-index: 1050; /* keep above overlay */
}

/* Minor: reduce the cart empty area jump on very small screens */
@media (max-width: 420px) {
  #cartSidebar { width: 92vw; }
  #cartSidebar .cart-items { padding: 0.75rem 1rem 1rem; }
  #cartSidebar .cart-header { padding: 0.9rem 1rem; }
  #cartSidebar .cart-footer { padding: 0.8rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
}

.footer-minimal {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 0;
  background: rgba(248, 250, 252, 0.9);
}

@media (max-width: 992px) {
  .category-card-simple { border-radius: 1.2rem; }
  .category-thumb { height: 400px; }
}

@media (max-width: 768px) {
  .hero-shell {
    padding-top: 0.8rem;
    padding-bottom: 1.6rem;
  }

  .hero-carousel {
    border-radius: 1.2rem;
  }

  .hero-slide {
    min-height: 300px;
  }

  /* Make sure text has some left/right breathing room */
  .hero-copy {
    max-width: 100%;
    padding: 2rem 1.4rem 2.4rem;   /* top, left/right, bottom */
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    max-width: 100%;
  }
}

/* On small screens, hide left/right arrows – users can swipe or use dots */
@media (max-width: 576px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #eee;
  padding: 50px 0 20px;
  font-size: 14px;
}

.site-footer h6 {
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-text {
  color: #666;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 8px;
  color: #444;
}

.footer-links a {
  color: #444;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* NEW / UPDATED */
.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 25px;
  font-size: 13px;
  color: #888;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.footer-bottom-left,
.footer-bottom-right {
  white-space: nowrap;
}

.footer-bottom-right a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom-right a:hover {
  text-decoration: underline;
}

/* Mobile: stack & center */
@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .product-card img,
  .product-img {
    height: 380px;           /* slightly shorter on mobile */
  }

  .product-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-add-cart {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile header: hamburger left, logo center, cart right */
.navbar-brand img { max-height: 34px; }

/* Ensure brand truly centers on small screens */
@media (max-width: 991.98px) {
  .navbar .container {
    position: relative;
  }

  /* center the brand visually */
  .navbar-brand.mx-auto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6; /* above toggler */
  }

  /* keep toggler left aligned inside container */
  .navbar-toggler {
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.9);
  }

  /* make sure the right-side cart stays at the end */
  .navbar .container > .d-flex {
    margin-left: auto;
    z-index: 6;
  }

  /* visual tweak: reduce brand text on small screens */
  .navbar-brand strong { font-size: 0.95rem; letter-spacing: 0.02em; }
}

/* On very small widths, ensure nav collapse full-width when opened */
@media (max-width: 767.98px) {
  .navbar .collapse.show {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    padding: 0.75rem 1rem;
    z-index: 5;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
  }

  .navbar .collapse .nav-link { padding: 0.5rem 0; }
}

