/* 
 * Puff-Puff Kerala E-commerce Platform
 * Custom CSS with Kerala-inspired theming and animations
 */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #1E40AF;      /* Royal blue */
    --secondary-color: #F59E0B;    /* Amber yellow */
    --accent-color: #EF4444;       /* Vibrant red */
    --background-color: #F9FAFB;   /* Very light grey */
    --text-color: #1F2937;         /* Dark grey */
    --success-color: #10B981;      /* Emerald green */
    --white: #FFFFFF;
    --light-grey: #E5E7EB;
    --dark-grey: #374151;
    --shadow: 0 4px 15px rgba(30, 64, 175, 0.1);
    --shadow-hover: 0 8px 25px rgba(30, 64, 175, 0.2);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px; /* Account for fixed navbar height */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 2rem;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* ===== CUSTOM BOOTSTRAP OVERRIDES ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a6b1f, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #2ea043);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-success:hover {
    background: linear-gradient(135deg, #2ea043, var(--success-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #3a6b1f) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--success-color), #2ea043) !important;
}

/* ===== NAVIGATION ===== */
#mainNav {
    background: linear-gradient(135deg, var(--primary-color), #1f3d0e);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(45, 80, 22, 0.2);
    z-index: 1050;
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.95), rgba(31, 61, 14, 0.95));
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white) !important;
    transition: var(--transition);
}

