/* Global Scaling System */
:root {
  --app-scale: 0.75;
}

@media (max-width: 768px) {
  :root { --app-scale: 0.7; }
  
  /* Make buttons narrower on mobile */
  .flower-card .card-actions {
    gap: 0.25rem;
  }
  
  .flower-card .btn {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  /* Extra space for very small screens */
  
  /* Even narrower buttons on very small screens */
  .flower-card .card-actions {
    gap: 0.125rem;
  }
  
  .flower-card .btn {
    padding: 0.4rem 0.125rem;
    font-size: 0.75rem;
    min-height: 36px;
  }
}

/* Fast path for Chromium (non-standard but widely supported) */
html {
  /* Only apply when scale < 1 and width is large enough */
  zoom: var(--app-scale);
}

/* Transform fallback for browsers that ignore zoom */
@supports not (zoom: 1) {
  /* Wrap your entire app in #scale-root (see below) */
  #scale-root {
    transform: scale(var(--app-scale));
    transform-origin: top left;
    /* Compensate width/height so the layout still fills the viewport */
    width: calc(100% / var(--app-scale));
    min-height: calc(100vh / var(--app-scale));
  }

  /* If you have body background colors/images, keep them covering the viewport */
  html, body {
    height: 100%;
  }
}

/* Avoid shrinking printed pages */
@media print {
  html { zoom: 1 !important; }
  @supports not (zoom: 1) {
    #scale-root {
      transform: none !important;
      width: 100% !important;
      min-height: auto !important;
    }
  }
}

/* Ensure modals and fixed elements work properly with scaling */
@supports not (zoom: 1) {
  /* Fixed elements inside scale-root should maintain their positioning */
  #scale-root .city-modal,
  #scale-root .modal,
  #scale-root [class*="modal"] {
    position: fixed;
    /* These will be scaled along with the rest of the content */
  }
  
  /* Ensure sticky elements work properly */
  #scale-root [class*="sticky"] {
    position: sticky;
  }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #fafafa;
}

/* Hide Google Translate Widget on Mobile */
.goog-te-gadget {
    display: none !important;
}

@media (min-width: 768px) {
    .goog-te-gadget {
        display: block !important;
    }
}

/* Prevent any accidental horizontal scroll across the site */
html, body {
    overflow-x: hidden;
}

/* Page hero (used on inner pages) */
.page-hero {
    position: relative;
    padding: 7rem 0 3rem;
    background: radial-gradient(1200px 600px at 10% -10%, rgba(255,107,129,0.12), transparent),
                radial-gradient(1000px 500px at 110% 0%, rgba(255,142,158,0.10), transparent),
                linear-gradient(180deg, #ffffff, #fff7f9);
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}
.page-hero-subtitle {
    color: #4a5568;
    font-size: 1.1rem;
}

/* Feature cards (icons + text) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.feature-card {
    background: white;
    border: 1px solid rgba(255, 107, 129, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(255, 107, 129, 0.15);
}
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    color: white;
    margin-bottom: 0.75rem;
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.4);
}
.feature-title { font-weight: 700; color: #1a202c; margin-bottom: 0.25rem; }
.feature-desc { color: #718096; }

/* Animated reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* Gradient section separators */
.section-soft {
    background: linear-gradient(180deg, #fff, #fff5f7);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #1a202c;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #2d3748;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: #4a5568;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Enhanced button styles for better visual balance */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 129, 0.4);
}

.btn-secondary {
    background: white;
    color: #FF6B81;
    border: 2px solid #FF6B81;
    box-shadow: 0 2px 8px rgba(255, 107, 129, 0.2);
}

.btn-secondary:hover {
    background: #FF6B81;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3);
}

.btn-outline {
    background: transparent;
    color: #FF6B81;
    border: 2px solid #FF6B81;
    box-shadow: 0 2px 8px rgba(255, 107, 129, 0.1);
}

.btn-outline:hover {
    background: #FF6B81;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-header p {
    color: #718096;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 129, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    overflow: visible;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    overflow: visible; /* allow mobile menu to be visible */
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1a202c;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Brand logo image sizing */
.brand-logo-image {
    display: block;
    height: 80px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .brand-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer logo image */
.footer-logo-image {
    display: block;
    height: 36px;
    width: auto;
    margin-bottom: 0.5rem;
}

/* Desktop Menu */
.navbar-menu.desktop-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding-right: 1rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 107, 129, 0.1);
    border-radius: 0 0 16px 16px;
    z-index: 1001;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    max-height: 70vh;
    overflow-y: auto;
    width: 100%;
    min-width: 100%;
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
}

.mobile-menu-items li {
    width: 100%;
}

.mobile-menu-items a {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3748;
    border: 1px solid transparent;
    min-height: 56px;
    white-space: nowrap;
    max-width: 100%;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.mobile-menu-items a:hover,
.mobile-menu-items a:focus {
    background: rgba(255, 107, 129, 0.08);
    border-color: rgba(255, 107, 129, 0.2);
    color: #FF6B81;
    transform: translateX(4px);
}

/* Mobile Action Items */
.mobile-actions-item {
    width: 100%;
    margin: 0.25rem 0;
}

.mobile-actions-item .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: 56px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-actions-item .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 129, 0.2);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 107, 129, 0.1);
}

