/* =====================================================
   Dawar Restaurant - Premium Custom Styles
   Enhanced Aesthetics & Glassmorphism
   ===================================================== */

:root {
  --store-primary: #f59e0b;
  --store-primary-dark: #d97706;
  --store-secondary: #10b981;
  --store-accent: #f43f5e;
  --store-bg: #0b1120;
  --store-nav-bg: rgba(15, 23, 42, 0.85);
  --store-card-bg: rgba(30, 41, 59, 0.6);
  --store-glass-border: rgba(255, 255, 255, 0.08);
  --store-text-main: #f1f5f9;
  --store-text-muted: #94a3b8;
  --store-glass: rgba(30, 41, 59, 0.7);
  --store-glass-dark: rgba(15, 23, 42, 0.9);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --store-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --store-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --store-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

body {
  background: #0b1120;
  color: var(--store-text-main);
  font-family: 'Outfit', 'Cairo', sans-serif;
  background-image: 
    radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Glassmorphism Refined */
.product-card-v2, .categories-section a, .services-snippet > div > div, .checkout-card {
  background: var(--store-glass) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--store-glass-border) !important;
  box-shadow: var(--store-shadow) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border-radius: var(--radius-lg) !important;
}

.product-card-v2:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Premium Buttons */
.btn-add-cart, .btn-add-v2, .btn-checkout {
  background: linear-gradient(135deg, var(--store-primary) 0%, var(--store-primary-dark) 100%) !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
  border: none !important;
  transition: all 0.3s ease !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-add-cart:hover, .btn-add-v2:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5) !important;
}

/* Floating Elements */
.floating-cart-v2 {
  background: var(--store-primary) !important;
  bottom: 30px !important;
  left: 30px !important;
  width: 65px !important;
  height: 65px !important;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4) !important;
}

/* Navbar V3 - Premium Refinement */
.store-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--store-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--store-glass-border);
    padding: 0.4rem 0;
    transition: var(--store-transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
        gap: 0.25rem;
    }
    
    .logo-main-text {
        font-size: 1rem;
    }
    
    .nav-action-btn .btn-label {
        display: none;
    }
    
    .store-header-actions {
        gap: 0.4rem;
    }
    
    .nav-action-btn {
        min-width: 38px;
        height: 38px;
        padding: 0;
    }
}

/* Logo Refinement */
.store-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .logo-text-wrapper {
        display: none; /* Hide text on very small screens, icon is enough */
    }
}

.logo-box {
    background: linear-gradient(135deg, var(--store-primary), var(--store-primary-dark));
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transform: rotate(-5deg);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
    transition: var(--store-transition);
}

.store-logo:hover .logo-box {
    transform: rotate(0deg) scale(1.1);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-main-text {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--store-text-main);
    line-height: 1;
    background: linear-gradient(to left, #fff, var(--store-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub-text {
    font-size: 0.7rem;
    color: var(--store-text-muted);
    font-weight: 700;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

@media (max-width: 768px) {
    .logo-sub-text {
        display: none !important;
    }
}

/* Search Bar (Center) */
.nav-search-wrapper {
    flex: 1;
    max-width: 500px;
}

.mobile-search-bar {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--store-glass-border);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-search-form {
    position: relative;
    width: 100%;
}

.nav-search-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--store-glass-border);
    border-radius: 50px;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--store-transition);
}

.nav-search-form input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--store-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.nav-search-form button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--store-text-muted);
    cursor: pointer;
    transition: var(--store-transition);
}

.nav-search-form button:hover {
    color: var(--store-primary);
}

/* Actions Section */
.store-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-action-btn {
    min-width: 45px;
    height: 45px;
    padding: 0 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--store-glass-border);
    color: var(--store-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--store-transition);
    position: relative;
    cursor: pointer;
    gap: 0.5rem;
}

.nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--store-primary);
    color: var(--store-primary);
    transform: translateY(-2px);
}

.nav-action-btn.cart-toggle-btn {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--store-secondary);
}

.nav-action-btn .btn-label {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .nav-action-btn .btn-label {
        display: none; /* Hide labels on tablet/mobile to save space */
    }
}

.nav-action-btn i {
    font-size: 1.1rem;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--store-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--store-bg);
}

.user-control-group {
    display: flex;
    gap: 0.5rem;
    padding-right: 0.5rem;
    border-right: 1px solid var(--store-glass-border);
}

.nav-action-btn.logout-btn:hover {
    color: var(--store-accent);
    border-color: var(--store-accent);
}


/* Checkout Experience Premium */
.checkout-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    padding: 6rem 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
        padding-top: 5rem;
        gap: 1.25rem;
    }
    
    .checkout-main-form {
        order: 1;
    }
    
    .checkout-sidebar-summary {
        order: 2;
    }
    
    .checkout-card {
        padding: 1rem;
        border-radius: 16px !important;
    }
    
    .checkout-card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .checkout-card-header h3 {
        font-size: 1.1rem;
    }
    
    .checkout-card-header i {
        font-size: 1.2rem;
    }
}

.checkout-card {
    padding: 2rem;
    margin-bottom: 2rem;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--store-glass-border);
    padding-bottom: 1rem;
}

.checkout-card-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to left, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-card-header i {
    color: var(--store-primary);
    font-size: 1.5rem;
}

