/* ==========================================
   CART SIDEBAR
========================================== */

.cart-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.38);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 9998;
}


/* Overlay Open */

.cart-overlay.show {
  opacity: 1;
  visibility: visible;
}


/* ==========================================
   SIDEBAR
========================================== */

.cart-sidebar {
  position: fixed;

  top: 0;
  right: 0;

  width: 480px;
  max-width: 100%;

  height: 100vh;

  background: #ffffff;

  display: flex;
  flex-direction: column;

  transform: translateX(100%);

  transition: transform 0.35s cubic-bezier(
    0.4,
    0,
    0.2,
    1
  );

  z-index: 9999;

  box-shadow:
    -10px 0 40px rgba(0, 0, 0, 0.12);
}


/* Sidebar Open */

.cart-sidebar.show {
  transform: translateX(0);
}


/* ==========================================
   HEADER
========================================== */

.cart-sidebar-header {

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  padding: 25px 25px 20px;

  border-bottom: 1px solid #e5ebe5;
}


.cart-sidebar-header h2 {

  margin: 0;

  color: #0b1f13;

  font-size: 28px;

  font-weight: 800;

  line-height: 1.2;
}


.cart-sidebar-header h2 span {

  color: #176b3e;

}


.cart-sidebar-header p {

  margin: 6px 0 0;

  color: #718077;

  font-size: 13px;
}


/* ==========================================
   CLOSE BUTTON
========================================== */

.cart-sidebar-close {

  flex-shrink: 0;

  width: 46px;
  height: 46px;

  border-radius: 50%;

  border: 2px solid #6d927a;

  background: #ffffff;

  color: #567261;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: all 0.2s ease;
}


.cart-sidebar-close:hover {

  background: #eef5ef;

  transform: rotate(90deg);
}


.cart-sidebar-close .material-symbols-outlined {

  font-size: 28px;
}


/* ==========================================
   BODY
========================================== */

.cart-sidebar-body {

  flex: 1;

  overflow-y: auto;

  padding: 20px;

  scrollbar-width: thin;

  scrollbar-color: #b7c9bb transparent;
}


.cart-sidebar-body::-webkit-scrollbar {

  width: 6px;
}


.cart-sidebar-body::-webkit-scrollbar-track {

  background: transparent;
}


.cart-sidebar-body::-webkit-scrollbar-thumb {

  background: #b7c9bb;

  border-radius: 10px;
}


/* ==========================================
   CART ITEM
========================================== */

.sidebar-cart-items {

  display: flex;

  flex-direction: column;

  gap: 14px;
}


