/* Cart Hero Section */
.cart-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("img/cart-hero.jpg") center center no-repeat;
  background-size: cover;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(58, 40, 21, 0.85),
    rgba(212, 175, 55, 0.3)
  );
  z-index: 1;
}

.cart-hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Cart Content Section */
.cart-content-section {
  padding: 80px 0;
  background: rgba(248, 248, 248, 0.95);
  min-height: 600px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

/* Cart Items Container */
.cart-items-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cart-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.cart-header-title h2 {
  font-size: 28px;
  color: #3a2815;
  font-weight: 600;
}

.clear-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(221, 14, 26, 0.1);
  color: #dd0e1a;
  border: 1px solid rgba(221, 14, 26, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-cart-btn svg {
  width: 18px;
  height: 18px;
}

.clear-cart-btn:hover {
  background: #dd0e1a;
  color: white;
  border-color: #dd0e1a;
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.cart-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-size: 18px;
  font-weight: 600;
  color: #3a2815;
  margin-bottom: 8px;
}

.cart-item-price {
  font-size: 20px;
  color: #d4af37;
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: linear-gradient(135deg, #d4af37, #f4e5b0);
  color: #3a2815;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: linear-gradient(135deg, #f4e5b0, #d4af37);
  transform: scale(1.1);
}

.quantity-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.remove-item-btn {
  background: rgba(221, 14, 26, 0.1);
  color: #dd0e1a;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.remove-item-btn:hover {
  background: #dd0e1a;
  color: white;
}

/* Empty Cart Message */
.empty-cart-message {
  text-align: center;
  padding: 80px 20px;
}

.empty-cart-message svg {
  width: 80px;
  height: 80px;
  color: #ccc;
  margin-bottom: 20px;
}

.empty-cart-message h3 {
  font-size: 24px;
  color: #3a2815;
  margin-bottom: 10px;
}

.empty-cart-message p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.continue-shopping-btn {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, #d4af37, #f4e5b0);
  color: #3a2815;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.continue-shopping-btn:hover {
  background: linear-gradient(135deg, #f4e5b0, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Order Summary */
.order-summary {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 90px;
  height: fit-content;
}

.order-summary h3 {
  font-size: 24px;
  color: #3a2815;
  margin-bottom: 25px;
  font-weight: 600;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  color: #666;
}

.summary-total {
  font-size: 20px;
  font-weight: 700;
  color: #3a2815;
}

.summary-divider {
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #f4e5b0, #d4af37);
  margin: 20px 0;
}

/* Promo Code */
.promo-code {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.promo-code input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.promo-code input:focus {
  outline: none;
  border-color: #d4af37;
}

.promo-code button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #d4af37, #f4e5b0);
  color: #3a2815;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-code button:hover {
  background: linear-gradient(135deg, #f4e5b0, #d4af37);
}

/* Checkout Button */
.checkout-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #d4af37, #f4e5b0);
  color: #3a2815;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  margin-bottom: 15px;
}

.checkout-btn svg {
  width: 20px;
  height: 20px;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #f4e5b0, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.continue-shopping {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.continue-shopping svg {
  width: 16px;
  height: 16px;
}

.continue-shopping:hover {
  color: #d4af37;
}

/* Payment Methods */
.payment-methods {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.payment-methods p {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.payment-icons img {
  height: 30px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.payment-icons img:hover {
  opacity: 1;
}

/* Recommended Products */
.recommended-products {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.95);
}

.recommended-products h2 {
  font-size: 32px;
  color: #3a2815;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 600;
}

.recommended-products .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.recommended-products .product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.recommended-products .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
}

.recommended-products .product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.recommended-products .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recommended-products .product-card:hover .product-image img {
  transform: scale(1.05);
}

.recommended-products .product-card h3 {
  padding: 15px 15px 10px;
  font-size: 16px;
  color: #3a2815;
  font-weight: 600;
}

.recommended-products .product-price {
  font-size: 18px;
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 15px;
}

.add-recommended {
  width: calc(100% - 30px);
  margin: 0 15px 15px;
  padding: 12px;
  background: linear-gradient(135deg, #d4af37, #f4e5b0);
  color: #3a2815;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-recommended:hover {
  background: linear-gradient(135deg, #f4e5b0, #d4af37);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
  .cart-layout {
    grid-template-columns: 1fr 350px;
  }

  .recommended-products .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .recommended-products .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cart-hero {
    height: 250px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .cart-content-section {
    padding: 60px 0;
  }

  .cart-items-container {
    padding: 20px;
  }

  .cart-header-title {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .cart-header-title h2 {
    font-size: 24px;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .order-summary {
    padding: 25px 20px;
  }
}

@media (max-width: 600px) {
  .recommended-products .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .recommended-products .product-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 26px;
  }

  .cart-item-controls {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .quantity-control {
    justify-content: center;
  }
}
/* Masaüstü/Mobil görünürlük kontrolleri */
.desktop-only {
  display: flex !important;
}

.mobile-only {
  display: none !important;
}

/* Mobil Sepet Wrapper */
.header-cart-wrapper {
  position: relative;
  z-index: 1000;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .header-cart-wrapper {
    margin-left: auto;
    margin-right: 10px;
  }
}
