:root {
    --primary-color: #0B4A91;
    /* Requested Blue */
    --secondary-color: #2EC4B6;
    /* Green/Teal accent */
    --success-color: #22C55E;
    /* Green for add buttons */
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --header-height: 140px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-bottom: 80px;
    /* Space for mobile floating buttons */
}

/* Header */
header {
    background-color: #0B4A7E;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 2rem;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* Search Bar (Center) */
.search-container {
    flex-grow: 1;
    max-width: 600px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background-color: white;
    color: #374151;
    transition: all 0.2s;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-icon {
    position: absolute;
    right: 1.25rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    /* Blue icon inside white input */
    cursor: pointer;
}

/* Header Actions (Right) */
.header-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    /* White text */
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* White icons */
    position: relative;
}

.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.action-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    /* Light white */
}

.action-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.header-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #EF4444;
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
}


/* Mobile Responsive */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .store-info {
        order: 1;
    }

    .header-actions {
        order: 2;
        gap: 1rem;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .action-text {
        display: none;
        /* Hide text on smaller screens */
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .header-actions {
        gap: 1rem;
    }

    .search-input {
        padding: 0.6rem 2.5rem 0.6rem 1rem;
    }
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Categories */
.categories-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.categories-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    /* Firefox */
}

.categories-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 100px;
    background: #0B4A7E;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.category-btn.active,
.category-btn:hover {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: white;
}

.category-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-btn span {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    padding: 0 4px;
}

/* Products Grid */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    height: 200px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #8fc30f;
}

.add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #8fc30f;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-btn:hover {
    background-color: #16a34a;
}

/* Floating Cart Button */
.cart-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #8fc30f;
    color: white;
    padding: 0 1.5rem;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 50;
    font-weight: 600;
    font-size: 1rem;
}

.cart-count {
    background-color: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Cart Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: flex-end;
    z-index: 1000;
}

.modal-overlay.open {
    display: flex;
}

.cart-sidebar {
    background: white;
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.modal-overlay.open .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.25rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f3f4f6;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--text-light);
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.qty-btn:hover {
    background-color: #f3f4f6;
}

