/* ============================================
   FoodMart - Grocery Store CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --secondary: #FF9800;
    --secondary-dark: #F57C00;
    --accent: #FFEB3B;
    --dark: #1a1a2e;
    --dark-2: #2d2d44;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --bg-cream: #fdf6ec;
    --bg-light-green: #e8f5e9;
    --bg-light-yellow: #fff8e1;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Bootstrap Overrides */
    --bs-primary: #4CAF50;
    --bs-primary-rgb: 76, 175, 80;
    --bs-secondary: #FF9800;
    --bs-secondary-rgb: 255, 152, 0;
}

/* Button Primary Overrides for exact match */
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--dark);
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .separator {
    color: rgba(255,255,255,0.3);
    margin: 0 12px;
}

/* ---------- Header / Navbar ---------- */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--dark);
}

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

.category-dropdown .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-dropdown .btn:hover {
    background: var(--primary-dark);
}

.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-bar .form-control {
    border: 2px solid var(--gray-300);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-bar .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.search-bar .btn-search {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 20px;
    transition: var(--transition);
}

.search-bar .btn-search:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.header-actions .action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header-actions .action-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.header-actions .action-item i {
    font-size: 1.2rem;
}

.header-actions .cart-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 2px;
    right: 2px;
}

.cart-total {
    font-weight: 700;
    color: var(--primary);
}

/* ---------- Navigation ---------- */
.nav-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
}

.nav-bar .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 14px 18px !important;
    position: relative;
    transition: var(--transition);
}

.nav-bar .nav-link:hover,
.nav-bar .nav-link.active {
    color: var(--primary);
}

.nav-bar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-bar .nav-link:hover::after,
.nav-bar .nav-link.active::after {
    width: 70%;
}

.nav-bar .highlight {
    color: var(--secondary) !important;
    font-weight: 600;
}

/* ---------- Hero Section ---------- */
.hero-section {
    padding: 30px 0;
}

.hero-main {
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.hero-main:hover {
    box-shadow: var(--shadow-md);
}

.hero-main .badge-natural {
    background: rgba(76, 175, 80, 0.15);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-main h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
}

.hero-main p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 380px;
}

.hero-main .hero-img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.btn-shop {
    background: var(--dark);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-shop:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-side-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
}

.hero-side-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-side-card.card-green {
    background: var(--bg-light-green);
}

.hero-side-card.card-beige {
    background: var(--bg-cream);
}

