html,
body {
  font-size: 62.5%;
}

/* URW Geometric Ext Regular */
@font-face {
  font-family: "URW Geometric Ext";
  src: url("../fonts/URWGeometricExt-Regular.woff2") format("woff2"),
    url("../fonts/URWGeometricExt-Regular.woff") format("woff"),
    url("../fonts/URWGeometricExt-Regular.ttf") format("truetype"),
    url("../fonts/URWGeometricExt-Regular.eot");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* URW Geometric Ext Black */
@font-face {
  font-family: "URW Geometric Ext";
  src: url("../fonts/URWGeometricExt-Black.woff2") format("woff2"),
    url("../fonts/URWGeometricExt-Black.woff") format("woff"),
    url("../fonts/URWGeometricExt-Black.ttf") format("truetype"),
    url("../fonts/URWGeometricExt-Black.eot");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --text-color: #333333;
  --accent: #22c55e;
  --margin-section: 10rem;
  --cursor-color: #8a9a5b;
}

body {
  font-size: 1.6rem;
  font-family: "URW Geometric Ext";
  color: var(--text-color);
  line-height: 1;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 4rem 5.2rem;
  z-index: 99;
  transition: padding 0.3s;
}

.header.scroll {
  padding: 0;
}

.header__container {
  background: #fff;
  width: 100%;
  position: relative;
  padding: 0 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  transition: border-radius 0.3s, box-shadow 0.3s;
  justify-content: space-between;
}

.header.scroll .header__container {
  border-radius: 0;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
    rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

.header__container > nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header__container > nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.header__container > nav > ul > li {
  padding: 0 1.5rem;
}

.header__container > nav > ul > li > a {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 900;
  position: relative;
  transition: color 0.3s;
}

.header__container > nav > ul > li > a:hover {
  color: var(--accent);
}

.header__container > nav > ul > li:not(:last-child) > a::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  right: -2rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #cccccc;
}

.search-tgl,
.wishlist-btn {
  background: transparent;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: var(--text-color);
  transition: 0.3s;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.search-tgl:hover,
.wishlist-btn:hover {
  color: var(--accent);
}

.search-tgl .bx,
.wishlist-btn .bx {
  font-size: 2.2rem;
  color: inherit;
}

.header__options {
  display: flex;
  align-items: center;
  gap: 3rem;
}

#cart > button {
  background-color: transparent;
  padding: 0;
  border: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: 0.3s;
  color: var(--text-color);
  box-shadow: none;
}

#cart > button:hover {
  color: var(--accent);
}

#cart > button .bx {
  font-size: 2.2rem;
  color: inherit;
}

#cart-total {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e94328;
  position: absolute;
  top: -0.8rem;
  left: 1.2rem;
}

#cart > .dropdown-menu {
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  left: unset;
  min-width: 48rem;
  margin: 0;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 0.3s;
  float: none;
  display: block;
  box-shadow: 0 5px 25px #00000040;
}

#cart.open > .dropdown-menu {
  transform: translateX(0%);
}

/* Your drawer */
#cart > .dropdown-menu.mini-cart {
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  left: unset;
  width: 48rem;
  margin: 0;
  border: none;
  border-radius: 0;
  display: block;
  overflow: hidden; /* important */
  box-shadow: 0 0.5rem 2.5rem rgba(0, 0, 0, 0.25);

  /* keep your slide-in */
  transform: translateX(100%);
  transition: transform 0.3s;
}

#cart.open > .dropdown-menu {
  transform: translateX(0%);
}

/* Whole panel layout */
.mini-cart__panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: radial-gradient(
      circle at 20% 0%,
      rgba(46, 164, 79, 0.12),
      transparent 45%
    ),
    radial-gradient(circle at 90% 10%, rgba(31, 122, 58, 0.1), transparent 40%),
    linear-gradient(180deg, #f6fbf6 0%, #ffffff 35%, #ffffff 100%);
}

