/* Berry Business - main styles
   Change the colour variables below to adjust the site's theme. */
:root {
  --ink: #243447;
  --muted: #718094;
  --teal: #178d80;
  --teal-dark: #11776d;
  --mint: #e8f7f4;
  --pale-blue: #edf5fc;
  --line: #e1e8ee;
  --white: #ffffff;
  --footer: #202b39;
  --radius: 14px;
  --shadow: 0 5px 20px rgba(34, 54, 74, 0.06);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #f6f5f3;
  font-family:
    Roboto,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    Oxygen,
    Ubuntu,
    Cantarell,
    Fira Sans,
    Droid Sans,
    Helvetica Neue,
    sans-serif;
  font-weight: 600;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
.site-header {
  max-width: 1240px;
  margin: auto;
  padding: 18px 28px;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}
.brand img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  border-radius: 6px;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: auto;
}
.main-nav a {
  color: #536173;
  font-size: 13px;
  padding: 8px 0;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--teal);
}
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 34px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
}
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 350px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(110deg, #eef8fc, #f5fbfd 62%, #e9f4f0);
}
.hero-copy {
  padding: 48px 12px 42px 46px;
  align-self: center;
  position: relative;
  z-index: 1;
}
.eyebrow,
.section-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 10px;
  font-weight: 700;
  margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
}
.hero-description {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button {
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.button-primary {
  background: var(--teal);
  color: white;
}
.button-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}
.button-outline {
  background: rgba(255, 255, 255, 0.7);
  border-color: #b7c8d6;
  color: var(--ink);
}
.button-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.hero-art {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 0 0;
}
.hero-art img {
  width: 100%;
  max-height: 325px;
  object-fit: contain;
}
.section {
  padding: 38px 0 4px;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.section-kicker {
  display: none;
}
.section-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.text-link {
  color: #586b7e;
  font-size: 12px;
  white-space: nowrap;
}
.text-link span {
  margin-left: 5px;
  color: var(--teal);
}
.category-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  width: 100%;
  /*template-columns: repeat(7, minmax(0, 1fr));*/
  gap: 12px;
  scroll-behavior: smooth;
}
.category-card {
  flex: 0 0 calc((100% - 36px) / 5);
  border: 1px solid #edf1f5;
  background: var(--pale-blue);
  border-radius: 9px;
  padding: 12px 8px 10px;
  min-width: 0;
  text-align: center;
  color: var(--ink);
  transition: 0.2s;
}
.category-card:hover,
.category-card.selected {
  border-color: #a4dcd4;
  background: #e6f6f3;
  transform: translateY(-2px);
}
.category-art {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.category-art img {
  max-width: 100%;
  width: 100%;
  height: 86px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.category-card strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.category-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -4px 0 15px;
}
.shop-controls select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.product-count {
  color: var(--muted);
  font-size: 12px;
}
.search-row {
  margin: 0 0 15px;
}
.search-row label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.search-row input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 8px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.product-card {
  min-width: 0;
  border: 1px solid #e7edf2;
  border-radius: 10px;
  padding: 10px;
  background: white;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-image-wrap {
  height: 145px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfdfe;
  border-radius: 7px;
  overflow: hidden;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stock-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9px;
  background: #e2f7ed;
  color: #27805c;
}
.stock-badge.sold-out {
  background: #fff0e9;
  color: #a44b2b;
}
.product-card h3 {
  font-size: 12px;
  line-height: 1.35;
  margin: 10px 0 4px;
}
.product-description {
  color: var(--muted);
  font-size: 10px;
  margin: 0 0 8px;
  min-height: 30px;
}
.product-price {
  font-size: 15px;
  font-weight: 800;
  margin: auto 0 10px;
}
.product-actions {
  display: grid;
  gap: 6px;
}
.product-actions .button {
  border-radius: 5px;
  min-height: 33px;
  padding: 7px 5px;
  font-size: 10px;
  width: 100%;
}
.product-actions .button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.empty-message {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}
.load-more {
  display: flex;
  margin: 22px auto 0;
}
.benefits {
  margin: 35px 0 36px;
  background: #f0f8fb;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px;
}
.benefits article {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 15px;
}
.benefits article + article {
  border-left: 1px solid #dce7ed;
}
.benefit-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  background: #d9f1f4;
  border-radius: 50%;
  font-size: 23px;
}
.benefits h3 {
  margin: 0 0 3px;
  font-size: 12px;
}
.benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.site-footer {
  background: var(--footer);
  color: #589ce0;
  padding: 38px max(28px, calc((100% - 1184px) / 2)) 20px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.1fr 0.6fr;
  gap: 35px;
  padding-bottom: 28px;
}
.footer-brand {
  font-size: 17px;
}
.footer-brand img {
  width: 31px;
  height: 31px;
}
.footer-about > p {
  max-width: 270px;
  color: #c0cad4;
  font-size: 11px;
  margin-top: 16px;
}
.footer-main h3 {
  font-size: 12px;
  margin: 3px 0 13px;
}
.footer-main > div:not(:first-child) > a,
.footer-main p {
  display: block;
  color: #c0cad4;
  font-size: 11px;
  margin: 8px 0;
}
.footer-main a:hover {
  color: white;
}
.social-links {
  display: flex !important;
  gap: 12px;
}
.social-links a {
  color: white !important;
  font-size: 16px !important;
}
.footer-bottom {
  border-top: 1px solid #3a4551;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #aeb9c4;
  font-size: 10px;
}
.tagline {
  font-style: italic;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .site-header {
    gap: 18px;
    padding-inline: 20px;
  }
  main {
    padding-inline: 20px;
  }
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-image-wrap {
    height: 175px;
  }
  .footer-main {
    grid-template-columns: 1.2fr 1fr;
  }
}
@media (max-width: 650px) {
  .site-header {
    padding: 13px 16px;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    font-size: 17px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }
  .header-actions {
    gap: 7px;
  }
  .header-actions .icon-button {
    font-size: 20px;
    min-width: 24px;
  }
  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    margin: 0;
    padding: 10px 0 2px;
    justify-content: space-between;
    gap: 10px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    font-size: 12px;
  }
  main {
    padding-inline: 14px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 28px 22px 10px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero-art {
    padding: 0 10px 10px;
    min-height: 175px;
  }
  .hero-art img {
    max-height: 220px;
  }
  .desktop-break {
    display: none;
  }
  .section {
    padding-top: 30px;
  }
  .section-heading {
    margin-bottom: 15px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .text-link {
    font-size: 10px;
  }
  .category-grid {
    display: flex;
    overflow-x: auto;
    padding: 2px 1px 10px;
    scroll-snap-type: x mandatory;
  }
  .category-card {
    flex: 0 0 112px;
    scroll-snap-align: start;
  }
  .category-art {
    height: 78px;
  }
  .category-art img {
    height: 74px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-card {
    padding: 8px;
  }
  .product-image-wrap {
    height: 135px;
  }
  .product-card h3 {
    font-size: 12px;
  }
  .product-description {
    font-size: 10px;
  }
  .product-price {
    font-size: 14px;
  }
  .product-actions .button {
    font-size: 9px;
  }
  .benefits {
    grid-template-columns: 1fr;
    padding: 8px 15px;
    margin: 28px 0;
  }
  .benefits article {
    padding: 12px 0;
  }
  .benefits article + article {
    border-left: 0;
    border-top: 1px solid #dce7ed;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 25px 18px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* Shopping cart navigation icon and item count */
.cart-link {
  position: relative;
  text-decoration: none;
}
#cart-count {
  position: absolute;
  top: -2px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #90ee90;
  color: #24552a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Light-green Add to Cart button, matched to the existing product buttons */
.product-actions .add-to-cart {
  background: #90ee90;
  color: #24552a;
  border: 1px solid #90ee90;
  border-radius: 5px;
  min-height: 33px;
  padding: 7px 5px;
  font-size: 10px;
  font-weight: 700;
  width: 100%;
}
.product-actions .add-to-cart:hover {
  background: #7dde7d;
  border-color: #7dde7d;
}
.product-actions .add-to-cart:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-actions .add-to-cart svg {
  flex-shrink: 0;
}

/* Cart page */
.cart-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 28px 60px;
}
.cart-page h1 {
  margin: 0 0 8px;
  font-size: 30px;
}
.cart-intro {
  color: var(--muted);
  margin: 0 0 24px;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.cart-list {
  display: grid;
  gap: 12px;
}
.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fbfdfe;
  border-radius: 7px;
}
.cart-item h2 {
  margin: 0 0 4px;
  font-size: 15px;
}
.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.cart-item-price {
  font-weight: 700;
  color: var(--ink) !important;
  margin-top: 5px !important;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}
.cart-item-controls button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  min-width: 30px;
  min-height: 30px;
}
.cart-item-controls .remove-item {
  width: auto;
  padding: 0 9px;
  color: #a33;
  font-size: 12px;
}
.cart-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  position: sticky;
  top: 16px;
}
.cart-summary h2 {
  margin: 0 0 16px;
  font-size: 18px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-weight: 800;
}
.cart-checkout {
  width: 100%;
  margin-top: 16px;
  background: #25a366;
  color: white;
  border: 0;
}
.cart-checkout:hover {
  background: #1e8754;
}
.cart-continue {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal-dark);
  font-size: 13px;
}
.cart-empty {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.cart-empty h2 {
  color: var(--ink);
  margin-top: 0;
}
@media (max-width: 700px) {
  .cart-page {
    padding: 26px 14px 42px;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .cart-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .cart-item img {
    width: 68px;
    height: 68px;
  }
  .cart-item-price-side {
    grid-column: 2;
  }
}
/* Pagination container */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px auto;
}

/* All pagination buttons */
#pagination .pagination-button {
  width: 25px;
  height: 25px;
  border: none !important;
  border-radius: 50% !important;

  background: #ffffff;
  color: #333333;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.3s ease;
}

/* Current page */
#pagination .pagination-button[aria-current="page"] {
  background: #c74728 !important;
  color: #ffffff !important;
}

/* Hover */
#pagination .pagination-button:hover:not([aria-current="page"]) {
  background: #f8e9e4;
  color: #c74728;
}

/* Mobile */
@media (max-width: 480px) {
  #pagination {
    gap: 8px;
  }

  #pagination .pagination-button {
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
}
