/** Cart Icon & Drawer Styles **/

.cart-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 15px;
}

.cart-toggle-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-toggle-btn:hover {
  color: #FFD700;
  transform: scale(1.1);
}

.cart-count-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #FFD700;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/** Cart Drawer Styles **/

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  z-index: 9999;
  transition: right 0.3s ease;
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

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

.cart-drawer-content {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
}

.cart-drawer-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.cart-drawer-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.cart-drawer-close:hover {
  color: #FFD700;
  transform: rotate(90deg);
}

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

.cart-empty-message {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty-message i {
  font-size: 64px;
  color: #ccc;
  margin-bottom: 20px;
}

.cart-empty-message p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.btn-view-products {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient-color-btn);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-view-products:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cart-items-list {
  display: none;
}

.cart-items-list.has-items {
  display: block;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.cart-item-rating {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
}

.cart-item-price {
  font-size: 16px;
  color: #FFD700;
  font-weight: 700;
  margin-bottom: 10px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: #FFD700;
  color: #000;
}

.quantity-input {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 3px;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #ff4444;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.cart-item-remove:hover {
  color: #cc0000;
  transform: scale(1.2);
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #f9f9f9;
}

.cart-total {
  margin-bottom: 20px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  padding: 15px 0;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

.cart-total-price {
  color: #FFD700;
  font-size: 24px;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-checkout {
  display: block;
  padding: 15px;
  background: var(--gradient-color-btn);
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-clear-cart {
  padding: 12px;
  background: transparent;
  border: 2px solid #ff4444;
  color: #ff4444;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-cart:hover {
  background: #ff4444;
  color: #fff;
}

/** Product Detail Page Styles **/

.product-detail-section {
  background: #f9f9f9;
}

.product-detail-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-image-gallery {
  position: sticky;
  top: 20px;
}

.main-product-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
}

.main-product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info {
  padding-left: 30px;
}

.product-info .product-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
}

.product-info .product-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

.product-info .product-price {
  font-size: 32px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 20px;
}

.product-short-description {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.product-full-description {
  margin-bottom: 30px;
}

.product-full-description h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
}

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

.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-add-cart-detail {
  flex: 1;
  padding: 15px 30px;
  background: var(--gradient-color-btn);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-add-cart-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-back-to-products {
  padding: 15px 30px;
  background: #f0f0f0;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-back-to-products:hover {
  background: #e0e0e0;
}

.product-specifications {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.product-specifications h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #000;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.spec-item {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
}

.spec-item strong {
  display: block;
  margin-bottom: 8px;
  color: #000;
  font-size: 16px;
}

.spec-item ul {
  margin: 0;
  padding-left: 20px;
}

.spec-item li {
  margin-bottom: 5px;
  color: #666;
}

.product-contact-info {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.product-contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
}

.contact-details p {
  margin-bottom: 10px;
  color: #666;
}

.contact-details a {
  color: #FFD700;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/** Responsive Styles **/

@media only screen and (max-width: 991px) {
  .product-info {
    padding-left: 0;
    margin-top: 30px;
  }
  
  .product-image-gallery {
    position: relative;
    top: 0;
  }
  
  .cart-drawer {
    max-width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .product-detail-wrapper {
    padding: 20px;
  }
  
  .product-info .product-title {
    font-size: 28px;
  }
  
  .product-info .product-price {
    font-size: 24px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

