/* Cart Styles for Tongue Tonic */

/* Cart Icon and Count */
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00FFFF; /* Cyan/blue color from the brand */
  color: #000000; /* Black text */
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 1;
  box-sizing: border-box;
}

/* Modern Clean Cart Design - MOBILE ONLY */
@media (max-width: 768px) {
    .cart-main {
        padding-top: 10px !important;
    }
    
    .cart-section {
        padding-top: 0 !important;
    }
    
    .cart-item {
        margin-bottom: 1rem !important;
    }

    .cart-item .modern-cart-card {
        background-color: rgba(25, 25, 25, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        gap: 1rem !important;
    }

    .cart-item .modern-cart-card:hover {
        background-color: rgba(35, 35, 35, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        transform: translateY(-2px) !important;
    }

    .cart-item .cart-product-image {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 1rem !important;
    }

    .cart-item .cart-product-image img {
        width: 80px !important;
        height: 80px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .cart-item .cart-product-details {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .cart-item .product-title {
        font-size: 1.3rem !important;
        font-weight: 600 !important;
        margin: 0 0 0.5rem 0 !important;
        color: #00ffff !important;
    }

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.unit-price {
    color: #cccccc;
    font-size: 1rem;
}

.total-price {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.quantity-row {
    text-align: left;
}

.qty-text {
    color: #cccccc;
    font-size: 0.95rem;
}

.cart-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.2rem;
    gap: 0.5rem;
}

.qty-btn {
    background-color: #00ffff;
    border: none;
    color: #000000;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}

.qty-number {
    color: #ffffff;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.delete-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background-color: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

.quantity-btn:hover {
  background-color: rgba(0, 255, 255, 0.4);
}

.cart-item-quantity span {
  font-weight: 600;
  width: 20px;
  text-align: center;
  color: #ffffff;
  /* Remove arrows from number inputs */
  -moz-appearance: textfield;
  margin: 0 2px; /* Just a tiny bit of spacing */
}

/* Remove arrows from number inputs in all browsers */
.cart-item-quantity input::-webkit-outer-spin-button,
.cart-item-quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-quantity input[type=number] {
  -moz-appearance: textfield;
  text-align: center;
  background: transparent;
  border: none;
  color: white;
  font-weight: 600;
  width: 30px;
}

/* Coupon Code Styling */
.coupon-section {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.coupon-input-container {
  display: flex;
  gap: 10px;
}

.coupon-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  border-radius: 4px;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--primary);
}

.apply-coupon-button {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.apply-coupon-button:hover {
  background-color: var(--primary);
  color: white;
}

.coupon-message {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 20px;
}

.coupon-message.success {
  color: #4CAF50;
}

.coupon-message.error {
  color: #F44336;
}

/* Discount row styling */
.summary-row.discount {
  color: #4CAF50;
}

/* Cart item product-specific colors */
.cart-item.energy-product .cart-item-name,
.cart-item.energy-product .cart-item-price,
.cart-item.energy-product .cart-item-total {
  color: #f7d046; /* Yellow for Energy */
}

.cart-item.relax-product .cart-item-name,
.cart-item.relax-product .cart-item-price,
.cart-item.relax-product .cart-item-total {
  color: #4dabf5; /* Blue for Relax */
}

.cart-item.euphoria-product .cart-item-name,
.cart-item.euphoria-product .cart-item-price,
.cart-item.euphoria-product .cart-item-total {
  color: #a96df7; /* Purple for Euphoria */
}

.cart-item.social-product .cart-item-name,
.cart-item.social-product .cart-item-price,
.cart-item.social-product .cart-item-total {
  color: #ff9057; /* Orange for Social */
}

/* Summary Item Styling for Checkout */
.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

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

.summary-item-name {
  font-weight: 500;
  margin-bottom: 2px;
}

.summary-item-quantity {
  font-size: 0.85rem;
  color: #999;
}

.summary-item-price {
  font-weight: 600;
}

/* Product-specific colors for checkout summary */
/* Energy product styling - Yellow */
.summary-item.energy-product .summary-item-name {
  color: #FFD700; /* Yellow for Energy */
}

.summary-item.relax-product .summary-item-name {
  color: #4dabf5; /* Blue for Relax */
}

.summary-item.euphoria-product .summary-item-name {
  color: #a96df7; /* Purple for Euphoria */
}

.summary-item.social-product .summary-item-name {
  color: #ff9057; /* Orange for Social */
}

/* Removing custom product card styling from cart-styles.css as it's conflicting with shop page */