
:root {
  --green: #104b38;
  --green-dark: #0b3528;
  --red: #a51c2b;
  --teal: #009f98;
  --cream: #f7f4ec;
  --ink: #222722;
  --muted: #777e78;
  --line: #e6e2d8;
  --white: #fff;
  --footer: #101010;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

/* TOP ANNOUNCEMENT */

.announcement {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 8px 15px;
  font-size: 11px;
  letter-spacing: .08em;
}

/* HEADER */

.site-header {
  max-width: 1500px;
  margin: auto;
  padding: 12px 4%;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  width: 155px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: 62px;
  object-fit: contain;
}

.searchbar {
  display: flex;
  flex: 1;
  max-width: 550px;
  height: 46px;
  margin-left: auto;
  border: 1px solid #deded9;
  border-radius: 5px;
  overflow: hidden;
}

.searchbar input {
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  border: 0;
  outline: none;
  background: white;
}

.searchbar button {
  width: 52px;
  border: 0;
  background: var(--teal);
  color: white;
  font-size: 27px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-action {
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.cart-button b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-size: 11px;
}

/* NAVIGATION */

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  padding: 13px 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  transition: color .2s;
}

.main-nav a:hover,
.main-nav .nav-active {
  color: var(--teal);
}

/* SLIDER */

.rissala-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f3f0e8;
  aspect-ratio: 2148 / 330;
  min-height: 220px;
  isolation: isolate;
}

.rissala-slides,
.rissala-slide {
  position: absolute;
  inset: 0;
}

.rissala-slide {
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}

.rissala-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.rissala-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rissala-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  border: 0;
  border-radius: 5px;
  background: #ffffffb8;
  color: #222;
  font-size: 42px;
  line-height: 1;
  transition: .2s;
}

.rissala-arrow:hover {
  color: white;
  background: var(--red);
}

.rissala-arrow.prev {
  left: 12px;
}

.rissala-arrow.next {
  right: 12px;
}

.rissala-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 30px;
  background: #ffffffa8;
}

.rissala-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #999;
  transition: .25s;
}

.rissala-dot.active {
  width: 24px;
  background: var(--red);
}

/* BENEFITS */

.benefits {
  width: 91%;
  max-width: 1300px;
  margin: auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.benefits > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.benefits > div > span {
  color: var(--red);
  font-size: 25px;
}

.benefits p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.benefits b {
  font-size: 12px;
}

.benefits small {
  color: var(--muted);
  font-size: 10px;
}

/* GENERAL SECTIONS */

.section {
  width: 91%;
  max-width: 1300px;
  margin: 75px auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

.section-heading h2,
.newsletter h2 {
  margin: 9px 0;
  font: 500 clamp(30px, 3vw, 42px)/1.15 Georgia, serif;
  letter-spacing: -.03em;
}

.section-heading p,
.newsletter p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 0;
}

.under-link {
  padding-bottom: 5px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.under-link:hover {
  color: var(--red);
}

/* CATEGORY CARDS */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  text-align: left;
  transition: .2s;
}

.category-card:hover {
  border-color: #a2b8a9;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #0000000b;
}

.cat-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #e8eee5;
  color: var(--green);
  font-size: 23px;
}

.category-card strong {
  font: 21px Georgia, serif;
}

.category-card small {
  color: var(--muted);
  font-size: 11px;
}

.category-card .cat-arrow {
  position: absolute;
  right: 18px;
  bottom: 20px;
  color: var(--red);
}

/* PROMO SECTION */

.promo-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  width: 91%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 7%;
  border-radius: 8px;
  background: var(--green);
  color: white;
}

.promo-strip .eyebrow {
  color: #e7c98d;
}

.promo-strip h2 {
  margin: 12px 0;
  font: 40px/1.2 Georgia, serif;
}

.promo-strip p {
  max-width: 520px;
  color: #d6e1d9;
  font-size: 13px;
}

.promo-symbol {
  position: absolute;
  top: -55px;
  right: 10%;
  color: #ffffff13;
  font: 210px Georgia, serif;
  pointer-events: none;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--green);
  color: white;
}

.btn-dark:hover {
  background: var(--green-dark);
}