/* Header */
.mini-cart__header {
  flex: 0 0 auto;
  padding: 1.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(1.2rem);
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.mini-cart__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: max-content;
}

.mini-cart__titleText {
  font-size: 1.8rem;
  font-weight: 900;
}

.mini-cart__count {
  font-size: 1.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999rem;
  background: rgba(46, 164, 79, 0.1);
  border: 0.1rem solid rgba(46, 164, 79, 0.16);
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Close button */
.mini-cart__close {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 1.5rem;
  background-color: transparent;
  padding: 0;
  border: none;
  display: flex;
}

.mini-cart__close .bx {
  font-size: 2.1rem;
}

/* Scrollable body */
.mini-cart__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 1.2rem;
}

/* Footer anchored at bottom */
.mini-cart__footer {
  flex: 0 0 auto;
  padding: 1.6rem 1.2rem;
  border-top: 0.1rem solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(1.2rem);
}

.mini-cart__items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Item card */
.mini-cart__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 0.1rem solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1.8rem 4.5rem rgba(0, 0, 0, 0.1);
}

.mini-cart__meta {
  flex: 2;
}

.mini-cart__name {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.2;
  color: #111;
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
  padding-right: 1.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.mini-cart__name:hover {
  color: var(--accent);
}

.mini-cart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}

.mini-cart__qty {
  font-size: 1.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999rem;
  background: rgba(0, 0, 0, 0.05);
  border: 0.1rem solid rgba(0, 0, 0, 0.06);
}

.mini-cart__price {
  font-size: 1.8rem;
  font-weight: 900;
}

/* Remove button: clean + not screaming */
.mini-cart__remove {
  position: static; /* no absolute */
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 0.1rem solid rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.mini-cart__remove i {
  font-size: 1.6rem; /* boxicons size */
  line-height: 1;
}
.mini-cart__totals {
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  background: rgba(0, 0, 0, 0.03);
  border: 0.1rem solid rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.mini-cart__totalRow {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  font-size: 1.4rem;
}

.mini-cart__totalLabel {
  opacity: 0.75;
  font-weight: 700;
}
.mini-cart__totalValue {
  font-weight: 900;
}

.mini-cart__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.mini-cart__btn {
  border-radius: 1.8rem;
  padding: 1.2rem 1.2rem;
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.mini-cart__btn:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.14);
  border-color: rgba(46, 164, 79, 0.28);
}

.mini-cart__btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

.mini-cart__btn--primary {
  background: linear-gradient(135deg, #1f7a3a, #2ea44f);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1.8rem 4.5rem rgba(46, 164, 79, 0.25);
}

.mini-cart__btn--primary:hover {
  color: #fff;
}

.mini-cart__btn--secondary:hover {
  color: #111;
}

.mini-cart__note {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  text-align: center;
}

.mini-cart__empty {
  margin: auto; /* centers within the scroll area */
  width: 100%;
  padding: 2rem;
  text-align: center;

  /* the “designed card” feeling */
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 0.1rem solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.1);
}

/* icon bubble */
.mini-cart__emptyIcon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  margin: 0 auto 1.4rem;
  background: radial-gradient(
    circle at 30% 30%,
    #ffffff,
    rgba(46, 164, 79, 0.08)
  );
  border: 0.1rem solid rgba(46, 164, 79, 0.14);
  box-shadow: 0 1.2rem 3rem rgba(46, 164, 79, 0.14);
}

/* title + text (bring them closer, less “floating”) */
.mini-cart__emptyTitle {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.mini-cart__emptyText {
  margin: 0 auto 1.6rem;
  max-width: 34rem;
  font-size: 1.25rem;
  line-height: 1.5;
  opacity: 0.75;
}

/* button: bring it up + make it feel “CTA” */
.mini-cart__ghostBtn {
  border-radius: 1.8rem;
  padding: 1.2rem 1.2rem;
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.08);
  color: #000;
  transition: all 0.3s;
}