.sidebar-cart-item {

  position: relative;

  display: grid;

  grid-template-columns: 90px 1fr;

  gap: 14px;

  padding: 14px;

  background: #ffffff;

  border: 1px solid #e0e8e1;

  border-radius: 20px;

  box-shadow:
    0 4px 15px rgba(20, 70, 35, 0.05);
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.sidebar-cart-image {

  width: 90px;
  height: 90px;

  border-radius: 17px;

  background: #f6faf5;

  overflow: hidden;

  display: flex;

  align-items: center;

  justify-content: center;
}


.sidebar-cart-image img {

  width: 90%;

  height: 90%;

  object-fit: contain;
}


/* ==========================================
   PRODUCT INFO
========================================== */

.sidebar-cart-info {

  min-width: 0;

  padding-right: 30px;
}


.sidebar-cart-info small {

  display: block;

  margin-bottom: 5px;

  color: #63816d;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.5px;
}


.sidebar-cart-info h3 {

  margin: 0 0 7px;

  color: #102016;

  font-size: 16px;

  font-weight: 800;

  line-height: 1.3;
}


.sidebar-cart-price {

  margin-bottom: 10px;

  color: #126337;

  font-size: 18px;

  font-weight: 800;
}


/* ==========================================
   QUANTITY
========================================== */

.sidebar-quantity {

  width: 118px;

  height: 38px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border: 1px solid #dce6dd;

  border-radius: 22px;

  overflow: hidden;
}


.sidebar-quantity button {

  width: 38px;
  height: 38px;

  border: none;

  background: transparent;

  color: #17251b;

  font-size: 22px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;
}


.sidebar-quantity button:hover {

  color: #126337;

  background: #f1f7f2;
}


.sidebar-quantity span {

  min-width: 25px;

  text-align: center;

  color: #152018;

  font-size: 15px;

  font-weight: 700;
}


/* ==========================================
   DELETE
========================================== */

.sidebar-remove {

  position: absolute;

  top: 12px;

  right: 12px;

  width: 32px;
  height: 32px;

  border: none;

  background: transparent;

  color: #718077;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;
}


.sidebar-remove:hover {

  color: #d13d32;
}


.sidebar-remove .material-symbols-outlined {

  font-size: 22px;
}


/* ==========================================
   EMPTY CART
========================================== */

.sidebar-cart-empty {

  min-height: 430px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  padding: 30px 20px;
}


.sidebar-cart-empty
.material-symbols-outlined {

  width: 80px;
  height: 80px;

  border-radius: 50%;

  background: #eff6f0;

  color: #176b3e;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 42px;

  margin-bottom: 20px;
}


.sidebar-cart-empty h3 {

  margin: 0 0 8px;

  color: #102016;

  font-size: 22px;

  font-weight: 800;
}


.sidebar-cart-empty p {

  max-width: 280px;

  margin: 0 0 22px;

  color: #718077;

  font-size: 14px;

  line-height: 1.5;
}


/* ==========================================
   FOOTER
========================================== */

.cart-sidebar-footer {

  flex-shrink: 0;

  padding: 20px 25px 25px;

  background: #ffffff;

  border-top: 1px solid #e3e9e4;

  box-shadow:
    0 -5px 20px rgba(0, 0, 0, 0.04);
}


.sidebar-summary-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 10px;

  color: #66756c;

  font-size: 19px;
}


.sidebar-summary-row strong {

  color: #102016;

  font-size: 20px;

  font-weight: 800;
}


.sidebar-summary-row.saving-row {

  margin-bottom: 18px;
}


.sidebar-summary-row.saving-row strong {

  color: #176b3e;
}


/* ==========================================
   CHECKOUT
========================================== */

.sidebar-checkout {

  width: 100%;

  height: 60px;

  border: none;

  border-radius: 32px;

  background: #126337;

  color: #ffffff;

  font-size: 17px;

  font-weight: 800;

  cursor: pointer;

  transition: all 0.2s ease;
}


.sidebar-checkout:hover {

  background: #0d512c;

  transform: translateY(-1px);
}


/* ==========================================
   CONTINUE SHOPPING
========================================== */

.sidebar-view-cart {

  width: 100%;

  height: 55px;

  margin-top: 10px;

  border: 1px solid #dce5dd;

  border-radius: 30px;

  background: #ffffff;

  color: #17251b;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;
}


.sidebar-view-cart:hover {

  background: #f5f8f5;
}


/* ==========================================
   BODY LOCK
========================================== */

body.cart-open {

  overflow: hidden;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  .cart-sidebar {

    width: 100%;

    max-width: 100%;
  }


  .cart-sidebar-header {

    padding: 20px 18px 16px;
  }


  .cart-sidebar-header h2 {

    font-size: 24px;
  }


  .cart-sidebar-body {

    padding: 15px;
  }


  .sidebar-cart-item {

    grid-template-columns: 78px 1fr;

    padding: 12px;

    border-radius: 17px;
  }


  .sidebar-cart-image {

    width: 78px;

    height: 78px;

    border-radius: 14px;
  }


  .sidebar-cart-info h3 {

    font-size: 14px;
  }


  .sidebar-cart-price {

    font-size: 16px;
  }


  .cart-sidebar-footer {

    padding: 16px;
  }


  .sidebar-summary-row {

    font-size: 17px;
  }


  .sidebar-summary-row strong {

    font-size: 18px;
  }


  .sidebar-checkout {

    height: 56px;

    font-size: 16px;
  }

}