.mobile-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: 56px;
    border-radius: 12px;
}

.navbar-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.8rem;
    white-space: nowrap;
    display: inline-block;
    padding: 6px 10px 8px; /* set base padding so size doesn't change on hover */
    border: 1px solid transparent; /* reserve border space to prevent reflow */
    border-radius: 10px;
}

.navbar-menu a:hover {
    color: #FF6B81;
}

.navbar-menu a::after { display: none; }

/* Remade hover: in-place pill highlight to prevent layout shift/overflow */
.navbar-menu a:hover {
    background: rgba(255, 107, 129, 0.08);
    color: #FF6B81;
    border-color: rgba(255, 107, 129, 0.25);
}

/* Desktop Actions */
.navbar-actions.desktop-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Actions */
.navbar-actions.mobile-actions {
    display: none;
}

.navbar-actions .city-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 107, 129, 0.05);
    border: 1px solid rgba(255, 107, 129, 0.2);
    border-radius: 8px;
    color: #4a5568;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 32px;
    box-sizing: border-box;
}

.navbar-actions .city-indicator:hover {
    background: rgba(255, 107, 129, 0.1);
    border-color: #FF6B81;
    color: #FF6B81;
}

.navbar-actions .city-indicator .location-icon {
    color: #FF6B81;
    font-size: 0.7rem;
}

.navbar-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.navbar-actions .btn-outline {
    background: transparent;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.navbar-actions .btn-outline:hover {
    background: rgba(255, 107, 129, 0.05);
    border-color: #FF6B81;
    color: #FF6B81;
}

.navbar-actions .btn-primary {
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 129, 0.3);
}

.navbar-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(255, 107, 129, 0.4);
}

.navbar-actions .badge {
    background: #FF6B81;
    color: white;
    padding: 0.15rem 0.35rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4a5568;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1002;
}

.navbar-toggle:hover {
    background: rgba(255, 107, 129, 0.1);
    color: #FF6B81;
}

.navbar-toggle:focus {
    outline: 2px solid #FF6B81;
    outline-offset: 2px;
}

/* Mobile navbar toggle */
@media (max-width: 660px) {
    :root { --app-scale: 0.7; }
    .navbar-toggle {
        display: flex;
    }
    
    /* Hide desktop menu and actions on mobile */
    .desktop-menu,
    .desktop-actions {
        display: none !important;
    }
    
    /* Show mobile menu when active */
    .mobile-menu.active {
        display: block;
    }
    
    /* Ensure proper spacing for mobile */
    .navbar-container {
        padding: 0 1rem;
    }
    
    /* Adjust logo size for mobile */
    .brand-logo-image {
        height: 100px;
        width: auto;
        object-fit: contain;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255, 107, 129, 0.1), rgba(255, 142, 158, 0.05));
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="flowers" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="%23FF6B81" opacity="0.1"/><circle cx="5" cy="5" r="1" fill="%23FF8E9E" opacity="0.1"/><circle cx="15" cy="15" r="1.5" fill="%23FF6B81" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23flowers)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #FF6B81;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 129, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-badge .badge-icon {
    color: #FF6B81;
}

