/* Base reset and essentials */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Only add these if Tailwind classes aren't working */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    max-width: 24rem;
}

.toast.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.toast.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.toast.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.toast-icon {
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.toast-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.toast-close {
    margin-left: 0.75rem;
    font-size: 1.125rem;
    cursor: pointer;
}

/* Quantity input - remove browser default spinners */
.quantity-input {
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Smooth scrollbar for cart content */
#cart-sidebar-items::-webkit-scrollbar {
    width: 4px;
}

#cart-sidebar-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-sidebar-content::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 2px !important;
}

.cart-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.base-body-theme {
    background-color: var(--theme-background);
    color: var(--theme-text-primary);
}

.base-cart-sidebar {
    z-index: 60;
    transform: translateX(100%);
    background-color: var(--theme-background);
    border-left: 1px solid var(--theme-border);
    height: auto;
    top: 0;
    bottom: 0;
}

.base-cart-sidebar-header {
    background-color: var(--theme-bg-surface);
    border-bottom: 1px solid var(--theme-border);
}

.base-cart-sidebar-footer {
    background-color: var(--theme-background);
    border-color: var(--theme-border);
    border-top: 1px solid var(--theme-border);
}

.base-cart-sidebar-items {
    background-color: var(--theme-bg-subtle);
}

.base-text-primary {
    color: var(--theme-text-primary);
}

.base-text-muted {
    color: var(--theme-text-muted);
}

.base-cart-total-row {
    border-top: 1px solid var(--theme-border);
}

.base-site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.base-no-ring {
    --tw-ring-color: transparent;
}
