: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;
}

.header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-8);
  position: relative;
  background-image: url("/images/ruby-hibiscus-tea-still-life.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.logo {
  grid-area: 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);
}

.basket-count.bump {
  transform: scale(1.3);
}

.flying-basket {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 24px;
}

.basket-pop {
  animation: basketPop 0.35s ease;
}

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

  50% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

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

  width: 320px;
  height: 100vh;
  overflow-y: auto;
  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: 20% 1fr 220px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header header"
    "sidebar content right-sidebar";
  background: linear-gradient(45deg, #6AD2E1, #a4e0d3, #4F718B);
  gap: var(--space-5);
  padding: var(--space-5);
  min-height: 100vh;
  font-family: 'Barlow', sans-serif;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

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

.content {
  grid-area: content;
  background: inherit;
  padding: var(--space-5);
  padding-bottom: clamp(12rem, 30vh, 25rem);
  border-radius: var(--radius-2);
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

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

.sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  position: relative;
  overflow: visible;
  background: transparent;
}

.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;
}

.sidebar-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.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 overlay */
.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; /* Makes sure clicks go through */
}

/* Trigger shimmer animation on hover */
.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;
}

.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);
}

/* Main menu: raise on hover and retain the original hover colour */
.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);
}

/* Selected main-menu button (including while hovered) */
.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);
}

.right-sidebar {
  grid-area: right-sidebar;
  align-self: start;
  position: sticky;
  top: var(--space-5);
  background: rgba(255, 255, 255, 0.75);
  padding: var(--space-4);
  border-radius: var(--radius-3);
  box-sizing: border-box;
}

.right-sidebar h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: 1.1rem;
  color: #2F4F4F;
}

.right-sidebar .section-link {
  display: block;
  font-size: 1rem;
  text-decoration: none;
  color: #2F4F4F;
  background-color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2-5) var(--space-3);
  margin-bottom: var(--space-2-5);
  border-radius: var(--radius-2);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transform: translateX(0);
  transition:
    background-color 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.right-sidebar .section-link:hover {
  background-color: #dff7f3;
  transform: translateX(4px);
}

.right-sidebar .section-link.active {
  background-color: rgba(0, 0, 163, 0.08);
  color: #0000A3;
  font-weight: 600;
  transform: translateX(6px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-thumbnail-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.product-thumbnail-button {
  width: 100%;
  max-width: 150px;
  padding: var(--space-2);
  border: none;
  border-radius: var(--radius-3);
  background: rgba(255, 255, 255, 0.75);
  cursor: zoom-in;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-thumbnail-button:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.product-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2);
}

.add-to-basket-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  background-color: #FFD700;
  color: #0B0B45;
  font-weight: bold;
  font-size: var(--text-base);
  padding: var(--space-2-5) var(--space-3);
  border-radius: var(--radius-2);
  margin-bottom: var(--space-4);
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-to-basket-button:hover {
  background-color: #FFC107;
  transform: scale(1.03);
}

/* Shimmer overlay */
.add-to-basket-button::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; /* Makes sure clicks go through */
}

/* Trigger shimmer animation on hover */
.add-to-basket-button:hover::before {
  animation: shimmer 0.7s ease-in-out 3 alternate;
}

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

.add-to-basket-button i {
  font-size: 20px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.add-to-basket-button.spin {
  animation: spin 1s linear;
  display: inline-block;
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
}

.product-size {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1f3f3f;
  margin-top: 0.125rem;
}

.product-price {
  display: block;          
  text-align: center;
  font-size: var(--text-sm);
  font-weight: bold;
  color: #000;
  margin-top: 0.1rem;      
}

main h2 {
  scroll-margin-top: clamp(2rem, 6vw, 5rem);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #0000A3;

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

  letter-spacing: 0.3px;
  position: relative;
}

.footnote-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.8em;
  vertical-align: super;
  margin-left: 0.1rem;
}

.footnote-text {
  font-size: var(--text-sm);
  opacity: 0.8;
  font-style: italic;
}

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%;
}

.hibiscusDrink {
  position: relative;
  z-index: 1;
  width: 75%;
  height: auto;
  border: 5px solid #A03255;
  padding: 3px;
  background-color: #EEEE59;
  border-radius: 30px;
}

.hibiscusPlant {
  float: right;
  margin-left: auto;
}