.brand-text {
    background: linear-gradient(45deg, var(--white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.kerala-badge {
    background: linear-gradient(45deg, var(--success-color), #2ea043) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    animation: pulse-glow 2s infinite;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #1f3d0e);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    color: var(--white);
    font-size: 1.5rem;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    border-radius: var(--border-radius-sm);
}

/* Enhanced product image effects */
.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.1) 0%, rgba(255, 107, 53, 0.05) 50%, rgba(45, 80, 22, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, var(--accent-color), #ff8555);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-lg);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--accent-color), #ff8555);
    color: var(--white);
    padding: 10px 15px;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-rating {
    margin-bottom: 0.5rem;
}

.rating-text {
    font-size: 0.8rem;
    color: var(--dark-grey);
    margin-left: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success-color);
}

.original-price {
    font-size: 0.9rem;
    color: var(--dark-grey);
    text-decoration: line-through;
}

.delivery-info {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 500;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-grey);
}

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

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.category-title {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-description {
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ===== FEATURE BOXES ===== */
.feature-box {
    padding: 2rem;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1);
}

.feature-title {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-description {
    color: var(--dark-grey);
    font-size: 0.9rem;
}

/* ===== KERALA SECTION ===== */
.kerala-section {
    background: linear-gradient(135deg, var(--primary-color), #1f3d0e);
    position: relative;
}

.kerala-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/kerala-pattern.svg');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.1;
}

/* ===== CART STYLES ===== */
.cart-item {
    transition: var(--transition);
}

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.quantity-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.quantity-input .form-control {
    width: 60px;
    text-align: center;
    border-radius: var(--border-radius-sm);
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-summary {
    top: 100px;
}

/* ===== CHECKOUT STYLES ===== */
.checkout-section-card .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.checkout-section-card .card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
    padding: 1rem 1.5rem;
}

.delivery-option {
    border: 2px solid var(--light-grey);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.delivery-option:hover,
.delivery-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(45, 80, 22, 0.05);
}

/* ===== FLASH MESSAGES ===== */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-messages .alert {
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: slideInRight 0.3s ease;
}

/* ===== PARTNERSHIP & ZIPPO SECTIONS ===== */
.partnership-card {
    transition: var(--transition);
}

.partnership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* ===== DELIVERY PARTNERSHIP SECTION ===== */
.delivery-partnership-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a6b1f 50%, var(--primary-color) 100%);
    position: relative;
}

.delivery-partnership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.delivery-partnership-content {
    position: relative;
    z-index: 2;
}

.delhivery-showcase {
    position: relative;
    z-index: 2;
}

.delhivery-logo-container {
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.delhivery-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.delhivery-logo {
    transition: var(--transition-slow);
    filter: brightness(1) contrast(1.1);
}

.delhivery-logo:hover {
    transform: scale(1.05);
}

.delivery-promise {
    background: linear-gradient(135deg, #ffc107 0%, #ffdd42 100%);
    transition: var(--transition);
}

.delivery-promise:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.stat-number:hover {
    transform: scale(1.1);
}

.stat-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partnership-badge .badge {
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.delhivery-features .fas {
    width: 20px;
    text-align: center;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffdd42 100%);
}

.zippo-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
}

.zippo-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(45, 80, 22, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.zippo-content {
    position: relative;
    z-index: 2;
}

.zippo-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.zippo-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(34, 139, 34, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 139, 34, 0.8);
    }
}

@keyframes bounce-animation {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes floating-animation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-animation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bounce-animation {
    animation: bounce-animation 2s infinite;
}

.floating-animation {
    animation: floating-animation 4s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse-animation 2s infinite;
}

/* ===== DELIVERY BANNER ===== */
.delivery-banner {
    background: linear-gradient(135deg, var(--success-color), #2ea043);
    animation: pulse-glow 3s infinite;
}

.timer-box {
    background: var(--white) !important;
    box-shadow: var(--shadow);
}

.timer-value {
    font-family: 'Montserrat', monospace;
    font-weight: 700;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: var(--white) !important;
}

.footer * {
    color: var(--white) !important;
}

.footer a {
    color: var(--white) !important;
}

.footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent-color) !important;
}

/* ===== NEW HOMEPAGE SECTIONS ===== */

/* Testimonials Section */
.testimonials-section {
    background: var(--light-bg);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -20px;
    opacity: 0.3;
}

.author-name {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-location {
    font-size: 0.9rem;
}

.stars i {
    font-size: 1.1rem;
    margin-right: 0.2rem;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), #1f3d0e);
    position: relative;
    overflow: hidden;
}

.stats-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stats-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stats-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

.stat-item {
    padding: 2rem 1rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.stat-icon i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* New Arrivals Section */
.new-arrivals-section {
    background: var(--white);
}

.new-arrival-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.new-arrival-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.arrival-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}

.arrival-badge .badge {
    font-size: 0.8rem;
    padding: 8px 12px;
    font-weight: 600;
}

/* Special Deals Section */
.deals-section {
    background: linear-gradient(135deg, var(--primary-color), #2d5016);
    position: relative;
    overflow: hidden;
}

.deals-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="deals-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><polygon points="30,0 45,20 30,40 15,20" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23deals-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

.deal-card {
    transition: var(--transition);
    border: none !important;
    position: relative;
}

.deal-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.deal-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 2;
}

.deal-title {
    font-weight: 700;
    color: var(--primary-color);
}

.deal-code {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.deal-timer .timer-value {
    font-family: 'Courier New', monospace;
}

/* Educational Content Section */
.education-section {
    background: var(--light-bg);
}

.education-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--light-grey);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.education-title {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-description {
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.education-features {
    text-align: left;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    position: relative;
}

.newsletter-content h3 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-features {
    margin-top: 1.5rem;
}

.newsletter-form .form-control,
.newsletter-form .form-select {
    border-radius: var(--border-radius);
    border: 2px solid var(--light-grey);
    padding: 12px 15px;
    transition: var(--transition);
}

.newsletter-form .form-control:focus,
.newsletter-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
}

/* Community Section */
.community-section {
    background: var(--white);
}

.community-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.community-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.community-card:hover .community-image img {
    transform: scale(1.1);
}

.community-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
}

.community-stats .badge {
    font-size: 0.8rem;
    padding: 6px 10px;
}

/* Enhanced animations for new sections */
@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 123, 255, 0.6); }
}

.glow-animation {
    animation: glow 3s ease-in-out infinite;
}

/* Enhanced Zippo Promotion Section */
.zippo-promotion-section {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    position: relative;
    overflow: hidden;
}

.zippo-promotion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="zippo-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25,5 L35,15 L25,25 L15,15 Z" fill="rgba(255,193,7,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23zippo-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

