/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  user-select: none;
  -webkit-user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;

  background: #ffffff;
  color: #171717;

  line-height: 1.6;

  overflow-x: hidden;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}


/* =========================================
   DARK MODE
========================================= */

body.dark-mode {
  background: #101210;
  color: #ffffff;
}

body.dark-mode header {
  background: #141714;
  border-bottom-color: #303530;
}

body.dark-mode nav a {
  color: #eeeeee;
}

body.dark-mode .category-card,
body.dark-mode .empty-category,
body.dark-mode .side-panel,
body.dark-mode .cart-item,
body.dark-mode .liked-item,
body.dark-mode .product-card {
  background: #181b18;
  color: #ffffff;

  border-color: #303530;
}

body.dark-mode .hero-text,
body.dark-mode .section-description,
body.dark-mode .category-description,
body.dark-mode .about-text,
body.dark-mode .category-card p,
body.dark-mode .empty-message,
body.dark-mode .product-description,
body.dark-mode .product-features {
  color: #aaaaaa;
}

body.dark-mode .close-panel {
  background: #292d29;
  color: #ffffff;
}

body.dark-mode footer {
  border-color: #303530;
}

body.dark-mode .product-gallery {
  background: #121512;
  border-color: #303530;
}

body.dark-mode .gallery-main {
  background: #151815;
}

body.dark-mode .gallery-thumbnail {
  background: #1c201c;
  border-color: #343a34;
}

body.dark-mode .gallery-thumbnail:hover,
body.dark-mode .gallery-thumbnail.active {
  border-color: #159947;
}

body.dark-mode .gallery-arrow {
  background: rgba(20, 23, 20, 0.92);
  color: #ffffff;
}


/* =========================================
   HEADER
========================================= */

header {
  width: 100%;
  min-height: 76px;

  padding: 10px 5%;

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

  gap: 24px;

  position: sticky;
  top: 0;

  z-index: 100;

  background: rgba(255, 255, 255, 0.96);

  border-bottom: 1px solid #e4e7e4;
}


/* =========================================
   MAVRENX TEXT LOGO
========================================= */

.logo-text {
  color: #159947;

  font-size: 24px;

  font-weight: 900;

  letter-spacing: 2px;

  white-space: nowrap;

  flex-shrink: 0;

  pointer-events: none;
}


/* =========================================
   NAVIGATION
========================================= */

nav {
  display: flex;

  align-items: center;

  gap: 26px;
}

nav a {
  color: #444444;

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;
}

nav a:hover {
  color: #159947;
}


/* =========================================
   HEADER BUTTONS
========================================= */

.header-actions {
  display: flex;

  align-items: center;

  gap: 8px;
}

.like-button,
.cart-button,
.theme-button {
  min-height: 40px;

  padding: 8px 12px;

  border: 1px solid #159947;

  border-radius: 8px;

  background: transparent;

  color: #159947;

  font-weight: bold;

  cursor: pointer;
}

.like-button:hover,
.cart-button:hover,
.theme-button:hover {
  background: #159947;

  color: #ffffff;
}


/* =========================================
   HERO
========================================= */

.hero {
  min-height: 580px;

  padding: 85px 7%;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  align-items: center;
}

.tag {
  color: #159947;

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2.5px;

  margin-bottom: 15px;
}

h1 {
  font-size: clamp(50px, 7vw, 95px);

  line-height: 0.98;

  margin-bottom: 25px;
}

h2 {
  font-size: clamp(38px, 5vw, 65px);

  line-height: 1.05;
}

h1 span,
h2 span {
  color: #159947;
}

.hero-text {
  max-width: 530px;

  margin-bottom: 28px;

  color: #747474;
}

.main-button {
  display: inline-block;

  padding: 13px 22px;

  border: none;

  border-radius: 8px;

  background: #159947;

  color: #ffffff;

  text-decoration: none;

  font-weight: bold;

  font-size: 15px;

  cursor: pointer;
}

.main-button:hover {
  background: #107c39;
}


/* =========================================
   HERO ART
========================================= */

.hero-art {
  display: flex;

  justify-content: center;

  align-items: center;
}

.hero-shape {
  width: 330px;
  height: 330px;

  border-radius: 36% 64% 55% 45%;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    radial-gradient(
      circle at 30% 25%,
      #35cc6f,
      transparent 35%
    ),
    #159947;

  color: #ffffff;

  font-size: 25px;

  font-weight: 900;

  letter-spacing: 5px;

  box-shadow:
    0 25px 70px rgba(21, 153, 71, 0.22);
}