.mini-cart__ghostBtn:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.14);
  border-color: rgba(46, 164, 79, 0.28);
}

.mini-cart__ghostBtn:active {
  transform: translateY(0);
}

/* ===============================
   MINI CART SCROLLBAR (DESKTOP)
   =============================== */

.mini-cart__body {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(46, 164, 79, 0.45) transparent;
}

/* Webkit (Chrome, Safari, Edge) */
.mini-cart__body::-webkit-scrollbar {
  width: 0.8rem; /* slim but usable */
}

.mini-cart__body::-webkit-scrollbar-track {
  background: transparent; /* let gradient show */
  margin: 0.6rem 0; /* breathing room top/bottom */
}

.mini-cart__body::-webkit-scrollbar-thumb {
  border-radius: 999rem;
  background: linear-gradient(
    180deg,
    rgba(46, 164, 79, 0.35),
    rgba(31, 122, 58, 0.55)
  );
  border: 0.2rem solid transparent; /* makes it feel softer */
  background-clip: content-box;
}

/* Hover = slightly more confident */
.mini-cart__body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(46, 164, 79, 0.55),
    rgba(31, 122, 58, 0.75)
  );
}

/* slideshow */

.slideshow {
  position: relative;
}

.slideshow .swiper-button-next,
.slideshow .swiper-button-prev {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
  background-image: none;
  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
  top: unset;
  left: unset;
  right: unset;
  bottom: unset;
  margin-top: 0;
}

.slideshow .swiper-button-prev::after,
.slideshow .swiper-button-next::after {
  content: "";

  border: solid black;
  border-width: 0 0.1rem 0.1rem 0;
  display: inline-block;
  padding: 0.6rem;
}

.slideshow .swiper-button-prev::after {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  position: relative;
  left: 0.3rem;
}

.slideshow .swiper-button-next::after {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  position: relative;
  right: 0.3rem;
}

.slide__small-heading {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.slideshow .swiper-pager {
  position: absolute;
  bottom: 3rem;
  right: 17rem;
  display: flex;
  flex-direction: row-reverse;
  gap: 1rem;
  z-index: 20;
}

.slide__content {
  position: absolute;
  bottom: 11.5rem;
  right: 17rem;
  background-color: #f0f0f0;
  max-width: 45rem;
  width: 100%;
  border-radius: 1rem;
  padding: 3rem;
}

.slide__content > div {
  max-width: 36rem;
  margin: auto;
}

.slide__content > div > h2 {
  font-weight: 900;
  font-size: 3rem;
  margin-bottom: 2rem;
  margin-top: 0;
  color: #111;
}

.slide__content > div > a {
  font-size: 1.6rem;
  background-color: #000;
  padding: 1.5rem 3rem;
  border-radius: 999rem;
  display: inline-block;
  color: #fff;
  transition: all 0.3s;
  display: flex;
  gap: 1rem;
  align-items: first baseline;

  width: max-content;
}

.slide__content > div > a .bx {
  font-size: 1.8rem;
}

.slide__content > div > a:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.14);
}

/* shop by category */

.categories {
  margin-top: var(--margin-section);
}

.section-heading {
  text-align: center;
  font-weight: 900;
  font-size: 3rem;
  margin-bottom: 4rem;
  margin-top: 0;

  color: transparent;
  background-image: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--accent) 40%,
    #000 60%,
    #000 100%
  );
  background-position: 100%;
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;

  transition: background-position 2.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-heading.animate-fill {
  background-position: 0;
}

.categories__list {
  display: grid;
  grid-template-columns: repeat(5, 21.5rem);
  justify-content: center;
  gap: 9rem;
}

.categories__list--item > a > span:nth-child(1) {
  border-radius: 50%;
  display: block;
  height: 21.5rem;
  background-repeat: no-repeat;
  background-position: center;

  background-attachment: scroll;
  background-size: cover;
  background-color: #f4f4f4;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;

  background-blend-mode: multiply;
}

