/* Hexagon Loader Styles */
.loader {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 160px;
	height: 160px;
	margin: -80px 0px 0px -80px;
	background-color: transparent;
	border-radius: 50%;
	border: 2px solid #E3E4DC;
}
.loader:before {
	content: '';
	width: 164px;
	height: 164px;
	display: block;
	position: absolute;
	border: 2px solid #898a86;
	border-radius: 50%;
	top: -2px;
	left: -2px;
	box-sizing: border-box;
	clip: rect(0px, 35px, 35px, 0px);
	z-index: 10;
	animation: rotate 3s linear infinite;
}
.loader:after {
	content: '';
	width: 164px;
	height: 164px;
	display: block;
	position: absolute;
	border: 2px solid #c1bebb;
	border-radius: 50%;
	top: -2px;
	left: -2px;
	box-sizing: border-box;
	clip: rect(0px, 164px, 150px, 0px);
	z-index: 9;
	animation: rotate2 3s linear infinite;
}

.hexagon-container {
	position: relative;
	top: 33px;
	left: 41px;
	border-radius: 50%;
}

.hexagon {
	position: absolute;
	width: 40px;
	height: 23px;
	background-color: #556C82;
}
.hexagon:before {
	content: "";
	position: absolute;
	top: -11px;
	left: 0;
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 11.5px solid #556C82;
}
.hexagon:after {
	content: "";
	position: absolute;
	top: 23px;
	left: 0;
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 11.5px solid #556C82;
}

/* Positions and staggered animation */
.hexagon.hex_1 { top: 0px; left: 0px; animation: Animasearch 3s ease-in-out infinite; animation-delay: calc(3s / 14 * 1); }
.hexagon.hex_2 { top: 0px; left: 42px; animation: Animasearch 3s ease-in-out infinite; animation-delay: calc(3s / 14 * 2); }
.hexagon.hex_3 { top: 36px; left: 63px; animation: Animasearch 3s ease-in-out infinite; animation-delay: calc(3s / 14 * 3); }
.hexagon.hex_4 { top: 72px; left: 42px; animation: Animasearch 3s ease-in-out infinite; animation-delay: calc(3s / 14 * 4); }
.hexagon.hex_5 { top: 72px; left: 0px; animation: Animasearch 3s ease-in-out infinite; animation-delay: calc(3s / 14 * 5); }
.hexagon.hex_6 { top: 36px; left: -21px; animation: Animasearch 3s ease-in-out infinite; animation-delay: calc(3s / 14 * 6); }
.hexagon.hex_7 { top: 36px; left: 21px; animation: Animasearch 3s ease-in-out infinite; animation-delay: calc(3s / 14 * 7); }