.quantity {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

.remove-btn {
    color: #ef4444;
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: #f9fafb;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    background-color: #8DC63F;
    /* WhatsApp Green */
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #128C7E;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/ *   P r o d u c t   D e t a i l   V i e w   * /     . p r o d u c t - d e t a i l - v i e w    {
                 b a c k g r o u n d - c o l o r :    w h i t e ;
                 p a d d i n g :    2 r e m ;
                 b o r d e r - r a d i u s :    8 p x ;
                 m a r g i n - t o p :    1 r e m ;
         
}

         . p r o d u c t - d e t a i l - c o n t a i n e r    {
                 d i s p l a y :    f l e x ;
                 g a p :    3 r e m ;
                 a l i g n - i t e m s :    f l e x - s t a r t ;
         
}

         . d e t a i l - i m a g e - c o n t a i n e r    {
                 f l e x :    1 ;
                 m a x - w i d t h :    5 0 0 p x ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
                 b o r d e r - r a d i u s :    1 2 p x ;
                 p a d d i n g :    2 r e m ;
                 d i s p l a y :    f l e x ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 a l i g n - i t e m s :    c e n t e r ;
         
}

         . d e t a i l - i m a g e    {
                 w i d t h :    1 0 0 % ;
                 h e i g h t :    a u t o ;
                 o b j e c t - f i t :    c o n t a i n ;
                 m a x - h e i g h t :    4 0 0 p x ;
         
}

         . d e t a i l - i n f o    {
                 f l e x :    1 ;
         
}

         . d e t a i l - n a m e    {
                 f o n t - s i z e :    2 r e m ;
                 f o n t - w e i g h t :    7 0 0 ;
                 m a r g i n - b o t t o m :    0 . 5 r e m ;
                 c o l o r :    v a r ( - - t e x t - c o l o r ) ;
                 l i n e - h e i g h t :    1 . 2 ;
         
}

         . d e t a i l - e a n    {
                 f o n t - s i z e :    0 . 8 7 5 r e m ;
                 c o l o r :    v a r ( - - t e x t - l i g h t ) ;
                 m a r g i n - b o t t o m :    1 . 5 r e m ;
         
}

         . d e t a i l - p r i c e - c o n t a i n e r    {
                 m a r g i n - b o t t o m :    2 r e m ;
         
}

         . d e t a i l - p r i c e    {
                 f o n t - s i z e :    2 . 5 r e m ;
                 f o n t - w e i g h t :    7 0 0 ;
                 c o l o r :    v a r ( - - s u c c e s s - c o l o r ) ;
         
}

         . d e t a i l - a c t i o n s    {
                 d i s p l a y :    f l e x ;
                 g a p :    1 r e m ;
                 m a r g i n - b o t t o m :    2 r e m ;
         
}

         . d e t a i l - a d d - b t n    {
                 f l e x :    1 ;
                 b a c k g r o u n d - c o l o r :    v a r ( - - s u c c e s s - c o l o r ) ;
                 c o l o r :    w h i t e ;
                 b o r d e r :    n o n e ;
                 p a d d i n g :    1 r e m ;
                 b o r d e r - r a d i u s :    8 p x ;
                 f o n t - s i z e :    1 . 1 2 5 r e m ;
                 f o n t - w e i g h t :    6 0 0 ;
                 c u r s o r :    p o i n t e r ;
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 g a p :    0 . 5 r e m ;
                 t r a n s i t i o n :    b a c k g r o u n d - c o l o r   0 . 2 s ;
         
}

         . d e t a i l - a d d - b t n : h o v e r    {
                 b a c k g r o u n d - c o l o r :    # 1 6 a 3 4 a ;
         
}

         . d e t a i l - w h a t s a p p - b t n    {
                 f l e x :    1 ;
                 b a c k g r o u n d - c o l o r :    # 2 5 D 3 6 6 ;
                 c o l o r :    w h i t e ;
                 b o r d e r :    n o n e ;
                 p a d d i n g :    1 r e m ;
                 b o r d e r - r a d i u s :    8 p x ;
                 f o n t - s i z e :    1 . 1 2 5 r e m ;
                 f o n t - w e i g h t :    6 0 0 ;
                 c u r s o r :    p o i n t e r ;
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 g a p :    0 . 5 r e m ;
                 t r a n s i t i o n :    b a c k g r o u n d - c o l o r   0 . 2 s ;
         
}

         . d e t a i l - w h a t s a p p - b t n : h o v e r    {
                 b a c k g r o u n d - c o l o r :    # 1 2 8 C 7 E ;
         
}

         . d e t a i l - d e s c r i p t i o n   h 3    {
                 f o n t - s i z e :    1 . 2 5 r e m ;
                 m a r g i n - b o t t o m :    1 r e m ;
                 p a d d i n g - b o t t o m :    0 . 5 r e m ;
                 b o r d e r - b o t t o m :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
         
}

         . d e t a i l - d e s c r i p t i o n   u l    {
                 l i s t - s t y l e - t y p e :    d i s c ;
                 p a d d i n g - l e f t :    1 . 5 r e m ;
                 c o l o r :    v a r ( - - t e x t - c o l o r ) ;
                 l i n e - h e i g h t :    1 . 6 ;
         
}

         . d e t a i l - d e s c r i p t i o n   l i    {
                 m a r g i n - b o t t o m :    0 . 5 r e m ;
         
}

         . b a c k - l i n k    {
                 d i s p l a y :    i n l i n e - f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 g a p :    0 . 5 r e m ;
                 c o l o r :    v a r ( - - p r i m a r y - c o l o r ) ;
                 t e x t - d e c o r a t i o n :    n o n e ;
                 m a r g i n - b o t t o m :    1 . 5 r e m ;
                 f o n t - w e i g h t :    6 0 0 ;
                 c u r s o r :    p o i n t e r ;
         
}

         . b a c k - l i n k : h o v e r    {
                 t e x t - d e c o r a t i o n :    u n d e r l i n e ;
         
}

         / *   D e l i v e r y   M o d a l   * /     . d e l i v e r y - o p t i o n s    {
                 d i s p l a y :    f l e x ;
                 f l e x - d i r e c t i o n :    c o l u m n ;
                 g a p :    1 r e m ;
                 m a r g i n - t o p :    1 . 5 r e m ;
         
}

         . d e l i v e r y - o p t i o n - b t n    {
                 p a d d i n g :    1 r e m ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - c o l o r ) ;
                 b o r d e r - r a d i u s :    8 p x ;
                 b a c k g r o u n d :    w h i t e ;
                 c u r s o r :    p o i n t e r ;
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 g a p :    1 r e m ;
                 t r a n s i t i o n :    a l l   0 . 2 s ;
         
}

         . d e l i v e r y - o p t i o n - b t n : h o v e r    {
                 b o r d e r - c o l o r :    v a r ( - - p r i m a r y - c o l o r ) ;
                 b a c k g r o u n d - c o l o r :    # E F F 6 F F ;
         
}

         . d e l i v e r y - o p t i o n - b t n   i    {
                 c o l o r :    v a r ( - - p r i m a r y - c o l o r ) ;
         
}

         . l o c a t i o n - s t a t u s    {
                 m a r g i n - t o p :    1 r e m ;
                 p a d d i n g :    0 . 7 5 r e m ;
                 b a c k g r o u n d - c o l o r :    # F 3 F 4 F 6 ;
                 b o r d e r - r a d i u s :    8 p x ;
                 f o n t - s i z e :    0 . 8 7 5 r e m ;
                 c o l o r :    v a r ( - - t e x t - l i g h t ) ;
                 d i s p l a y :    n o n e ;
         
}

         / *   R e s p o n s i v e   P r o d u c t   D e t a i l   * /     @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
                 . p r o d u c t - d e t a i l - c o n t a i n e r    {
                             f l e x - d i r e c t i o n :    c o l u m n ;
                             g a p :    1 . 5 r e m ;
                     
    }

                     . d e t a i l - i m a g e - c o n t a i n e r    {
                             w i d t h :    1 0 0 % ;
                             m a x - w i d t h :    n o n e ;
                             p a d d i n g :    1 r e m ;
                     
    }

                     . d e t a i l - a c t i o n s    {
                             f l e x - d i r e c t i o n :    c o l u m n ;
                     
    }

         
}

     

/* --- Floating Category Navigation Overrides --- */
.categories-section {
    position: relative;
    padding: 0 1.5rem;
}

.categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Nav Buttons - Floating */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: var(--text-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev {
    left: -10px;
}

.nav-btn.next {
    right: -10px;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }

    .categories-section {
        padding: 0;
    }
}


/* --- Product Card & Image Resizing Overrides --- */
.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}

.product-image-container {
    height: 213px;
    background-color: white;
    padding: 0.5rem;
}

.product-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Read-only Payment Modal */
.modal-readonly .delivery-option-btn {
    cursor: default;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.modal-readonly .delivery-option-btn:hover {
    border-color: #eee;
    background: #f8f9fa;
}

/* Banner Section */
.banners-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.banner-slide {
    min-width: 100%;
    height: auto;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    /* Allow clicks to pass through except for buttons */
}

.banner-prev,
.banner-next {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s;
}

.banner-prev:hover,
.banner-next:hover {
    background: white;
    transform: scale(1.1);
}

.banner-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Banner */
@media (max-width: 768px) {
    .banner-slide {
        height: auto;
        /* Allow height to scale freely on mobile */
        /* Smaller height for mobile */
    }
}