/* ================================================================
   CARDS-FIX.CSS — Missing styles for homepage dynamic sections
   rec-card, na-card, flash-deal-card grids
   ================================================================ */

/* ================================================================
   CRITICAL LAYOUT FIX — Repairs style.css corruption
   (style.css has a broken @media block that swallows body/container)
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    background-color: var(--light-grey, #f9f9f9) !important;
    color: var(--dark-grey, #232f3e) !important;
    transition: margin-left 0.3s ease !important;
}

.container {
    width: 90% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Sidebar must be hidden by default (off-screen) */
.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -280px !important;
    width: 270px !important;
    height: 100vh !important;
    background: var(--dark-grey, #232f3e) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    transition: left 0.3s ease !important;
    padding: 1rem !important;
    color: #fff !important;
}
.sidebar.open { left: 0 !important; }
.sidebar-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 9998 !important;
}
.sidebar-overlay.active { display: block !important; }
.sidebar-toggle {
    display: none !important; /* hidden — header hamburger handles this */
}
.sidebar-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sidebar-nav ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    color: #e0e8e0 !important;
    text-decoration: none !important;
    padding: 0.7rem 0.5rem !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: background 0.2s !important;
}
.sidebar-nav ul li a:hover { background: rgba(255,255,255,0.08) !important; }

/* ================================================================
   HEADER — Next-Level Premium Redesign (overrides style.css)
   ================================================================ */

/* ── Core Header Row Layout (was lost from style.css) ── */
.header-main-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.7rem 2vw !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    gap: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.9rem !important;
    flex-shrink: 0 !important;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 1.1rem !important;
    flex-shrink: 0 !important;
}

