/* Custom CSS for A Mart Super Market */

/* Variables */
:root {
    --primary-color: #2E7D32; /* Fresh Green */
    --primary-hover: #1B5E20;
    --accent-color: #FF9800; /* Orange */
    --accent-hover: #F57C00;
    --bg-light: #F8F9FA;
    --text-dark: #212529;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

/* Utilities */
.text-primary-custom { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }
.bg-light-custom { background-color: #f1f8f2 !important; } /* Very light green tint */

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

.btn-outline-primary-custom {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}
.btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

.hover-primary:hover { color: var(--primary-color) !important; }
.hover-primary-text:hover { color: var(--primary-color) !important; }
.hover-white:hover { color: white !important; }

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}
.custom-dropdown {
    min-width: 200px;
    border-radius: 12px;
    margin-top: 10px;
}

/* Hero Section */
.hero-section {
    min-height: 85vh;
}
.shape {
    z-index: -1;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Product Card */
.product-card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}
.product-img-wrapper {
    height: 220px;
}
.product-img {
    height: 100%;
    object-fit: cover;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}
.product-card:hover .product-actions {
    opacity: 1 !important;
    bottom: 20px !important;
}
.btn-inquiry:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: rotate(15deg);
}

/* Category Card */
.group-hover-scale:hover, .group:hover .group-hover-scale {
    transform: scale(1.1);
}
.group-hover-bg-primary:hover, .group:hover .group-hover-bg-primary {
    background-color: #f1f8f2 !important;
}
.group-hover-text-primary:hover, .group:hover .group-hover-text-primary {
    color: var(--primary-color) !important;
}

/* Floating Action Buttons */
.floating-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    color: white;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
}
.whatsapp-btn {
    right: 30px;
    background-color: #25D366;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}
.call-btn {
    right: 105px;
    background-color: var(--primary-color);
}
.call-btn:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 80px; /* Above cookie banner */
    }
    .whatsapp-btn { right: 20px; }
    .call-btn { right: 80px; }
}

/* Footer */
.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}
.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
}
.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25);
}
.custom-checkbox {
    width: 1.25em;
    height: 1.25em;
}

/* Gallery */
.gallery-img {
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.5s ease;
    cursor: pointer;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.03);
}

/* Process Section */
.process-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    margin: 0 auto 20px;
}