/* =========================================
   SECTIONS
========================================= */

.categories,
.shop,
.category-section,
.about {
  padding: 85px 7%;

  border-top:
    1px solid rgba(120, 120, 120, 0.15);
}


/* =========================================
   CATEGORIES
========================================= */

.category-grid {
  margin-top: 42px;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}

.category-card {
  display: block;

  padding: 28px;

  border: 1px solid #e2e7e3;

  border-radius: 15px;

  background: #f7f9f7;

  color: #171717;

  text-decoration: none;

  cursor: pointer;

  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);

  border-color: #159947;

  box-shadow:
    0 15px 35px rgba(21, 153, 71, 0.08);
}

.category-icon {
  display: block;

  font-size: 38px;

  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 21px;

  margin-bottom: 5px;
}

.category-card p {
  color: #747474;
}


/* =========================================
   CATEGORY SECTIONS
========================================= */

.category-heading {
  display: flex;

  align-items: center;

  gap: 20px;

  margin-bottom: 28px;
}

.big-icon {
  font-size: 45px;
}

.category-description {
  margin-top: 8px;

  color: #747474;
}

.category-products {
  margin-top: 25px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}


/* =========================================
   SHOP
========================================= */

.section-description {
  margin-top: 20px;

  color: #747474;
}

.product-grid {
  margin-top: 35px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.empty-category {
  min-height: 100px;

  padding: 30px;

  border: 1px solid #e2e7e3;

  border-radius: 12px;

  display: flex;

  align-items: center;

  background: #f7f9f7;

  color: #777777;
}


/* =========================================
   PRODUCT CARD
========================================= */

.product-card {
  grid-column: 1 / -1;

  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(320px, 0.9fr);

  align-items: stretch;

  border: 1px solid #e2e7e3;

  border-radius: 20px;

  overflow: hidden;

  background: #ffffff;

  box-shadow:
    0 12px 38px rgba(0, 0, 0, 0.06);
}


/* =========================================
   PRODUCT GALLERY
========================================= */

.product-gallery {
  min-width: 0;

  padding: 22px;

  background: #f7f9f7;

  border-right: 1px solid #e2e7e3;
}

.gallery-main {
  position: relative;

  width: 100%;

  aspect-ratio: 1 / 1;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  border-radius: 16px;

  background: #ffffff;
}

.gallery-main-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  padding: 10px;

  display: block;
}


/* =========================================
   GALLERY ARROWS
========================================= */

.gallery-arrow {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  z-index: 5;

  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(0, 0, 0, 0.08);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.92);

  color: #171717;

  font-size: 34px;

  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12);

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

.gallery-arrow:hover {
  background: #159947;

  color: #ffffff;
}

.gallery-left {
  left: 14px;
}

.gallery-right {
  right: 14px;
}


/* =========================================
   GALLERY THUMBNAILS
========================================= */

.gallery-thumbnails {
  margin-top: 14px;

  display: grid;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: 8px;
}

.gallery-thumbnail {
  width: 100%;

  aspect-ratio: 1 / 1;

  padding: 3px;

  overflow: hidden;

  border: 2px solid transparent;

  border-radius: 9px;

  background: #ffffff;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.gallery-thumbnail:hover {
  border-color: #80c99b;

  transform: translateY(-2px);
}

.gallery-thumbnail.active {
  border-color: #159947;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  border-radius: 5px;
}


/* =========================================
   PRODUCT INFORMATION
========================================= */

.product-info {
  min-width: 0;

  padding: 38px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}

.product-info .tag {
  margin-bottom: 10px;
}

.product-title {
  margin-bottom: 16px;

  font-size:
    clamp(28px, 3vw, 40px);

  line-height: 1.08;
}

.product-description {
  margin-bottom: 20px;

  color: #686868;

  font-size: 16px;

  line-height: 1.75;
}


/* =========================================
   PRODUCT FEATURES
========================================= */

.product-features {
  margin: 0 0 22px 20px;

  color: #555555;
}

.product-features li {
  margin-bottom: 7px;

  padding-left: 3px;
}

.product-features li::marker {
  color: #159947;
}


/* =========================================
   PRODUCT PRICE
========================================= */

.product-price {
  margin-top: 4px;

  color: #159947;

  font-size: 32px;

  font-weight: 900;

  letter-spacing: -0.5px;
}