/* ==========================================
   WISHLIST SIDEBAR
========================================== */

.wishlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);

  opacity: 0;
  visibility: hidden;

  transition: all 0.3s ease;

  z-index: 9998;
}

.wishlist-overlay.show {
  opacity: 1;
  visibility: visible;
}


/* ==========================================
   WISHLIST DRAWER
========================================== */

.wishlist-sidebar {
  position: fixed;

  top: 0;
  right: 0;

  width: 480px;
  max-width: 100%;

  height: 100vh;

  background: #ffffff;

  display: flex;
  flex-direction: column;

  transform: translateX(100%);

  transition:
    transform 0.35s cubic-bezier(
      0.4,
      0,
      0.2,
      1
    );

  z-index: 9999;

  box-shadow:
    -10px 0 35px rgba(0, 0, 0, 0.15);
}


/* OPEN */

.wishlist-sidebar.show {
  transform: translateX(0);
}


/* ==========================================
   HEADER
========================================== */

.wishlist-sidebar-header {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 25px;

  border-bottom: 1px solid #e5ebe6;

  background: #ffffff;
}


.wishlist-sidebar-header h2 {
  margin: 0;

  color: #102016;

  font-size: 28px;

  font-weight: 800;

  line-height: 1.2;
}


.wishlist-sidebar-header h2 span {
  color: #176b3e;
}


.wishlist-sidebar-header p {
  margin: 6px 0 0;

  color: #718077;

  font-size: 13px;
}


/* ==========================================
   CLOSE BUTTON
========================================== */

.wishlist-sidebar-close {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  border-radius: 50%;

  border: 2px solid #6d927a;

  background: #ffffff;

  color: #567261;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: all 0.2s ease;
}


.wishlist-sidebar-close:hover {
  background: #eef6ef;

  transform: rotate(90deg);
}


.wishlist-sidebar-close
.material-symbols-outlined {
  font-size: 28px;
}


/* ==========================================
   BODY
========================================== */

.wishlist-sidebar-body {
  flex: 1;

  overflow-y: auto;

  padding: 20px;
}


/* SCROLLBAR */

.wishlist-sidebar-body::-webkit-scrollbar {
  width: 6px;
}

.wishlist-sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}

.wishlist-sidebar-body::-webkit-scrollbar-thumb {
  background: #c2d0c5;

  border-radius: 10px;
}


/* ==========================================
   WISHLIST ITEMS
========================================== */

.wishlist-items {
  display: flex;

  flex-direction: column;

  gap: 15px;
}


/* ==========================================
   SINGLE WISHLIST ITEM
========================================== */

.wishlist-item {
  position: relative;

  display: grid;

  grid-template-columns: 90px 1fr;

  gap: 15px;

  padding: 14px;

  background: #ffffff;

  border: 1px solid #e0e8e1;

  border-radius: 20px;

  box-shadow:
    0 4px 15px rgba(
      20,
      70,
      35,
      0.05
    );

  transition: all 0.2s ease;
}


