/* Global Styles */
:root {
    --primary-blue: #0a3d6b;
    --deep-blue: #052a4a;
    --accent-red: #d32f2f;
    --soft-blue: #e8f0fe;
    --light-gray: #f9fbfe;
    --success-green: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
    background: #f4f7fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-bottom: 4px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Logo Styles - Updated for Image */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.logo-text h1 {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
    color: white;
}

.logo-text span {
    font-weight: 300;
    font-size: 0.9rem;
    color: #b0cde0;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-btn:hover, .nav-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.03);
}

.admin-highlight {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1.2rem;
    flex: 1;
    width: 100%;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-header h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
}

.shop-header p {
    color: #666;
    margin-top: 5px;
}

.location-badge {
    background: var(--soft-blue);
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--primary-blue);
    font-weight: 600;
    border-left: 4px solid var(--accent-red);
    display: inline-block;
}

/* Search Container */
.search-container {
    background: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--primary-blue);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--accent-red);
}

/* Product Grid - RESPONSIVE */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e8f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 61, 107, 0.2);
    border-color: var(--primary-blue);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--soft-blue);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .placeholder-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    opacity: 0.5;
}

.category-tag {
    background: var(--soft-blue);
    color: var(--primary-blue);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    border-left: 3px solid var(--accent-red);
    width: fit-content;
}

.product-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a2b3c;
    margin: 0.3rem 0 0.5rem;
    line-height: 1.4;
    flex-grow: 1;
}

.price-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #ccc;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
}

.stock-badge {
    background: #e6f7e6;
    color: #1e7a1e;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
}

.stock-badge.out {
    background: #ffe6e6;
    color: var(--accent-red);
}

/* WhatsApp Button */
.whatsapp-btn {
    margin-top: 12px;
    background: var(--success-green);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
    width: 100%;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.02);
}

/* Admin Panel Styles */
.admin-panel {
    background: white;
    border-radius: 24px;
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-blue);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    color: var(--primary-blue);
}

.stats {
    background: #f0f5fd;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--deep-blue);
}

.admin-product-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-gray);
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    border: 1px solid #e1e9f5;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-row .info {
    flex: 2;
    min-width: 150px;
}

.admin-row .name {
    font-weight: 700;
    color: #0a2a44;
}

.admin-row .category {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.admin-row .current-price {
    font-weight: 700;
    color: var(--primary-blue);
}

.inline-input {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #b0c6e0;
    width: 100px;
    font-weight: 600;
}

.admin-actions {
    display: flex;
    gap: 6px;
}

.admin-btn {
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.1s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.admin-btn.danger {
    color: var(--accent-red);
    border-color: #f0b0b0;
}

.admin-btn.danger:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* Stock Select Styling */
.stock-select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #b0c6e0;
    font-weight: 600;
    background: white;
    cursor: pointer;
    min-width: 120px;
}

.stock-select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.admin-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-controls label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

/* Product Thumbnail in Admin */
.product-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnail i {
    font-size: 1.5rem;
    color: #0a3d6b;
}

/* Upload Button */
.admin-btn.upload-btn {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.admin-btn.upload-btn:hover {
    background: #45a049;
}

.admin-btn.delete-btn {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.admin-btn.delete-btn:hover {
    background: #da190b;
}

.file-input-hidden {
    display: none;
}

/* About Page Styles */
.about-section, .contact-section {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border: 1px solid #e0e8f0;
}

.about-section h2, .contact-section h2 {
    color: var(--primary-blue);
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 1.5rem;
}

.about-section p, .contact-section p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-content {
    line-height: 1.8;
    color: #333;
}

.about-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.values-section {
    background: #f9fbfe;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-blue);
}

.values-section h3,
.why-choose-us h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.values-list i {
    color: var(--success-green);
}

.why-choose-us {
    margin: 2rem 0;
}

.why-choose-us h3 {
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e0e8f0;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(10, 61, 107, 0.15);
    border-color: var(--primary-blue);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Contact Page Styles */
.contact-details {
    background: #f9fbfe;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-blue);
}

.contact-details p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i {
    color: var(--accent-red);
    width: 20px;
    text-align: center;
}

.working-hours {
    background: var(--soft-blue);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.map-container {
    border: 2px solid #e0e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Footer */
footer {
    background: var(--deep-blue);
    color: #ccc;
    text-align: center;
    padding: 1.2rem;
    font-size: 0.85rem;
    border-top: 3px solid var(--accent-red);
    margin-top: 1rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 100;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
    }
    
    .nav-buttons {
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
    
    .shop-header {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .admin-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        min-height: auto;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
}