/* Aroma Agro Products Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #3bb77e;
    --primary-hover: #29a06b;
    --primary-light: #ecf8f3;
    --dark: #253d4e;
    --grey-light: #f4f6fa;
    --border-color: #ececec;
    --heading-font: 'Outfit', sans-serif;
    --body-font: 'Outfit', sans-serif;
    --serif-font: 'Playfair Display', serif;
}

body {
    font-family: var(--body-font);
    color: #7e7e7e;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px; /* Leave space for sticky bottom navigation on mobile */
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark);
    font-weight: 700;
}

.text-dark-blue {
    color: var(--dark) !important;
}

.font-serif {
    font-family: var(--serif-font);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes bounceCart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.bounce-animation {
    animation: bounceCart 0.4s ease-in-out;
}

/* Header & Search */
.header-top {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.search-form {
    max-width: 500px;
    width: 100%;
}

.search-input {
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    background-color: var(--grey-light);
    transition: all 0.3s ease;
}

.search-input:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.15);
    outline: none;
}

/* Nav Links */
.nav-link-custom {
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 15px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link-custom:hover {
    color: var(--primary);
}

/* Icon Buttons with Badges */
.header-action-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 22px;
    padding: 8px;
    transition: all 0.3s ease;
}

.header-action-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.header-action-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* Hero Section */
.hero-slider-container {
    background-color: #c9f2db;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    padding: 60px 80px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .hero-slider-container {
        padding: 40px 25px;
        border-radius: 20px;
    }
}

.hero-badge {
    background-color: #25d366;
    color: #ffffff;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 40px;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: #5b6e7a;
    margin-bottom: 30px;
    max-width: 450px;
}

.btn-pill-primary {
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

.btn-pill-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 183, 126, 0.3);
    color: #ffffff;
}

.hero-floating-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: absolute;
    bottom: 40px;
    right: 40px;
    max-width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.hero-floating-card:hover {
    transform: scale(1.05);
}

.hero-floating-card img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
}

/* Category Grid */
.category-card {
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: rgba(0,0,0,0.05);
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.category-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-count {
    font-size: 12px;
    opacity: 0.8;
}

/* Product Cards */
.product-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #3bb77e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.product-img-wrapper {
    width: calc(100% + 40px);
    margin: -20px -20px 15px -20px;
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-category {
    font-size: 11px;
    color: #adadad;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary);
}

.product-weight {
    font-size: 12px;
    color: #b6b6b6;
    margin-bottom: 12px;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.btn-add-to-cart {
    background-color: #ffffff;
    color: #333333;
    border: 1.2px solid #e2e8f0;
    border-radius: 25px;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 0 auto;
    cursor: pointer;
}

.btn-add-to-cart:hover {
    background-color: #f8fafc;
    color: #111111;
    border-color: #94a3b8;
    transform: translateY(-1.5px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.04);
}

/* Middle Banner */
.middle-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #d0ebff 100%);
    border-radius: 30px;
    padding: 60px 80px;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

@media (max-width: 768px) {
    .middle-banner {
        padding: 40px 25px;
        border-radius: 20px;
    }
}

.middle-banner-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    max-width: 450px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.middle-banner-sub {
    color: #586a7a;
    font-size: 16px;
    max-width: 400px;
    margin-bottom: 30px;
}

.middle-banner-img {
    position: absolute;
    right: 50px;
    bottom: -10px;
    height: 110%;
    object-fit: contain;
    z-index: 1;
}

@media (max-width: 991px) {
    .middle-banner-img {
        display: none;
    }
}

/* Bottom Banner */
.bottom-banner {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border-radius: 30px;
    padding: 60px 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .bottom-banner {
        padding: 40px 25px;
        border-radius: 20px;
    }
}

.bottom-banner-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

/* Tab Navigation for best selling */
.nav-pills-custom {
    gap: 10px;
}

.nav-pills-custom .nav-link {
    background-color: var(--grey-light);
    color: var(--dark);
    font-weight: 600;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-pills-custom .nav-link.active,
.nav-pills-custom .nav-link:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-drawer.active {
    right: 0;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-drawer-close:hover {
    color: var(--primary);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    width: fit-content;
    margin-top: 5px;
}

.cart-qty-btn {
    border: none;
    background: none;
    padding: 2px 10px;
    font-size: 12px;
    color: var(--dark);
    cursor: pointer;
}

.cart-qty-btn:hover {
    background-color: var(--grey-light);
}

.cart-qty-input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 12px;
    font-weight: 700;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #e57373;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #d32f2f;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--grey-light);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 15px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1030;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.mobile-bottom-nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b96a5;
    position: relative;
    padding: 5px 0;
    width: 20%;
    transition: all 0.3s ease;
}

.mobile-bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav-item span {
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Active tab style with floating indicator */
.mobile-bottom-nav-item.active {
    color: var(--primary);
}

.mobile-bottom-nav-item.active i {
    transform: translateY(-8px) scale(1.2);
    color: var(--primary);
}

.mobile-bottom-nav-item.active span {
    opacity: 1;
    transform: translateY(-2px);
}

/* Background floating bubble */
.mobile-bottom-nav-item::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%) scale(0);
    z-index: -1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav-item.active::before {
    transform: translate(-50%, -65%) scale(1.1);
}

/* Special center item for mobile cart */
.mobile-bottom-nav-item.cart-fab {
    z-index: 1035;
}

.mobile-bottom-nav-item.cart-fab::before {
    display: none;
}

.mobile-bottom-nav-item.cart-fab i {
    background-color: var(--primary);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(59, 183, 126, 0.4);
    transform: translateY(-15px);
}

.mobile-bottom-nav-item.cart-fab.active i {
    background-color: var(--dark);
    box-shadow: 0 5px 15px rgba(37, 61, 78, 0.4);
    transform: translateY(-15px) scale(1.1);
}

.mobile-bottom-nav-item.cart-fab span {
    transform: translateY(-10px);
}

.mobile-bottom-nav-item.cart-fab.active span {
    transform: translateY(-10px);
}

.mobile-bottom-badge {
    position: absolute;
    top: -20px;
    right: 15px;
    background-color: #ff3838;
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Just For You Slider scroll helper */
.overflow-x-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 5px 25px;
    -webkit-overflow-scrolling: touch;
}

.overflow-x-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.overflow-x-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.overflow-x-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.overflow-x-scroll-container .product-card-wrapper {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

/* Custom Alert */
.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: var(--dark);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    z-index: 2000;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-alert.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.custom-alert i {
    color: var(--primary);
}

/* Sub-header Nav Pills exactly as screenshot */
.header-nav-pill {
    display: inline-block;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 5px 16px;
    color: #111111;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.header-nav-pill:hover, .header-nav-pill.active {
    border-color: #111111;
    color: #111111;
    background-color: #f7f7f7;
}

/* Footer Custom Styles exactly matching high contrast */
#footer-section {
    background-color: #1e2229 !important; /* Premium dark background */
    color: #a0aec0 !important; /* Visible light grey-blue subtext */
}

#footer-section h5.logo-text {
    color: #ffffff !important;
}

#footer-section h5.logo-text span {
    color: var(--primary) !important;
}

#footer-section h6 {
    color: #5b7083 !important; /* Grey color matching screenshot headers */
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

#footer-section p, 
#footer-section span, 
#footer-section li, 
#footer-section a {
    color: #a0aec0 !important; /* High contrast text */
    font-size: 14px;
}