.hero h1 {
    color: #1a202c;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced readability for light backgrounds */
.hero p {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 3rem;
    line-height: 1.7;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* Zoom-out effect for interactive elements */
.zoom-out-effect {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.zoom-out-effect:hover {
    transform: scale(0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.zoom-out-effect:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .zoom-out-effect {
        transition: transform 0.2s ease;
    }
    
    .zoom-out-effect:active {
        transform: scale(0.95);
    }
}

/* Apply zoom effect to various elements */
.flower-card,
.bouquet-card,
.florist-card,
.btn,
.chip,
.segmented button,
.browse-btn,
.navbar-menu a,
.city-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center;
}

.flower-card:hover,
.bouquet-card:hover,
.florist-card:hover,
.btn:hover,
.chip:hover,
.segmented button:hover,
.browse-btn:hover,
.navbar-menu a:hover,
.city-item:hover {
    transform: scale(0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flower-card:active,
.bouquet-card:active,
.florist-card:active,
.btn:active,
.chip:active,
.segmented button:active,
.browse-btn:active,
.navbar-menu a:active,
.city-item:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.hero-search {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.hero-search-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.form-group {
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1a202c;
    font-size: 0.9rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    height: 52px;
    box-sizing: border-box;
    line-height: 1;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #FF6B81;
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

.search-btn {
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 52px;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
    min-width: fit-content;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 129, 0.4);
}

.hero-builder-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 107, 129, 0.1);
}

.hero-builder-cta p {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hero-builder-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    color: #FF6B81;
    border: 2px solid #FF6B81;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.2);
}

.hero-builder-cta .btn:hover {
    background: #FF6B81;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 129, 0.3);
}

.hero-builder-cta .btn i {
    font-size: 1.2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    font-weight: 500;
}

.hero-feature .feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.hero-feature .feature-dot.red { background: #FF6B81; }
.hero-feature .feature-dot.green { background: #48bb78; }
.hero-feature .feature-dot.yellow { background: #ed8936; }

/* Popular Flowers Section */
.popular-flowers {
    padding: 5rem 0;
    background: white;
}

.flower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.flower-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 107, 129, 0.1);
    position: relative;
}

.flower-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 107, 129, 0.15);
}

.flower-card .card-image {
    width: 100% !important;
    height: 200px !important; /* Fixed height - non-scalable */
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden !important;
    transition: all 0.25s ease; /* Consistent timing */
    max-width: 100% !important; /* Prevent container expansion */
    max-height: 200px !important; /* Prevent container expansion */
    box-sizing: border-box !important; /* Include padding/border in dimensions */
}

.flower-card .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: all 0.25s ease; /* Consistent transition timing */
    background: #f8f9fa;
    position: relative;
    z-index: 2;
    transform: scale(1);
    max-width: 100% !important; /* Ensure image never exceeds container */
    max-height: 100% !important; /* Ensure image never exceeds container */
    overflow: hidden !important; /* Prevent any overflow */
    box-sizing: border-box !important; /* Include padding/border in dimensions */
    contain: layout style paint !important; /* CSS containment for better performance */
}

.flower-card:hover .product-image {
    transform: scale(1.2);
    z-index: 10;
}

/* Enhanced hover effect - image covers entire card */
.flower-card {
    position: relative;
    overflow: hidden !important; /* Force overflow hidden */
    cursor: default; /* Remove pointer cursor from card */
    height: 500px !important; /* Increased height for better button visibility */
    min-height: 500px !important; /* Ensure enough space for buttons */
    max-height: 500px !important; /* Prevent card expansion */
    box-sizing: border-box !important; /* Include padding/border in dimensions */
}

/* Force all child elements to respect container boundaries */
.flower-card * {
    max-width: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Ensure proper reset states */
.flower-card .card-image {
    position: relative;
    width: 100% !important;
    height: 200px !important;
    transition: all 0.25s ease; /* Consistent transition timing */
    cursor: pointer; /* Show pointer cursor on image */
    max-width: 100% !important; /* Prevent container expansion */
    max-height: 200px !important; /* Prevent container expansion */
}



.flower-card .fallback-icon {
    transform: scale(1);
    width: 100% !important;
    height: 100% !important;
    transition: all 0.25s ease; /* Consistent transition timing */
    max-width: 100% !important; /* Ensure icon never exceeds container */
    max-height: 100% !important; /* Ensure icon never exceeds container */
    overflow: hidden !important; /* Prevent any overflow */
    box-sizing: border-box !important; /* Include padding/border in dimensions */
    contain: layout style paint !important; /* CSS containment for better performance */
}

.flower-card .card-image:hover {
    position: absolute; /* Position absolutely to cover entire card */
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important; /* Cover entire card */
    z-index: 20;
    background: #000;
    border-radius: 20px; /* Round all corners */
    overflow: hidden !important; /* Prevent content from spilling out */
    transition: all 0.25s ease; /* Faster, smoother transition */
    max-width: 100% !important; /* Ensure container doesn't exceed card bounds */
    max-height: 100% !important; /* Ensure container doesn't exceed card bounds */
    box-sizing: border-box !important; /* Include padding/border in dimensions */
}

/* Add subtle overlay for better image visibility */
.flower-card .card-image:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cover entire card */
    background: rgba(0, 0, 0, 0.1);
    z-index: 22;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.flower-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Match card-image height */
    background: rgba(0, 0, 0, 0);
    z-index: 22;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.flower-card .card-image:hover .product-image {
    width: 100% !important;
    height: 100% !important; /* Cover entire card */
    transform: scale(1.02); /* Reduced scale to prevent over-expansion */
    object-fit: cover;
    z-index: 21;
    transition: all 0.25s ease; /* Faster transition */
    max-width: 100% !important; /* Ensure image doesn't exceed container */
    max-height: 100% !important; /* Ensure image doesn't exceed container */
    overflow: hidden !important; /* Force overflow hidden */
}

/* Ensure image returns to normal size immediately when unhovering */
.flower-card .card-image .product-image {
    transition: all 0.25s ease;
}

@keyframes imageZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.flower-card .card-image:hover .fallback-icon {
    width: 100% !important;
    height: 100% !important; /* Cover entire card */
    transform: scale(1.02); /* Reduced scale to prevent over-expansion */
    z-index: 21;
    transition: all 0.25s ease; /* Faster transition */
    max-width: 100% !important; /* Ensure icon doesn't exceed container */
    max-height: 100% !important; /* Ensure icon doesn't exceed container */
    overflow: hidden !important; /* Force overflow hidden */
}

/* Ensure fallback icon returns to normal size immediately when unhovering */
.flower-card .card-image .fallback-icon {
    transition: all 0.25s ease;
}

@keyframes iconZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Hide content on hover */
.flower-card .card-image:hover ~ .card-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease;
}

.flower-card .card-content {
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* No delay for content transitions */
    /* Ensure content is visible */
    overflow: visible;
    height: auto;
}

/* Image loading states */
.flower-card .card-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.flower-card .fallback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    color: white;
    font-size: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image placeholder and loading states */
.flower-card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px; /* Match card-image height */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="2" opacity="0.3"/><circle cx="30" cy="30" r="15" fill="none" stroke="white" stroke-width="1" opacity="0.2"/><circle cx="70" cy="70" r="20" fill="none" stroke="white" stroke-width="1" opacity="0.2"/></svg>');
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.flower-card .product-image {
    z-index: 2;
    position: relative;
}



/* Enhanced image display */
.flower-card .product-image {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flower-card:hover .product-image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Image loading animation */
.flower-card .card-image.loading-image {
    background: linear-gradient(90deg, #f8f9fa 25%, #e9ecef 50%, #f8f9fa 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Notification System Styles - Removed */

/* Form Error Styles */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}



.flower-card .card-content {
    padding: 1.5rem;
}

.flower-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.flower-card .card-category {
    margin-bottom: 0.75rem;
}

.flower-card .category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B81 0%, #FF8E9E 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 129, 0.3);
    transition: all 0.3s ease;
}

.flower-card .category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 129, 0.4);
}

.flower-card .card-description {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.flower-card .card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF6B81;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flower-card .card-price .price-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #718096;
    white-space: nowrap;
}

.flower-card .card-actions {
    display: flex;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.flower-card .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.75rem 0.75rem;
    min-width: 0;
    white-space: nowrap;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

/* Favorite button states */
.flower-card .add-to-favorite-btn.favorited {
    background: #FF6B81;
    color: white;
    border-color: #FF6B81;
}

.flower-card .add-to-favorite-btn.favorited:hover {
    background: #e55a6f;
    border-color: #e55a6f;
}

/* Loading state for products */
.loading-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #718096;
}

.loading-spinner {
    margin-bottom: 1rem;
}

.loading-spinner i {
    font-size: 3rem;
    color: #FF6B81;
}

.loading-products p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* No products message */
.no-products-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #718096;
}