/* Logo row */
.leaves-premium-header .logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    text-decoration: none !important;
}
.leaves-premium-header .logo-img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}
.leaves-premium-header .logo-text {
    font-size: 1.55rem !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

/* Search form must flex-grow to fill available space */
.leaves-premium-header .header-search-form {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 680px !important;
    display: flex !important;
    align-items: stretch !important;
    height: 44px !important;
}
.leaves-premium-header .header-search-input {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

/* Nav bar ul base layout */
.leaves-main-nav ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 auto !important;
    padding: 0 2vw !important;
    max-width: 1600px !important;
    list-style: none !important;
}

/* Account / Orders text layout */
.leaves-premium-header .header-account,
.leaves-premium-header .header-orders {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
}

/* Cart icon */
.leaves-premium-header .cart-link {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    font-size: 1.4rem !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Mobile: stack search below logo+right */
@media (max-width: 600px) {
    .header-main-row {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas: 'left right' 'search search' !important;
        padding: 0.5rem 0.75rem !important;
        gap: 0.45rem !important;
    }
    .header-left  { grid-area: left !important; }
    .header-right { grid-area: right !important; justify-content: flex-end !important; }
    .leaves-premium-header .header-search-form {
        grid-area: search !important;
        max-width: 100% !important;
        height: 40px !important;
    }
    .leaves-premium-header .header-account,
    .leaves-premium-header .header-orders { display: none !important; }
}

/* Promo bar — animated gradient ticker */
.top-promo {
    background: linear-gradient(90deg, #155e24, #2ecc40, #1a7a30, #2ecc40, #155e24) !important;
    background-size: 300% !important;
    animation: lv-promoBg 5s linear infinite !important;
    text-align: center !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 0.48rem 1rem !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
@keyframes lv-promoBg {
    0%   { background-position: 0%   50%; }
    100% { background-position: 300% 50%; }
}

/* Header shell */
.leaves-premium-header {
    background: linear-gradient(160deg,
        var(--header-grad-1, #0b1f0b) 0%,
        var(--header-grad-2, #163d16) 55%,
        #1f4d1f 100%) !important;
    box-shadow: 0 4px 28px rgba(0,0,0,0.4) !important;
    border-bottom: none !important;
}

/* Logo */
.leaves-premium-header .logo-container {
    transition: transform 0.25s !important;
}
.leaves-premium-header .logo-container:hover { transform: scale(1.04) !important; }

.leaves-premium-header .logo-img {
    border: 2px solid rgba(46,204,64,0.75) !important;
    box-shadow: 0 0 16px rgba(46,204,64,0.4) !important;
    border-radius: 10px !important;
}

.leaves-premium-header .logo-text {
    background: linear-gradient(90deg, #fff 40%, #a5d6a7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
}

/* Hamburger */
.leaves-premium-header .hamburger-menu {
    background: rgba(255,255,255,0.09) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    padding: 0.48rem 0.65rem !important;
    transition: background 0.2s, border-color 0.2s !important;
    line-height: 1 !important;
    cursor: pointer !important;
    color: #fff !important;
}
.leaves-premium-header .hamburger-menu:hover {
    background: rgba(46,204,64,0.22) !important;
    border-color: rgba(46,204,64,0.55) !important;
}

/* ── Search Bar — glassmorphism ── */
.leaves-premium-header .header-search-form {
    background: rgba(255,255,255,0.1) !important;
    border: 1.5px solid rgba(255,255,255,0.18) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(14px) !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s !important;
    display: flex !important;
    align-items: stretch !important;
}
.leaves-premium-header .header-search-form:focus-within {
    background: rgba(255,255,255,0.16) !important;
    border-color: rgba(46,204,64,0.7) !important;
    box-shadow: 0 0 0 3px rgba(46,204,64,0.18), 0 4px 20px rgba(0,0,0,0.22) !important;
}
.leaves-premium-header .header-search-input {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    padding: 0.78rem 1.1rem !important;
    font-size: 0.95rem !important;
    font-family: 'Poppins', sans-serif !important;
    outline: none !important;
    min-width: 0 !important;
    flex: 1 !important;
}
.leaves-premium-header .header-search-input::placeholder {
    color: rgba(255,255,255,0.52) !important;
}
.leaves-premium-header .header-search-btn {
    background: linear-gradient(135deg, #2ecc40, #27ae60) !important;
    border: none !important;
    padding: 0 1.4rem !important;
    color: #fff !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
}
.leaves-premium-header .header-search-btn:hover {
    background: linear-gradient(135deg, #27ae60, #1e8c4f) !important;
}
.leaves-premium-header .header-search-btn i { transition: transform 0.2s !important; }
.leaves-premium-header .header-search-btn:hover i { transform: scale(1.2) !important; }

/* App button */
.leaves-premium-header .header-apk-btn {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
}
.leaves-premium-header .header-apk-btn:hover {
    background: rgba(46,204,64,0.22) !important;
    border-color: rgba(46,204,64,0.55) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(46,204,64,0.22) !important;
}

/* Account & Orders */
.leaves-premium-header .header-account,
.leaves-premium-header .header-orders {
    padding: 0.3rem 0.5rem !important;
    border-radius: 8px !important;
    transition: background 0.2s !important;
}
.leaves-premium-header .header-account:hover,
.leaves-premium-header .header-orders:hover {
    background: rgba(255,255,255,0.08) !important;
}
.leaves-premium-header .account-line1,
.leaves-premium-header .orders-line1 {
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.65) !important;
    font-weight: 400 !important;
}
.leaves-premium-header .account-line2,
.leaves-premium-header .orders-line2 {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}

/* Cart glow badge */
.leaves-premium-header .cart-link {
    padding: 0.3rem 0.5rem !important;
    border-radius: 8px !important;
    transition: background 0.2s !important;
}
.leaves-premium-header .cart-link:hover {
    background: rgba(255,255,255,0.09) !important;
}
.leaves-premium-header .cart-link #cart-count {
    background: linear-gradient(135deg, #2ecc40, #27ae60) !important;
    font-size: 0.7rem !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: lv-cartGlow 2.5s ease-in-out infinite !important;
    box-shadow: 0 0 8px rgba(46,204,64,0.55) !important;
    top: -4px !important;
    right: -4px !important;
}
@keyframes lv-cartGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(46,204,64,0.5);  }
    50%       { box-shadow: 0 0 16px rgba(46,204,64,0.9); }
}

/* Category nav bar */
.leaves-main-nav {
    background: rgba(0,0,0,0.28) !important;
    backdrop-filter: blur(10px) !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.leaves-main-nav ul {
    scrollbar-width: none !important;
    gap: 0 !important;
    list-style: none !important;
}
.leaves-main-nav ul::-webkit-scrollbar { display: none; }
.leaves-main-nav ul li a {
    color: rgba(255,255,255,0.78) !important;
    font-size: 0.88rem !important;
    padding: 0.65rem 1.1rem !important;
    display: block !important;
    position: relative !important;
    white-space: nowrap !important;
    transition: color 0.2s !important;
    text-decoration: none !important;
}
.leaves-main-nav ul li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 1.1rem !important;
    right: 1.1rem !important;
    height: 2.5px !important;
    background: linear-gradient(90deg, #2ecc40, #a5d6a7) !important;
    border-radius: 2px !important;
    transform: scaleX(0) !important;
    transition: transform 0.25s ease !important;
}
.leaves-main-nav ul li a:hover { color: #fff !important; }
.leaves-main-nav ul li a:hover::after { transform: scaleX(1) !important; }

/* Dark mode header */
body.dark-mode .leaves-premium-header {
    background: linear-gradient(160deg, #050f05 0%, #0a1a0a 55%, #0d200d 100%) !important;
}
body.dark-mode .leaves-main-nav {
    background: rgba(0,0,0,0.45) !important;
}

/* ── Recently Viewed Grid Container ── */
#recentlyViewedGrid,
.recently-viewed-grid,
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0 1rem;
}

/* ── rec-card (from recommendations.js) ── */
.rec-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1.5px solid #f0f0f0;
}
.rec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(46,204,64,0.12);
    border-color: #2ecc40;
}
.rec-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f7f5;
}
.rec-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.rec-card:hover .rec-img-wrap img {
    transform: scale(1.07);
}
.rec-body {
    padding: 0.6rem 0.75rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.rec-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a2a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.rec-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2ecc40;
}

/* ── Recently Viewed section wrapper ── */
.recently-viewed-section,
#recentlySection,
#recentlyViewedContainer {
    background: #fff;
    padding: 1.5rem 0 0.5rem;
}
.recently-viewed-section h2,
#recentlySection h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1a2a1a;
    text-align: left;
    padding: 0 1rem;
}

/* ── na-card (New Arrivals / Recently Viewed via activity.js) ── */
#recentlyViewedGrid .na-card,
.na-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1.5px solid #f0f0f0;
}
.na-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(46,204,64,0.12);
    border-color: #2ecc40;
}
.na-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f7f5;
}
.na-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.na-card:hover .na-img-wrap img {
    transform: scale(1.07);
}
.na-body {
    padding: 0.6rem 0.75rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.na-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a2a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.na-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2ecc40;
}

/* ── Flash Deals / Deals of the Day ── */
#flash-deals {
    padding: 2rem 0;
    background: #fff;
}
.flash-deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.flash-deals-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a2a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#countdownTimer {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Poppins', sans-serif;
}
.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a2a1a;
    color: #fff;
    border-radius: 8px;
    padding: 0.3rem 0.65rem;
    min-width: 46px;
}
.cd-num {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}
.cd-label {
    font-size: 0.5rem;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 2px;
}
.cd-sep {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2a1a;
    margin: 0 1px;
}

