:root {
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-2-5: 0.625rem; /* 10px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-7: 1.75rem;    /* 28px */
  --space-8: 2rem;       /* 32px */

  --radius-1: 0.3125rem; /* 5px */
  --radius-2: 0.5rem;    /* 8px */
  --radius-3: 0.75rem;   /* 12px */
  --radius-4: 1.875rem;  /* 30px */
  --radius-pill: 3.125rem; /* 50px */
  
  --text-2xs: 0.7rem;   /* ~11px */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.25rem;   /* 20px */
  --text-xl: 1.5rem;    /* 24px */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-gutter: stable;

}

.header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-8);
}

.logo {
  width: 30vw;
  max-width: 300px;
  min-width: 50px;
  height: auto;
  transform: scale(0);
  animation: zoomIn 2s forwards;
}

.title {
  flex-grow: 1;
  text-align: center;
  font-size: clamp(2.6rem, 7vw, 7rem);
  color: #ffffff;
  font-family: 'Lexend Peta', sans-serif;
  white-space: nowrap;
}

.header-basket {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.basket-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0B0B45;
  text-decoration: none;
  background-color: #FFD700;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-2);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.basket-icon:hover {
  background-color: #FFC107;
  transform: scale(1.05);
}

.basket-count {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  background: red;
  color: #fff;
  font-size: var(--text-xs);
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-pill);
}

.mini-basket {
  position: fixed;
  top: 0;
  right: 0;

  width: 320px;
  height: 100vh;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);

  padding: 1.5rem;
  box-sizing: border-box;

  border-left: 4px solid #FFD700;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);

  z-index: 10000;

  transform: translateX(100%);
  transition: transform 0.35s ease;

  font-family: "Source Sans 3", sans-serif;
}

.mini-basket.open {
  transform: translateX(0);
}

.mini-basket h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;

  font-size: 1.5rem;
  font-weight: 600;
  color: #2F4F4F;

  padding-bottom: 0.75rem;
  border-bottom: 3px solid #FFD700;
}

.mini-basket-items {
  background: rgba(255, 215, 0, 0.12);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.mini-basket-items p {
  margin: 0;
  font-size: 1.25rem;
  color: #2F4F4F;
}

.mini-basket-subtotal {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2F4F4F;

  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 3px solid #FFD700;
}

.mini-basket-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;

  background: none;
  border: none;
  padding: 0;

  font-size: 2rem;
  line-height: 1;
  color: #2F4F4F;

  cursor: pointer;
  overflow: visible;
}

.mini-basket.empty .view-basket-button,
.mini-basket.empty .checkout-button {
  display: none;
}

.view-basket-button,
.checkout-button {
  display: block;
  width: 100%;
  box-sizing: border-box;

  text-align: center;
  text-decoration: none;

  padding: 0.8rem 1rem;
  margin-top: 0.75rem;

  border-radius: 8px;

  font-weight: bold;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.view-basket-button {
  background: #FFD700;
  color: #000;
}

.checkout-button {
  background: #2F4F4F;
  color: #fff;
}

.view-basket-button::before,
.checkout-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );

  transform: skewX(-20deg);
  pointer-events: none;
}

.view-basket-button:hover::before,
.checkout-button:hover::before {
  animation: shimmer 0.7s ease-in-out 3 alternate;
}

.mini-basket-item {
  margin-bottom: 1rem;
}

.mini-basket-item-name {
  margin: 0;
}

.mini-basket-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.mini-basket-line-total {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2F4F4F;
  white-space: nowrap;
}

.mini-basket-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quantity-minus,
.quantity-plus {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  background: #FFD700;
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
}

.quantity-number {
  min-width: 1.5rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #2F4F4F;
}

body {
  overflow-x: hidden;

  display: grid;

  grid-template-columns:
    minmax(180px, 20%)
    minmax(0, 1fr);

  grid-template-rows:
    auto
    1fr
    auto;

  grid-template-areas:
    "header header"
    "sidebar content"
    "footer footer";

  gap: var(--space-5);

  padding: var(--space-5);

  min-height: 100vh;

  font-family: 'Barlow', sans-serif;

  background: linear-gradient(
      90deg,
  #D9A8B0 0%,
  #E6C0BE 30%,
  #EBD6C5 65%,
  #F7E8D5 100%
  );
  
background: linear-gradient(
  90deg,
  hsl(random(325, 355) random(40%, 65%) random(50%, 75%)) 0%,
  hsl(random(340, 360) random(35%, 60%) random(65%, 85%)) 30%,
  hsl(random(10, 40) random(35%, 60%) random(75%, 90%)) 65%,
  hsl(random(25, 50) random(40%, 70%) random(85%, 97%)) 100%
);
}