.wishlist-item:hover {
  border-color: #b8cbbb;

  box-shadow:
    0 7px 20px rgba(
      20,
      70,
      35,
      0.09
    );
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.wishlist-item-image {
  width: 90px;
  height: 90px;

  border-radius: 17px;

  background: #f5faf5;

  overflow: hidden;

  display: flex;

  align-items: center;
  justify-content: center;
}


.wishlist-item-image img {
  width: 90%;
  height: 90%;

  object-fit: contain;
}


/* ==========================================
   PRODUCT INFO
========================================== */

.wishlist-item-info {
  min-width: 0;

  padding-right: 30px;
}


.wishlist-item-info small {
  display: block;

  margin-bottom: 5px;

  color: #63816d;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.5px;
}


.wishlist-item-info h3 {
  margin: 0 0 7px;

  color: #102016;

  font-size: 16px;

  font-weight: 800;

  line-height: 1.3;
}


.wishlist-item-price {
  margin-bottom: 10px;

  color: #176b3e;

  font-size: 18px;

  font-weight: 800;
}


/* ==========================================
   ADD TO CART BUTTON
========================================== */

.wishlist-add-cart {
  width: 100%;

  height: 38px;

  border: none;

  border-radius: 22px;

  background: #176b3e;

  color: #ffffff;

  font-size: 12px;

  font-weight: 800;

  cursor: pointer;

  transition: all 0.2s ease;
}


.wishlist-add-cart:hover {
  background: #0d512c;

  transform: translateY(-1px);
}


/* ==========================================
   REMOVE BUTTON
========================================== */

.wishlist-remove {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 34px;
  height: 34px;

  border: none;

  background: transparent;

  color: #718077;

  display: flex;

  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: all 0.2s ease;
}


.wishlist-remove:hover {
  color: #d13d32;

  transform: scale(1.08);
}


.wishlist-remove
.material-symbols-outlined {
  font-size: 22px;
}


/* =====================================================
   WISHLIST CSS
===================================================== */

.wishlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.3s ease,
              visibility 0.3s ease;

  z-index: 9998;
}

.wishlist-overlay.show {
  opacity: 1;
  visibility: visible;
}


/* =====================================================
   WISHLIST SIDEBAR
===================================================== */

.wishlist-sidebar {
  position: fixed;

  top: 0;
  right: 0;

  width: 480px;
  max-width: 100%;

  height: 100vh;

  background: #ffffff;

  display: flex;
  flex-direction: column;

  transform: translateX(100%);

  transition:
    transform 0.35s
    cubic-bezier(0.4, 0, 0.2, 1);

  z-index: 9999;

  box-shadow:
    -10px 0 35px rgba(0, 0, 0, 0.15);
}


/* OPEN */

.wishlist-sidebar.show {
  transform: translateX(0);
}


/* =====================================================
   HEADER
===================================================== */

.wishlist-header {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 25px;

  background: #ffffff;

  border-bottom: 1px solid #e5ebe6;
}

.wishlist-header h2 {
  margin: 0;

  color: #102016;

  font-size: 28px;
  font-weight: 800;
}

.wishlist-header h2 span {
  color: #176b3e;

  font-size: 17px;
}

.wishlist-header p {
  margin: 6px 0 0;

  color: #718077;

  font-size: 13px;
}


/* =====================================================
   CLOSE BUTTON
===================================================== */

.wishlist-close {
  width: 46px;
  height: 46px;

  border-radius: 50%;

  border: 2px solid #6d927a;

  background: #ffffff;

  color: #567261;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: all 0.2s ease;
}

.wishlist-close:hover {
  background: #eef6ef;

  transform: rotate(90deg);
}

.wishlist-close
.material-symbols-outlined {
  font-size: 27px;
}


/* =====================================================
   BODY
===================================================== */

.wishlist-body {
  flex: 1;

  overflow-y: auto;

  padding: 20px;
}


/* Scrollbar */

.wishlist-body::-webkit-scrollbar {
  width: 6px;
}

.wishlist-body::-webkit-scrollbar-track {
  background: transparent;
}

.wishlist-body::-webkit-scrollbar-thumb {
  background: #c1cec4;
  border-radius: 10px;
}


/* =====================================================
   EMPTY WISHLIST
===================================================== */

.wishlist-empty {
  min-height: 430px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 30px 20px;
}

.wishlist-empty-icon {
  width: 85px;
  height: 85px;

  border-radius: 50%;

  background: #fff1f3;

  color: #c94b5c;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;
}

.wishlist-empty-icon
.material-symbols-outlined {
  font-size: 44px;
}

.wishlist-empty h3 {
  margin: 0 0 8px;

  color: #102016;

  font-size: 22px;
  font-weight: 800;
}

