/* Global Styles for Dr koki skincare spa */

:root {
    --primary: #a51d5d;
    --primary-strong: #8a174d;
    --accent: #e8922a;
    --gradient-top: #e8922a;
    --gradient-mid: #d06040;
    --gradient-bottom: #9b1b5a;
    --brand-gradient: linear-gradient(to bottom, #e8922a, #d06040, #9b1b5a);
    --brand-gradient-horizontal: linear-gradient(to right, #e8922a, #d06040, #9b1b5a);
    --surface: #ffffff;
    --surface-container-low: #fff6f2;
    --surface-container-high: #ffece2;
    --on-surface: #2b1e24;
    --on-surface-variant: #7a5f6c;
    --outline-variant: #f3d9e4;
    --error: #ba1a1a;
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

.site-logo {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.site-logo-sm {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.site-brand-name {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #a51d5d;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.site-logo-footer {
    height: 68px;
    width: auto;
    object-fit: contain;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-container-low);
}

::-webkit-scrollbar-thumb {
    background: rgba(165, 29, 93, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(165, 29, 93, 0.4);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-slide-up-fade {
    animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sidebar Navigation */
.side-nav {
    height: 100%;
    width: 320px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 70;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    transform: translateX(-100%);
}

.side-nav.open {
    transform: translateX(0);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    z-index: 65;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #ffffff;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f9fafb;
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d06040, #9b1b5a);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.product-card:hover .add-to-cart {
    transform: translateY(0);
}

.product-card img {
    transition: transform 0.7s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Form Elements */
input, select, textarea {
    font-family: 'Manrope', sans-serif;
}

input::placeholder,
textarea::placeholder {
    color: #cccccc;
    font-weight: 300;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 20px 48px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-strong);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(165, 29, 93, 0.2);
    padding: 20px 48px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--surface-container-low);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stepper */
.step-active {
    font-weight: 800;
    color: var(--primary);
}

.step-inactive {
    color: #bbbbbb;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid;
}

.status-instock {
    background: #ecfdf5;
    color: #065f46;
    border-color: #d1fae5;
}

.status-lowstock {
    background: #fffbeb;
    color: #92400e;
    border-color: #fef3c7;
}

.status-pending {
    background: #fffbeb;
    color: #92400e;
    border-color: #fef3c7;
}

.status-shipped {
    background: #eff6ff;
    color: #1e40af;
    border-color: #dbeafe;
}

/* Admin Sidebar */
.admin-sidebar {
    height: 100vh;
    width: 288px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    background: white;
    border-right: 1px solid var(--outline-variant);
}

.admin-main {
    margin-left: 288px;
    min-height: 100vh;
    background: var(--surface);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 500;
    z-index: 100;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: white;
    z-index: 80;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 75;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Quantity Control */
.qty-control {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--outline-variant);
    padding: 8px 16px;
}

.qty-control button {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: var(--on-surface);
    transition: color 0.2s;
}

.qty-control button:hover {
    color: var(--primary);
}

/* Modern Shadow */
.modern-shadow {
    box-shadow: 0 40px 100px -20px rgba(165, 29, 93, 0.08);
}

/* Brand Gradient Utilities */
.bg-brand-gradient {
    background: var(--brand-gradient);
}

.bg-brand-gradient-horizontal {
    background: var(--brand-gradient-horizontal);
}

.bg-brand-gradient-diagonal {
    background: linear-gradient(135deg, #e8922a, #d06040, #9b1b5a);
}

.text-brand-gradient {
    background: var(--brand-gradient-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Buttons */
.btn-primary {
    background: linear-gradient(135deg, #d06040, #9b1b5a);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e8922a, #9b1b5a);
}

/* White Header */
.top-header {
    background: #ffffff;
    backdrop-filter: blur(12px);
}

/* Gradient scrollbar */
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgba(232, 146, 42, 0.4), rgba(155, 27, 90, 0.4));
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgba(232, 146, 42, 0.6), rgba(155, 27, 90, 0.6));
}

/* Gradient Cart Badge */
.cart-badge {
    background: linear-gradient(135deg, #e8922a, #9b1b5a);
}

/* Gradient Toast */
.toast {
    background: linear-gradient(135deg, #d06040, #9b1b5a);
}