/* Flash Deals Grid */
.flash-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.2rem;
}

/* Flash deal card */
.flash-deal-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1.5px solid #f0f4f0;
}
.flash-deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(46,204,64,0.14);
    border-color: #2ecc40;
}
.flash-deal-img-wrap {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f7f5;
}
.flash-deal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.flash-deal-card:hover .flash-deal-img {
    transform: scale(1.06);
}
.flash-deal-body {
    padding: 0.75rem 0.9rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.flash-deal-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a2a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}
.flash-deal-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2a1a;
}
.flash-deal-was {
    font-size: 0.78rem;
    color: #aaa;
    text-decoration: line-through;
}
.flash-deal-discount {
    font-size: 0.76rem;
    font-weight: 700;
    color: #e74c3c;
    margin-top: 0.1rem;
}

/* Flash Deals — direct img child (no wrapper) */
.flash-deal-card > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.flash-deal-card:hover > img {
    transform: scale(1.05);
}
/* Deal badge */
.deal-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: linear-gradient(135deg, #e53e3e, #f97316);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 2;
}

body.dark-mode .rec-card,
body.dark-mode .na-card,
body.dark-mode .flash-deal-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.3) !important;
}
body.dark-mode .rec-name,
body.dark-mode .na-name,
body.dark-mode .flash-deal-name {
    color: var(--text-primary) !important;
}
body.dark-mode .rec-price,
body.dark-mode .na-price,
body.dark-mode .flash-deal-price {
    color: var(--primary-color) !important;
}
body.dark-mode .rec-img-wrap,
body.dark-mode .na-img-wrap,
body.dark-mode .flash-deal-img-wrap {
    background: var(--bg-secondary) !important;
}
body.dark-mode .flash-deal-body {
    background: var(--bg-card) !important;
}
body.dark-mode #countdownTimer .cd-block {
    background: var(--primary-color) !important;
}
body.dark-mode .cd-sep {
    color: var(--text-primary) !important;
}
body.dark-mode .flash-deals-title {
    color: var(--text-primary) !important;
}
body.dark-mode #flash-deals,
body.dark-mode .recently-viewed-section,
body.dark-mode #recentlySection,
body.dark-mode #recentlyViewedContainer {
    background: var(--bg-primary) !important;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    #recentlyViewedGrid,
    .recently-viewed-grid,
    .rec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    .flash-deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* ================================================================
   FOOTER — Complete styles for leaves-footer web component
   ================================================================ */