/* =========================================
   PRODUCT ACTIONS
========================================= */

.product-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 20px;
}

.product-actions .main-button {
  min-width: 150px;

  text-align: center;
}

.product-actions .like-button {
  min-width: 110px;
}

.product-actions .like-button.liked {
  background: #159947;

  color: #ffffff;
}


/* =========================================
   ABOUT
========================================= */

.about-text {
  max-width: 720px;

  margin-top: 25px;

  color: #747474;
}


/* =========================================
   SIDE PANELS
========================================= */

.side-panel {
  position: fixed;

  top: 0;
  right: -500px;

  width: min(430px, 92vw);

  height: 100vh;

  padding: 75px 25px 30px;

  background: #ffffff;

  color: #171717;

  z-index: 3000;

  overflow-y: auto;

  box-shadow:
    -10px 0 35px rgba(0, 0, 0, 0.18);

  transition: right 0.28s ease;
}

.side-panel.active {
  right: 0;
}

.side-panel h2 {
  font-size: 32px;

  margin-bottom: 25px;
}


/* =========================================
   X BUTTON
========================================= */

.close-panel {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: #ededed;

  color: #111111;

  font-size: 29px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;
}

.close-panel:hover {
  background: #159947;

  color: #ffffff;
}


/* =========================================
   CART / LIKES
========================================= */

.cart-item,
.liked-item {
  display: flex;

  gap: 15px;

  padding: 16px 0;

  border-bottom: 1px solid #dddddd;
}

.cart-item img,
.liked-item img {
  width: 90px;

  height: 90px;

  border-radius: 8px;

  object-fit: contain;

  background: transparent;
}

.cart-item-info,
.liked-info {
  flex: 1;
}

.cart-item h3,
.liked-item h3 {
  font-size: 16px;

  margin-bottom: 4px;
}

.cart-price {
  color: #159947;

  font-weight: bold;
}


/* =========================================
   QUANTITY
========================================= */

.quantity-controls {
  margin-top: 12px;

  display: flex;

  align-items: center;

  gap: 10px;
}

.quantity-controls button {
  width: 36px;
  height: 36px;

  border: 1px solid #159947;

  border-radius: 6px;

  background: transparent;

  color: #159947;

  font-size: 21px;

  font-weight: bold;

  cursor: pointer;
}

.quantity-controls button:hover {
  background: #159947;

  color: #ffffff;
}

.quantity-controls span {
  min-width: 25px;

  text-align: center;

  font-weight: bold;
}

.remove-item {
  margin-top: 10px;

  padding: 0;

  border: none;

  background: transparent;

  color: #d34848;

  font-weight: bold;

  cursor: pointer;
}


/* =========================================
   CART TOTAL
========================================= */

.cart-total {
  margin-top: 25px;

  padding-top: 20px;
}

.cart-total strong {
  display: block;

  margin: 5px 0 18px;

  color: #159947;

  font-size: 25px;
}

.checkout-button {
  width: 100%;

  padding: 14px;

  border: none;

  border-radius: 8px;

  background: #159947;

  color: #ffffff;

  font-weight: bold;

  cursor: pointer;
}

.checkout-button:hover {
  background: #107c39;
}


/* =========================================
   NOTIFICATION BACKGROUND
========================================= */

.notification-overlay {
  position: fixed;

  inset: 0;

  display: none;

  align-items: center;

  justify-content: center;

  width: 100%;
  height: 100%;

  padding: 20px;

  background:
    rgba(0, 0, 0, 0.78);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  z-index: 9999;
}


/* =========================================
   NOTIFICATION POPUP
========================================= */

.notification-modal {
  position: relative;

  width: min(580px, 100%);

  padding:
    55px 40px 40px;

  background: #151815;

  color: #ffffff;

  border:
    1px solid #343b35;

  border-radius: 24px;

  text-align: center;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.7);
}

.notification-big-icon {
  width: 90px;
  height: 90px;

  margin: 0 auto 24px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #203b29;

  border: 1px solid #2b5638;

  border-radius: 50%;

  font-size: 42px;
}

.notification-modal h2 {
  margin-bottom: 17px;

  font-size:
    clamp(30px, 5vw, 40px);

  line-height: 1.1;
}

.notification-modal h2 span {
  color: #159947;
}

.notification-modal p {
  max-width: 465px;

  margin: 0 auto 30px;

  color: #b6bbb6;

  font-size: 16px;

  line-height: 1.7;
}


