:root {
    --primary-purple: #a855f7;
    --dark-purple: #8b5cf6;
    --light-purple: #c084fc;
    --accent-cyan: #3f87c7;
    --gray-900: #ffffffe6;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --transition-speed: 0.15s; /* Tighter transition speed */
    --font-body: 'Inter', sans-serif;
    --font-display: 'Oxanium', sans-serif;
}
.main-content-section {
    scroll-margin-top: 100px;
}

/* --- General & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    transition: opacity 0.4s ease-in-out; /* Reduced fade-in time */
}
body.is-loading {
    opacity: 0;
}

.header-title,
.font-display {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
}

/* --- Components & Styling --- */
.btn-accent {
    background-color: var(--accent-cyan);
    color: white;
    box-shadow: 0 0 10px rgba(63, 135, 199, 0.4), 0 0 20px rgba(63, 135, 199, 0.2);
    /* Tighter transform transition speed */
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.15s ease;
}

.btn-accent:hover {
    transform: translateY(-3px); /* Increased "lift" on hover */
    box-shadow: 0 0 25px rgba(63, 135, 199, 0.8), 0 0 50px rgba(63, 135, 199, 0.4); /* Brighter glow */
}

.ynv-panel {
    background: linear-gradient(145deg, #1f1f1f, #1a1a1a);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2), 0 0 30px rgba(168, 85, 247, 0.1);
    transition: box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease, transform 0.3s ease;
}

.ynv-panel:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 0 50px rgba(168, 85, 247, 0.3); /* Brighter glow */
    border-color: rgba(168, 85, 247, 0.6);
}

.bg-accent {
    background-color: var(--accent-cyan);
}

.menu-link {
    min-height: 12px;
    display: flex;
    align-items: center;
    padding: 3px 5px;
    border-radius: 2px;
    transition: background-color 0.15s ease, color 0.15s ease; /* Tighter transition */
}

.menu-link:hover {
    background-color: var(--gray-800);
    color: var(--primary-purple);
}

.stock-badge {
    background-color: rgba(5, 122, 85, 0.4);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* NEW: Low Stock Urgent Flash */
.stock-badge.low {
    background-color: rgba(255, 0, 0, 0.4); /* Red Background */
    color: #ff5252; /* Red Text */
    animation: urgentPulse 1.2s infinite alternate; /* Urgent pulse animation */
}

@keyframes urgentPulse {
    from { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
    to { box-shadow: 0 0 0 8px rgba(255, 82, 82, 0); }
}

.loading-shimmer {
    background: linear-gradient(90deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
    background-size: 200% 100%;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Animations & Transitions --- */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInAnimation 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; /* Faster fade-in */
    animation-delay: var(--delay, 0s); 
}

@keyframes fadeInAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    opacity: 0;
    transform: translateY(20px); /* Tighter initial move */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.2s ease, border-color 0.2s ease; /* Tighter card entrance */
}

.product-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media(hover: hover) {
    .product-card.is-visible:hover {
        transform: translateY(-8px) scale(1.03); /* Increased "lift" */
        box-shadow: 0 10px 35px rgba(168, 85, 247, 0.5), 0 0 50px rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.5);
    }

    .product-card.is-visible:hover img {
        transition: transform 0.2s ease;
        transform: scale(1.08);
    }
}

/* NEW: Input focus glow */
.login-modal input:focus {
    outline: none;
    border-color: var(--light-purple) !important;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.6), 0 0 5px rgba(192, 132, 252, 0.2) !important;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--light-purple) !important;
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.6), 0 0 5px rgba(192, 132, 252, 0.2) !important;
}

.button-flyout-container {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    will-change: transform;
    transition: transform var(--transition-speed) ease;
}

.button-flyout-container .flyout-text {
    transition: transform var(--transition-speed) ease-out;
    will-change: transform;
}

.button-flyout-container .flyout-icon {
    position: absolute;
    opacity: 0;
    transition: transform var(--transition-speed) ease-out, opacity var(--transition-speed) ease-out;
    will-change: transform, opacity;
}

.button-flyout-container:hover .flyout-text {
    transform: translateX(-15px);
}

.button-flyout-container:hover .flyout-icon {
    opacity: 1;
    transform: translateX(15px);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.8s infinite; /* Faster bounce */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px); /* Increased bounce height */
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-cyan));
    z-index: 9999;
    transition: width 0.3s ease-out, opacity 0.4s 0.2s ease; /* Faster transition */
    width: 0%;
    opacity: 1;
}

.loading-bar.active {
    width: 95%; /* Animate to 95% quickly */
}

.loading-bar.finished {
    width: 100%;
    opacity: 0;
}
.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(145deg, #10B981, #059669);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%); /* Changed to slide from right */
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.success-toast.show {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}
/* For mobile screens */
.img {
    width: 100%;
    height: auto;
}

/* For tablets and larger screens */
@media (min-width: 768px) {
    img {
        width: 50%;
    }
}