/* Newsletter Band */
.newsletter-band {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 2rem 0;
    border-top: 1px solid rgba(46,204,64,0.15);
}
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.newsletter-copy h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2a1a;
    margin: 0 0 0.3rem;
}
.newsletter-copy p {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
}
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.newsletter-input {
    padding: 0.65rem 1rem;
    border: 1.5px solid #c3e6cb;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #1a2a1a;
    outline: none;
    min-width: 220px;
    transition: border-color 0.2s;
}
.newsletter-input:focus {
    border-color: #2ecc40;
}
.newsletter-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, #2ecc40, #27ae60);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}
.newsletter-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Site Footer */
.site-footer {
    background: #111a11;
    color: #d4e8d4;
    padding: 3rem 0 0;
}

/* Footer 4-column grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

/* Footer column */
.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.82rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-col ul li {
    /* no bullet, no extra padding */
}
.footer-col ul li a {
    color: #a5c8a5;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: inline-block;
}
.footer-col ul li a:hover {
    color: #fff;
}

/* Connect column */
.footer-col.connect {
    min-width: 180px;
}
.connect-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.icon-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5c8a5;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}
.icon-link:hover {
    background: #2ecc40;
    border-color: #2ecc40;
    color: #fff;
    transform: translateY(-2px);
}
.contact-line {
    font-size: 0.8rem;
    color: #7aab7a;
    margin: 0.25rem 0;
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom-links li a {
    color: #6b8c6b;
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom-links li a:hover {
    color: #a5c8a5;
}
.copyright {
    font-size: 0.78rem;
    color: #6b8c6b;
    margin: 0;
}

/* ── Dark Mode Footer ── */
body.dark-mode .newsletter-band {
    background: #0a130a !important;
    border-top-color: rgba(46,204,64,0.1) !important;
}
body.dark-mode .newsletter-copy h3 {
    color: var(--text-primary) !important;
}
body.dark-mode .newsletter-copy p {
    color: var(--text-muted) !important;
}
body.dark-mode .newsletter-input {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
body.dark-mode .site-footer {
    background: #060d06 !important;
}
body.dark-mode .footer-col ul li a {
    color: #6b8c6b !important;
}
body.dark-mode .footer-col ul li a:hover {
    color: #a5d6a7 !important;
}
body.dark-mode .footer-col h4 {
    color: var(--text-primary) !important;
}
body.dark-mode .contact-line {
    color: #4a6a4a !important;
}
body.dark-mode .footer-bottom {
    border-top-color: rgba(255,255,255,0.05) !important;
}
body.dark-mode .footer-bottom-links li a {
    color: #4a6a4a !important;
}
body.dark-mode .footer-bottom-links li a:hover {
    color: #6b8c6b !important;
}
body.dark-mode .copyright {
    color: #4a6a4a !important;
}

/* Mobile footer */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
