﻿:root {
    /* Color Palette - Bright Floral Theme (Light & Fresh) */
    --primary-gradient: linear-gradient(135deg, #4a8c6f 0%, #6bb38a 100%);
    --secondary-gradient: linear-gradient(135deg, #f5a5b8 0%, #ffc4d0 100%);
    --success-gradient: linear-gradient(135deg, #4a8c6f 0%, #7dc9a0 100%);
    --danger-gradient: linear-gradient(135deg, #e57373 0%, #ff8a80 100%);
    --dark-gradient: linear-gradient(135deg, #2d5a47 0%, #3d7a5f 100%);

    --primary-color: #4a8c6f;
    --secondary-color: #6bb38a;
    --accent-color: #f5a5b8;
    --success-color: #4a8c6f;
    --danger-color: #e57373;
    --warning-color: #ffd97d;

    --bg-dark: #faf9f6;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.75);

    --text-primary: #2d5a47;
    --text-secondary: #4a7c5f;
    --text-muted: #7a9f8a;

    --border-glass: rgba(74, 140, 111, 0.2);
    --shadow-glass: 0 8px 32px rgba(74, 140, 111, 0.15);
    --shadow-card: 0 25px 45px rgba(0, 0, 0, 0.08);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   FULL PAGE LOADING OVERLAY
   ========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(250, 249, 246, 0.98) 0%, rgba(240, 255, 244, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(74, 140, 111, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Logo Pulse Effect */
.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.loading-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Progress dots animation */
.loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Body scroll lock when loading */
body.loading-active {
    overflow: hidden;
}

/* ==========================================
   LUCIDE ICONS STYLING
   ========================================== */
[data-lucide] {
    width: 1em;
    height: 1em;
    stroke-width: 2;
    vertical-align: -0.125em;
    display: inline-block;
}

/* Icon sizes */
.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

.icon-2xl {
    width: 48px;
    height: 48px;
}

.icon-3xl {
    width: 64px;
    height: 64px;
}

/* Icon in buttons - proper alignment */
.btn [data-lucide] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Icon colors */
.icon-success {
    color: var(--success-color);
}

.icon-danger {
    color: var(--danger-color);
}

.icon-warning {
    color: var(--warning-color);
}

.icon-primary {
    color: var(--primary-color);
}

.icon-muted {
    color: var(--text-muted);
}

/* Spinning animation for loader */
[data-lucide="loader-2"] {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* GPU acceleration for smooth scrolling */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    /* Optimize rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Background Animation - Optimized for performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top left, rgba(74, 140, 111, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(107, 179, 138, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(245, 165, 184, 0.08) 0%, transparent 70%);
    z-index: -1;
    /* GPU layer promotion for smoother animation */
    transform: translateZ(0);
    will-change: opacity;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-glass);
    /* Reduced blur for better performance */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.glass-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: var(--shadow-card);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 92, 67, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: var(--primary-color);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    /* Reduced blur for better scroll performance */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-brand span {
    color: var(--primary-color);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

/* Hide active underline when hovering on other nav links */
.navbar-nav:hover .nav-link.active::after {
    width: 0;
}

.navbar-nav:hover .nav-link.active:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Store Status Badge */
.store-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-status.open {
    background: rgba(56, 239, 125, 0.15);
    border: 1px solid rgba(56, 239, 125, 0.3);
    color: var(--success-color);
}

.store-status.closed {
    background: rgba(244, 92, 67, 0.15);
    border: 1px solid rgba(244, 92, 67, 0.3);
    color: var(--danger-color);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.store-status.open .status-dot {
    background: var(--success-color);
}

.store-status.closed .status-dot {
    background: var(--danger-color);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-glass);
    /* Reduced blur for better scroll performance */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: var(--shadow-card);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(74, 140, 111, 0.05) 0%, rgba(245, 165, 184, 0.05) 100%);
    transition: transform 0.3s ease;
    /* GPU acceleration for image zoom */
    transform: translateZ(0);
    will-change: transform;
}

.product-card:hover .product-image {
    transform: scale(1.05) translateZ(0);
}

.product-image-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(74, 140, 111, 0.08) 0%, rgba(245, 165, 184, 0.08) 100%);
}

/* Product Number Badge - Catalog */
.product-number-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Product Number in Admin List */
.product-list-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 30px;
    text-align: center;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.product-stock {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.product-stock.stock-available {
    color: #27ae60;
    font-weight: 500;
}

.product-stock.stock-empty {
    color: #e74c3c;
    font-weight: 500;
}

.product-stock.stock-pending {
    color: var(--text-muted);
}

.product-stock.stock-maintenance {
    color: #e67e22;
    font-weight: 600;
}

/* Booking Slots */
.booking-container {
    padding-top: 100px;
    min-height: 100vh;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.date-picker-container {
    margin-bottom: 2rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-slot {
    padding: 1rem;
    text-align: center;
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.time-slot:hover:not(.disabled):not(.selected) {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.time-slot.selected {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot .slot-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.time-slot.selected .slot-info {
    color: rgba(255, 255, 255, 0.8);
}

/* Admin Panel */
.admin-container {
    padding-top: 100px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.admin-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.admin-card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244, 92, 67, 0.3);
    border-radius: 32px;
    transition: var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--success-gradient);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(28px);
}

/* Booking List */
.booking-list {
    max-height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Booking Number */
.booking-number {
    min-width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    margin-right: 1rem;
}

.booking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-glass);
}

.booking-item:last-child {
    margin-bottom: 0;
}

.booking-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.booking-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Login Form */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

/* Calendar */
.calendar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.calendar-nav:hover {
    color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: var(--bg-glass);
    border-color: var(--primary-color);
}

.calendar-day.selected {
    background: var(--primary-gradient);
    color: white;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.has-booking {
    position: relative;
}

.calendar-day.has-booking::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger-color);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(56, 239, 125, 0.15);
    border: 1px solid rgba(56, 239, 125, 0.3);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(244, 92, 67, 0.15);
    border: 1px solid rgba(244, 92, 67, 0.3);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(255, 217, 61, 0.15);
    border: 1px solid rgba(255, 217, 61, 0.3);
    color: var(--warning-color);
}

/* Product List (Admin) */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.product-list-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.product-list-info {
    flex: 1;
}

.product-list-info h4 {
    margin-bottom: 0.25rem;
}

.product-list-info p {
    font-size: 0.875rem;
    margin: 0;
}

.product-list-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: var(--text-muted);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.d-flex {
    display: flex;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-glass);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Product images maintain aspect ratio on tablet */
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .menu-toggle span {
        display: block !important;
        width: 100%;
        height: 3px;
        background: #4a8c6f !important;
        border-radius: 2px;
        margin: 0;
    }

    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: var(--transition-normal);
        border-left: 1px solid var(--border-glass);
    }

    .navbar-nav.active {
        right: 0 !important;
        z-index: 1000;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-glass);
    }

    /* Hero Section */
    .hero {
        text-align: center;
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    /* Section */
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* Product Grid - E-commerce Style 2 Columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .product-card:hover {
        transform: none;
    }

    .product-image-wrapper {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    /* Product images maintain aspect ratio on mobile */

    .product-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.625rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    .product-description {
        display: none;
    }

    .product-price {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .product-stock {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .product-info .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
        text-transform: none;
        letter-spacing: 0;
    }

    .btn-book {
        width: 100%;
    }

    /* Glass Card */
    .glass-card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    /* Admin Panel */
    .admin-container {
        padding-top: 80px;
    }

    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .admin-header>div:first-child {
        text-align: center;
    }

    .admin-header>div:last-child {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-card {
        padding: 1.25rem;
    }

    /* Stats Cards */
    .product-grid.mb-4 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .product-grid.mb-4 .glass-card {
        padding: 1rem 0.5rem;
    }

    .product-grid.mb-4 .glass-card div:first-child {
        font-size: 1.5rem !important;
    }

    .product-grid.mb-4 .glass-card p {
        font-size: 0.625rem;
    }

    /* Time Slots */
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .time-slot {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .time-slot .slot-info {
        font-size: 0.625rem;
    }

    /* Calendar */
    .calendar {
        padding: 0.75rem;
    }

    .calendar-day {
        font-size: 0.75rem;
    }

    /* Modal */
    .modal {
        margin: 1rem;
        padding: 1.25rem;
        max-width: calc(100% - 2rem);
    }

    .modal-title {
        font-size: 1.25rem;
    }

    /* Booking Container */
    .booking-container {
        padding-top: 80px;
    }

    /* Booking List */
    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .booking-item button {
        align-self: flex-end;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .footer p {
        font-size: 0.875rem;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    /* Product images maintain aspect ratio on small mobile */

    .product-title {
        font-size: 0.75rem;
    }

    .product-price {
        font-size: 0.875rem;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid.mb-4 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Confirmation Checkmark */
.checkmark-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--success-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.checkmark {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 3;
    fill: none;
    animation: drawCheck 0.5s ease 0.3s forwards;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* ==========================================
   Booking Search Box (Hero Section)
   ========================================== */

.booking-search-box {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    max-width: 500px;
}

.booking-search-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.booking-search-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.booking-date-input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
}

.booking-date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 140, 111, 0.25);
}

.booking-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 0.25rem;
    filter: invert(40%) sepia(20%) saturate(500%) hue-rotate(100deg);
}

.booking-search-btn {
    white-space: nowrap;
    padding: 1rem 1.5rem;
}

/* Selected Date Info Bar */
.selected-date-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(74, 140, 111, 0.1) 0%, rgba(107, 179, 138, 0.1) 100%);
    border: 2px solid var(--primary-color);
}

.date-info-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.date-info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.date-info-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Stock Status Indicators */
.product-stock.stock-available {
    color: var(--success-color) !important;
    font-weight: 600;
}

.product-stock.stock-empty {
    color: var(--danger-color) !important;
    font-weight: 600;
}

.product-stock.stock-pending {
    color: var(--warning-color) !important;
    font-style: italic;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Card Button States */
.btn-book:disabled {
    background: linear-gradient(135deg, #a0a0a0 0%, #c0c0c0 100%) !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .booking-search-row {
        flex-direction: column;
    }

    .booking-date-input,
    .booking-search-btn {
        width: 100%;
    }

    .selected-date-info {
        flex-direction: column;
        text-align: center;
    }

    .date-info-content {
        justify-content: center;
    }

    .selected-date-display {
        flex-direction: column;
        text-align: center;
    }

    .catalog-top-bar {
        justify-content: center;
    }
}

/* ==========================================
   Catalog Page Styles
   ========================================== */

.catalog-container {
    padding-top: 100px;
    min-height: 100vh;
}

.catalog-top-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.selected-date-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(74, 140, 111, 0.1) 0%, rgba(107, 179, 138, 0.15) 100%);
    border: 2px solid var(--primary-color);
}

.date-display-icon {
    font-size: 2.5rem;
}

.date-display-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-display-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.date-display-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Booking Page Date Box */
.selected-date-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 140, 111, 0.1) 0%, rgba(107, 179, 138, 0.15) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
}

.date-box-icon {
    font-size: 2rem;
}

.date-box-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-box-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.date-box-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================
   Mobile Menu Toggle (Hamburger)
   ========================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-normal);
    transform-origin: center;
}

/* Hamburger Animation - Active State (X shape) */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Responsive - Navbar */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }

    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 80px 2rem 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .navbar-nav.active {
        right: 0 !important;
    }

    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-glass);
    }

    .navbar-nav li:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    /* Mobile menu overlay */
    .navbar-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: -1;
    }

    .navbar-nav.active::before {
        opacity: 1;
        visibility: visible;
        left: -100vw;
    }
}

