/* Design System & Variables */
:root {
    --primary: #10b981;          /* Emerald Green */
    --primary-dark: #059669;
    --primary-light: #ecfdf5;
    --secondary: #f59e0b;        /* Warm Amber */
    --secondary-dark: #d97706;
    --secondary-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --text-main: #0f172a;        /* Deep Slate 900 */
    --text-muted: #64748b;       /* Slate 500 */
    --bg-body: #f8fafc;          /* Slate 50 */
    --bg-card: #ffffff;
    --border: #e2e8f0;           /* Slate 200 */
    --overlay-bg: rgba(15, 23, 42, 0.6);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --shadow-premium: 0 20px 40px -15px rgba(16, 185, 129, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Resets & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Language Dynamic Typography */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .category-tab,
html[dir="rtl"] .product-title,
html[dir="rtl"] .btn {
    font-family: 'Tajawal', 'Noto Kufi Arabic', 'Cairo', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .logo,
html[dir="rtl"] .category-tab.active {
    font-family: 'Noto Kufi Arabic', 'Tajawal', sans-serif;
    line-height: 1.5;
}

html[dir="ltr"] {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common Interactive Elements */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

.hidden {
    display: none !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--bg-card);
    border-color: var(--border);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--bg-body);
    border-color: var(--text-muted);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Navbar Section */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Bar styling */
.search-container {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background-color: var(--bg-body);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    padding: 2px;
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-inline-start: 18px;
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    height: 40px;
    background: transparent;
    color: var(--text-main);
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    position: absolute;
    inset-inline-end: 10px;
    color: var(--text-muted);
    display: none;
    align-items: center;
    justify-content: center;
}

.clear-search-btn svg {
    width: 18px;
    height: 18px;
}

.clear-search-btn:hover {
    color: var(--danger);
}

.search-btn {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-btn {
    font-size: 0.95rem;
    padding: 8px 16px;
}

.lang-icon {
    width: 18px;
    height: 18px;
}

.cart-btn {
    position: relative;
    padding: 8px 18px;
}

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

.cart-btn svg {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -12px;
    inset-inline-end: -12px;
    background-color: var(--secondary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    animation: badge-pulse 0.3s ease-out;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Hero Section */
.hero {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    position: absolute;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(254, 243, 199, 0.1) 70%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-float 12s infinite ease-in-out;
    z-index: 1;
}

.hero-image-card {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #e6fffa 0%, #fffaf0 100%);
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
}

.collage-item {
    position: absolute;
    font-size: 3.5rem;
    animation: float 4s infinite ease-in-out;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
}

.food-item {
    top: 20px;
    inset-inline-start: 20px;
    animation-delay: 0s;
}

.home-item {
    bottom: 30px;
    inset-inline-end: 25px;
    animation-delay: 1.3s;
}

.veg-item {
    bottom: 25px;
    inset-inline-start: 40px;
    animation-delay: 2.5s;
}

.hero-circle {
    position: absolute;
    top: 40px;
    inset-inline-end: -20px;
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    background-color: var(--secondary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    border: 3px solid #ffffff;
    animation: circle-bounce 6s infinite ease-in-out;
    z-index: 3;
}

.circle-title {
    font-size: 0.95rem;
    font-weight: 800;
}

.circle-sub {
    font-size: 0.8rem;
    opacity: 0.95;
    margin-top: 4px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-12px) rotate(6deg); }
}

@keyframes blob-float {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(1) rotate(0); }
    50% { border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%; transform: scale(1.1) rotate(60deg); }
}

@keyframes circle-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}

/* Store Content Styling */
.store-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Category Tabs navigation */
.categories-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-tab:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-tab.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.tab-icon {
    font-size: 1.3rem;
}

/* Search results info */
.search-feedback {
    background-color: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--primary-dark);
}

.reset-filter-btn {
    color: var(--danger);
    font-weight: 700;
    text-decoration: underline;
    background: transparent;
}

/* Products Grid System */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Product Card Design */
.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(16, 185, 129, 0.2);
}

.product-image-container {
    position: relative;
    height: 220px;
    background-color: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

/* Background graphics inside empty image slot */
.product-image-container::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.product-image-container span {
    z-index: 2;
    transition: var(--transition-bounce);
}

.product-card:hover .product-image-container span {
    transform: scale(1.15) rotate(6deg);
}

.product-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 3;
}

.badge-veg {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.badge-food {
    background-color: #eff6ff;
    color: #2563eb;
}

.badge-household {
    background-color: #faf5ff;
    color: #7c3aed;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.add-to-cart-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.add-to-cart-btn svg {
    width: 22px;
    height: 22px;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Features / Why Us Section */
.features-section {
    padding: 60px 0;
    background-color: var(--primary-light);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Side Drawers (Shopping Cart) */
.cart-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--overlay-bg);
    opacity: 0;
    visibility: hidden;
    z-index: 990;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

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

.cart-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: 460px;
    max-width: 100%;
    background-color: var(--bg-card);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hide cart on start according to language orientation */
html[dir="ltr"] .cart-sidebar {
    transform: translateX(100%);
}
html[dir="rtl"] .cart-sidebar {
    transform: translateX(-100%);
}

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

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

.cart-title {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.close-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-cart-btn:hover {
    background-color: var(--bg-body);
    color: var(--text-main);
}

.close-cart-btn svg {
    width: 18px;
    height: 18px;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Empty Cart State in Body */
.cart-empty-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--text-muted);
}

.cart-empty-body svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Individual Cart Item Row styling */
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid var(--border);
}

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

.cart-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cart-item-price {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-controller {
    display: flex;
    align-items: center;
    background-color: var(--bg-body);
    border-radius: var(--radius-full);
    padding: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--border);
}

.qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.remove-item-btn {
    color: var(--text-muted);
    transition: var(--transition);
}

.remove-item-btn:hover {
    color: var(--danger);
}

.remove-item-btn svg {
    width: 18px;
    height: 18px;
}

/* Cart footer components */
.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-body);
}