#footer-section a {
    text-decoration: none !important;
    transition: color 0.2s ease;
}

#footer-section a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

#footer-section .text-success, 
#footer-section i.text-success,
#footer-section i.bi-geo-alt-fill,
#footer-section i.bi-telephone-fill {
    color: #3bb77e !important; /* Bright green icons */
}

/* Custom styled input group for newsletter pill exactly as screenshot */
#footer-section .input-group {
    background-color: #ffffff !important;
    border-radius: 30px !important;
    padding: 3px !important;
    overflow: hidden;
    border: none !important;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
}

#footer-section .input-group input.form-control {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    color: #111111 !important;
    flex-grow: 1;
}

#footer-section .input-group input.form-control::placeholder {
    color: #7e7e7e !important;
    opacity: 0.8;
}

#footer-section .input-group button.btn {
    background-color: #1b8a5a !important; /* Darker green theme button */
    border: none !important;
    border-radius: 20px !important;
    width: 50px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: #ffffff !important;
    margin-left: auto;
    transition: background-color 0.2s ease;
}

#footer-section .input-group button.btn:hover {
    background-color: #146c43 !important;
}

#footer-section .input-group button.btn i {
    color: #ffffff !important;
    font-size: 16px;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Courier Responsive Image */
.hero-courier-img {
    height: 220px;
    width: auto;
}
@media (min-width: 992px) {
    .hero-courier-img {
        height: 450px;
    }
}

/* Staggered Hero Element Animations */
.hero-logo-anim {
    opacity: 0;
    transform: scale(0.92);
    animation: heroLogoFade 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.hero-title-anim {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.25s forwards;
}

.hero-btn-anim {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s forwards;
}

.hero-courier-anim {
    opacity: 0;
    transform: translate(-50%, 60px);
    animation: heroCourierFade 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.15s forwards;
    will-change: transform, opacity;
}

.hero-badge-anim {
    opacity: 0;
    transform: scale(0.8) translateY(15px);
    animation: heroBadgeFade 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.7s forwards;
}

.hero-card-anim {
    opacity: 0;
    transform: translateX(30px);
    animation: heroCardFade 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.8s forwards;
}

/* Keyframes */
@keyframes heroLogoFade {
    to { opacity: 0.95; transform: scale(1); }
}
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroCourierFade {
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes heroBadgeFade {
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes heroCardFade {
    to { opacity: 1; transform: translateX(0); }
}