/* =========================================
   ENABLE NOTIFICATIONS
========================================= */

.enable-notifications-button {
  width: 100%;

  min-height: 54px;

  padding: 15px 20px;

  border: none;

  border-radius: 10px;

  background: #159947;

  color: #ffffff;

  font-size: 16px;

  font-weight: bold;

  cursor: pointer;
}

.enable-notifications-button:hover {
  background: #107c39;
}


/* =========================================
   NOT NOW
========================================= */

.not-now-button {
  width: 100%;

  min-height: 50px;

  margin-top: 11px;

  padding: 13px 20px;

  border: 1px solid #3b413c;

  border-radius: 10px;

  background: transparent;

  color: #d7dad7;

  font-size: 15px;

  font-weight: bold;

  cursor: pointer;
}

.not-now-button:hover {
  background: #252925;
}


/* =========================================
   NOTIFICATION X
========================================= */

.notification-close {
  position: absolute;

  top: 16px;
  right: 16px;

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: none;

  border-radius: 50%;

  background: #252925;

  color: #ffffff;

  font-size: 28px;

  cursor: pointer;
}

.notification-close:hover {
  background: #159947;
}


/* =========================================
   MAVRENX FOOTER
========================================= */

footer {
  padding: 55px 7%;

  text-align: center;

  border-top:
    1px solid #dddddd;
}

.footer-logo {
  color: #159947;

  font-size: 25px;

  font-weight: 900;

  letter-spacing: 2px;

  margin-bottom: 8px;
}

footer > p {
  opacity: 0.65;
}

.footer-links {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  align-items: center;

  gap: 12px 24px;

  max-width: 900px;

  margin: 26px auto;
}

.footer-links a {
  color: inherit;

  text-decoration: none;

  opacity: 0.7;

  font-size: 14px;

  font-weight: 600;

  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.footer-links a:hover {
  color: #159947;

  opacity: 1;
}

footer small {
  display: block;

  margin-top: 12px;

  opacity: 0.5;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  header {
    flex-wrap: wrap;

    padding: 10px 4%;
  }

  .logo-text {
    font-size: 20px;
  }

  nav {
    order: 3;

    width: 100%;

    justify-content: center;

    gap: 18px;

    padding-top: 5px;
  }

  nav a {
    font-size: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .like-button,
  .cart-button,
  .theme-button {
    padding: 7px 9px;

    font-size: 12px;
  }

  .hero {
    min-height: auto;

    grid-template-columns: 1fr;

    padding: 65px 7%;
  }

  .hero-art {
    display: none;
  }

  .category-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .product-grid,
  .category-products {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    border-right: none;

    border-bottom:
      1px solid #e2e7e3;
  }

  .gallery-main {
    max-height: 620px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 520px) {

  .category-grid {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-start;

    overflow-x: auto;

    padding-bottom: 4px;
  }

  .side-panel {
    width: 92vw;
  }

  .categories,
  .shop,
  .category-section,
  .about {
    padding: 65px 6%;
  }

  .category-heading {
    align-items: flex-start;
  }

  .product-card {
    border-radius: 15px;
  }

  .product-gallery {
    padding: 12px;
  }

  .gallery-main {
    border-radius: 12px;
  }

  .gallery-main-image {
    padding: 4px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;

    font-size: 28px;
  }

  .gallery-left {
    left: 8px;
  }

  .gallery-right {
    right: 8px;
  }

  .gallery-thumbnails {
    gap: 5px;
  }

  .gallery-thumbnail {
    padding: 2px;

    border-radius: 7px;
  }

  .product-info {
    padding: 24px 20px;
  }

  .product-title {
    font-size: 28px;
  }

  .product-description {
    font-size: 15px;
  }

  .product-features {
    font-size: 14px;
  }

  .product-price {
    font-size: 29px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .main-button,
  .product-actions .like-button {
    width: 100%;

    min-height: 48px;
  }

  .notification-overlay {
    padding: 15px;
  }

  .notification-modal {
    padding:
      48px 22px 26px;

    border-radius: 20px;
  }

  .notification-big-icon {
    width: 74px;
    height: 74px;

    font-size: 34px;
  }

  .notification-modal h2 {
    font-size: 29px;
  }

  .notification-modal p {
    font-size: 14px;
  }

  footer {
    padding:
      45px 20px;
  }

  .footer-links {
    flex-direction: column;

    gap: 14px;
  }

  .footer-links a {
    font-size: 15px;
  }

}