.header,
.sidebar {
  position: relative;

  background:
    linear-gradient(
      135deg,
      #3b2630 0%,
      #693947 55%,
      #8c5360 100%
    );

  overflow: hidden;

  box-shadow:
    0 8px 30px rgba(59, 38, 48, 0.16);
}

.header::before,
.sidebar::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 35%
    ),

    linear-gradient(
      120deg,
      transparent 40%,
      rgba(255, 215, 160, 0.08),
      transparent 70%
    );

  pointer-events: none;

  z-index: 1;
}


.header > *,
.sidebar > * {
  position: relative;
  z-index: 2;
}


@keyframes zoomIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  border-radius: var(--radius-3);
  min-height: 500px;
  padding:
    var(--space-5)
    var(--space-3);
}

.sidebar-main, .sidebar-products {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-main {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sidebar-products {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.sidebar.show-products .sidebar-main {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.sidebar.show-products .sidebar-products {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Desktop product-menu close X: outside the navigation-link styles */
.sidebar .close-products {
  align-self: flex-end;
  width: auto;
  padding: 0;
  margin: 0 0 var(--space-2-5) 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 30px;
  font-weight: normal;
  line-height: 1;
  color: #333;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-products:hover {
  background: transparent;
  color: #000;
  transform: scale(1.2);
  box-shadow: none;
}

.sidebar a {
  width: 100%;
}

.sidebar-main a,
.sidebar-products a,
.mobile-left a,
.mobile-products a {
  display: block;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  color: #0B0B45;
  padding: var(--space-3);
  border-radius: var(--radius-2);
  cursor: pointer;
}

.sidebar-menu-wrapper {
  width: 100%;
  margin-top: var(--space-5);
}

/* Shimmer shared by both main menus and product links */
.sidebar-main a::before,
.sidebar-main button::before,
.sidebar-products a::before,
.mobile-left a::before,
.mobile-left button::before,
.mobile-products a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
    rgba(255, 225, 225, 0) 0%,
    rgba(255, 225, 225, 0.5) 50%,
    rgba(255, 225, 225, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}

.sidebar-main a:hover::before,
.sidebar-main button:hover::before,
.sidebar-products a:hover::before,
.mobile-left a:hover::before,
.mobile-left button:hover::before,
.mobile-products a:hover::before {
  animation: shimmer 0.7s ease-in-out 3 alternate;
}

/* Main-menu links and buttons: same red 3D appearance as product pages */
.sidebar-main a,
.sidebar-main button,
.mobile-left a,
.mobile-left button {
  background: linear-gradient(180deg,
    #ff795b 0%, #fa4725 55%, #d93617 100%);
  box-shadow:
    0 5px 0 #a92c12,
    0 8px 14px rgba(0, 0, 0, 0.25),
    inset 0 2px 2px rgba(255, 255, 255, 0.35);
}

.sidebar-main a:hover,
.sidebar-main button:hover,
.mobile-left a:hover,
.mobile-left button:hover {
  background: linear-gradient(180deg,
    #ffc0a8 0%, #f59473 55%, #dc7352 100%);
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 #a92c12,
    0 12px 18px rgba(0, 0, 0, 0.3),
    inset 0 2px 2px rgba(255, 255, 255, 0.35);
}

.sidebar-main a.selected,
.sidebar-main a.selected:hover,
.sidebar-main button.selected,
.sidebar-main button.selected:hover,
.mobile-left a.selected,
.mobile-left a.selected:hover,
.mobile-left button.selected,
.mobile-left button.selected:hover {
  background: linear-gradient(180deg,
    #ffd0c5 0%, #f0a696 55%, #cd8173 100%);
}

.sidebar-main a:active,
.sidebar-main button:active,
.mobile-left a:active,
.mobile-left button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #a92c12, 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Product links: orange, with yellow selected state */
.sidebar-products a,
.mobile-products a {
  background: linear-gradient(180deg,
    #ffca57 0%, #ffa500 55%, #db8300 100%);
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
  padding: var(--space-2-5);
  box-shadow:
    0 5px 0 #a86600,
    0 8px 14px rgba(0, 0, 0, 0.25),
    inset 0 2px 2px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-products a:hover,
.mobile-products a:hover {
  background: linear-gradient(180deg,
    #ffe9a0 0%, #ffd147 55%, #e6ad2f 100%);
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 #a86600,
    0 12px 18px rgba(0, 0, 0, 0.3),
    inset 0 2px 2px rgba(255, 255, 255, 0.35);
}

.sidebar-products a.selected,
.sidebar-products a.selected:hover,
.mobile-products a.selected,
.mobile-products a.selected:hover {
  background: linear-gradient(180deg,
    #ffffa3 0%, #ffff00 55%, #d4c900 100%);
}

.sidebar-products a:active,
.mobile-products a:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #a86600, 0 3px 6px rgba(0, 0, 0, 0.2);
}

@keyframes shimmer {
  0% { left: -75%; }
  100% { left: 125%; }
}

.content {
  grid-area: content;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding:
    clamp(2rem, 5vw, 5rem);
  overflow: hidden;
}

.heart {
  color: red;
  font-size: 0.8em;
}

.welcome-card {
  position: relative;

  width: min(900px, 100%);

  padding:
    clamp(2rem, 5vw, 5rem);

  background:
    rgba(255, 252, 248, 0.78);

  backdrop-filter: blur(8px);

  border:
    1px solid
    rgba(255, 255, 255, 0.8);

  border-radius: 1.5rem;

  box-shadow:
    0 18px 50px
    rgba(82, 50, 59, 0.12);

  overflow: hidden;
}

.welcome-card::before {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  right: -150px;
  top: -150px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(188, 104, 123, 0.15),
      transparent 70%
    );

  pointer-events: none;
}

.welcome-card .welcome-kicker {
  margin: 0 0 var(--space-3);

  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.8rem, 2vw, 1.5rem);
  font-weight: 700;

  letter-spacing: 0.30em;
  text-transform: uppercase;

  position: relative;

  background: linear-gradient(
    110deg,
    #9a5b69 0%,
    #9a5b69 42%,
    #f3c8cf 48%,
    #ffffff 50%,
    #f3c8cf 52%,
    #9a5b69 58%,
    #9a5b69 100%
  );

  background-size: 250% 100%;
  background-position: 100% 0;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: textWave 8s ease-in-out infinite;
}

@keyframes textWave {
  0%,
  55% {
    background-position: 100% 0;
  }

  85% {
    background-position: 0% 0;
  }

  100% {
    background-position: 0% 0;
  }
}


.welcome-card h2 {
  margin:
    0
    0
    var(--space-6);

  color: #56333f;

  font-family: 'Lexend Peta', sans-serif;

  font-size:
    clamp(1.6rem, 3vw, 2.6rem);

  line-height: 1.25;
}


.welcome-card p {
  max-width: 760px;

  color: #4e4543;

  font-size:
    clamp(1.05rem, 1.5vw, 1.25rem);

  line-height: 1.8;

  letter-spacing: 0.01em;
}


.welcome-lead {
  font-size:
    clamp(1.1rem, 1.7vw, 1.35rem) !important;

  color: #443a39 !important;
}

.welcome-card h2.discover-heading {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

.welcome-divider {
  display: flex;

  align-items: center;

  justify-content: center;

  margin:
    var(--space-8)
    0
    var(--space-5);
}


.welcome-divider span {
  display: block;

  width: 80px;
  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #b06e7d,
      transparent
    );
}


.welcome-signoff {
  text-align: center;

  font-family:
    'Lexend Peta',
    sans-serif;

  color: #7f4b58 !important;

  font-size:
    clamp(1rem, 2vw, 1.25rem) !important;
}

.site-footer {
  grid-area: footer;

  display: grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: var(--space-6);

  padding:
    var(--space-6)
    var(--space-8);

  margin-top: var(--space-3);

  background:
    #35262b;

  color:
    rgba(255, 255, 255, 0.85);

  border-radius: var(--radius-3);
}


.footer-brand {
  display: flex;

  flex-direction: column;

  gap: 0.2rem;
}


.footer-brand strong {
  font-family:
    'Lexend Peta',
    sans-serif;

  color: #fff;

  font-size: 0.85rem;
}


.footer-brand span {
  font-size: var(--text-sm);

  color:
    rgba(255, 255, 255, 0.65);
}


.footer-links {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap:
    var(--space-3)
    var(--space-6);
}


.footer-links a {
  color:
    rgba(255, 255, 255, 0.8);

  text-decoration: none;

  font-size: var(--text-sm);

  transition:
    color 0.25s ease;
}


.footer-links a:hover {
  color: #f3c8cf;
}


.footer-copyright {
  margin: 0;

  color:
    rgba(255, 255, 255, 0.55);

  font-size: var(--text-xs);
}

.contact-card {
  position: relative;

  width: min(550px, 100%);

  padding:
    clamp(2rem, 5vw, 3.5rem);

  background:
    rgba(255, 252, 248, 0.97);

  border:
    1px solid
    rgba(255, 255, 255, 0.8);

  border-radius: 1.5rem;

  box-shadow:
    0 20px 60px
    rgba(35, 20, 26, 0.3);

  font-family: "Barlow", sans-serif;
}


/* =========================================
   AFRO OASIS - EXPAND AND FLIP MODAL
   ========================================= */

/* Full-screen overlay */
.afro-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: var(--space-5);
    box-sizing: border-box;

    background: rgba(35, 20, 26, 0.55);
    backdrop-filter: blur(6px);

    perspective: 800px;
    z-index: 20000;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

/* Opening */
.afro-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* The flipping square */
.afro-flip-card {
    position: relative;

    width: min(90vw, 550px, 85dvh);
    aspect-ratio: 1 / 1;

    transform-style: preserve-3d;

    scale: 0.2;
    transform: rotateY(0deg);
}

/* Opening animation */
.afro-overlay.open .afro-flip-card {
    animation:
        expandSquare 1.1s ease-out forwards,
        flipSquare 1.4s ease-in-out 0.6s forwards;
}

/* Front and back faces */
.afro-card-front,
.afro-card-back {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    box-sizing: border-box;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    border-radius: 1.5rem;
}

/* Front: Afro Oasis logo */
.afro-card-front {
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 252, 248, 0.97);
    overflow: hidden;
}

.afro-card-front img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* Back: Existing Contact Us content */
.afro-card-back.contact-card {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    transform: rotateY(180deg);

    overflow-y: auto;
    overflow-x: hidden;
}

/* Expand */
@keyframes expandSquare {
    from {
        scale: 0.2;
    }

    to {
        scale: 1;
    }
}

/* Flip right to left */
@keyframes flipSquare {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-180deg);
    }
}


/* =========================================
   CLOSING ANIMATION
   ========================================= */

/* Keep visible, then fade out */
.afro-overlay.closing {
    opacity: 1;
    visibility: visible;

    animation:
        fadeOverlayOut 0.5s ease-in 1.5s forwards;
}

/* Reverse flip and shrink */
.afro-overlay.closing .afro-flip-card {
    scale: 1;
    transform: rotateY(-180deg);

    animation:
        shrinkSquare 1.1s ease-in 0.9s forwards,
        flipSquareBack 1.4s ease-in-out forwards;
}

/* Shrink logo almost to nothing */
@keyframes shrinkSquare {
    from {
        scale: 1;
    }

    to {
        scale: 0.001;
    }
}

/* Flip back to logo */
@keyframes flipSquareBack {
    from {
        transform: rotateY(-180deg);
    }

    to {
        transform: rotateY(0deg);
    }
}

/* Fade dark overlay */
@keyframes fadeOverlayOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.contact-close {
  position: absolute;

  top: 1rem;
  right: 1rem;

  background: none;
  border: none;

  color: #573440;

  font-size: 2rem;
  line-height: 1;

  cursor: pointer;

  padding: 0.25rem 0.5rem;
}


.contact-close:hover {
  color: #fa4725;
  transform: scale(1.1);
}


.contact-kicker {
  margin:
    0
    0
    var(--space-3);

  color: #9a5b69;

  font-family:
    "IBM Plex Mono",
    monospace;

  font-size: 0.9rem;
  font-weight: 700;

  letter-spacing: 0.25em;

  text-transform: uppercase;
}


.contact-card h2 {
  margin:
    0
    0
    var(--space-5);

  color: #56333f;

  font-family:
    "Lexend Peta",
    sans-serif;

  font-size:
    clamp(1.5rem, 4vw, 2.3rem);

  line-height: 1.25;
}


.contact-card p {
  color: #4e4543;

  font-size:
    clamp(1rem, 1.5vw, 1.15rem);

  line-height: 1.7;
}


.contact-details {
  margin-top: var(--space-6);

  padding: var(--space-5);

  background:
    rgba(244, 211, 177, 0.3);

  border-radius:
    var(--radius-3);
}


.contact-details p {
  margin: 0;
}


.contact-details a {
  color: #8c5360;

  font-weight: 600;

  text-decoration: none;
}


.contact-details a:hover {
  text-decoration: underline;
}


body.modal-open {
  overflow: hidden;
}

.copy-email-button {
  margin-top: var(--space-3);

  padding:
    var(--space-2)
    var(--space-4);

  background: #fa4725;

  color: #fff;

  border: none;

  border-radius: var(--radius-2);

  font-family: "Barlow", sans-serif;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.copy-email-button:hover {
  background: #d93b1e;
  transform: translateY(-2px);
}

.copy-email-button:active {
  transform: translateY(0);
}

.copy-email-message {
  margin-top: var(--space-2);

  color: #573440;

  font-size: 0.9rem;

  font-weight: 600;
}


button {
  font-family: inherit;
  padding: var(--space-3);
  border: none;
  border-radius: var(--radius-2);
  cursor: pointer;
  font-size: var(--text-base);
  position: relative;
  overflow: hidden;
  color: #0B0B45;
}

.sidebar-main button,
.mobile-left button {
  width: 100%;
}

.burger-icon {
  display: none;
  position: absolute;
  top: var(--space-2-5);
  left: var(--space-2-5);
  cursor: pointer;
  z-index: 1100;
  font-size: 3rem;
  background: none;
  border: none;
  color: #333;
}

.burger-icon svg {
  width: 40px;
  height: 40px;
}

.burger-icon .line {
  fill: #333;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;

  transform-origin: 50px 50px;
}

.burger-icon.open .top {
  transform: rotate(45deg) translate(7px, 7px);
}

.burger-icon.open .middle {
  opacity: 0;
}

.burger-icon.open .bottom {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: var(--space-5);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: var(--space-5);
  position: absolute;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 18.75rem;
  max-width: 25rem;
  z-index: 1000;
}

/* Left section in the mobile menu */
.mobile-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2-5);
}

/* Product links in the mobile menu (initially hidden) */
.mobile-products {
  display: none;
  flex-direction: column;
  gap: var(--space-2-5);
}

.mobile-menu button {
  padding: var(--space-2-5);
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu.open {
  display: flex;
}

img {
  max-width: 100%;
  height: auto;
}

button, p, h1, h2, h3, h4, h5, h6 {
  max-width: 100%;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  
  .header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 30% 40% 30%;
    grid-template-areas:
      "burger . basket"
      "logo title title"
      ". . .";

    align-items: center;
    row-gap: 0.75rem;
    min-height: clamp(8rem, 22vw, 10rem);
    padding: var(--space-3);
	 box-sizing: border-box;
    overflow: visible;
	width: 100%;
  }
  
.burger-icon {
  grid-area: burger;
  display: block;
  position: static;
  transform: translateY(-3px);
  justify-self: start;
  align-self: start;
}
  
.header-basket {
  grid-area: basket;
  justify-self: end;
  align-self: start;
  margin-right: var(--space-2);
}
  
.logo {
    grid-area: logo;
    position: static;
    height: clamp(2.2rem, 6vw, 3.5rem);
    width: auto;
    max-width: none;
    min-width: 0;
  }
  
.sidebar {
  display: none;
}
  
.title {
  grid-area: title;
  margin: 0;
  text-align: center;
  justify-self: center;
  align-self: center;

  white-space: normal;
  line-height: 0.9;

  font-size: clamp(2rem, 8vw, 4rem);
  max-width: 100%;
  overflow-wrap: break-word;
}
  
 .mobile-left a,
 .mobile-left button,
 .mobile-products a {
   font-size: var(--text-base);
   border-radius: var(--radius-1);
   width: 80%;
   margin: 0 auto;
   transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

body {
    display: flex;
    flex-direction: column;
    padding: var(--space-2-5);
    gap: var(--space-2-5);
  }
  
  .content {
  padding: var(--space-4) var(--space-2);
}

.welcome-card {
  padding: var(--space-6) var(--space-5);
  border-radius: 1rem;
}

.welcome-card h2 {
  font-size: clamp(1.45rem, 6vw, 2.2rem);
}

.welcome-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

  .welcome-card .welcome-kicker {
  font-size: clamp(0.9rem, 2.2vw, 1.5rem);
  }
  
.site-footer {
  grid-template-columns: 1fr;
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.footer-brand {
  align-items: center;
}

.footer-links {
  gap: var(--space-3) var(--space-5);
}

.footer-copyright {
  text-align: center;
}
}

@media (max-width: 480px) {
  .header {
    padding: var(--space-2);
  }

  .basket-icon {
    font-size: 1.2rem;
    padding: var(--space-1) var(--space-2);
  }
}


/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {

    .afro-overlay.open .afro-flip-card {
        animation: none;
        scale: 1;
        transform: rotateY(-180deg);
    }

    .afro-overlay.closing .afro-flip-card {
        animation: none;
        scale: 0.001;
        transform: rotateY(0deg);
    }

    .afro-overlay.closing {
        animation: none;
        opacity: 0;
    }
}