/* Konga-Style Layout CSS - Maintaining Ihsan Shop Color Scheme */

/* Top Banner Styles */
.top-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.banner-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.app-download {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.app-download img {
    border-radius: 4px;
    transition: transform 0.2s;
}

.app-download img:hover {
    transform: scale(1.05);
}

/* Utility Navigation Styles */
.utility-nav {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
}

.utility-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.utility-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.utility-link:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* Main Header Styles */
.main-header {
    background-color: #4f46e5;
    border-bottom: 1px solid #3730a3;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.header-links {
    display: flex;
    gap: 1.5rem;
}

.header-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-link:hover {
    color: #fbbf24;
    text-decoration: none;
}

/* Search Container Styles */
.search-container {
    max-width: 600px;
}

.search-form {
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-box:focus-within {
    border-color: #4f46e5;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    background: transparent;
    font-size: 1rem;
}

.search-btn {
    background-color: #4f46e5;
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #3730a3;
}

/* Header Actions Styles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-action {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    background-color: #4f46e5;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 0 5px;
}

.header-action:hover {
    color: white;
    background-color: #3730a3;
    text-decoration: none;
}

.header-action.dropdown-toggle {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
}

.header-action.dropdown-toggle:hover {
    background-color: #3730a3;
    color: white;
}

.header-action.dropdown-toggle:focus {
    background-color: #3730a3;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
}

.cart-btn {
    background-color: #4f46e5;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cart-btn:hover {
    background-color: #3730a3;
    color: white;
}

/* Category Navigation Styles */
.category-nav {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.category-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.all-categories-btn {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
}

.all-categories-btn:hover {
    background-color: #3730a3;
    border-color: #3730a3;
    color: white;
}

.category-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.category-link:hover {
    color: #4f46e5;
    text-decoration: none;
}

/* Main Content Area Styles */
.main-content-area {
    background-color: #f8fafc;
    min-height: 500px;
    padding: 20px 0;
}

/* Hero Banner Styles */
.hero-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: white;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #fbbf24;
}

.hero-description {
    margin-bottom: 30px;
}

.hero-description p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.cities-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.city {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.delivery-image {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.delivery-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.delivery-box {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.hero-footer {
    margin-top: 30px;
}

.order-info {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: white;
}

/* Sidebar Styles */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-block {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* POS Promotion Block */
.pos-promotion {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.block-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.block-header h5 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.pos-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Info Block */
.contact-info {
    background-color: white;
}

.contact-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.phone-number,
.whatsapp-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 0;
}

/* Free Delivery Block */
.free-delivery {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.delivery-banner {
    text-align: center;
}

.delivery-banner h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Exclusive Discount Block */
.exclusive-discount {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.discount-banner {
    text-align: center;
}

.discount-banner h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.discount-banner p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.discount-banner small {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 15px;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1f2937;
    color: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-banner.hidden {
    display: none;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background-color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.chat-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
}

.chat-popup.show {
    display: block;
}

.chat-header {
    background-color: #4f46e5;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h6 {
    margin: 0;
    font-weight: 600;
}

.chat-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    background-color: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
}

.chat-input button {
    background-color: #4f46e5;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .utility-links {
        gap: 1rem;
    }
    
    .utility-link {
        font-size: 0.8rem;
    }
    
    .category-links {
        gap: 1rem;
    }
    
    .category-link {
        font-size: 0.9rem;
    }
    
    .hero-banner {
        padding: 20px;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .delivery-image {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 20px;
    }
    
    .cities-list {
        justify-content: center;
    }
    
    .chat-popup {
        width: 300px;
    }
}

@media (max-width: 576px) {
    .top-banner .row {
        text-align: center;
    }
    
    .app-download {
        margin: 10px 0;
    }
    
    .search-container {
        margin: 15px 0;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .category-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .hero-banner {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}
