

/* product-detail-sectio*/

.product-detail-section {
  width: 100%;
  padding: 70px 0;
  background: #f5f5f5;
}

.product-detail-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.product-gallery .main-image {
  background: #ececec;
  padding: 20px;
  margin-bottom: 18px;
}

.product-gallery .main-image img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  display: block;
}

.thumbnail-list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.thumb {
  width: 110px;
  height: 110px;
  border: 1px solid #ddd;
  background: #ececec;
  padding: 8px;
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb.active {
  border: 2px solid #111;
}

.product-detail-info h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #111;
}

.product-price-wrap {
  margin-bottom: 18px;
}

.product-price {
  font-size: 26px;
  color: #c17b68;
  font-weight: 500;
}

.product-desc {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
  margin-bottom: 18px;
}

.product-desc p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.serie {
  margin-bottom: 28px;
}

.serie h3 {
  font-size: 16px;
  margin-bottom: 14px;
  color: #222;
}

.option-group {
  margin-bottom: 28px;
}

.option-group h3 {
  font-size: 16px;
  margin-bottom: 14px;
  color: #222;
}

.color-options,
.storage-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-btn {
  width: 54px;
  height: 54px;
  border: 2px solid #ccc;
  cursor: pointer;
  border-radius: 8px;
}

.color-btn.active {
  border-color: #1f5da8;
  box-shadow: 0 0 0 2px rgba(31, 93, 168, 0.15);
}

.storage-btn {
  min-width: 100px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #aaa;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
}

.storage-btn.active {
  border: 2px solid #1f5da8;
  color: #1f5da8;
}

.product-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  height: 56px;
}

.qty-box button {
  width: 56px;
  height: 56px;
  border: none;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.qty-box input {
  width: 70px;
  height: 56px;
  border: none;
  text-align: center;
  font-size: 16px;
  background: #fff;
}

.add-to-cart-btn {
  flex: 1;
  height: 56px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 10px;
}

.add-to-cart-btn:hover {
  background: #e9ecef;
}

.buy-now-btn {
  width: 100%;
  height: 56px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 10px;
  cursor: pointer;
}




/* CART OVERLAY */ 
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9998;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 540px;
  max-width: 100%;
  height: 100dvh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px 12px;
  border-bottom: 1px solid #eee;
}

.cart-header h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.cart-shipping-text {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.cart-close {
  border: none;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.shipping-progress-wrap {
  padding: 12px 24px 18px;
}

.shipping-progress {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.shipping-progress-bar {
  height: 100%;
  width: 0%;
  background: #111;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 20px;
}

.cart-empty {
  color: #777;
  font-size: 14px;
  margin-top: 10px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: #f6f6f6;
  border-radius: 8px;
  flex-shrink: 0;
}

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

.cart-item-info h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.cart-item-info small {
  display: block;
  color: #666;
  margin-bottom: 8px;
  font-size: 14px;
}

.cart-item-price {
  font-size: 16px;
  margin-bottom: 12px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
}

.cart-item-qty button {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}

.cart-item-qty span {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
}

.remove-item-btn {
  border: none;
  background: transparent;
  color: #999;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

/* CART FOOTER */
.cart-footer {
  border-top: 1px solid #eee;
  padding: 18px 24px 24px;
  background: #fff;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 18px;
}

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

.cart-tax-note {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
}

.cart-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-btn,
.view-cart-btn {
  height: 52px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.checkout-btn {
  background: #111;
  color: #fff;
}

.view-cart-btn {
  border: 2px solid #111;
  color: #111;
  background: #fff;
}

@media (max-width: 640px) {
  .cart-drawer {
    width: 100%;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item img {
    width: 100%;
    height: 180px;
  }

  .cart-footer-buttons {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE*/
@media (max-width: 1024px) {
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .product-detail-info h1 {
    font-size: 36px;
  }

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

@media (max-width: 768px) {
  .product-detail-section {
    padding: 45px 0;
  }

  .product-detail-container {
    width: 92%;
  }

  .thumbnail-list {
    gap: 10px;
  }

  .thumb {
    width: 84px;
    height: 84px;
  }

  .product-detail-info h1 {
    font-size: 30px;
  }

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

  .product-desc p {
    font-size: 16px;
  }

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

  .cart-drawer {
    width: 100%;
  }

  .add-to-cart-btn {
  padding: 15px 0;
  }
}