.btn-light {
  background: white;
  color: var(--green);
}

/* PRODUCTS */

.product-controls {
  display: flex;
  gap: 8px;
}

.product-controls select {
  max-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font-size: 11px;
}

.active-filter {
  margin: -10px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  transition: .2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px #0000000c;
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  height: 215px;
  padding: 20px;
  background: #f5f4ef;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--red);
  color: white;
  font-size: 9px;
}

.favorite-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #888;
  font-size: 18px;
}

.favorite-btn.active {
  color: var(--red);
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.product-category {
  color: var(--red);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 7px 0;
  font: 18px/1.3 Georgia, serif;
}

.product-info p {
  color: var(--muted);
  font-size: 11px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  color: var(--green);
  font-size: 15px;
  font-weight: bold;
}

.add-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: white;
  font-size: 22px;
}

.add-btn:hover {
  background: var(--red);
}

.no-results {
  padding: 35px;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none !important;
}

/* NEWSLETTER */

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 5%;
  background: var(--cream);
}

.newsletter > div {
  max-width: 600px;
}

.newsletter h2 {
  font-size: 32px;
}

.newsletter form {
  display: flex;
  gap: 8px;
  width: min(470px, 48%);
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ddd8ce;
  border-radius: 5px;
  background: white;
}

/* FOOTER */

.footer {
  background: var(--footer);
  color: #f5f5f5;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.65fr .9fr 1.1fr 1.1fr;
  gap: 32px;
  max-width: 1500px;
  margin: auto;
  padding: 55px 5%;
}

.footer-brand,
.footer-column {
  min-width: 0;
}

.footer-brand {
  padding-right: 25px;
}

.footer-brand img {
  display: block;
  width: 185px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
}

/* For a logo with a transparent background */
.footer-brand h3 {
  margin: 0 0 12px;
  color: white;
  font: 20px/1.4 Georgia, serif;
}

.footer-brand p {
  color: #c7c7c7;
  font-size: 13px;
  line-height: 1.9;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding-left: 25px;
  border-left: 2px solid #bdbdbd;
}

.footer-column h3 {
  margin: 0 0 9px;
  color: white;
  font-size: 19px;
}

.footer-column > a {
  color: #d0d0d0;
  font-size: 13px;
  line-height: 1.6;
  transition: color .2s;
}

.footer-column > a:hover {
  color: #e7c98d;
}

.footer-column p {
  margin: 0;
  color: #c9c9c9;
  font-size: 13px;
  line-height: 1.9;
}

.footer-column p a {
  color: white;
  font-weight: bold;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 22px;
  font-weight: bold;
  transition: .2s;
}

.social-links a:hover {
  border-color: var(--teal);
  background: var(--teal);
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 5px;
  background: #18c86e;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold;
}

.whatsapp-cta:hover {
  background: #0ca85a;
}

.whatsapp-icon {
  font-size: 18px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 5%;
  border-top: 1px solid #393939;
  color: #d1d1d1;
  text-align: center;
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

/* FLOATING WHATSAPP */

.floating-whatsapp {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #20ce70;
  box-shadow: 0 4px 15px #0002;
  transition: transform .2s, background .2s;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  background: #0eae59;
}

.floating-whatsapp svg {
  width: 31px;
  height: 31px;
  fill: white;
}

/* CART DRAWER */

.overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #102018b3;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.overlay.open,
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  z-index: 51;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(450px, 100%);
  height: 100dvh;
  padding: 25px;
  background: white;
  transform: translateX(102%);
  transition: transform .25s;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 5px 0 0;
  font: 30px Georgia, serif;
}

.close-btn {
  border: 0;
  background: transparent;
  color: #777;
  font-size: 30px;
}

.cart-items {
  flex: 1;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 64px;
  height: 68px;
  object-fit: contain;
  background: #f5f4ef;
}

.cart-line strong {
  display: block;
  font: 16px Georgia, serif;
}