/* Hexagon color palette */
.hexagon.hex_1 { background-color: #e74c3c; }
.hexagon.hex_1:before { border-bottom-color: #e74c3c; }
.hexagon.hex_1:after { border-top-color: #e74c3c; }

.hexagon.hex_2 { background-color: #f39c12; }
.hexagon.hex_2:before { border-bottom-color: #f39c12; }
.hexagon.hex_2:after { border-top-color: #f39c12; }

.hexagon.hex_3 { background-color: #f1c40f; }
.hexagon.hex_3:before { border-bottom-color: #f1c40f; }
.hexagon.hex_3:after { border-top-color: #f1c40f; }

.hexagon.hex_4 { background-color: #27ae60; }
.hexagon.hex_4:before { border-bottom-color: #27ae60; }
.hexagon.hex_4:after { border-top-color: #27ae60; }

.hexagon.hex_5 { background-color: #16a085; }
.hexagon.hex_5:before { border-bottom-color: #16a085; }
.hexagon.hex_5:after { border-top-color: #16a085; }

.hexagon.hex_6 { background-color: #3498db; }
.hexagon.hex_6:before { border-bottom-color: #3498db; }
.hexagon.hex_6:after { border-top-color: #3498db; }

.hexagon.hex_7 { background-color: #9b59b6; }
.hexagon.hex_7:before { border-bottom-color: #9b59b6; }
.hexagon.hex_7:after { border-top-color: #9b59b6; }

@keyframes Animasearch {
	0% { transform: scale(1); opacity: 1; }
	15%, 50% { transform: scale(0.5); opacity: 0; }
	65% { transform: scale(1); opacity: 1; }
}

@keyframes rotate {
	0% { transform: rotate(0); clip: rect(0px, 35px, 35px, 0px); }
	50% { clip: rect(0px, 40px, 40px, 0px); }
	100% { transform: rotate(360deg); clip: rect(0px, 35px, 35px, 0px); }
}

@keyframes rotate2 {
	0% { transform: rotate(0deg); clip: rect(0px, 164px, 150px, 0px); }
	50% { clip: rect(0px, 164px, 0px, 0px); transform: rotate(360deg); }
	100% { transform: rotate(720deg); clip: rect(0px, 164px, 150px, 0px); }
}
/* CSS Variables for Dark Mode */
:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --header-bg: white;
    --card-bg: white;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0,0,0,0.1);
    --primary-color: #4CAF50;
    --secondary-color: #2c5530;
    --accent-color: #45a049;
    --black-accent: #1a1a1a;
    --black-light: #2d2d2d;
    --black-medium: #404040;
    --gradient-accent: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --gradient-border: linear-gradient(90deg, #1a1a1a, #2d2d2d, #1a1a1a);
    --hero-bg: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    --feature-bg: white;
    --footer-bg: linear-gradient(135deg, #1a1a1a 0%, #2c5530 50%, #1a1a1a 100%);
}

[data-theme="dark"] {
    --bg-color: #0f0f0f;
    --text-color: #e8e8e8;
    --header-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --border-color: #404040;
    --shadow-color: rgba(0,0,0,0.5);
    --primary-color: #4ade80;
    --secondary-color: #22c55e;
    --accent-color: #16a34a;
    --black-accent: #000000;
    --black-light: #1a1a1a;
    --black-medium: #2d2d2d;
    --gradient-accent: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    --gradient-border: linear-gradient(90deg, #000000, #1a1a1a, #000000);
    --hero-bg: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    --feature-bg: #1e1e1e;
    --footer-bg: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: auto;
}

/* Custom Cursor */
.custom-cursor { display: none !important; }

.custom-cursor::before { display: none; }

.custom-cursor.hover {
    transform: scale(1.5);
    background: var(--accent-color);
}

.custom-cursor.hover::before {
    transform: scale(1.2);
    opacity: 0.6;
}

@keyframes cursorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* Parallax Container */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c5530;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Dark theme typography overrides for global readability */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-color);
    text-shadow: none;
}

[data-theme="dark"] p {
    color: var(--text-color);
}

/* Dark mode readability for tables and summary blocks */
[data-theme="dark"] table {
    color: var(--text-color);
    border-color: #404040;
}
[data-theme="dark"] table thead th {
    color: #ffffff;
    border-bottom-color: #404040 !important;
}
[data-theme="dark"] table tbody td {
    color: #e8e8e8;
    border-bottom-color: #333333 !important;
}
[data-theme="dark"] .summary-block,
[data-theme="dark"] .totals-row {
    color: var(--text-color);
}
[data-theme="dark"] .disclaimer,
[data-theme="dark"] .hint-text {
    color: #cfcfcf;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), 0 0 0 2px var(--gradient-border);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), #3d8b40);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

/* Dark Mode Switcher */
.dark-mode-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 25px;
    background: var(--card-bg);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 2px var(--gradient-border);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dark-mode-switcher:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.dark-mode-switcher i {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dark-mode-switcher .toggle-slider {
    width: 50px;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.dark-mode-switcher .toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme="dark"] .dark-mode-switcher .toggle-slider {
    background: var(--primary-color);
}

[data-theme="dark"] .dark-mode-switcher .toggle-slider::before {
    transform: translateX(26px);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.toast-icon.light {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.toast-icon.dark {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.75rem;
    opacity: 0.8;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* Mobile toast adjustments */
@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

/* Shimmer Effects */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, 
        var(--card-bg) 0px, 
        rgba(255,255,255,0.4) 40px, 
        var(--card-bg) 80px);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.shimmer-text {
    background: linear-gradient(90deg, 
        var(--text-color) 0px, 
        rgba(255,255,255,0.6) 40px, 
        var(--text-color) 80px);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shimmer-button {
    position: relative;
    overflow: hidden;
}

.shimmer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.4), 
        transparent);
    transition: left 0.5s;
}

.shimmer-button:hover::before {
    left: 100%;
}

/* Header */
.header {
    background: transparent;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    border-bottom: none;
}

.navbar {
    padding: 0.5rem 0.75rem;
    width: 100%;
    margin: 0 auto;
    background: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: visible;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    column-gap: 1rem;
    row-gap: 0.5rem;
    max-width: 1600px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c5530;
    font-size: 1.5rem;
    font-weight: 700;
    justify-content: center;
}

.nav-brand .logo {
    height: 80px;
    width: auto;
    margin-right: 0.5rem;
    object-fit: contain;
}

.nav-brand {
    flex: 0 0 auto;
    padding-right: 1rem;
    margin-right: 0.5rem;
    border-right: 1px solid var(--border-color);
}

.nav-brand i {
    margin-right: 0.5rem;
    color: #4CAF50;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem 0.8rem; /* Reduced horizontal spacing */
    position: static;
    left: auto;
    transform: none;
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: center;
    margin: 0 0.5rem;
}

/* Widen header/nav on very large screens and keep menu on one line */
@media (min-width: 1440px) {
    .container { max-width: 1600px; }
    .navbar .container { max-width: 1800px; }
    .nav-menu { gap: 1rem 1.5rem; flex-wrap: nowrap; justify-content: flex-start; } /* Reduced gap and aligned items to the start */
}
@media (min-width: 1920px) {
    .container { max-width: 1800px; }
    .navbar .container { max-width: 2000px; }
    .nav-menu { gap: 1rem 1.75rem; } /* Reduced gap */
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: orange;
}

.nav-link.active {
    color: #4CAF50;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, var(--black-accent));
    border-radius: 2px;
}

/* Sprout hover effect on nav links */
.nav-menu li { position: relative; }
/* REMOVED: The '/' separator and its margin were causing large spacing. */
.nav-menu li::after {
    content: '🌱';
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translate(-50%, 0) scale(0.6);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    pointer-events: none;
}

.nav-menu li:hover::after,
.nav-menu li:focus-within::after {
    transform: translate(-50%, -12px) scale(1);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}

/* Header site search (uses .site-search wrapper in header.php) */
.site-search { position: relative; display:flex; align-items:center; gap:10px; background: var(--card-bg); border:1px solid var(--border-color); padding:8px 14px; border-radius: 24px; min-width: 312px; }
.site-search .search-icon { color:#6b7280; font-size: 1.56em; }
[data-theme="dark"] .site-search .search-icon { color:#9ca3af; }
.site-search .search-input { border:none; outline:none; background:transparent; color: var(--text-color); min-width: 208px; font-size: 18px; }
.site-search .clear-btn { display:none; width:28px; height:28px; align-items:center; justify-content:center; border:none; background:transparent; color:#6b7280; border-radius:50%; cursor:pointer; font-size: 1.1em; }
.site-search .clear-btn.show { display:flex; }
.site-search .clear-btn:hover { background: rgba(0,0,0,0.06); }
[data-theme="dark"] .site-search .clear-btn:hover { background: rgba(255,255,255,0.06); }
.site-search .search-dropdown { position:absolute; top: calc(100% + 8px); left:0; background: rgba(255,255,255,0.86); border:1px solid rgba(0,0,0,0.08); border-radius: 16px; box-shadow: 0 22px 50px var(--shadow-color); display:none; max-height: 60vh; overflow:auto; z-index: 1200; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); width: min(420px, 92vw); }
[data-theme="dark"] .site-search .search-dropdown { background: rgba(20,20,20,0.72); border-color: rgba(255,255,255,0.08); }
.site-search .search-dropdown.show { display:block; }
.site-search .search-group { padding:10px; }
.site-search .search-group-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color:#6b7280; margin: 4px 10px 8px; font-weight: 700; opacity:.9; }
[data-theme="dark"] .site-search .search-group-title { color:#9ca3af; }
.site-search .search-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; text-decoration:none; color: inherit; opacity:0; transform: translateY(6px); animation: sd-fade 260ms ease forwards; animation-delay: var(--sd-delay, 0ms); }
.site-search .search-item:hover, .site-search .search-item.active { background: rgba(34,197,94,0.10); }
.site-search .si-thumb { width:44px; height:44px; border-radius:10px; object-fit:cover; flex:0 0 44px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform .18s ease; }
.site-search .search-item:hover .si-thumb { transform: scale(1.03); }
.site-search .si-thumb--ph { display:flex; align-items:center; justify-content:center; background: rgba(34,197,94,0.12); color:#16a34a; font-size:20px; }
.site-search .si-content { min-width: 0; display:grid; gap:4px; }
.site-search .si-title { font-weight: 700; font-size: 14.5px; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-search .si-desc { font-size: 12.5px; color:#6b7280; display:-webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.site-search .si-sub { font-size: 12.5px; color:#6b7280; }
[data-theme="dark"] .site-search .si-sub { color:#9ca3af; }
.site-search .si-right { margin-left:auto; display:flex; align-items:center; gap:8px; flex: 0 0 auto; }
.site-search .si-match { display:inline-flex; align-items:center; justify-content:center; height:24px; padding:0 8px; border-radius:999px; font-size:12px; font-weight:600; color:#166534; background: rgba(34,197,94,0.15); border:1px solid rgba(34,197,94,0.3); }
[data-theme="dark"] .site-search .si-match { color:#bbf7d0; background: rgba(34,197,94,0.22); border-color: rgba(34,197,94,0.35); }
.site-search .si-add { background: #16a34a; color:#fff; border:none; width:34px; height:34px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition: transform .15s ease, background .2s ease; padding:0; box-sizing: border-box; flex: 0 0 34px; }
.site-search .si-add:hover { transform: translateY(-1px); background:#0f9a42; }
.site-search .si-add i { pointer-events:none; }

/* Footer action in dropdown */
.site-search .search-footer { padding: 8px 10px 12px; display:flex; justify-content:flex-end; }
.site-search .search-view-all { display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:10px; background: rgba(34,197,94,0.14); color:#166534; text-decoration:none; font-weight:600; border:1px solid rgba(34,197,94,0.28); }
.site-search .search-view-all:hover { background: rgba(34,197,94,0.2); }
[data-theme="dark"] .site-search .search-view-all { background: rgba(34,197,94,0.18); color:#bbf7d0; border-color: rgba(34,197,94,0.3); }

/* Distinct styling for the selectable View All row */
.site-search .search-item.search-view-all { 
  background: rgba(34,197,94,0.10);
  border: 1px dashed rgba(34,197,94,0.35);
  margin: 6px 10px 10px;
}
.site-search .search-item.search-view-all::after{
  content: '\203A'; /* single right-pointing angle quotation mark */
  font-size: 18px;
  margin-left: auto;
  color: #16a34a;
  transition: transform .18s ease;
}
.site-search .search-item.search-view-all:hover::after,
.site-search .search-item.search-view-all.active::after{ transform: translateX(3px); }
[data-theme="dark"] .site-search .search-item.search-view-all { 
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.45);
}

@keyframes sd-fade {
  from { opacity:0; transform: translateY(6px); }
  to { opacity:1; transform: translateY(0); }
}
[data-theme="dark"] .site-search .search-item:hover, [data-theme="dark"] .site-search .search-item.active { background: rgba(34,197,94,0.18); }
.site-search .si-thumb { width:40px; height:40px; border-radius:8px; object-fit:cover; margin-right:10px; border:1px solid var(--border-color); background:#f8fafc; }
.site-search .si-thumb--ph { width:40px; height:40px; display:flex; align-items:center; justify-content:center; border-radius:8px; margin-right:10px; border:1px solid var(--border-color); background:#f8fafc; }
.site-search .si-icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; margin-right:10px; }
.site-search .si-content { display:flex; flex-direction:column; gap:2px; }
.site-search .si-title { font-weight:600; font-size:14px; color: var(--text-color); }
.site-search .si-sub { font-size:12px; color:#6b7280; }
[data-theme="dark"] .site-search .si-sub { color:#9ca3af; }

/* Small screens: keep comfortable margins */
@media (max-width: 480px){
  .site-search .search-dropdown { width: 92vw; left: 4vw; right: 4vw; }
}
@media (max-width: 360px){
  .site-search .search-dropdown { width: 94vw; left: 3vw; right: 3vw; }
}

/* Modern Search Component */
.modern-search-container {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 320px;
    max-width: 500px;
    flex: 1;
    margin: 0 20px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .search-wrapper {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-wrapper:focus-within {
    border-color: #22c55e;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    margin-right: 12px;
    transition: color 0.3s ease;
}

[data-theme="dark"] .search-icon {
    color: #9ca3af;
}

.search-wrapper:focus-within .search-icon {
    color: #22c55e;
}

.modern-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    letter-spacing: 0.025em;
}

[data-theme="dark"] .modern-search-input {
    color: #f9fafb;
}

.modern-search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

[data-theme="dark"] .modern-search-input::placeholder {
    color: #6b7280;
}

.search-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 8px;
}

[data-theme="dark"] .search-clear-btn {
    color: #9ca3af;
}

.search-clear-btn:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

[data-theme="dark"] .search-clear-btn:hover {
    background: rgba(156, 163, 175, 0.1);
    color: #d1d5db;
}

.search-clear-btn.show {
    display: flex;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

[data-theme="dark"] .search-suggestions {
    background: rgba(30, 30, 30, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px;
    margin: 0 8px;
}

.suggestion-item:hover {
    background: rgba(34, 197, 94, 0.08);
}

[data-theme="dark"] .suggestion-item:hover {
    background: rgba(34, 197, 94, 0.15);
}

.suggestion-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.suggestion-text {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

[data-theme="dark"] .suggestion-text {
    color: #d1d5db;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modern-search-container {
        min-width: 280px;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .search-wrapper {
        padding: 10px 16px;
    }
    
    .modern-search-input {
        font-size: 14px;
    }
    
    .search-suggestions {
        border-radius: 12px;
        padding: 6px 0;
    }
    
    .suggestion-item {
        padding: 10px 16px;
        margin: 0 6px;
    }
    
    .suggestion-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modern-search-container {
        min-width: 100%;
        margin: 0;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 2px var(--gradient-border);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.nav-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    position: relative;
}

.nav-toggle span:nth-child(1) {
    transform-origin: top left;
}

.nav-toggle span:nth-child(3) {
    transform-origin: bottom left;
}

/* Hamburger Animation States */
.nav-toggle.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-toggle.active span {
    background: white;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
    width: 28px;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
    width: 28px;
}

/* Cart Icon Styles */
.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.cart-link:hover {
    transform: scale(1.1);
}

.cart-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .cart-icon {
    filter: brightness(1) invert(0);
}

/* removed legacy .cart-count */

/* Hero Section - Modern Slider */
.hero {
    background: transparent;
    padding: 2rem 0 3rem;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Flower wipe transition overlay */
.flower-wipe {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-template-rows: repeat(14, 1fr);
}

.flower-wipe .petal-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flower-wipe .petal-emoji {
    font-size: clamp(14px, 2.4vw, 32px);
    opacity: 0;
    transform: scale(0) rotate(0deg);
}

.flower-wipe.active .petal-emoji {
    animation: petalWipe 900ms ease-in-out forwards;
}

@keyframes petalWipe {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    40% { opacity: 1; transform: scale(1.06) rotate(10deg); }
    70% { opacity: 0.9; transform: scale(1.0) rotate(6deg); }
    100% { opacity: 0; transform: scale(0.2) rotate(-10deg) translateY(-18px); }
}

/* Radial explosion transition */
.flower-explosion {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    overflow: hidden;
}

.flower-explosion .burst-petal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
    font-size: clamp(10px, 1.8vw, 22px);
}

.flower-explosion.active .burst-petal {
    animation: explosionPetal 1100ms ease-out forwards;
}

@keyframes explosionPetal {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); }
    25% { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.25), calc(-50% + var(--dy) * 0.25)) scale(1) rotate(12deg); }
    70% { opacity: 0.95; transform: translate(calc(-50% + var(--dx) * 0.8), calc(-50% + var(--dy) * 0.8)) scale(1) rotate(6deg); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.85) rotate(-8deg); }
}

/* Tiles Slider Enhancements */
.tiles-slider {
    max-width: none;
    width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

/* Ensure mobile slider stays within safe bounds */
@media (max-width: 768px) {
    .tiles-slider {
        width: 100%;
        margin: 0;
        margin-left: 0;
    }
}

.tiles-slider .slider-container {
    aspect-ratio: 16 / 6;
    min-height: 420px;
}

.tiles-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-template-rows: repeat(15, 1fr);
    gap: 0; /* default no gaps to avoid visible lines after transition */
    opacity: 0; /* hidden by default */
    visibility: hidden;
    display: none !important; /* disable tiles effect */
}

.tiles-layer.transitioning { gap: 2px; opacity: 1; visibility: visible; }

.tile {
    position: relative;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    opacity: 0; /* tiles invisible when not transitioning */
    border-radius: 0;
    box-shadow: none;
    will-change: transform, opacity, background-position, background-size;
}

.tiles-layer.transitioning .tile {
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.tile.animate-out {
    animation: tileOut 900ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.tile.animate-in {
    animation: tileIn 900ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes tileOut {
    0% { opacity: 1; transform: translate(0,0) scale(1); filter: blur(0px); }
    60% { opacity: 0.5; transform: translate(var(--tx), var(--ty)) scale(0.95); filter: blur(2px); }
    100% { opacity: 0; transform: translate(calc(1.2 * var(--tx)), calc(1.2 * var(--ty))) scale(0.9); filter: blur(3px); }
}

@keyframes tileIn {
    0% { opacity: 0; transform: translate(calc(-1.2 * var(--tx)), calc(-1.2 * var(--ty))) scale(1.05); filter: blur(3px); }
    50% { opacity: 0.7; transform: translate(calc(-0.2 * var(--tx)), calc(-0.2 * var(--ty))) scale(1.01); filter: blur(1.5px); }
    100% { opacity: 1; transform: translate(0,0) scale(1); filter: blur(0); }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1), transform 900ms cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide.prev {
    transform: translateX(-6%) scale(0.98);
}

.slide.next {
    transform: translateX(6%) scale(0.98);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 1.25rem 2rem;
    animation: slideInUp 1s ease-out 0.5s both;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Shop hero: center overlay perfectly */
.hero--shop .tiles-slider { position: relative; }
.hero--shop .slider-container { position: relative; }
.hero--shop .slide-content {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;
    padding: 2rem;
}

.slide-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 6px 32px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.7);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 3px 14px rgba(0,0,0,0.7);
    line-height: 1.6;
    opacity: 1;
    color: #ffffff;
}

.slide-content .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.8s both;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 12;
    backdrop-filter: blur(8px);
}

.slider-nav:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.slider-nav.prev { 
    left: 20px; 
}
.slider-nav.next { 
    right: 20px; 
}

.slider-nav i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.slider-nav:hover i {
    transform: scale(1.2);
}

/* Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 11;
}

/* Subtle smooth transitions */
.slide { transition: opacity 600ms ease, transform 600ms ease; }
.slide.prev { transform: translateX(-4%) scale(0.99); }
.slide.next { transform: translateX(4%) scale(0.99); }

/* Preview thumbnails */
.slider-preview {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 56px;
    z-index: 10;
    display: flex;
    gap: 8px;
}
.slider-preview .preview-thumb {
    width: 64px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.25);
    padding: 0;
    cursor: pointer;
}
.slider-preview .preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-preview .preview-thumb.active { outline: 2px solid var(--primary-color); }


@media (max-width: 768px) {
    .tiles-slider .slider-container { aspect-ratio: 16 / 12; min-height: 480px; }
    /* Mobile: bigger tap targets, positioned at center vertically */
    .slider-nav { 
        width: 50px; 
        height: 50px; 
        top: 50%; 
        transform: translateY(-50%);
        z-index: 14; 
        border-radius: 12px; 
        background: rgba(0,0,0,0.7);
    }
    .slider-nav.prev { left: 12px; }
    .slider-nav.next { right: 12px; }
    /* preview-strip removed */
}
@media (max-width: 640px) {
    .tiles-slider .slider-container { aspect-ratio: 16 / 14; min-height: 420px; }
    .slider-nav { 
        width: 46px; 
        height: 46px; 
        top: 50%; 
        transform: translateY(-50%);
        background: rgba(0,0,0,0.8);
    }
    .slider-nav i { font-size: 1rem; }
    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }
    /* Tighten space below slider */
    .hero--shop + .categories-preview { padding-top: 8px; margin-top: 0; }
    .slider-preview { bottom: 48px; }
}

/* Medium screens - gradual height reduction */
@media (min-width: 769px) and (max-width: 1439px) {
    .tiles-slider .slider-container { aspect-ratio: 16 / 6.5; min-height: 400px; }
}

/* Shop hero full-width on large screens */
@media (min-width: 1440px) {
    /* Keep full width on large screens */
    .hero--shop .tiles-slider { width: 100vw; margin-left: calc(-50vw + 50%); border-radius: 0; }
    .tiles-slider .slider-container { aspect-ratio: 16 / 5; min-height: 360px; }
}
@media (min-width: 1920px) {
    .hero--shop .tiles-slider { width: 100vw; margin-left: calc(-50vw + 50%); }
    .hero--shop .slider-container { aspect-ratio: 16 / 4.5; min-height: 320px; }
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.6);
}

.dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-color);
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Auto-play indicator */
.slider-dots::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: 1px;
}

/* Progress bar for auto-play */
.slide.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    animation: progressBar 6s linear;
    z-index: 3;
}

@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--feature-bg);
    position: relative;
}

.features .container {
    position: relative;
    z-index: 2;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--card-bg);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    animation: bounceHover 0.6s ease;
}

/* Animated gradient edge effect for feature cards */
.feature::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(
        from 0deg,
        #22c55e,
        #a855f7,
        #10b981,
        #8b5cf6,
        #22c55e
    );
    z-index: -1;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 2px; /* thickness of visible edge */
    opacity: 0;
    transition: opacity 0.25s ease, background-position 0.6s linear;
    animation: none;
}

.feature:hover::before,
.feature:focus-within::before {
    opacity: 1;
}

/* Ring-like motion: move the conic gradient start angle over time */
.feature:hover::before,
.feature:focus-within::before {
    animation: ringSweep 3s linear infinite;
}

@keyframes ringSweep {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .feature::before { animation: none; transform: none !important; }
}

/* Offset leaf decoration at top-right, appearing split off the card */
.feature::after {
    position: absolute;
    top: -24px;
    right: -24px;
    font-size: 2.8rem;
    transform: translate(18px, -14px) rotate(10deg);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 3;
}

.feature:hover::after,
.feature:focus-within::after {
    opacity: 0.9;
    transform: translate(0, 0) rotate(0deg);
}

/* Different leaf per card */
.features-grid .feature:nth-child(1)::after { content: '🍃'; }
.features-grid .feature:nth-child(2)::after { content: '🌿'; }
.features-grid .feature:nth-child(3)::after { content: '🍀'; }
.features-grid .feature:nth-child(4)::after { content: '🌻'; }

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

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Categories Preview */
.categories-preview {
    padding: 4rem 0;
    background: var(--bg-color);
    position: relative;
}

.categories-preview .container {
    position: relative;
    z-index: 2;
}

.categories-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 5px 15px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: var(--secondary-color);
}
.category-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(239,68,68,0.35);
    border: 1px solid rgba(255,255,255,0.8);
}

.category-card p {
    padding: 0 1.5rem;
    color: var(--text-color);
}

.category-card .btn {
    margin: 1rem 1.5rem 1.5rem;
}

/* About Preview */
.about-preview {
    padding: 4rem 0;
    background: var(--card-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--black-accent);
    transition: background 0.3s ease, color 0.3s ease;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/sliderimgs/DJI_0421copy.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Dark theme styling for page header (used on Shop) */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, var(--black-light), var(--black-medium));
    border-bottom-color: var(--black-accent);
}

/* About hero with background image */
.about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../images/DJI_0437copy.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

[data-theme="dark"] .about-hero {
    background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/DJI_0437copy.jpg');
}

/* Subtle gradient background for About page */
.about-page {
    background: linear-gradient(180deg, rgba(76,175,80,0.05), rgba(44,85,48,0.03) 40%, rgba(0,0,0,0) 70%);
}

/* Ensure sections on About page don't override the page gradient */
.about-page .mission-values,
.about-page .what-we-offer,
.about-page .why-choose-detailed {
    background: transparent;
}

/* Shop Page */
.category-filter {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #4CAF50;
    border-radius: 25px;
    text-decoration: none;
    color: #4CAF50;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-btn:hover,
.filter-btn.active {
    background: #4CAF50;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.plants-section {
    padding: 3rem 0;
}

.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.plant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1), 0 0 0 2px var(--gradient-border);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.plant-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.plant-image {
    position: relative;
    overflow: hidden;
}

.plant-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.plant-card:hover .plant-image img {
    transform: scale(1.05);
}

.plant-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 85, 48, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.plant-info {
    padding: 1.5rem;
}

.plant-info h3 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.plant-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.plant-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50;
}

.no-plants {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* About Page */
.about-content {
    padding: 3rem 0;
}

/* Pro contact grid with gradients and glass cards */
.contact-showcase {
    /* Solid background tied to theme variable for switcher */
    background: var(--bg-color);
}

.contact-grid-pro {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
}

.glass-card {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-color);
}
.gradient-outline {
    position: relative;
}
.gradient-outline::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: conic-gradient(#22c55e, #8b5cf6, #22c55e);
    z-index: -1;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 2px;
}

.contact-hero-card { padding: 1.25rem 1.25rem 1rem; }
.contact-hero-card h2 { color: #fff; margin-bottom: 0.25rem; }
.contact-hero-card p { color: rgba(255,255,255,0.9); margin-bottom: 0.75rem; }
.quick-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.action-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 10px 14px; border-radius: 999px; text-decoration: none; color: #fff; font-weight: 600; box-shadow: 0 8px 20px rgba(0,0,0,0.2); transition: transform 0.2s ease; }
.action-btn:hover { transform: translateY(-2px); }
.action-btn.call { background: linear-gradient(135deg, #10b981, #22c55e); }
.action-btn.whatsapp { background: linear-gradient(135deg, #16a34a, #22c55e); }
.action-btn.email { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.info-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.18); padding: 6px 10px; border-radius: 999px; font-size: 0.85rem; }


[data-theme="dark"] .glass-card {
    background: rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.12);
}

.left-pane h2,
.right-pane h2 { color: white; }

.map-card {
    padding: 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .map-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.2));
    border-color: rgba(255,255,255,0.12);
}

.contact-map {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
}

.flower-marker { filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35)); }

@media (max-width: 768px) {
    .contact-grid-pro {
        grid-template-columns: 1fr;
    }
    .left-pane h2,
    .right-pane h2 { color: var(--text-color); }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 2px var(--gradient-border);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-method:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 25px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.contact-icon {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-details small {
    color: #666;
}

.social-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 0 0 2px var(--gradient-border);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 25px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.tiktok {
    background: #000;
}

.social-link i {
    margin-right: 0.5rem;
}

/* Revamped social panel */
.social-panel {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 600px at -10% -20%, rgba(139,92,246,0.25), transparent 50%),
                radial-gradient(1200px 600px at 110% 120%, rgba(34,197,94,0.25), transparent 50%),
                var(--card-bg);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.social-pill i { font-size: 1.1rem; }

.social-pill::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.35), rgba(255,255,255,0.0));
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.social-pill:hover { transform: translateY(-3px) scale(1.02); }
.social-pill:hover::after { left: 130%; }

.social-facebook { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.social-instagram { background: linear-gradient(135deg, #e11d48, #f59e0b, #8b5cf6); }
.social-tiktok { background: linear-gradient(135deg, #111827, #000000); }

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Form */
.contact-form-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 5px 15px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.contact-form-section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 25px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c5530;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 0 0 1px var(--gradient-border);
    transform: scale(1.02);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Contact wizard */
.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 0.75rem 0 1rem;
}

[data-theme="dark"] .progress-bar { background: rgba(255,255,255,0.12); }

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #22c55e);
    transition: width 0.3s ease;
}

.step-indicators {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.08);
    color: var(--text-color);
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.1);
}

[data-theme="dark"] .step-dot {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.step-dot.active {
    background: linear-gradient(135deg, #8b5cf6, #22c55e);
    color: #fff;
}

.form-step { display: none; }
.form-step.active { display: block; animation: slideInUp 0.4s ease both; }

.wizard-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    margin-top: 0.5rem;
}

/* Business Hours */
.business-hours {
    padding: 3rem 0;
    background: var(--bg-color);
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.hours-info,
.visit-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1), 0 0 0 2px var(--gradient-border);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hours-info:hover,
.visit-info:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 25px var(--shadow-color), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.hours-list {
    margin-top: 1rem;
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.hours-item:last-child {
    border-bottom: none;
}

/* Expand business hours fully on hover */
.hours-info:hover .hours-list,
.visit-info:hover .hours-list {
    max-height: 1000px;
}

.day {
    font-weight: 500;
    color: #2c5530;
}

.time {
    color: #666;
}

.visit-info ul {
    list-style: none;
    margin-top: 1rem;
}

.visit-info li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.visit-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--black-accent);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.9) 0%, 
        rgba(44, 85, 48, 0.8) 25%, 
        rgba(76, 175, 80, 0.6) 50%, 
        rgba(44, 85, 48, 0.8) 75%, 
        rgba(26, 26, 26, 0.9) 100%);
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: footerFloat 3s ease-in-out infinite;
}

.footer-brand .logo {
    height: 35px;
    width: auto;
    margin-right: 0.5rem;
    object-fit: contain;
}

.footer-brand i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    position: relative;
    animation: slideInUp 1s ease-out;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--black-accent));
    animation: expandLine 2s ease-out 0.5s both;
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    animation: slideInLeft 1s ease-out;
    animation-fill-mode: both;
}

.footer-section ul li:nth-child(1) { animation-delay: 0.1s; }
.footer-section ul li:nth-child(2) { animation-delay: 0.2s; }
.footer-section ul li:nth-child(3) { animation-delay: 0.3s; }
.footer-section ul li:nth-child(4) { animation-delay: 0.4s; }

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
    animation: slideInRight 1s ease-out;
    animation-fill-mode: both;
}

.contact-info p:nth-child(1) { animation-delay: 0.1s; }
.contact-info p:nth-child(2) { animation-delay: 0.2s; }
.contact-info p:nth-child(3) { animation-delay: 0.3s; }

.contact-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 20px;
    animation: iconBounce 2s ease-in-out infinite;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: socialFloat 3s ease-in-out infinite;
    animation-fill-mode: both;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px var(--gradient-border);
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4), 0 0 0 2px var(--gradient-border);
    animation: bounceHover 0.6s ease;
}

.footer-credits {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 2px solid var(--black-accent);
    color: rgba(255,255,255,0.92);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin-top: 0.75rem;
}

.footer-credits .credits-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
}

.footer-credits .credits-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.1px;
    color: rgba(255,255,255,0.98);
}

.footer-credits .divider {
    color: rgba(255,255,255,0.35);
}

@media (max-width: 480px) {
    .footer-credits .credits-inner {
        gap: 0.5rem;
        padding: 0.2rem 0.6rem;
    }
    .footer-credits .credits-text {
        font-size: 0.9rem;
    }
}

	/* Mobile-first compact footer tweaks */
	@media (max-width: 600px) {
		.footer { padding: 1.5rem 0 0.5rem; }

		.footer-content { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }

		/* Make all footer sections left-aligned and uniform */
		.footer .footer-section { text-align: left; }
		.footer .footer-section h3 { text-align: left; }
		.footer .social-links { justify-content: flex-start; }

		.footer-brand { font-size: 1.15rem; margin-bottom: 0.4rem; animation: none; }
		/* Hide long brand paragraph to save space */
		.footer .footer-section:first-child p { display: none; }

		.footer-brand .logo {
			height: 28px;
			margin-right: 0.4rem;
		}

		.footer-section h3 {
			font-size: 1rem;
			margin-bottom: 0.35rem;
			animation: none;
			cursor: pointer; /* tappable for collapse */
			display: flex;
			align-items: center;
			justify-content: space-between;
		}

		/* caret indicator */
		.footer-section h3::after {
			content: '\25BC';
			font-size: 0.8rem;
			margin-left: 0.5rem;
			opacity: 0.8;
			transform: rotate(0deg);
			transition: transform 0.2s ease;
		}

		/* collapsed state (script toggles .collapsed on .footer-section) */
		.footer-section.collapsed h3::after { transform: rotate(-90deg); }
		.footer-section.collapsed > :not(h3) { display: none !important; }

		.footer-section p,
		.footer-section ul li a,
		.contact-info p {
			font-size: 0.95rem;
		}

		/* Make lists denser and two-column where possible */
		.footer-section ul { column-count: 2; column-gap: 0.75rem; }
		.footer-section ul li { break-inside: avoid; margin-bottom: 0.25rem; }

		.footer-section ul li {
			margin-bottom: 0.25rem;
			animation: none;
		}

		.contact-info i {
			width: 18px;
		}

		.social-links { gap: 0.4rem; margin-top: 0.4rem; }

		.social-link { width: 30px; height: 30px; animation: none; }

		.footer-credits { padding-top: 0.5rem; margin-top: 0.35rem; }

		.footer-credits .credits-inner { gap: 0.35rem; padding: 0.12rem 0.45rem; }

		.footer-credits .credits-text { font-size: 0.8rem; }
	}

	@media (max-width: 480px) {
		/* Extra-tight layout on very small screens */
		.footer { padding: 1.25rem 0 0.4rem; }
		.footer-content { gap: 0.6rem; margin-bottom: 0.6rem; }
		.footer-brand .logo { height: 24px; }
		.footer-section h3 { font-size: 0.95rem; }
		.footer-section p,
		.footer-section ul li a,
		.contact-info p { font-size: 0.9rem; }
		.social-link { width: 28px; height: 28px; }
		.footer-credits .credits-text { font-size: 0.78rem; }
		/* Hide social icons to save vertical space */
		.footer .social-links { display: none; }
	}

/* Mobile Footer (app-like) */
/* Hide mobile footer by default; only show on small screens */
.mobile-footer { display: none; }
@media (max-width: 640px) {
    .footer { display: none; }
    /* Floating tab bar */
    .mobile-footer {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 9500;
        background: rgba(255,255,255,0.82);
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 20px 40px rgba(0,0,0,0.18);
        border-radius: 18px;
        padding: 8px 10px;
        backdrop-filter: blur(14px) saturate(140%);
        transition: transform 200ms ease, width 200ms ease, left 200ms ease, right 200ms ease, border-radius 200ms ease, padding 200ms ease, box-shadow 200ms ease;
        display: none; /* Hidden by default, shown in media query */
    }
    [data-theme="dark"] .mobile-footer { background: rgba(24,24,24,0.72); border-color: rgba(255,255,255,0.08); }
    /* one-line, condensed */
    .mobile-footer__brand,
    .mobile-footer__actions,
    .mobile-footer__copy { display: none !important; }
    .mobile-footer__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
    .mobile-footer__nav-item {
        display: grid; place-items: center; gap: 2px; text-decoration: none; color: var(--text-color);
        background: transparent; border: none; padding: 8px 4px; border-radius: 12px;
        min-height: 48px;
        position: relative;
        transition: background 0.2s ease, transform 0.2s ease;
    }
    .mobile-footer__nav-item i { font-size: 1.1rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08)); }
    .mobile-footer__nav-item span { font-size: 0.74rem; line-height: 1; opacity: 0.9; }
    .mobile-footer__nav-item:active { background: rgba(0,0,0,0.04); transform: translateY(1px); }
    [data-theme="dark"] .mobile-footer__nav-item:active { background: rgba(255,255,255,0.06); }
    .mobile-footer__nav-item.active { background: rgba(34,197,94,0.12); box-shadow: inset 0 0 0 1px rgba(34,197,94,0.25); }
    [data-theme="dark"] .mobile-footer__nav-item.active { background: rgba(34,197,94,0.18); box-shadow: inset 0 0 0 1px rgba(34,197,94,0.35); }
    .mobile-footer__badge {
        position: absolute; top: 4px; right: 10px; min-width: 16px; height: 16px; border-radius: 999px; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 10px; padding: 0 4px; font-weight: 700;
    }
    /* avoid content being hidden under tab bar */
    body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

    /* Floating bubble (condensed) */
    .mobile-footer.is-bubble {
        left: auto; right: 16px; width: 64px; padding: 0; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,0.22);
        display: grid; place-items: center; backdrop-filter: blur(16px) saturate(160%);
    }
    .mobile-footer.is-bubble .mobile-footer__nav,
    .mobile-footer.is-bubble .mobile-footer__brand { display: none !important; }
    .mobile-footer__fab { display: none; position: relative; width: 56px; height: 56px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.9); color: var(--text-color); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
    [data-theme="dark"] .mobile-footer__fab { background: rgba(24,24,24,0.8); border-color: rgba(255,255,255,0.12); }
    .mobile-footer.is-bubble .mobile-footer__fab { display: grid; place-items: center; }
    .mobile-footer__fab i { font-size: 1.25rem; }
    .mobile-footer__fab-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 999px; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 11px; padding: 0 5px; font-weight: 700; }
}

/* Tablet Footer (Compact & Rich) - Visible from 641px to 1024px */
.tablet-footer {
    display: none; /* Hidden by default */
    background: var(--footer-bg);
    color: white;
    padding: 2rem 1.5rem;
    border-top: 3px solid var(--black-accent);
}
.tablet-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.tablet-footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.tablet-footer-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}
.tablet-footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}
.tablet-footer-section ul li a:hover {
    color: var(--primary-color);
}
.tablet-footer-credits {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--black-accent);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* --- Media Queries for Footer Visibility --- */

/* Mobile View (< 640px) */
@media (max-width: 640px) {
    .footer, .tablet-footer { display: none; } /* Hide desktop and tablet footers */
    .mobile-footer { display: block; } /* Show mobile footer */
}

/* Tablet View (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .footer, .mobile-footer { display: none; } /* Hide desktop and mobile footers */
    .tablet-footer { display: block; } /* Show tablet footer */
}

/* Desktop View (> 1024px) */
@media (min-width: 1025px) {
    .mobile-footer, .tablet-footer { display: none; } /* Hide mobile and tablet footers */
    .footer { display: block; } /* Show full desktop footer */
}

/* Quick-view modal responsive tweaks */
@media (max-width: 480px) {
    .qv-grid { grid-template-columns: 1fr !important; }
    .qv-media { display: none !important; }
}

/* Footer Animations */
@keyframes footerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes expandLine {
    0% { width: 0; }
    100% { width: 30px; }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

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

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes socialFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounceHover {
    0% { transform: translateY(-3px) scale(1.02); }
    50% { transform: translateY(-5px) scale(1.05); }
    100% { transform: translateY(-3px) scale(1.02); }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(324px, 77vw);
    height: 100%;
    background: rgba(255,255,255,0.16);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
            backdrop-filter: blur(12px) saturate(120%);
    border-left: 1px solid rgba(0,0,0,0.08);
    box-shadow: -5px 0 20px var(--shadow-color);
    z-index: 999;
    transition: right 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    padding: 2rem 0;
}

[data-theme="dark"] .mobile-nav-menu {
    background: rgba(24,24,24,0.65);
    border-left-color: rgba(255,255,255,0.12);
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
}

.mobile-nav-brand .logo {
    height: 35px;
    width: auto;
    margin-right: 0.5rem;
    object-fit: contain;
}

.mobile-nav-links {
    list-style: none;
    padding: 0 2rem;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(10px);
}
.mobile-nav-menu.active .mobile-nav-links li { animation: menuItemIn 320ms ease forwards; }
.mobile-nav-menu.closing .mobile-nav-links li { animation: menuItemOut 220ms ease forwards; }
@keyframes menuItemIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes menuItemOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(6px); } }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(1) { animation-delay: 40ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(2) { animation-delay: 80ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(3) { animation-delay: 120ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(4) { animation-delay: 160ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(5) { animation-delay: 200ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(6) { animation-delay: 240ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(7) { animation-delay: 280ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(8) { animation-delay: 320ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(9) { animation-delay: 360ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(10) { animation-delay: 400ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(11) { animation-delay: 440ms; }
.mobile-nav-menu.active .mobile-nav-links li:nth-child(12) { animation-delay: 480ms; }

.mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.mobile-nav-links a:hover::before {
    left: 100%;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(10px);
    border-color: transparent;
}

.mobile-nav-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.mobile-nav-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .contact-grid,
    .hours-grid {
        gap: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar { padding: 0.35rem 0.5rem; }
    .navbar .container { column-gap: 0.5rem; row-gap: 0.25rem; }
    .nav-brand { border-right: none; margin-right: 0; padding-right: 0; display: flex !important; align-items: center; }
    .nav-actions { gap: 0.5rem; }
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .dark-mode-switcher {
        padding: 0.3rem;
    }
    
    .dark-mode-switcher .toggle-slider {
        width: 40px;
        height: 20px;
    }
    
    .dark-mode-switcher .toggle-slider::before {
        width: 16px;
        height: 16px;
    }
    
    [data-theme="dark"] .dark-mode-switcher .toggle-slider::before {
        transform: translateX(20px);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hide desktop nav actions on mobile */
    .nav-actions .dark-mode-switcher {
        display: none;
    }
    
    .hero {
        height: 80vh;
        min-height: 500px;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .slide-content .cta-buttons {
        gap: 1rem;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.7);
    }
    
    .slider-nav.prev {
        left: 15px;
    }
    
    .slider-nav.next {
        right: 15px;
    }
    
    .slider-nav i {
        font-size: 1.2rem;
    }
    
    .slider-dots {
        bottom: 20px;
        gap: 10px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .about-content,
    .about-grid,
    .contact-grid,
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        text-align: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .plants-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; justify-items: start; }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-brand .logo { display: inline-block !important; height: 36px; width: auto; object-fit: contain; }
    
    .footer-brand .logo {
        height: 30px;
    }
    
    /* Mobile-specific improvements */
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .social-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .footer-brand .logo {
        height: 25px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto; /* Restore default cursor on touch devices */
    }
    
    .custom-cursor {
        display: none; /* Hide custom cursor on touch devices */
    }
    
    .btn {
        min-height: 44px;
        padding: 14px 24px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .mobile-nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .dark-mode-switcher {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}

/* Floral Burst Effect */
.floral-burst {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    top: 0;
    left: 0;
}

/* Floating Cart Widget */
#floatingCartWidget {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 11000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid rgba(255,255,255,0.25);
    animation: fcwPulse 2s ease-in-out infinite;
}

/* Scroll progress widget */
#scrollProgress {
    position: fixed;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, rgba(0,0,0,0.12) 0);
    display: grid;
    place-items: center;
    z-index: 11000;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(8px) saturate(120%);
}

[data-theme="dark"] #scrollProgress {
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

#scrollProgress .sp-label {
    width: 76%;
    height: 76%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--header-bg);
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: inset 0 2px 8px var(--shadow-color);
}

/* Circular text */
#scrollProgress .sp-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* start text at top */
}

#scrollProgress .sp-text {
    font-size: 14px; /* doubled */
    letter-spacing: 1.2px;
    fill: var(--text-color);
    opacity: 0.75;
}

@media (max-width: 640px) {
    #scrollProgress { right: 12px; width: 48px; height: 48px; }
    #scrollProgress .sp-label { font-size: 0.78rem; }
    #scrollProgress .sp-text { font-size: 12px; letter-spacing: 1px; }
}

#floatingCartWidget:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.24);
}

#floatingCartWidget.dragging { animation: none; cursor: grabbing; }
#floatingCartWidget.snapping { animation: none; }

#floatingCartWidget .fcw-icon { position: relative; display: inline-block; }
#floatingCartWidget img { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
#floatingCartWidget .fcw-badge {
    position: absolute;
    right: -6px;
    top: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(22,163,74,0.45);
    border: 1px solid rgba(255,255,255,0.6);
}

@keyframes fcwPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
    50% { transform: scale(1.06); box-shadow: 0 16px 36px rgba(0,0,0,0.32); }
}

@media (max-width: 640px) {
    #floatingCartWidget { right: 14px; bottom: 72px; width: 58px; height: 58px; }
    #floatingCartWidget img { width: 30px; height: 30px; }
}

/* Mini-cart drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,15,15,0.4);
    backdrop-filter: blur(4px);
    z-index: 12000;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cart-drawer-overlay.show { opacity: 1; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 92vw);
    height: auto;
    min-height: 80vh; /* 20% shorter by default */
    max-height: 100vh; /* expand when content is long */
    background: rgba(24,24,24,0.7);
    color: #fff;
    border-left: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px) saturate(120%);
    box-shadow: -20px 0 60px rgba(0,0,0,0.35);
    z-index: 12001;
    transform: translateX(100%);
    opacity: 0.98;
    display: grid;
    grid-template-rows: auto 1fr auto;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer.show { transform: translateX(0); }

.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-bottom: 1px solid rgba(255,255,255,0.12); gap: 10px; }
.cart-drawer-header h3 { margin: 0; color: #fff; }
.cart-close { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.cart-close:hover { background: rgba(255,255,255,0.08); }

/* Subtotal inline with header */
.cart-header-total { display: inline-flex; align-items: baseline; gap: 8px; margin-left: auto; margin-right: 8px; }
.cart-header-total span { opacity: 0.9; }
.cart-header-total strong { font-size: 1rem; color: #ffffff; }

/* Compact top bar in cart with subtotal and Checkout at the top */
.cart-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 2; }
.cart-topbar .cart-top-total { display: inline-flex; align-items: baseline; gap: 8px; }
.cart-topbar .cart-top-total span { opacity: 0.9; }
.cart-topbar .cart-top-total strong { font-size: 1rem; color: #ffffff; }
.cart-topbar .btn { padding: 8px 12px; font-size: 0.95rem; border-radius: 10px; }

/* Calculator-like monospaced numerals for prices and totals */
.cart-topbar .cart-top-total strong,
.cart-header-total strong,
.cart-price,
.cart-line-total,
.cart-totals strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.cart-drawer-body { overflow: auto; padding: 10px 12px; }
.cart-drawer-body { position: relative; }
/* Subtle animated floral background */
.cart-drawer-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 120% 10%, rgba(34,197,94,0.10), transparent 60%),
        radial-gradient(700px 350px at -20% 90%, rgba(139,92,246,0.10), transparent 60%),
        radial-gradient(900px 450px at 20% -10%, rgba(16,185,129,0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: floralDrift 16s ease-in-out infinite alternate;
}
@keyframes floralDrift {
    0% { filter: hue-rotate(0deg) saturate(1); opacity: 0.9; }
    100% { filter: hue-rotate(18deg) saturate(1.1); opacity: 1; }
}
.cart-items { position: relative; z-index: 1; display: grid; gap: 12px; }
/* Classy glass line item with gradient edge */
.cart-line {
    display: grid;
    grid-template-columns: 64px 1fr auto 28px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.cart-line::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: conic-gradient(#22c55e, #8b5cf6, #22c55e);
    z-index: -1;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    padding: 2px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.8s linear;
}
.cart-line:hover::before { opacity: 1; transform: rotate(360deg); }
.cart-line { animation: lineIn 280ms ease both; }
@keyframes lineIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cart-thumb { width: 64px; height: 64px; background: rgba(0,0,0,0.18); border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-meta { min-width: 0; }
.cart-title { font-weight: 600; margin-bottom: 2px; color: #fff; }
.cart-price { color: #86efac; font-weight: 600; font-size: 0.95rem; }
.cart-qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 2px 6px; }
.qty-btn { background: transparent; color: #fff; border: none; padding: 4px 8px; cursor: pointer; }
.qty-val { min-width: 24px; text-align: center; display: inline-block; }
.cart-line-total { font-weight: 700; color: #fff; }
.cart-remove { background: transparent; border: none; color: #fff; cursor: pointer; opacity: 0.8; }
.cart-remove:hover { opacity: 1; }

.cart-drawer-footer { padding: 10px 12px 12px; border-top: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.06); }
.cart-totals { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.cart-actions { display: flex; gap: 8px; }

/* Compact tweaks for small screens: tighter hamburger menu and mini cart */
@media (max-width: 640px) {
    .nav-toggle { padding: 6px; }
    .nav-toggle span { width: 22px; height: 2.5px; margin: 2px 0; }

    .mobile-nav-menu { width: min(320px, 82vw); padding: 1rem 0; }
    .mobile-nav-brand { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .mobile-nav-brand .logo { height: 28px; }
    .mobile-nav-links { padding: 0 1rem; }
    .mobile-nav-links li { margin-bottom: 0.5rem; }
    .mobile-nav-links a { padding: 0.75rem 1rem; border-radius: 10px; }
    .mobile-nav-links a:hover, .mobile-nav-links a.active { transform: translateX(6px); }

    .cart-drawer { width: min(340px, 92vw); }
    .cart-drawer-header { padding: 10px 10px; }
    .cart-topbar { padding: 8px 10px; gap: 8px; }
    .cart-topbar .btn { padding: 8px 10px; font-size: 0.9rem; }
    .cart-drawer-body { padding: 8px 10px; }
    .cart-line { grid-template-columns: 48px 1fr auto 24px; gap: 8px; padding: 8px; border-radius: 12px; }
    .cart-thumb { width: 48px; height: 48px; border-radius: 8px; }
    .cart-title { font-size: 0.95rem; }
    .cart-price { font-size: 0.9rem; }
    .qty-btn { padding: 2px 6px; }
    .qty-val { min-width: 20px; }
    .cart-line-total { font-size: 0.95rem; }
    .cart-drawer-footer { padding: 8px 10px; }
}

/* Animate widget on add */
#floatingCartWidget.cart-animate { animation: cartWiggle 600ms ease; }
@keyframes cartWiggle {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.08) rotate(-4deg); }
    40% { transform: scale(1.07) rotate(3deg); }
    60% { transform: scale(1.06) rotate(-2deg); }
    80% { transform: scale(1.04) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.flower {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: flowerBurst 2s ease-out forwards;
    transform-origin: center;
}

.flower:nth-child(1) { animation-delay: 0s; }
.flower:nth-child(2) { animation-delay: 0.1s; }
.flower:nth-child(3) { animation-delay: 0.2s; }
.flower:nth-child(4) { animation-delay: 0.3s; }
.flower:nth-child(5) { animation-delay: 0.4s; }
.flower:nth-child(6) { animation-delay: 0.5s; }
.flower:nth-child(7) { animation-delay: 0.6s; }
.flower:nth-child(8) { animation-delay: 0.7s; }
.flower:nth-child(9) { animation-delay: 0.8s; }
.flower:nth-child(10) { animation-delay: 0.9s; }
.flower:nth-child(11) { animation-delay: 1s; }
.flower:nth-child(12) { animation-delay: 1.1s; }

@keyframes flowerBurst {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.2) rotate(72deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(360deg) translateY(-100px);
    }
}

/* Different flower types with unique colors */
.flower.rose { color: #e91e63; }
.flower.sunflower { color: #ffc107; }
.flower.tulip { color: #ff5722; }
.flower.daisy { color: #ffffff; text-shadow: 0 0 3px rgba(0,0,0,0.3); }
.flower.hibiscus { color: #f44336; }
.flower.lily { color: #9c27b0; }
.flower.orchid { color: #673ab7; }
.flower.marigold { color: #ff9800; }
.flower.pansy { color: #3f51b5; }
.flower.poppy { color: #f44336; }
.flower.iris { color: #2196f3; }
.flower.carnation { color: #e91e63; }

/* Sparkle effect for extra magic */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    opacity: 0;
    animation: sparkleBurst 1.5s ease-out forwards;
}

.sparkle:nth-child(1) { animation-delay: 0.2s; }
.sparkle:nth-child(2) { animation-delay: 0.4s; }
.sparkle:nth-child(3) { animation-delay: 0.6s; }
.sparkle:nth-child(4) { animation-delay: 0.8s; }
.sparkle:nth-child(5) { animation-delay: 1s; }

@keyframes sparkleBurst {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg) translateY(-50px);
    }
}

/* Petal effect */
.petal {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #ff69b4, #ffc0cb);
    border-radius: 50% 0;
    opacity: 0;
    animation: petalFall 3s ease-out forwards;
}

.petal:nth-child(1) { animation-delay: 0.5s; }
.petal:nth-child(2) { animation-delay: 0.7s; }
.petal:nth-child(3) { animation-delay: 0.9s; }
.petal:nth-child(4) { animation-delay: 1.1s; }
.petal:nth-child(5) { animation-delay: 1.3s; }
.petal:nth-child(6) { animation-delay: 1.5s; }

@keyframes petalFall {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.8) rotate(180deg) translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(360deg) translateY(-80px);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-brand .logo,
    .footer-brand .logo,
    .mobile-nav-brand .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Modal (re-added fresh) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,15,15,0.55);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(6px);
}

.modal-overlay.show { opacity: 1; }

.modal {
    position: fixed;
    top: 8vh;
    left: 50%;
    transform: translate(-50%, 0) scale(0.97);
    width: min(1200px, 96vw);
    max-height: calc(100vh - 16vh);
    overflow: auto;
    padding: 1rem 1rem 1.25rem;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: rgba(24,24,24,0.6);
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px) saturate(120%);
}

.modal.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 640px) {
    .modal { top: 6vh; max-height: calc(100vh - 12vh); width: 98vw; }
    .modal.show { transform: translate(-50%, 0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.modal-header h2 { margin: 0; }
.email-modal, .email-modal h2, .email-modal h3, .email-modal p, .email-modal label { color: #ffffff; }
.email-modal .form-group input,
.email-modal .form-group select,
.email-modal .form-group textarea { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #ffffff; }
.email-modal .form-group input::placeholder,
.email-modal .form-group textarea::placeholder { color: rgba(255,255,255,0.7); }
.email-modal .step-dot { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #ffffff; }
.email-modal .step-dot.active { background: linear-gradient(135deg, #8b5cf6, #22c55e); }
.email-modal .wizard-actions .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.35); }
.email-modal .wizard-actions .btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* I18n glitch effect */
.glitching { position: relative; }
.glitching::after { content: attr(data-glitch); position: absolute; left: 0; top: 0; color: #8b5cf6; opacity: 0.35; transform: translate(1px, -1px); }
.glitching::before { content: attr(data-glitch); position: absolute; left: 0; top: 0; color: #22c55e; opacity: 0.35; transform: translate(-1px, 1px); }

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.1rem;
}

/* Modal language switch */
.modal-lang-switch { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 4px 6px; }
.modal-lang-switch button { background: transparent; border: none; color: #fff; opacity: 0.7; padding: 4px 8px; border-radius: 999px; cursor: pointer; }
.modal-lang-switch button.active { background: rgba(255,255,255,0.12); opacity: 1; }

/* Floral fade at bottom of modal */
.email-modal { position: relative; overflow: hidden; }
.email-modal::after {
    content: '🌸 🌿 🌻 🌷';
    position: sticky;
    bottom: 0;
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0 10px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.04) 60%, rgba(0,0,0,0.08) 100%);
    font-size: 20px;
}

[data-theme="dark"] .email-modal::after {
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 60%, rgba(255,255,255,0.12) 100%);
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .mobile-nav-menu {
        width: 270px;
    }
}

/* Shop layout and sidebar (appended) */
.products-section { padding: 3rem 0; }
.products-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
/* Layout switch control (right aligned) */
.layout-switch { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
/* Shop pagination - glassy revamped */
#shopPagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-color);
    backdrop-filter: blur(10px) saturate(140%);
}
[data-theme="dark"] #shopPagination { background: rgba(24,24,24,0.5); border-color: rgba(255,255,255,0.12); }
#shopPagination .page-btn,
#shopPagination .page-ellipsis {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--header-bg);
    color: var(--text-color);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
#shopPagination .page-ellipsis { cursor: default; opacity: 0.7; }
#shopPagination .page-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
#shopPagination .page-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
#shopPagination .page-btn[aria-current="page"],
#shopPagination .page-btn.active { border-color: transparent; background: var(--primary-color); color: #fff; box-shadow: 0 8px 22px rgba(34,197,94,0.18); }
#shopPagination .page-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 640px) {
    #shopPagination {
        position: sticky;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        z-index: 700;
        margin-top: 10px;
        padding: 6px 8px;
        gap: 6px;
    }
    #shopPagination .page-btn,
    #shopPagination .page-ellipsis { min-width: 32px; height: 32px; border-radius: 9px; padding: 0 8px; }
}
/* Modern glass buttons */
.layout-btn {
    position: relative;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--text-color);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px) saturate(120%);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
[data-theme="dark"] .layout-btn {
    background: rgba(24,24,24,0.5);
    border-color: rgba(255,255,255,0.12);
}
.layout-btn::before {
    content: '';
    position: absolute; inset: -2px;
    border-radius: 14px;
    background: conic-gradient(#22c55e, #8b5cf6, #22c55e);
    z-index: -1;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    padding: 2px; opacity: 0; transition: opacity 0.2s ease, transform 0.8s linear;
}
.layout-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }
.layout-btn:hover::before { opacity: 1; transform: rotate(360deg); }
.layout-btn:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(0,0,0,0.16); }
.layout-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(34,197,94,0.25), 0 6px 18px rgba(0,0,0,0.18); }
.layout-btn.active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(139,92,246,0.12));
    box-shadow: 0 10px 28px rgba(34,197,94,0.18);
}
.layout-btn .dots { display: grid; gap: 2px; }
.layout-btn[data-layout="list"] .dots { grid-template-columns: 1fr; }
.layout-btn[data-layout="3x3"] .dots { grid-template-columns: repeat(3, 1fr); }
.layout-btn[data-layout="4x4"] .dots { grid-template-columns: repeat(4, 1fr); }
.layout-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,0.45); display: inline-block; transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease; }
[data-theme="dark"] .layout-btn .dot { background: rgba(255,255,255,0.7); }
.layout-btn:hover .dot { transform: scale(1.05); }
.layout-btn.active .dot { background: #22c55e; box-shadow: 0 0 0 1px rgba(34,197,94,0.2); }
@media (min-width: 768px) { .layout-btn .dot { width: 8px; height: 8px; } }
@media (max-width: 640px) { .layout-btn[data-layout="3x3"], .layout-btn[data-layout="4x4"] { display: none !important; } }
/* Widen the shop container on large screens while preserving mobile/tablet behavior */
.container.shop-layout { max-width: 1400px; }
@media (min-width: 1440px) { .container.shop-layout { max-width: 1600px; } }
@media (min-width: 1920px) { .container.shop-layout { max-width: 1800px; } }
.shop-grid { display: grid; grid-template-columns: 280px 1fr; gap: 1.25rem; align-items: start; }
.shop-sidebar-slot { position: sticky; top: 90px; }
.shop-products { min-width: 0; }
.shop-sidebar .sidebar-card { background: var(--card-bg); border-radius: 12px; padding: 1rem; border: 1px solid var(--border-color); box-shadow: 0 2px 8px var(--shadow-color); margin-bottom: 1rem; }
.shop-sidebar .sidebar-card h3 { margin-bottom: 0.75rem; color: var(--secondary-color); }
.filter-group { display: grid; gap: 0.5rem; }
.range-row { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 0.5rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; }

/* Sidebar filter Apply buttons theme override */
.shop-sidebar .filter-group .btn.btn-primary {
    background: #0f0f0f;
    color: #ffffff;
    border: 1px solid #000000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.shop-sidebar .filter-group .btn.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
[data-theme="dark"] .shop-sidebar .filter-group .btn.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255,255,255,0.15);
}
[data-theme="dark"] .shop-sidebar .filter-group .btn.btn-primary:hover {
    background: #f1f1f1;
    box-shadow: 0 8px 18px rgba(255,255,255,0.2);
}

/* Segmented control for Sort */
.segmented-control {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    background: var(--header-bg);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 12px;
}
.segmented-control input[type="radio"] {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}
.segmented-control label {
    display: inline-block;
    text-align: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    user-select: none;
}
.segmented-control label:hover {
    background: rgba(0,0,0,0.05);
}
[data-theme="dark"] .segmented-control label:hover {
    background: rgba(255,255,255,0.08);
}
.segmented-control input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: #ffffff;
    border-color: transparent;
}
[data-theme="dark"] .segmented-control input[type="radio"]:checked + label {
    background: #ffffff;
    color: #000000;
}

/* Gradient dual range slider */
.price-slider { margin-top: 0.25rem; }
.price-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; }
.price-header strong { color: var(--primary-color); font-size: 0.95rem; }
.dual-range { position: relative; height: 32px; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; transform: translateY(-50%); border-radius: 999px; background: linear-gradient(90deg, var(--border-color) 0%, var(--border-color) 100%); box-shadow: inset 0 0 0 1px var(--border-color); }
.dual-range input[type="range"] { position: absolute; left: 0; right: 0; width: 100%; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; height: 32px; margin: 0; }
.dual-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--header-bg); border: 2px solid var(--primary-color); box-shadow: 0 2px 8px var(--shadow-color); cursor: pointer; transition: transform 0.15s ease; }
.dual-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--header-bg); border: 2px solid var(--primary-color); box-shadow: 0 2px 8px var(--shadow-color); cursor: pointer; transition: transform 0.15s ease; }
.dual-range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
.dual-range input[type="range"]:active::-moz-range-thumb { transform: scale(1.1); }
.range-tooltip { position: absolute; top: -38px; transform: translateX(-50%); background: #0f1b24; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.2); white-space: nowrap; pointer-events: none; }
.range-tooltip::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #0f1b24; }

/* Products grid (ensure present) */
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.products-grid .product-card .quick-view-icon{position:absolute;top:8px;left:8px;z-index:2;text-decoration:none;background:rgba(17,24,39,0.72);color:#fff;border:1px solid rgba(255,255,255,0.18);border-radius:999px;padding:6px 9px;line-height:1;font-size:14px;backdrop-filter:blur(6px)}
.products-grid .product-card .quick-view-icon:hover{background:rgba(17,24,39,0.92)}
.products-grid.layout-list { grid-template-columns: 1fr !important; }
.products-grid.layout-3x3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.products-grid.layout-4x4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.products-grid.layout-list .product-card { display: grid; grid-template-columns: 180px 1fr; align-items: start; }
.products-grid.layout-list .product-thumb img { height: 180px; }
.product-card { background: var(--card-bg); border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px var(--shadow-color); border: 2px solid transparent; background-clip: padding-box; box-shadow: 0 5px 15px var(--shadow-color), 0 0 0 2px var(--gradient-border); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); position: relative; }
.product-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 15px 30px var(--shadow-color), 0 0 0 2px var(--gradient-border); }
.product-card::before { content: ''; position: absolute; inset: -2px; border-radius: 16px; background: conic-gradient(#22c55e, #8b5cf6, #22c55e); z-index: -1; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px; opacity: 0; transition: opacity 0.25s ease, transform 0.6s linear; }
.product-card:hover::before { opacity: 1; transform: rotate(360deg); }
.product-thumb { position: relative; overflow: hidden; }
.product-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s ease; display: block; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 1rem 1.1rem 1.2rem; }
.product-info h3 { color: var(--secondary-color); margin-bottom: 0.4rem; }
.product-desc {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    max-height: 3.1em; /* roughly 2 lines */
    transition: max-height 0.25s ease;
}
.product-desc::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.2em;
    background: linear-gradient(180deg, rgba(255,255,255,0), var(--card-bg));
    pointer-events: none;
}
.product-card:hover .product-desc {
    -webkit-line-clamp: unset;
    max-height: 200px;
}
.product-card:hover .product-desc::after { opacity: 0; }
.product-price { font-weight: 600; color: #4CAF50; }
.product-actions { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.product-card .product-actions .btn { border-radius: 0 0 12px 0; }

@media (max-width: 1024px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-sidebar-slot { position: static; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Force sidebar to remain on the left and products on the right for all screens */
@media (max-width: 1024px) {
    .shop-grid { grid-template-columns: 200px 1fr; }
    .shop-sidebar-slot { position: sticky; top: 80px; }
}
@media (max-width: 640px) {
    /* Hide side filter widgets on small screens and collapse layout */
    .shop-sidebar-slot,
    .shop-sidebar { display: none !important; }
    .shop-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Compact mobile layout: hide filters, tighten grid, shrink fonts/cards */
@media (max-width: 640px) {
    /* Ensure sidebar stays hidden and grid remains single column */
    .shop-sidebar-slot,
    .shop-sidebar { display: none !important; }
    .shop-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .products-header h2 { font-size: 1.1rem; }
    .product-card { border-radius: 12px; }
    .product-thumb img { height: 120px; }
    .product-info { padding: 0.75rem; }
    .product-info h3 { font-size: 0.95rem; }
    .product-desc { display: none; }
    .product-price { font-size: 0.95rem; }
    .product-actions { gap: 0.5rem; flex-direction: row; }
    .product-card .btn { padding: 8px 10px; font-size: 0.9rem; flex: 1; }
    /* Categories mobile tweaks */
    .categories-grid .category-card { position: relative; }
    .categories-grid .category-card .btn { padding: 6px 8px; font-size: 0.8rem; min-height: 30px; }
    .category-card .category-desc { display: none; }
}
/* Medium phones: keep 2 columns for products for consistency */
@media (min-width: 480px) and (max-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile horizontal filter bar and glassy modal */
@media (max-width: 640px) {
    .mobile-filter-bar {
        position: sticky;
        top: calc(70px + env(safe-area-inset-top, 0px));
        z-index: 800;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        margin: 8px 0 10px;
        border-radius: 12px;
        background: rgba(255,255,255,0.6);
        border: 1px solid var(--border-color);
        box-shadow: 0 8px 20px var(--shadow-color);
        backdrop-filter: blur(10px) saturate(140%);
        transition: background 180ms ease, box-shadow 180ms ease;
    }
    [data-theme="dark"] .mobile-filter-bar {
        background: rgba(24,24,24,0.55);
        border-color: rgba(255,255,255,0.12);
    }
    .mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: var(--header-bg);
        color: var(--text-color);
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
    }
    .mobile-filter-toggle i { font-size: 1rem; }
    .mobile-filter-toggle:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
    .mobile-filter-toggle:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    .mobile-filter-chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; }
    .mobile-filter-chips::-webkit-scrollbar { height: 6px; }
    .mobile-filter-chips .chip { white-space: nowrap; padding: 6px 8px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--card-bg); font-size: 0.85rem; }

    /* Bubble state on scroll */
    .mobile-filter-bar.is-bubble {
        position: fixed;
        top: auto;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        left: auto;
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 12px 30px rgba(0,0,0,0.22);
        backdrop-filter: blur(16px) saturate(160%);
        transition: transform 180ms ease, width 180ms ease, border-radius 180ms ease, box-shadow 180ms ease, background 180ms ease;
    }
    [data-theme="dark"] .mobile-filter-bar.is-bubble { background: rgba(24,24,24,0.8); border-color: rgba(255,255,255,0.12); }
    .mobile-filter-bar.is-bubble .mobile-filter-chips { display: none; }
    .mobile-filter-bar.is-bubble .mobile-filter-toggle { border: 0; background: transparent; padding: 0; }
    .mobile-filter-bar.is-bubble .mobile-filter-toggle span { display: none; }
    .mobile-filter-bar.is-bubble .mobile-filter-toggle i { font-size: 1.25rem; }
}

/* Glassy filter modal */
#filtersModalOverlay { position: fixed; inset: 0; background: rgba(15,15,15,0.5); backdrop-filter: blur(6px); z-index: 13000; opacity: 0; transition: opacity 0.2s ease; display: none; }
#filtersModalOverlay.show { opacity: 1; }
#filtersModal { position: fixed; inset: auto 0 0 0; margin: auto; width: min(680px, 94vw); max-height: 86vh; top: 7vh; background: rgba(255,255,255,0.8); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); z-index: 13001; opacity: 0; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease; display: none; backdrop-filter: blur(12px) saturate(140%); }
[data-theme="dark"] #filtersModal { background: rgba(24,24,24,0.7); color: #fff; border-color: rgba(255,255,255,0.12); }
#filtersModal.show { opacity: 1; transform: translateY(0); }
#filtersModal .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-color); }
#filtersModal .modal-body { padding: 12px 14px; overflow: auto; max-height: calc(86vh - 120px); }
#filtersModal .modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--border-color); }
