/* Flavor Starter Theme - Ultra Sophisticated Styles */

/* Base */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: #0f172a;
    background: #ffffff;
}

/* Typography */
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-sans { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-slideInRight { animation: slideInRight 0.4s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }

/* Micro-interactions */
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }

.hover-scale { transition: transform 0.2s ease; }
.hover-scale:hover { transform: scale(1.02); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f59e0b, #d97706); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #d97706, #b45309); }

/* Selection */
::selection { background: #fef3c7; color: #0f172a; }

/* Focus States */
*:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: #0f172a;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Badge Pulse */
.badge-pulse {
    position: relative;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    background: inherit;
    opacity: 0.5;
}

@keyframes ping {
    75%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Drawer Transitions */
.drawer-enter { transform: translateX(100%); }
.drawer-enter-active { transform: translateX(0); transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1); }
.drawer-exit { transform: translateX(0); }
.drawer-exit-active { transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }

/* WooCommerce Overrides */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 12px !important;
    border: none !important;
    padding: 1rem 1.5rem !important;
}

.woocommerce-message { background: #ecfdf5 !important; color: #065f46 !important; }
.woocommerce-info { background: #eff6ff !important; color: #1e40af !important; }
.woocommerce-error { background: #fef2f2 !important; color: #991b1b !important; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Custom responsive classes (avoid WordPress .hidden conflict) */
.fs-hide { display: none !important; }
.fs-lg-hide { display: block; }

@media (min-width: 640px) {
    .fs-sm-show { display: block !important; }
    .fs-sm-flex { display: flex !important; }
}

@media (min-width: 768px) {
    .fs-md-show { display: block !important; }
    .fs-md-flex { display: flex !important; }
}

@media (min-width: 1024px) {
    .fs-lg-show { display: block !important; }
    .fs-lg-flex { display: flex !important; }
    .fs-lg-hide { display: none !important; }
}

@media (min-width: 1280px) {
    .fs-xl-show { display: block !important; }
    .fs-xl-flex { display: flex !important; }
}

/* Hide scrollbar for carousel */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