.cart-line small {
  color: var(--muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.qty-controls button {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
}

.remove-line {
  border: 0;
  background: transparent;
  color: var(--red);
}

.cart-footer {
  padding-top: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.cart-total strong {
  font-size: 20px;
}

.checkout-btn {
  width: 100%;
}

.cart-footer > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.empty-cart {
  padding: 50px 10px;
  color: var(--muted);
  text-align: center;
}

/* MODAL */

.modal-overlay {
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-box {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
  border-radius: 9px;
  background: white;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
}

.modal-box h2 {
  margin: 10px 0;
  font: 30px Georgia, serif;
}

.modal-box p {
  color: var(--muted);
  font-size: 13px;
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.modal-form label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: bold;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 25px;
  left: 50%;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: .25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* TABLET */

@media (max-width: 1000px) {
  .site-header {
    gap: 16px;
  }

  .brand {
    width: 120px;
  }

  .main-nav {
    gap: 22px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .footer-brand {
    padding-right: 10px;
  }

  .footer-column {
    padding-left: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* MOBILE */

@media (max-width: 650px) {
  .announcement {
    font-size: 10px;
  }

  .site-header {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    padding: 10px 4%;
  }

  .brand {
    width: 90px;
  }

  .brand img {
    height: 48px;
  }

  .header-actions {
    justify-self: end;
    gap: 7px;
  }

  .text-action {
    font-size: 0;
  }

  .text-action::first-letter {
    font-size: 19px;
  }

  .cart-button {
    gap: 4px;
    padding: 6px;
    font-size: 11px;
  }

  .cart-button span {
    display: none;
  }

  .searchbar {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    height: 42px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 12px 5%;
    white-space: nowrap;
  }

  .main-nav a {
    font-size: 11px;
  }

  .rissala-slider {
    aspect-ratio: 2148 / 420;
    min-height: 155px;
  }

  .rissala-arrow {
    width: 30px;
    height: 42px;
    font-size: 30px;
  }

  .rissala-arrow.prev {
    left: 5px;
  }

  .rissala-arrow.next {
    right: 5px;
  }

  .rissala-dots {
    bottom: 6px;
    gap: 6px;
    padding: 5px 8px;
  }

  .rissala-dot {
    width: 6px;
    height: 6px;
  }

  .rissala-dot.active {
    width: 17px;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
    padding: 22px 0;
  }

  .benefits > div {
    gap: 8px;
  }

  .benefits > div > span {
    font-size: 19px;
  }

  .benefits b {
    font-size: 10px;
  }

  .benefits small {
    font-size: 9px;
  }

  .section {
    margin: 50px auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .category-card {
    min-height: 145px;
    padding: 14px;
  }

  .category-card strong {
    font-size: 17px;
  }

  .category-card small {
    font-size: 9px;
  }

  .cat-icon {
    width: 37px;
    height: 37px;
    font-size: 20px;
  }

  .promo-strip {
    padding: 34px 7%;
  }

  .promo-strip h2 {
    font-size: 29px;
  }

  .promo-symbol {
    right: 2%;
    font-size: 130px;
  }

  .product-controls {
    width: 100%;
  }

  .product-controls select {
    flex: 1;
    min-width: 0;
    max-width: 50%;
    font-size: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-image {
    height: 155px;
    padding: 12px;
  }

  .product-info {
    padding: 11px;
  }

  .product-info h3 {
    font-size: 15px;
  }

  .product-info p {
    font-size: 10px;
  }

  .price {
    font-size: 12px;
  }

  .add-btn {
    width: 32px;
    height: 32px;
  }

  .newsletter {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 5%;
  }

  .newsletter h2 {
    font-size: 27px;
  }

  .newsletter form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter input {
    min-height: 44px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
    padding: 36px 5%;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding: 0;
  }

  .footer-brand img {
    width: 160px;
    height: 70px;
  }

  .footer-brand h3 {
    font-size: 19px;
  }

  .footer-column {
    padding-left: 12px;
    border-left-width: 1px;
    gap: 11px;
  }

  .footer-column h3 {
    font-size: 15px;
  }

  .footer-column > a,
  .footer-column p {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .contact-column {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    gap: 5px;
    flex-direction: column;
    font-size: 10px;
  }

  .floating-whatsapp {
    right: 13px;
    bottom: 13px;
    width: 48px;
    height: 48px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }

  .modal-box {
    padding: 27px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
