/* Shopping Cart Styles - Theme-aware */
.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.cart-modal.active {
    display: block;
}

.cart-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cart-modal-content {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(500px, 100%);
    background: var(--dark-card, #18181b);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-header {
    padding: 32px 24px;
    border-bottom: 1px solid var(--dark-border, #27272a);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900, #fafafa);
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    color: var(--gray-500, #a1a1aa);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cart-close:hover {
    background: var(--gray-100, #27272a);
    color: var(--gray-900, #fafafa);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px 24px;
    text-align: center;
}

.cart-empty svg {
    color: var(--gray-500, #a1a1aa);
}

.cart-empty p {
    font-size: 18px;
    color: var(--text-2, #d4d4d8);
    margin: 0;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--surface-1, #18181b);
    border: 1px solid var(--dark-border, #27272a);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: rgba(236, 72, 153, 0.5);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-2, #27272a);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

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

.cart-item-info h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-1, #fafafa);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-600, #ec4899);
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-2, #27272a);
    padding: 8px 12px;
    border-radius: 12px;
}

.cart-item-controls button {
    background: var(--dark-card, #18181b);
    border: 1px solid var(--dark-border, #27272a);
    color: var(--text-1, #fafafa);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-item-controls button:hover {
    background: var(--primary-600, #ec4899);
    border-color: var(--primary-600, #ec4899);
    color: white;
}

.cart-item-controls span {
    font-weight: 700;
    color: var(--text-1, #fafafa);
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-500, #a1a1aa);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red, #ef4444);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--dark-border, #27272a);
    background: var(--surface-1, #18181b);
    box-sizing: border-box;
    overflow: hidden;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--dark-card, #18181b);
    border-radius: 12px;
}

.cart-total span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-2, #d4d4d8);
}

.cart-total span:last-child {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-600, #ec4899);
}

.cart-footer .btn {
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.cart-footer .btn:last-child {
    margin-bottom: 0;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark-card, #18181b);
    border: 1px solid var(--dark-border, #27272a);
    color: var(--text-1, #fafafa);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-success {
    border-left: 4px solid var(--accent-green, #10b981);
}

.notification-error {
    border-left: 4px solid var(--accent-red, #ef4444);
}

.notification-info {
    border-left: 4px solid var(--primary-600, #ec4899);
}

@media (max-width: 768px) {
    .cart-modal-content {
        width: 100%;
    }

    .notification {
        left: 24px;
        right: 24px;
        max-width: none;
    }
}

/* Shipping Form Modal */
.shipping-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shipping-modal {
  background: var(--dark-card, #18181b);
  border: 1px solid var(--dark-border, #27272a);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.shipping-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--dark-border, #27272a);
}

.shipping-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shipping-modal-close {
  background: none;
  border: none;
  color: var(--gray-500, #a1a1aa);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.shipping-modal-close:hover {
  color: var(--text-1, #fff);
}

.shipping-form {
  padding: 24px;
}

.shipping-form .form-group {
  margin-bottom: 20px;
}

.shipping-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-2, #e4e4e7);
  font-size: 14px;
}

.shipping-form .form-group input,
.shipping-form .form-group select,
.shipping-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2, #09090b);
  border: 1px solid var(--dark-border, #27272a);
  border-radius: 8px;
  color: var(--text-1, #fff);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}

.shipping-form .form-group input:focus,
.shipping-form .form-group select:focus,
.shipping-form .form-group textarea:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.shipping-form .form-group input::placeholder,
.shipping-form .form-group textarea::placeholder {
  color: var(--text-3, #52525b);
}

.shipping-form .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border, #27272a);
}

.form-actions .btn {
  flex: 1;
}

@media (max-width: 640px) {
  .shipping-modal {
    max-height: 95vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }
}