.wishlist-empty p {
  max-width: 280px;

  margin: 0 0 22px;

  color: #718077;

  font-size: 14px;

  line-height: 1.5;
}


/* =====================================================
   START SHOPPING BUTTON
===================================================== */

.wishlist-shop-btn {
  height: 48px;

  padding: 0 25px;

  border: 0;

  border-radius: 25px;

  background: #176b3e;

  color: #ffffff;

  font-size: 13px;

  font-weight: 800;

  cursor: pointer;

  transition: all 0.2s ease;
}

.wishlist-shop-btn:hover {
  background: #0d512c;

  transform: translateY(-1px);
}


/* =====================================================
   WISHLIST ITEMS
===================================================== */

.wishlist-items {
  display: flex;

  flex-direction: column;

  gap: 14px;
}


/* =====================================================
   SINGLE ITEM
===================================================== */

.wishlist-item {
  position: relative;

  display: grid;

  grid-template-columns: 90px 1fr;

  gap: 14px;

  padding: 14px;

  background: #ffffff;

  border: 1px solid #e0e8e1;

  border-radius: 20px;

  box-shadow:
    0 4px 15px rgba(20, 70, 35, 0.05);

  transition: all 0.2s ease;
}

.wishlist-item:hover {
  border-color: #aac0ae;

  box-shadow:
    0 7px 20px rgba(20, 70, 35, 0.09);
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.wishlist-product-image {
  width: 90px;
  height: 90px;

  border-radius: 17px;

  background: #f5faf5;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-product-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* =====================================================
   PRODUCT INFO
===================================================== */

.wishlist-product-info {
  min-width: 0;

  padding-right: 30px;
}

.wishlist-product-info small {
  display: block;

  margin-bottom: 5px;

  color: #63816d;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.5px;
}

.wishlist-product-info h3 {
  margin: 0 0 7px;

  color: #102016;

  font-size: 15px;

  font-weight: 800;

  line-height: 1.3;
}

.wishlist-price {
  margin-bottom: 10px;

  color: #176b3e;

  font-size: 18px;

  font-weight: 800;
}


/* =====================================================
   ADD TO CART BUTTON
===================================================== */

.wishlist-cart-btn {
  width: 100%;
  height: 38px;

  border: 0;

  border-radius: 22px;

  background: #176b3e;

  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  font-size: 11px;

  font-weight: 800;

  cursor: pointer;

  transition: all 0.2s ease;
}

.wishlist-cart-btn:hover {
  background: #0d512c;

  transform: translateY(-1px);
}

.wishlist-cart-btn
.material-symbols-outlined {
  font-size: 17px;
}


/* =====================================================
   DELETE BUTTON
===================================================== */

.wishlist-delete {
  position: absolute;

  top: 9px;
  right: 9px;

  width: 32px;
  height: 32px;

  border: 0;

  background: transparent;

  color: #78867e;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: all 0.2s ease;
}

.wishlist-delete:hover {
  color: #d13d32;

  transform: scale(1.08);
}

.wishlist-delete
.material-symbols-outlined {
  font-size: 21px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .wishlist-sidebar {
    width: 100%;
  }

  .wishlist-header {
    padding: 20px;
  }

  .wishlist-header h2 {
    font-size: 24px;
  }

  .wishlist-close {
    width: 44px;
    height: 44px;
  }

  .wishlist-body {
    padding: 15px;
  }

  .wishlist-item {
    grid-template-columns: 78px 1fr;

    gap: 12px;

    padding: 12px;

    border-radius: 17px;
  }

  .wishlist-product-image {
    width: 78px;
    height: 78px;
  }

  .wishlist-product-info h3 {
    font-size: 14px;
  }

  .wishlist-price {
    font-size: 16px;
  }

  .wishlist-cart-btn {
    height: 36px;

    font-size: 10px;
  }

}


/* =====================================================
   BODY LOCK WHEN WISHLIST IS OPEN
===================================================== */

body.wishlist-open {
  overflow: hidden;
}