/* ==================== CART PAGE STYLES ==================== */

/* Base Cart Styles */
.cart {
  position: relative;
  width: 100%;
}

/* Hide Breadcrumb Section */
.cart .breadcrumb-option {
  display: none !important;
}

/* Shop Cart Section */
.shop-cart {
  background: #f8f9fa;
  padding: 40px 0 60px;
  min-height: 60vh;
}

/* Cart Items Container - Universal */
.cart-items-container {
  display: block;
  width: 100%;
}

/* Desktop Layout - Two Column */
@media (min-width: 992px) {
  .shop-cart .row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .shop-cart .col-lg-8 {
    flex: 0 0 calc(72% - 8px);
    max-width: calc(72% - 8px);
  }

  .shop-cart .col-lg-4 {
    flex: 0 0 calc(28% - 8px);
    max-width: calc(28% - 8px);
  }

  .shop-cart .col-lg-12 {
    flex: 1;
    max-width: 100%;
  }

  .cart-items-container {
    width: 100%;
  }
}

/* Desktop & Mobile - Hide old classes */
.desktop-cart {
  display: none !important;
}

.mobile-cart {
  display: none !important;
}

/* Cart Item Card - Universal for Desktop & Mobile */
.cart-item-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.cart-item-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.cart-item-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  font-size: 16px;
  font-weight: 600;
}

.cart-item-remove:hover {
  background: #d1ded2;
  color: #3a9c40;
  border-color: #3a9c40;
  transform: scale(1.1);
}

.cart-item-remove:active {
  transform: scale(0.95);
}