.hero-side-card .discount-badge {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.hero-side-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-side-card .shop-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-side-card .card-img {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ---------- Section Title ---------- */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-title .view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.section-title .view-all:hover {
    gap: 8px;
}

/* ---------- Category Section ---------- */
.category-section {
    padding: 40px 0;
}

.category-card {
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.category-card .cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.category-card:hover .cat-icon {
    transform: scale(1.1);
}

.cat-icon.green { background: #e8f5e9; color: #4CAF50; }
.cat-icon.orange { background: #fff3e0; color: #FF9800; }
.cat-icon.red { background: #ffebee; color: #f44336; }
.cat-icon.purple { background: #f3e5f5; color: #9C27B0; }
.cat-icon.blue { background: #e3f2fd; color: #2196F3; }
.cat-icon.yellow { background: #fff8e1; color: #FFC107; }

.category-card h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ---------- Brand Slider ---------- */
.brand-section {
    padding: 30px 0;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    min-width: 280px;
}

.brand-card:hover {
    background: var(--bg-light-green);
    box-shadow: var(--shadow-sm);
}

.brand-card .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid var(--gray-200);
}

.brand-card .brand-info h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.brand-card .brand-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.brand-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.brand-slider::-webkit-scrollbar {
    display: none;
}

/* ---------- Product Cards ---------- */
.product-section {
    padding: 40px 0;
}

.product-tabs .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    transition: var(--transition);
}

.product-tabs .nav-link.active,
.product-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.product-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-card .product-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card .product-actions button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.product-card .product-actions button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.product-card .product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.product-card .badge-discount {
    background: #ff5252;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-card .badge-new {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-card .product-img-wrap {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-img-wrap img {
    max-height: 140px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-card .product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.5em;
}

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

.product-card .product-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.product-card .product-rating i {
    font-size: 0.7rem;
    color: #FFC107;
}

.product-card .product-rating span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card .price-current {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card .price-old {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-card .btn-add-cart {
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-card .btn-add-cart:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------- Promo Banner ---------- */
.promo-section {
    padding: 40px 0;
}

.promo-card {
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.promo-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.promo-card.promo-dark {
    background: #3e2723;
    color: #fff;
}

.promo-card.promo-light {
    background: #fff8e1;
    color: var(--text-primary);
}

.promo-card .promo-discount {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 6px;
}

.promo-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.promo-card .promo-img {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ---------- Discount / Newsletter Section ---------- */
.discount-section {
    padding: 60px 0;
}

.discount-banner {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: var(--radius-xl);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
}

.discount-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 30%;
    width: 100px;
    height: 100px;
    background: rgba(76, 175, 80, 0.08);
    border-radius: 50%;
}

.discount-banner h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.discount-banner h2 span {
    color: var(--primary);
    font-style: italic;
}

.discount-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.discount-form .form-control {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

.discount-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.discount-form .btn-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.discount-form .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- Blog Section ---------- */
.blog-section {
    padding: 50px 0;
}

.blog-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-card .blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-img {
    transform: scale(1.03);
}

.blog-card .blog-img-wrap {
    overflow: hidden;
}

.blog-card .blog-body {
    padding: 20px;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.blog-card .blog-meta .tag {
    background: var(--bg-light-green);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.72rem;
}

.blog-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card h5 a:hover {
    color: var(--primary);
}

.blog-card .blog-excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- App Download Section ---------- */
.app-section {
    padding: 50px 0;
    background: var(--gray-100);
}

.app-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.app-content .app-logo {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.app-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.app-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.app-store-btns {
    display: flex;
    gap: 12px;
}

.app-store-btns .store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition);
}

.app-store-btns .store-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.app-store-btns .store-btn i {
    font-size: 1.4rem;
}

.app-store-btns .store-btn .store-text {
    line-height: 1.2;
}

.app-store-btns .store-btn .store-text small {
    font-size: 0.65rem;
    opacity: 0.8;
    display: block;
}

.app-store-btns .store-btn .store-text span {
    font-weight: 600;
    font-size: 0.9rem;
}

.app-mockup-img {
    max-width: 320px;
    border-radius: var(--radius-lg);
}

/* ---------- Tags Section ---------- */
.tags-section {
    padding: 30px 0;
}

.tags-section h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list a {
    background: var(--gray-100);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.tag-list a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- Features / USP Bar ---------- */
.features-bar {
    padding: 30px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.feature-item .feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-item h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ---------- Footer ---------- */
.main-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding-top: 50px;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 12px;
}

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

.footer-about p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-widget h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-widget ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-subscribe .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.footer-subscribe .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}

.footer-subscribe .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
    background: rgba(255,255,255,0.15);
}

.footer-subscribe .btn-subscribe {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    width: 100%;
}

.footer-subscribe .btn-subscribe:hover {
    background: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .hero-main h1 {
        font-size: 2.2rem;
    }

    .hero-main .hero-img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 991px) {
    .hero-main {
        padding: 30px;
    }

    .hero-main h1 {
        font-size: 1.8rem;
    }

    .hero-main .hero-img {
        width: 180px;
        height: 180px;
    }

    .app-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .app-store-btns {
        justify-content: center;
    }

    .discount-banner {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }

    .hero-main {
        min-height: 250px;
    }

    .hero-main .hero-img {
        width: 140px;
        height: 140px;
        right: 10px;
    }

    .hero-main h1 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.2rem;
    }

    .discount-banner h2 {
        font-size: 1.6rem;
    }

    .promo-card .promo-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 575px) {
    .hero-main .hero-img {
        display: none;
    }

    .hero-side-card .card-img {
        width: 80px;
        height: 80px;
    }

    .product-card .product-img-wrap {
        padding: 12px;
    }

    .product-card .product-img-wrap img {
        max-height: 100px;
    }
}

/* ---------- Custom Utility ---------- */
.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}

.overflow-hidden {
    overflow: hidden;
}

/* Swiper / Carousel Custom Arrows */
.custom-nav {
    display: flex;
    gap: 8px;
}

.custom-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.custom-nav button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Reusable Transition Hover Effect */
.transition-hover {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}
.transition-hover:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