.no-products-message h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.no-products-message p {
    margin-bottom: 1.5rem;
    max-width: 400px;
}

/* Premade Bouquets Section */
.premade-bouquets {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(255, 107, 129, 0.05), rgba(255, 142, 158, 0.02));
}

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

.bouquet-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 129, 0.1);
}

.bouquet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 129, 0.15);
}

.bouquet-card .card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #FF8E9E, #FF6B81);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
}

.bouquet-card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bouquet" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="8" fill="none" stroke="white" stroke-width="1" opacity="0.3"/><circle cx="6" cy="6" r="4" fill="none" stroke="white" stroke-width="1" opacity="0.2"/><circle cx="19" cy="19" r="6" fill="none" stroke="white" stroke-width="1" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23bouquet)"/></svg>');
    opacity: 0.4;
}

.bouquet-card .card-content {
    padding: 1.5rem;
}

.bouquet-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.bouquet-card .card-description {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.bouquet-card .card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF6B81;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bouquet-card .card-price .price-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #718096;
    white-space: nowrap;
}

.bouquet-card .card-actions {
    display: flex;
    gap: 0.75rem;
}

.bouquet-card .btn {
    flex: 1;
    justify-content: center;
}

/* Featured Florists Section */
.featured-florists {
    padding: 5rem 0;
    background: white;
    overflow-x: hidden;
}

