/* ========================================
   Mavon - Premium eCommerce Styles
   ======================================== */

/* Base */
[x-cloak] { display: none !important; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', 'Avenir', system-ui, -apple-system, sans-serif;
}

/* Typography */
.font-clash-display {
    font-family: 'ClashDisplay', system-ui, sans-serif;
}
.font-avenir {
    font-family: 'Satoshi', 'Avenir', system-ui, -apple-system, sans-serif;
}
.font-clash {
    font-family: 'ClashDisplay', system-ui, sans-serif;
}

/* Utility Classes */
.text-balance {
    text-wrap: balance;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #111827;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background-color: #1f2937;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #111827;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.btn-primary-lg:hover {
    background-color: #1f2937;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background-color: #1d4ed8;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.btn-ghost:hover {
    background-color: #f3f4f6;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.15);
}

/* Inputs */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.2s ease;
}
.input-field::placeholder {
    color: #9ca3af;
}
.input-field:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6;
    border-color: transparent;
}

/* Product Grid */
.product-grid-tight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .product-grid-tight {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .product-grid-tight {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Product Card - MINIMAL PADDING, especially for shop page */
.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 440px;
    background-color: white;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -12px rgba(0, 0, 0, 0.1);
    border-color: #e5e7eb;
}

/* Product Image Container - NO PADDING, full bleed image */
.product-card .product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Product Info - MINIMAL PADDING, tight spacing */
.product-card .product-info {
    padding: 0.5rem 0.5rem 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Shop page specific - remove all extra padding */
.shop-page .product-card .product-info,
body.shop-page .product-card .product-info,
.product-card.shop-product .product-info {
    padding: 0.4rem 0.4rem 0.6rem 0.4rem;
}

/* Category text - ultra compact */
.product-card .product-info .text-gray-500 {
    font-size: 0.6rem;
    margin-bottom: 0.15rem;
    letter-spacing: 0.5px;
}

/* Product title - compact with minimal bottom margin */
.product-card .product-info h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

/* Rating stars - compact */
.product-card .product-info .flex.items-center.gap-1 {
    min-height: 0.9rem;
    margin-bottom: 0.2rem;
}

/* Price container - TIGHT spacing between name and price */
.product-card .product-info .flex.items-center.gap-2 {
    min-height: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.15rem;
}

.product-card .product-info .font-clash.font-bold {
    font-size: 0.95rem;
}

/* Remove extra margin from all child elements */
.product-card .product-info > * {
    margin-bottom: 0.2rem;
}

.product-card .product-info > *:last-child {
    margin-bottom: 0;
}

/* Add to Cart Button - minimal top margin */
.product-card .add-to-cart-btn {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.5rem 0.75rem;
    background-color: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(3px);
}
.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}
.product-card .add-to-cart-btn:hover {
    background-color: #1d4ed8;
}
@media (hover: none) {
    .product-card .add-to-cart-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Wishlist Button */
.product-card .wishlist-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 10;
    border: none;
}
.product-card:hover .wishlist-btn {
    opacity: 1;
}
.product-card .wishlist-btn:hover {
    background-color: white;
    transform: scale(1.05);
}
@media (hover: none) {
    .product-card .wishlist-btn {
        opacity: 1;
    }
}

/* Discount and New badges */
.product-card .absolute {
    border-radius: 9999px;
    z-index: 10;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
}

/* Desktop card size - LARGER IMAGES, minimal padding */
@media (min-width: 1024px) {
    .product-card {
        min-height: 480px;
    }
    .product-card .product-image {
        height: 320px;
        aspect-ratio: auto;
        flex-shrink: 0;
    }
    .product-card .product-info {
        padding: 0.5rem;
    }
    .product-card .product-info h3 {
        font-size: 0.9rem;
    }
    .product-card .product-info .font-clash.font-bold {
        font-size: 1rem;
    }
    /* Shop page desktop - even less padding */
    .shop-page .product-card .product-info,
    body.shop-page .product-card .product-info {
        padding: 0.35rem 0.4rem 0.5rem 0.4rem;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-card {
        min-height: 440px;
    }
    .product-card .product-image {
        height: 280px;
        aspect-ratio: auto;
    }
    .product-card .product-info {
        padding: 0.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .product-card {
        min-height: 400px;
    }
    .product-card .product-info {
        padding: 0.4rem;
    }
    .product-card .product-info h3 {
        font-size: 0.8rem;
    }
}

/* Hero Section - REDUCED OVERLAY/GRADIENT */
.hero-section {
    position: relative;
    background: linear-gradient(to bottom right, #111827, #1f2937, #111827);
    color: white;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 25% 50%, rgba(59,130,246,0.2) 0%, transparent 60%),
        radial-gradient(circle at 75% 50%, rgba(59,130,246,0.08) 0%, transparent 60%);
}

/* Hero section inner overlay - reduced */
.hero-section .absolute.inset-0.bg-gradient-to-r {
    opacity: 0.5 !important;
}

/* Sliding Banner / Promotional Section - REDUCED OVERLAY */
.promotional-slider .absolute.inset-0.bg-gradient-to-r,
section[x-data*="slides"] .absolute.inset-0.bg-gradient-to-r,
.slider-overlay {
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%) !important;
}

/* Or if using the sliding banner from your HTML */
.relative.overflow-hidden.rounded-2xl .absolute.inset-0.bg-gradient-to-r {
    background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 80%) !important;
    opacity: 0.6;
}

/* Category cards - consistent styling */
.category-card {
    border-radius: 1rem;
    overflow: hidden;
}

/* Rating Stars */
.star-rating .star {
    width: 0.875rem;
    height: 0.875rem;
    display: inline-block;
}
.star-rating .star-filled {
    color: #facc15;
}
.star-rating .star-empty {
    color: #d1d5db;
}

/* Image Zoom */
.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}
.image-zoom-container img {
    transition: transform 0.3s ease;
}
.image-zoom-container:hover img {
    transform: scale(1.5);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Skeleton Loading */
.skeleton {
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background-color: #f3f4f6; }
::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background-color: #9ca3af; }

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.toast-success { background-color: #2563eb; }
.toast-error { background-color: #dc2626; }
.toast-info { background-color: #2563eb; }

/* Checkout Steps */
.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.checkout-step .step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}
.checkout-step.active .step-number {
    background-color: #111827;
    color: white;
}
.checkout-step.completed .step-number {
    background-color: #2563eb;
    color: white;
}
.checkout-step.pending .step-number {
    background-color: #e5e7eb;
    color: #6b7280;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
}
.table-responsive table {
    width: 100%;
    font-size: 0.875rem;
}
.table-responsive th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f9fafb;
}
.table-responsive td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Compact Sections */
.compact-section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}
@media (min-width: 1024px) {
    .compact-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Admin Specific */
.admin-sidebar {
    width: 16rem;
    background-color: #111827;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
}
.admin-content {
    margin-left: 16rem;
    min-height: 100vh;
    background-color: #f9fafb;
}

/* Loading States */
.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}
@keyframes dots {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

/* Print */
@media print {
    header, footer, .no-print { display: none !important; }
}

/* Transitions */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}
.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}