.cart-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

.total-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.cart-actions-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

/* Checkout and General Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--overlay-bg);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

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

.modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition-bounce);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 24px;
    inset-inline-end: 24px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-modal-btn:hover {
    background-color: var(--bg-body);
    color: var(--text-main);
}

.close-modal-btn svg {
    width: 18px;
    height: 18px;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* Form Styles */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea, .form-group select {
    border: 2px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-order-summary {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-line.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Success Step screen styling */
.checkout-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.success-message {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 460px;
    margin-bottom: 30px;
}

.success-message strong {
    color: var(--primary-dark);
    font-weight: 800;
}

.receipt-box {
    width: 100%;
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 30px;
    text-align: start;
}

.receipt-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.receipt-divider {
    height: 1px;
    border-top: 1px dashed var(--border);
    margin: 16px 0;
}

.receipt-row.total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0;
}

/* Footer Section */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 0 0 0;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer .logo-text {
    background: linear-gradient(135deg, #34d399, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-desc {
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links-group h4, .footer-contact h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-links-group h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    inset-inline-start: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group ul a:hover {
    color: #ffffff;
    padding-inline-start: 6px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.payment-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-badges .badge {
    background-color: #1e293b;
    color: #e2e8f0;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Responsive Styling for Mobile */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-visual {
        margin-top: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        height: auto;
        padding: 16px 0;
        flex-direction: column;
        gap: 16px;
    }

    .search-container {
        width: 100%;
        max-width: 100%;
        order: 3;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .hero-image-card {
        width: 290px;
        height: 290px;
        font-size: 4.5rem;
    }
    
    .hero-circle {
        width: 100px;
        height: 100px;
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .circle-title {
        font-size: 0.8rem;
    }
    
    .circle-sub {
        font-size: 0.65rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Custom Image styling for Hero Card */
.hero-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 4px);
    z-index: 1;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: var(--transition-bounce);
}

.hero-image-card:hover .hero-main-img {
    transform: scale(1.04);
    opacity: 1;
}

/* Payment Badges in Footer */
.payment-methods-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.pay-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.pay-icons-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pay-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pay-card i {
    font-size: 16px;
}

.pay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.pay-card.visa {
    background: linear-gradient(135deg, #1a1f71 0%, #2b32b2 100%);
    color: #ffffff;
    border-color: transparent;
}

.pay-card.mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #ff5f00 100%);
    color: #ffffff;
    border-color: transparent;
}

.pay-card.mada {
    background: linear-gradient(135deg, #00875a 0%, #00b87c 100%);
    color: #ffffff;
    border-color: transparent;
}

.pay-card.applepay {
    background: #000000;
    color: #ffffff;
    border-color: transparent;
}

.pay-card.stcpay {
    background: linear-gradient(135deg, #4f2d7f 0%, #7b3fb0 100%);
    color: #ffffff;
    border-color: transparent;
}

.pay-card.cod {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: transparent;
}