.cart-item-card-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-card-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cart-item-card-info {
  flex: 1;
  min-width: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-card-info h6 {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-card-info h6 a {
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item-card-info h6 a:hover {
  color: #3a9c40;
}

.cart-item-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-item-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #3a9c40;
  flex-shrink: 0;
}

.cart-item-card-quantity {
  display: flex;
  align-items: center;
  margin: 0;
}

.cart-item-card-quantity .pro-qty {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  margin: 0;
  padding: 0;
  height: 36px;
}

.cart-item-card-quantity .pro-qty input {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  border-right: 1px solid #d1d5db;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  background: #ffffff;
  padding: 0;
  margin: 0;
}

.cart-item-card-quantity .pro-qty input:focus {
  outline: none;
  background: #f9fafb;
}

.qty-arrows {
  display: flex;
  flex-direction: column;
  width: 20px;
  height: 36px;
}

.qty-arrow-up,
.qty-arrow-down {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  color: #6b7280;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.qty-arrow-up {
  border-bottom: 0.5px solid #d1d5db;
}

.qty-arrow-up:hover {
  background: #e5e7eb;
  color: #3a9c40;
}

.qty-arrow-down:hover {
  background: #e5e7eb;
  color: #3a9c40;
}

.qty-arrow-up:active {
  background: #d1d5db;
  color: #3a9c40;
}

.qty-arrow-down:active {
  background: #d1d5db;
  color: #3a9c40;
}

/* Cart Buttons */
.cart__btn {
  margin-top: 24px;
}

.cart__btn a {
  display: inline-block;
  padding: 12px 32px;
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cart__btn a:hover {
  background: #f9fafb;
  border-color: #3a9c40;
  color: #3a9c40;
}

/* Cart Total Proceed */
.cart__total__procced {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
  padding: 24px;
  margin-top: 0;
}

/* Desktop - Make cart total sticky at top */
@media (min-width: 992px) {
  .cart__total__procced {
    position: sticky;
    top: 20px;
  }
}

.cart__total__procced h6 {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.cart__total__procced ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.cart__total__procced ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111111;
}

.cart__total__procced ul li span {
  font-size: 18px;
  font-weight: 700;
  color: #3a9c40;
}

.cart__total__procced .primary-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #3a9c40;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart__total__procced .primary-btn:hover {
  background: #2d7a33;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 156, 64, 0.3);
}

/* Empty Cart State */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

.empty-cart i {
  font-size: 80px;
  color: #d1d5db;
  margin-bottom: 24px;
}

.empty-cart h4 {
  font-size: 24px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
}

.empty-cart p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 32px;
}

.empty-cart .primary-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #3a9c40;
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.empty-cart .primary-btn:hover {
  background: #2d7a33;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58, 156, 64, 0.3);
}

/* ==================== MOBILE STYLES ==================== */
@media (max-width: 768px) {
  /* Hide breadcrumb on mobile */
  .cart .breadcrumb-option {
    display: none !important;
  }

  /* Hide desktop cart table on mobile */
  .desktop-cart {
    display: none !important;
  }

  /* Show mobile cart */
  .mobile-cart {
    display: block !important;
  }

  /* Shop Cart Mobile */
  .shop-cart {
    padding: 30px 0 40px;
  }

  /* Mobile Cart Item Card */
  .cart-item-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: visible;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding: 16px;
    position: relative;
  }

  .cart-item-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
    font-size: 14px;
    font-weight: 600;
  }

  .cart-item-remove:active {
    background: #fee2e2;
    color: #3a9c40;
    border-color: #3a9c40;
    transform: scale(0.95);
  }

  .cart-item-card-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .cart-item-card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
  }

  .cart-item-card-info {
    flex: 1;
    min-width: 0;
    padding-right: 0;
  }

  .cart-item-card-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cart-item-card-info h6 a {
    color: #111111;
    text-decoration: none;
  }

  .cart-item-card-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }

  .cart-item-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #3a9c40;
    flex-shrink: 0;
  }

  .cart-item-card-quantity {
    display: flex;
    align-items: center;
    margin: 0;
  }

  .cart-item-card-quantity .pro-qty {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    margin: 0;
    padding: 0;
    height: 28px;
  }

  .cart-item-card-quantity .pro-qty input {
    width: 32px;
    height: 28px;
    text-align: center;
    border: none;
    border-right: 1px solid #d1d5db;
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    background: #ffffff;
    padding: 0;
    margin: 0;
  }

  .cart-item-card-quantity .pro-qty input:focus {
    outline: none;
  }

  .qty-arrows {
    display: flex;
    flex-direction: column;
    width: 16px;
    height: 28px;
  }

  .qty-arrow-up,
  .qty-arrow-down {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #6b7280;
    font-size: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
  }

  .qty-arrow-up {
    border-bottom: 0.5px solid #d1d5db;
  }

  .qty-arrow-up:active {
    background: #e5e7eb;
    color: #3a9c40;
  }

  .qty-arrow-down:active {
    background: #e5e7eb;
    color: #3a9c40;
  }

  /* Cart Buttons Mobile */
  .cart__btn {
    margin: 20px 0;
    text-align: center;
  }

  .cart__btn a {
    display: block;
    width: 100%;
    padding: 14px 24px;
  }

  /* Cart Total Mobile */
  .cart__total__procced {
    margin-top: 20px;
  }

  .cart__total__procced h6 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .cart__total__procced ul li {
    font-size: 15px;
    padding: 10px 0;
  }

  .cart__total__procced ul li span {
    font-size: 17px;
  }

  .cart__total__procced .primary-btn {
    padding: 14px 24px;
    font-size: 13px;
  }

  /* Empty Cart Mobile */
  .empty-cart {
    padding: 60px 20px;
  }

  .empty-cart i {
    font-size: 64px;
  }

  .empty-cart h4 {
    font-size: 20px;
  }

  .empty-cart p {
    font-size: 14px;
  }
}

/* ==================== TABLET STYLES ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .shop__cart__table thead th {
    padding: 14px 16px;
    font-size: 13px;
  }

  .shop__cart__table tbody td {
    padding: 16px;
  }

  .cart-item-image {
    width: 70px;
    height: 70px;
  }

  .cart__product__item__title h6 {
    font-size: 13px;
  }

  .cart__price {
    font-size: 15px;
  }

  .cart__total {
    font-size: 16px;
  }
}