.clear {
  clear: right;
}

.hibiscusPlant,
.simmeringPan {
  z-index: 1;
  position: relative;
  overflow: hidden;
  max-width: 520px;
  margin-top: var(--space-5);
  padding: var(--space-2);
  border-radius: var(--radius-3);
  background: rgba(255,255,255,0.28);
  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.25),
    0 6px 18px rgba(0,0,0,0.12);
  backdrop-filter: blur(4px);
}

.hibiscusPlant::before,
.simmeringPan::before {
  z-index: 2;
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top left,
      rgba(255,255,255,0.35),
      transparent 55%
    );

  pointer-events: none;
}

.hibiscusPlant img,
.simmeringPan img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-2);
}

.simmeringPan {
  margin-left: auto;
  margin-right: auto;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;

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

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);

  padding: 2rem;
}

.image-lightbox.hidden {
  display: none;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;

  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.45);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;

  font-size: 3rem;
  line-height: 1;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  z-index: 5001;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 3.5rem;
  height: 3.5rem;

  border: none;
  border-radius: 50%;
  
  background: rgba(80, 80, 80, 0.65);
  color: #ffffff;

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

  cursor: pointer;
  z-index: 5001;

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

.lightbox-arrow:hover {
  background: rgba(60, 60, 60, 0.8);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.image-lightbox.single-image .lightbox-arrow {
  display: none;
}

p {
  font-size: var(--text-lg);
  color: #2F4F4F;
}

/* Normal product buttons */
.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;
}

/* Hover product buttons */
.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);
}

/* Selected product buttons */
.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%
  );
}


/* Pressed product buttons */
.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);
}

.back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  background: #444;
  color: #ffffff;
  padding: var(--space-2-5) var(--space-4);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: var(--text-base);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: #222;
  transform: scale(1.1);
}

.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);
}

.nutrition-highlight {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);

  padding: var(--space-5);
  margin: var(--space-6) 0;

  border-left: 5px solid #0000A3;
  border-radius: var(--radius-3);

  max-width: 85%;
  margin-left: auto;

  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.nutrition-highlight h3 {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  color: #0000A3;
  margin-top: 0;
}

.nutrition-highlight p {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  color: #1f3f3f;
  line-height: 1.7;
}

.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 menu 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;
}

.mobile-add-to-basket {
  display: none;
  font-family: inherit;
}

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

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

.mobile-product-thumbnail-wrapper {
  display: none;
}

@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%;
  }
  
 .intro-text p{
   color: #1a2e2e; 
   font-size: 1.05rem;          /* slightly larger */
   line-height: 1.65;           /* more breathing room */
   letter-spacing: 0.2px;       /* subtle polish */
  }
  
  
 .intro-text p:first-of-type {
    font-size: 1.15rem;          /* hero paragraph */
    font-weight: 500;            /* slightly stronger */
  } 
  
.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, .right-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;
}
  
.mobile-add-to-basket {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;

  display: flex;
  flex-direction: column;  
  gap: var(--space-1);
  align-items: center;
  justify-content: center;
  
   width: auto;
  max-width: max-content;

  background-color: #FFD700;
  color: #000;
  font-weight: bold;
  padding: var(--space-2-5) var(--space-4);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  white-space: nowrap;
}
  
 .mobile-product-thumbnail-wrapper {
  display: flex;
  position: fixed;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 999;
}

.mobile-product-thumbnail-button {
  width: 4.5rem;
  padding: var(--space-1);
}
  
.hibiscusPlant,
.simmeringPan {
  float: none;
  max-width: 100%;
  margin: var(--space-5) auto;
  padding: var(--space-1);
}
  
.hibiscusPlant img,
  .simmeringPan img {
    max-height: 65vh;
    object-fit: cover;
    object-position: center;
  }

.simmeringPan img {
  max-height: 55vh;
}

.hibiscusDrink {
  width: 60%;
  max-width: 12.5rem;
  margin-top: var(--space-2-5);
}
  
body {
    display: flex;
    flex-direction: column;
    padding: var(--space-2-5);
    gap: var(--space-2-5);
  }
  
.back-to-top {
  display: none;
}
  
  .lightbox-prev {
    left: 0.75rem;
  }

  .lightbox-next {
    right: 0.75rem;
  }

  .lightbox-arrow {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 2.5rem;
  }
}

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

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