/* Form Styling */
.checkout-input-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--store-text-main);
}

.checkout-input-group input, 
.checkout-input-group select, 
.checkout-input-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1.5px solid var(--store-glass-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.checkout-input-group input:focus, 
.checkout-input-group select:focus, 
.checkout-input-group textarea:focus {
    border-color: var(--store-primary);
    background: rgba(15, 23, 42, 0.8);
    outline: none;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

/* Order Type Cards */
.order-type-selection-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .order-type-selection-box {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .type-card-content {
        display: flex;
        align-items: center;
        text-align: right;
        padding: 0.75rem 1rem;
        gap: 1rem;
        border-radius: var(--radius-md) !important;
    }
    
    .type-icon-circle {
        margin: 0;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        flex-shrink: 0;
        background: rgba(245, 158, 11, 0.1);
    }
    
    .type-card-content h4 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 800;
    }
    
    .type-card-content p {
        display: none;
    }
    
    .type-card-wrapper input:checked + .type-card-content {
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
    }
}

/* Hero Section Premium */
.hero-v2 {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 2rem;
}

.hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.15), transparent 70%);
    z-index: 1;
}

.hero-v2 h1 {
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

/* Category Icons Glass */
.categories-section a i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.categories-section a:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--store-primary) !important;
}

/* Product Card Refinement */
.product-image-v2 {
    position: relative;
    overflow: hidden;
    height: 160px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-image-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card-v2:hover .product-image-v2 img {
    transform: scale(1.1);
}

/* Product Card Refinement V2 */
.product-card-v2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--store-glass) !important;
    border-radius: var(--radius-lg) !important;
}

.product-content-v2 {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-price-v2 {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--store-glass-border);
}

.price-tag-v2 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--store-primary);
}

.btn-add-v2 {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}


/* Custom Scrollbar for Categories */
.category-scroller::-webkit-scrollbar {
    display: none;
}
.category-scroller {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive Grid Utility */
.product-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
}

@media (max-width: 576px) {
    .product-grid-v2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    .product-image-v2 {
        height: 120px;
    }
    
    .product-content-v2 h4 {
        font-size: 0.9rem;
    }
    
    .price-tag-v2 {
        font-size: 0.9rem;
    }
}

/* Mobile Responsiveness & Polish V3 */
@media (max-width: 992px) {
    .nav-container {
        gap: 1rem;
    }
    
    .logo-main-text {
        font-size: 1.15rem;
    }
    
    .logo-sub-text {
        display: none;
    }

    .nav-search-wrapper {
        display: none; /* Hide desktop search */
    }

    .cart-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 576px) {
    .store-navbar {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }

    .logo-box {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .nav-action-btn {
        width: 38px;
        height: 38px;
    }

    .user-control-group {
        border: none;
        padding-right: 0;
    }
}

/* Floating Cart Refined */
.floating-cart-v2 {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--store-primary), var(--store-primary-dark));
    color: white;
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
    z-index: 990;
    cursor: pointer;
    transition: var(--store-transition);
}

.floating-cart-v2:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.5);
}

/* Hide floating cart on checkout page */
.checkout-page .floating-cart-v2,
body:has(.checkout-container) .floating-cart-v2 {
    display: none !important;
}

.cart-count-v2 {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--store-bg);
    color: var(--store-accent);
    border: 2px solid var(--store-primary);
    font-size: 0.75rem;
    font-weight: 900;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll Snap/Smoothness */
html {
    scroll-behavior: smooth;
}

/* Custom Toast */
.store-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--store-glass-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--store-secondary);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    z-index: 4000;
    opacity: 0;
    transition: var(--store-transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    pointer-events: none;
}

.store-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.store-toast.success i {
    color: var(--store-secondary);
}


/* Cart Panel V2 - Dark Glassmorphism */
.cart-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    z-index: 2001;
    background: var(--store-glass-dark);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid var(--store-glass-border);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.cart-panel.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--store-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-title-group h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--store-text-main);
}

.cart-title-group i {
    color: var(--store-primary);
    font-size: 1.4rem;
}

.cart-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--store-glass-border);
    color: var(--store-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--store-transition);
}

.cart-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Cart Item Styling Refined */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--store-glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: var(--store-transition);
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--store-glass-border);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--store-primary);
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--store-glass-border);
    color: white;
}

.qty-btn:hover {
    background: var(--store-secondary);
}

/* Cart Footer Refinement */
.cart-footer {
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--store-glass-border);
}

/* Sticky Sidebar Helper */
@media (min-width: 993px) {
    .sticky-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* RTL Adjustment for font icons */
.me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
.me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
.ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
.ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
.cart-footer {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--store-glass-border);
}

.cart-summary-box {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: var(--store-text-muted);
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--store-secondary);
}

.btn-checkout-premium {
    width: 100%;
    background: linear-gradient(135deg, var(--store-primary), var(--store-primary-dark));
    color: white;
    text-decoration: none;
    padding: 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    transition: var(--store-transition);
}

.btn-checkout-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.btn-clear-minimal {
    margin-top: 1rem;
    width: 100%;
    background: none;
    border: none;
    color: var(--store-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-clear-minimal:hover {
    color: #ef4444;
}

