* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: #212121;
    background-color: #fdfaf6;
}

/* Header - Mobile First */
.header {
    background: #6a1b1a;
    color: white;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

.logo span {
    font-size: 0.75rem;
    opacity: 0.9;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-icon, .cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.search-icon:hover, .cart-icon:hover {
    background: rgba(255,255,255,0.1);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #c62828;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* Search Bar */
.search-container {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    display: none;
}

.search-container.active {
    display: block;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fdfaf6;
    border-radius: 8px;
    padding: 12px 16px;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: #212121;
}

.search-input::placeholder {
    color: #878787;
}

/* Hero Banner */
.hero {
    background: linear-gradient(135deg, #de6f47, #b48551);
    color: white;
    padding: 24px 16px;
    text-align: center;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.hero p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Categories - Horizontal Scroll */
.categories {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.categories-title {
    padding: 0 16px 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #212121;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 12px;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    text-align: center;
    width: 80px;
    cursor: pointer;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 8px;
    transition: transform 0.2s;
}

.category-item:active .category-icon {
    transform: scale(0.95);
}

.category-name {
    font-size: 0.75rem;
    color: #212121;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    background: #fdfaf6;
    border: 1px solid #e0e0e0;
    color: #212121;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn.active, .filter-btn:active {
    background: #6a1b1a;
    color: white;
    border-color: #6a1b1a;
}

/* Products Grid */
.products {
    padding: 16px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.products-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #212121;
}

.sort-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #212121;
    cursor: pointer;
}

.sort-btn:hover {
    background: #fdfaf6;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    cursor: pointer;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #388e3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.product-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #212121;
    line-height: 1.3;
    cursor: pointer;
}

.product-name:hover {
    color: #6a1b1a;
}

.product-description {
    color: #878787;
    font-size: 0.75rem;
    margin-bottom: 8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c62828;
}

.product-original-price {
    font-size: 0.9rem;
    color: #878787;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantity-btn {
    background: #6a1b1a;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.quantity-btn:active {
    background: #4e1010;
}

.quantity-display {
    background: #fdfaf6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 32px;
    text-align: center;
}

.add-to-cart {
    background: #b8860b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s;
    flex: 1;
}

.add-to-cart:active {
    background: #e68900;
}

.view-details {
    background: #6a1b1a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s;
    flex: 1;
}

.view-details:active {
    background: #4e1010;
}

/* Cart Sidebar - Full Screen on Mobile */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 90vh;
    background: white;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: #6a1b1a;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #fdfaf6;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #212121;
}

.cart-item-price {
    color: #c62828;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity-btn {
    background: #fdfaf6;
    border: 1px solid #e0e0e0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212121;
}

.cart-quantity-btn:active {
    background: #e0e0e0;
}

.cart-item-quantity {
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #c62828;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px;
}

.cart-total {
    background: white;
    padding: 20px 16px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.total-amount {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212121;
    text-align: center;
    margin-bottom: 16px;
}

.whatsapp-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.whatsapp-btn:active {
    background: #128c7e;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #878787;
}

.empty-cart h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #212121;
}

/* Sort Modal */
.sort-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.sort-modal.active {
    display: flex;
}

.sort-content {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 16px 16px 0 0;
    padding: 0;
    animation: slideUp 0.3s ease-out;
}

.sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sort-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.close-sort {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #878787;
}

.sort-options {
    padding: 16px 0;
}

.sort-option {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: #212121;
    cursor: pointer;
    transition: background 0.2s;
}

.sort-option:hover, .sort-option.active {
    background: #fdfaf6;
}

/* Footer */
.footer {
    background: white;
    margin-top: 40px;
    padding: 24px 16px;
    border-top: 1px solid #e0e0e0;
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #212121;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #fdfaf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-size: 0.9rem;
    color: #212121;
    margin-bottom: 2px;
}

.contact-details p {
    font-size: 0.8rem;
    color: #878787;
}

.footer-bottom {
    text-align: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #fdfaf6;
    font-size: 0.8rem;
    color: #878787;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .header-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .logo span {
        display: block;
    }

    .search-container {
        display: block;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .categories {
        padding: 32px 0;
    }

    .category-scroll {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }

    .category-item {
        width: 120px;
    }

    .category-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .category-name {
        font-size: 0.9rem;
    }

    .products {
        max-width: 1200px;
        margin: 0 auto;
        padding: 32px 20px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 300px;
    }

    .cart-sidebar {
        width: 420px;
        right: -420px;
    }

    .sort-modal {
        align-items: center;
    }

    .sort-content {
        border-radius: 16px;
        max-width: 300px;
    }

    .footer {
        padding: 40px 20px;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .contact-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6a1b1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 

24/7/2025

*/
.notify-btn {
    background: #ffa500;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
    transition: all 0.2s;
}

.notify-btn:hover {
    background: #e69500;
}

.notify-btn:active {
    background: #cc8400;
}

/* Extra responsive adjustments */
@media (max-width: 768px) {
    .notify-btn {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .notify-btn {
        font-size: 0.8rem;
        padding: 8px;
    }
}