.categories__list--item > a > span:nth-child(2) {
  font-size: 1.7rem;
  color: #000;
  display: block;
  margin-top: 3rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.3s;
}

.categories__list--item > a:hover > span:nth-child(1) {
  background-color: var(--accent);
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.categories__list--item > a:hover > span:nth-child(2) {
  color: var(--accent);
}

/* bestsellers */

.homepage__products {
  background: #71bf4452;
  padding: 10rem;
  margin-top: var(--margin-section);
}

.homepage__products > .row {
  max-width: 144rem;
  margin: auto;
}

.product-layout {
  padding: 0 1.6rem;
}

.product-thumb > .image {
  border-radius: 2rem;
  background-color: #fff;
}

.product-thumb > .image img {
  border-radius: 2rem;
}

.product-thumb > .caption > h4 {
  margin: 2rem auto;
  text-align: center;
  max-width: 21.5rem;
  min-height: 4rem;
}

.product-thumb > .caption > h4 > a {
  font-size: 1.7rem;
  color: #000;
  line-height: 1.2;
}

.product-thumb > .caption > .price {
  text-align: center;
  font-size: 1.7rem;
  color: #000;
  line-height: 1.2;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.product-thumb > .caption > .price > .price-old {
  text-decoration: line-through;
}

.product-thumb > .button-group {
  display: none;
}

/* container for both images */
.product-thumb .image {
  position: relative;
  overflow: hidden;
}

/* Only animate when a second image exists */
.product-image.has-hover .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-image.has-hover .img-main {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hover effect ONLY applies if .has-hover exists */
.product-thumb:hover .product-image.has-hover .img-main,
.product-layout:hover .product-image.has-hover .img-main {
  opacity: 0;
  transform: scale(0.95);
}

.product-thumb:hover .product-image.has-hover .img-hover,
.product-layout:hover .product-image.has-hover .img-hover {
  opacity: 1;
  transform: scale(1);
}

/* brands */

#carousel0 {
  margin: var(--margin-section) 0;
}

/* reviews */
.reviews {
  margin: var(--margin-section) auto;
  position: relative;
}

.reviews__swiper {
  max-width: 114rem;
  margin: auto;
  padding: 0 1.5rem;
}

.review-card {
  text-align: center;
}

.review-card {
  font-size: 2rem;
  line-height: 1.2;
  max-width: 75rem;
  margin: auto;
}

.review-card > span {
  font-size: 2rem;
  display: block;
  text-align: center;
  margin-top: 3.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.reviews__swiper {
  position: relative;
  padding-top: 5rem;
}

.reviews__arrow--next,
.reviews__arrow--prev {
  padding: 0;
  border: none;
  background-color: transparent;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reviews__arrow--next .bx,
.reviews__arrow--prev .bx {
  font-size: 4.4rem;
}

.reviews__arrow--next {
  right: 0;
}

.reviews__arrow--prev {
  left: 0;
}

.reviews-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.reviews-top .bx {
  font-size: 3.8rem;
}

/* footer */
footer {
  margin-top: var(--margin-section);
  max-width: 185rem;
  padding: 0 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 19rem;
  margin-bottom: 3.5rem;
}

.footer__bottom {
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom > p {
  font-size: 2rem;
  color: #111;
}

.footer__bottom > p > a {
  color: #111;
  font-weight: 900;
  transition: color 0.3s;
}

.footer__bottom > p > a:hover {
  color: var(--accent);
}

.footer__column > h4 {
  font-size: 2rem;
  font-weight: 900;
  color: #111;
}

.footer__column > ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

.footer__column > ul > li {
  padding: 1rem 0;
}

.footer__column > ul > li > a {
  color: #111;
  font-size: 2rem;
  display: inline-block;
  transition: color 0.3s;
}

.footer__column > ul > li > a:hover {
  color: var(--accent);
}