/* Prevent hover shadows/transforms from causing horizontal scroll */
.featured-florists .container {
    overflow-x: hidden;
}

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

.florist-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 129, 0.1);
    text-align: center;
}

.florist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 129, 0.15);
}

.florist-card .florist-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.florist-card .florist-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.florist-card .florist-location {
    color: #718096;
    margin-bottom: 1rem;
}

.florist-card .florist-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.florist-card .florist-rating .stars {
    color: #f6ad55;
}

.florist-card .florist-rating .rating-text {
    color: #718096;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.florist-card .florist-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.florist-card .stat {
    text-align: center;
}

.florist-card .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FF6B81;
}

.florist-card .stat-label {
    font-size: 0.8rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.florist-card .florist-actions {
    display: flex;
    gap: 0.75rem;
}

.florist-card .btn {
    flex: 1;
    justify-content: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p, .footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FF6B81;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 129, 0.2);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #FF6B81;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* City Modal */
.city-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.city-modal.active {
    display: flex;
}

.city-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.city-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.city-modal-header h2 {
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.city-modal-header p {
    color: #718096;
}

.city-search {
    margin-bottom: 2rem;
}

.city-search input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.city-search input:focus {
    outline: none;
    border-color: #FF6B81;
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.1);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.city-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.city-item:hover {
    border-color: #FF6B81;
    background: rgba(255, 107, 129, 0.05);
    transform: translateY(-2px);
}

.city-item.selected {
    border-color: #FF6B81;
    background: #FF6B81;
    color: white;
}

.city-modal-actions {
    display: flex;
    gap: 1rem;
}

.city-modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* City Indicator */
.city-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 129, 0.1);
    color: #FF6B81;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 129, 0.2);
}

.city-indicator .location-icon {
    color: #FF6B81;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 20px; }

.shadow { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); }

.bg-gradient { background: linear-gradient(135deg, #FF6B81, #FF8E9E); }
.text-gradient {
    background: linear-gradient(135deg, #FF6B81, #FF8E9E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