.promotion-badge .badge {
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.zippo-image-card {
    transition: var(--transition);
}

.zippo-image-card:hover {
    transform: translateY(-10px);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.zippo-image-card:hover .image-container img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(255, 193, 7, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.zippo-image-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 1rem;
}

.price-tag {
    margin-top: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.sale-price {
    color: #ffc107;
    font-weight: 700;
    font-size: 1.2rem;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #dc3545, #ff6b6b);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    z-index: 2;
}

.image-caption h6 {
    color: #ffc107;
    font-weight: 600;
}

.zippo-offer-card {
    background: linear-gradient(135deg, #ffc107, #ffab00) !important;
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 50px;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.time-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.time-separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc3545;
}

.zippo-features .d-flex:hover {
    transform: translateX(5px);
    transition: var(--transition);
}

/* Responsive design for Zippo section */
@media (max-width: 768px) {
    .zippo-promotion-section .display-4 {
        font-size: 2.5rem;
    }
    
    .image-container img {
        height: 250px;
    }
    
    .promotion-badge .badge {
        font-size: 1.2rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .time-unit {
        min-width: 40px;
        padding: 0.3rem;
    }
    
    .time-value {
        font-size: 1.2rem;
    }
}

/* ===== CATEGORY BANNERS SECTION ===== */
.category-banners {
    background: var(--white);
}

.category-banner {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.category-banner:hover .banner-image {
    transform: scale(1.1);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.category-banner:hover .banner-overlay {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.banner-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.banner-content .btn {
    padding: 12px 30px;
    font-weight: 600;
    border: 2px solid white;
    transition: var(--transition);
}

.banner-content .btn:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile responsive for banners */
@media (max-width: 768px) {
    .category-banner {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-content {
        padding: 1.5rem;
    }
}

/* ===== DELIVERY ESTIMATION SECTION ===== */
.delivery-estimation {
    background: var(--light-bg);
}

.delivery-checker {
    transition: var(--transition);
    border: 2px solid transparent;
}

.delivery-checker:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.delivery-checker .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.delivery-checker .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #2563eb);
    border: none;
    transition: var(--transition);
}

.delivery-checker .btn-primary:hover {
    background: linear-gradient(45deg, #2563eb, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.3);
}

#deliveryResult .alert {
    border: none;
    border-left: 4px solid;
    animation: slideInUp 0.3s ease-out;
}

#deliveryResult .alert-success {
    border-left-color: var(--success-color);
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
}

#deliveryResult .alert-primary {
    border-left-color: var(--primary-color);
    background: linear-gradient(45deg, #cce5ff, #b3d9ff);
}

#deliveryResult .alert-info {
    border-left-color: #17a2b8;
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
}

#deliveryResult .alert-warning {
    border-left-color: #ffc107;
    background: linear-gradient(45deg, #fff3cd, #ffeeba);
}

.delivery-info {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--light-grey);
}

.delivery-estimate {
    font-weight: 500;
    transition: var(--transition);
}

.delivery-estimate:hover {
    color: var(--primary-color) !important;
}

/* ===== PRODUCTS PAGE FIXES ===== */
.filters-section.sticky-top {
    z-index: 1020;
    background: var(--light-bg) !important;
    border-bottom: 1px solid var(--light-grey);
}

.products-section {
    margin-top: 0;
    padding-top: 2rem;
}

/* Mobile products page fix */
@media (max-width: 768px) {
    .filters-section {
        position: relative !important;
        top: auto !important;
    }
    
    .filters-section .row {
        flex-direction: column;
    }
    
    .filters-section .col-lg-2,
    .filters-section .col-lg-3,
    .filters-section .col-lg-1 {
        margin-bottom: 1rem;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section .display-3 {
        font-size: 2.5rem;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .cart-summary {
        position: relative !important;
        top: auto !important;
    }
    
    .feature-box {
        padding: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    /* New sections responsive styles */
    .testimonial-card,
    .education-card,
    .community-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .deal-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .newsletter-form {
        margin-top: 2rem;
    }
    
    .community-image {
        height: 150px;
    }
}

/* ===== UTILITY CLASSES ===== */
.rounded-lg {
    border-radius: var(--border-radius) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-hover) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #3a6b1f) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #2ea043) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ===== LOADING STATES ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== FORM ENHANCEMENTS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.btn:active:focus {
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.5) !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid var(--text-color);
    }
    
    .btn-primary {
        border: 2px solid var(--white);
    }
}
