/* Mobaro - Consolidated Styles */

:root {
    --primary: #e11d48;
    --primary-light: #fda4af;
    --primary-dark: #be185d;
    --cream: #FDF6F0;
    --cream-dark: #f5ebe0;
    --soft-black: #2D2D2D;
    --gold: #D4AF37;
    --gold-light: #e8c86a;
    --success: #4CAF50;
    --warning: #FFA726;
    --danger: #E57373;
    --gray: #9e9e9e;
    --border: #efe5dc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--cream); color: var(--soft-black); line-height: 1.7; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ========== NAV ========== */
.nav-link { position: relative; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.nav-link:after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -2px; right: 0; background-color: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover:after { width: 100%; right: auto; left: 0; }

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    z-index: 9999;
}

/* ========== SERVICE CARD ========== */
.service-card { transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.service-card:hover { transform: translateY(-15px) scale(1.03); box-shadow: 0 25px 50px -12px rgba(225,29,72,.25); }

/* ========== MODEL CARD ========== */
.model-card { transition: all 0.3s ease; }
.model-card:hover { transform: scale(1.05); }
.hair-model { transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.hair-model:hover { filter: brightness(1.1) contrast(1.15); }

/* ========== PRODUCT CARD ========== */
.product-card { transition: all 0.3s ease; }
.product-card:hover { transform: translateY(-8px); }

/* ========== GALLERY ========== */
.gallery-img { transition: all 0.4s ease; }
.gallery-img:hover { transform: scale(1.08); filter: brightness(0.85); }

/* ========== TOAST ========== */
.toast { animation: toastIn 0.3s ease, toastOut 0.3s 2.7s ease forwards; }
@keyframes toastIn { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { 0% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ========== MODAL ANIMATION ========== */
.modal { animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.8) translateY(40px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ========== BOOKING ========== */
.booking-step { transition: all 0.3s ease; }

/* ========== TAB CONTENT ========== */
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== ORDER TRACKING ========== */
@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(212,175,55,.2); }
    50% { box-shadow: 0 0 0 8px rgba(212,175,55,.1); }
}

/* ========== HOME SPECIFIC ========== */
.logo-font { font-family: 'Playfair Display', sans-serif; }
.tail-container { font-family: 'Vazirmatn', system-ui, sans-serif; }
.hero-bg {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.85), rgba(190, 24, 93, 0.85)), url('/assets/images/hero-bg.jpg') center/cover no-repeat;
}

/* ========== AUTH PAGES ========== */
.auth-bg { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* ========== DASHBOARD SIDEBAR ========== */
.sidebar { position: sticky; top: 100px; }

@media (max-width: 1024px) {
    .sidebar { position: static; }
}

/* ========== ADMIN TABLE ========== */
.admin-table th, .admin-table td { text-align: right; }
.admin-table tr:last-child td { border-bottom: none; }

/* ========== SHOP GRID ========== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ========== NEWS CARD ========== */
.news-card { transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.news-card:hover { transform: translateY(-10px); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
}

/* ========== MOBILE BOTTOM NAV ========== */
#bottom-nav {
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-item {
    color: #9ca3af;
    transition: all 0.2s ease;
    position: relative;
}
.bottom-nav-item.active {
    color: #e11d48;
}
.bottom-nav-item.active i {
    transform: scale(1.1);
}
.bottom-nav-item i {
    transition: transform 0.2s ease;
}

/* ========== SHOP SIDEBAR FILTERS ========== */
.sidebar-filter { max-height: 200px; overflow-y: auto; }
.sidebar-filter::-webkit-scrollbar { width: 4px; }
.sidebar-filter::-webkit-scrollbar-thumb { background: #e11d48; border-radius: 4px; }

/* ========== PRICE RANGE SLIDER ========== */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: #e11d48; cursor: pointer; border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
input[type=range]::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: #e11d48; cursor: pointer; border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ========== STAR RATING ========== */
.star-rating { direction: rtl; }
.star-rating input { display: none; }
.star-rating label { color: #ddd; cursor: pointer; font-size: 1.1rem; transition: color 0.2s; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #f59e0b; }

/* ========== PRODUCT CARD HOVER ========== */
.card-hover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .card-hover-overlay { opacity: 1; }
.product-card .quick-view-btn {
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease;
}
.product-card:hover .quick-view-btn { opacity: 1; transform: translateY(0); }

/* ========== HEART BUTTON ========== */
.heart-btn { transition: all 0.3s ease; }
.heart-btn.active { color: #e11d48; transform: scale(1.15); }

/* ========== QUICK VIEW MODAL ========== */
.quick-view-modal {
    display: none;
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
    padding: 20px;
}
.quick-view-modal.active {
    display: flex;
}
.quick-view-modal > div {
    background: #fff; border-radius: 24px; max-width: 800px;
    width: 100%; max-height: 90vh; overflow-y: auto;
    animation: modalPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ========== CART & WISHLIST SIDEBARS ========== */
.cart-sidebar {
    position: fixed; inset: 0; z-index: 400;
}
.cart-sidebar.hidden {
    display: none !important;
}
.cart-sidebar:not(.hidden) {
    display: block;
}
.cart-sidebar > div:first-child {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
}
.cart-sidebar > div:last-child {
    position: absolute; left: 0; top: 0; height: 100%; width: 100%; max-width: 400px;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    animation: slideInLeft 0.3s ease;
}
@keyframes slideInLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* ========== SHOP TOAST ========== */
.shop-toast {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    animation: toastIn 0.3s ease, toastOut 0.3s 2.7s ease forwards;
}

/* ========== TOAST CONTAINER ========== */
#toast-container {
    position: fixed; bottom: 24px; right: 24px; z-index: 999999;
    display: flex; flex-direction: column-reverse;
}
#toast-container > div {
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* ========== PRODUCT IMAGE ZOOM ========== */
.product-image { overflow: hidden; }
.product-image img { transition: transform 0.5s ease; }
.product-image:hover img { transform: scale(1.12); }

/* ========== QUANTITY INPUT ========== */
.qty-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff1f2; color: #e11d48; font-weight: bold;
    transition: all 0.2s; border: none; cursor: pointer;
}
.qty-btn:hover { background: #e11d48; color: #fff; }
.qty-input {
    width: 50px; text-align: center; font-weight: 700;
    border: none; background: transparent; outline: none;
}

/* ========== CARD HOVER ========== */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
}

/* ========== LIST VIEW ========== */
.shop-list-view .product-card {
    display: flex; flex-direction: row; gap: 20px;
}
.shop-list-view .product-card .product-image {
    width: 200px; height: 200px; flex-shrink: 0;
}

/* ========== LOADING SPINNER ========== */
.loading {
    position: relative; pointer-events: none; opacity: 0.7;
}
.loading::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 20px; height: 20px;
    border: 2px solid transparent; border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== TRUST BADGE ========== */
.trust-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; background: #fff; border-radius: 12px;
    border: 1px solid #e5e7eb; font-size: 12px; color: #6b7280;
}

/* ========== TOAST ANIMATIONS ========== */
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
    animation: slide-up 0.3s ease forwards;
}

/* ========== PRODUCT IMAGE ZOOM OVERLAY ========== */
.product-image {
    position: relative; overflow: hidden; cursor: crosshair;
}
.product-image img {
    transition: transform 0.5s ease;
}
.product-image:hover img {
    transform: scale(1.15);
}

/* ========== WISHLIST HEART ========== */
.heart-btn.active i {
    color: #e11d48 !important;
}
.heart-btn-detail.active i {
    color: #e11d48;
}

/* ========== GALLERY THUMBNAIL ACTIVE ========== */
.thumb-img {
    transition: all 0.2s ease;
}

/* ========== PAGINATION ========== */
#pagination a, #pagination button {
    transition: all 0.2s ease;
}
#pagination a:hover, #pagination button:hover {
    border-color: #e11d48;
    color: #e11d48;
}

/* ========== SIDEBAR SCROLLBAR ========== */
.sidebar-filter::-webkit-scrollbar {
    width: 4px;
}
.sidebar-filter::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-filter::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}
.sidebar-filter::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}