/* ==========================================
   Booking Product Image Styles
   ========================================== */

.booking-product-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
    display: block !important;
}

.booking-product-image:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(74, 140, 111, 0.3);
}

/* Booking Item - Ensure proper layout */
.booking-item {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-glass);
    gap: 1rem;
}

.booking-item:last-child {
    margin-bottom: 0;
}

.booking-info {
    flex: 1;
    min-width: 0;
}

.booking-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
}

.booking-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
    word-wrap: break-word;
}

.booking-actions {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Mobile Responsive - Booking Item */
@media (max-width: 768px) {
    .booking-item {
        flex-direction: column !important;
        align-items: stretch;
    }

    .booking-actions {
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-glass);
        margin-top: 0.5rem;
    }

    .booking-product-image {
        width: 70px !important;
        height: 52px !important;
        order: 1;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .booking-actions .btn-icon {
        order: 2;
    }
}

@media (max-width: 480px) {
    .booking-product-image {
        width: 60px !important;
        height: 45px !important;
    }

    .booking-info h4 {
        font-size: 0.9rem;
    }

    .booking-info p {
        font-size: 0.8rem;
    }
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */

/* Reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    body::before {
        animation: none !important;
    }

    .glass-card:hover,
    .product-card:hover {
        transform: none !important;
    }

    .product-card:hover .product-image {
        transform: none !important;
    }

    .status-dot {
        animation: none !important;
    }
}

/* GPU acceleration for scrollable containers */
.booking-list,
.product-grid,
.admin-grid {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Optimize images for performance */
img {
    content-visibility: auto;
}

/* Contain layout calculations */
.product-card,
.glass-card,
.booking-item {
    contain: layout style paint;
}

/* ==========================================
   LQIP PROGRESSIVE IMAGE LOADING
   ========================================== */

/* Product image wrapper for lazy loading - ASPECT RATIO HERE */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(74, 140, 111, 0.1) 0%, rgba(245, 165, 184, 0.1) 100%);
}

/* LQIP Thumbnail - Light blur placeholder - FILLS WRAPPER */
.product-image.lqip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transform: scale(1.02);
    transition: opacity 0.4s ease-out, filter 0.4s ease-out;
    background: linear-gradient(135deg, rgba(74, 140, 111, 0.05) 0%, rgba(245, 165, 184, 0.05) 100%);
}

.product-image.lqip.fade-out {
    opacity: 0;
    filter: blur(0);
}

/* Full image - Overlays on top of LQIP - FILLS WRAPPER */
.product-image.full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(74, 140, 111, 0.05) 0%, rgba(245, 165, 184, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.product-image.full.loaded {
    opacity: 1;
}

/* Skeleton loading animation */
.product-image-skeleton {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(90deg,
            rgba(74, 140, 111, 0.1) 0%,
            rgba(74, 140, 111, 0.2) 50%,
            rgba(74, 140, 111, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Loading spinner for images */
.image-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 140, 111, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-image-wrapper.loading .image-loading-spinner {
    opacity: 1;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Hide spinner when image is loaded */
.product-image-wrapper.loaded .image-loading-spinner {
    opacity: 0;
}