/* Body typography */
body {
    font-family: "Outfit" !important;
    font-size: 16px;
    line-height: 1.6;
    color: #334155; /* slate-700 */
}

/* Cross-browser scrollbar hiding utilities */
#hero-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#hero-slider::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Hide input number arrows/spinners across all browsers */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important; /* Firefox */
}

/* For IE and Edge */
input[type="number"]::-ms-clear,
input[type="number"]::-ms-expand {
    display: none !important;
}

/* Cart Styles */
.quantity-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #4b5563; /* gray-600 */
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: #f3f4f6; /* gray-100 */
}

/* Buy Now button styles */
.buy-now-btn {
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
    outline: none;
    font-weight: 500;
}

/* Add to cart button styles */
.add-to-cart-btn {
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
    outline: none;
}

/* Ensure cart icon buttons are clickable */
.add-to-cart-btn i[data-lucide] {
    pointer-events: none;
    user-select: none;
}

/* Cart icon button specific styles */
.add-to-cart-btn[data-product-id] {
    position: relative;
    overflow: hidden;
}

/* Cart Loading Animation */
.cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skeleton Loading Styles */
.cart-loading .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Enhanced skeleton loading */
.cart-loading .bg-slate-200 {
    background-color: #e2e8f0;
}

.cart-loading .bg-slate-200.animate-pulse {
    background-color: #cbd5e1;
}

/* Subtotal Skeleton Loading */
.cart-loading-subtotal .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cart-loading-subtotal .bg-slate-200 {
    background-color: #e2e8f0;
}

.cart-loading-subtotal .bg-slate-200.animate-pulse {
    background-color: #cbd5e1;
}

.cart-items > div {
    margin-bottom: 0;
}

.cart-items .border-b:last-child {
    border-bottom-width: 0;
}

/* Ensure last cart item is visible */
.cart-items > div:last-child {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

/* Cart drawer scrollable area */
.cart-drawer .flex-1.overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgb(203 213 225) rgb(241 245 249);
}

.cart-drawer .flex-1.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.cart-drawer .flex-1.overflow-y-auto::-webkit-scrollbar-track {
    background-color: #f1f5f9;
    border-radius: 3px;
}

.cart-drawer .flex-1.overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.cart-drawer .flex-1.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Product Card Skeleton Loader Styles */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.skeleton-box {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(
        to right,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 800px 104px;
}

.product-card {
    position: relative;
}

/* Responsive skeleton loader positioning - matches card padding */
.skeleton-loader {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: white;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

@media (min-width: 640px) {
    .skeleton-loader {
        padding: 0.75rem;
    }
}

@media (min-width: 768px) {
    .skeleton-loader {
        padding: 1rem;
    }
}

.card-loaded .skeleton-loader {
    display: none !important;
}

.card-loaded .product-content {
    opacity: 1 !important;
}

.product-content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Responsive skeleton elements */
.skeleton-loader .aspect-square {
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .skeleton-loader .aspect-square {
        margin-bottom: 0.75rem;
    }
}

.skeleton-loader .space-y-2 {
    margin-bottom: 0.25rem;
}

.skeleton-loader .h-4 {
    height: 0.875rem;
}

@media (min-width: 640px) {
    .skeleton-loader .h-4 {
        height: 1rem;
    }
}

.skeleton-loader .h-3 {
    height: 0.625rem;
}

@media (min-width: 640px) {
    .skeleton-loader .h-3 {
        height: 0.75rem;
    }
}

.skeleton-loader .h-5 {
    height: 1rem;
}

@media (min-width: 640px) {
    .skeleton-loader .h-5 {
        height: 1.25rem;
    }
}

.skeleton-loader .h-10 {
    height: 2rem;
}

@media (min-width: 640px) {
    .skeleton-loader .h-10 {
        height: 2.25rem;
    }
}

@media (min-width: 768px) {
    .skeleton-loader .h-10 {
        height: 2.5rem;
    }
}

.skeleton-loader .w-10 {
    width: 2rem;
}

@media (min-width: 640px) {
    .skeleton-loader .w-10 {
        width: 2.25rem;
    }
}

@media (min-width: 768px) {
    .skeleton-loader .w-10 {
        width: 2.5rem;
    }
}

.skeleton-loader .gap-2 {
    gap: 0.375rem;
}

@media (min-width: 640px) {
    .skeleton-loader .gap-2 {
        gap: 0.5rem;
    }
}
