/**
 * MGF Custom Theme for OpenCart 4.1.0.3
 * Michigan Gluten Free - Exclusively Gluten-Free
 *
 * Color Palette:
 * - Meadow Green: #7CB95B (Primary brand color)
 * - Cream: #F9F0D4 (Warm backgrounds)
 * - Earth Brown: #735740 (Text and secondary)
 * - Cherry Red: #BF0404 (Accents and urgency)
 * - Plum: #682D52 (Premium and depth)
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
  /* Brand Colors */
  --color-meadow-green: #7CB95B;
  --color-cream: #F9F0D4;
  --color-earth-brown: #735740;
  --color-cherry-red: #BF0404;
  --color-plum: #682D52;

  /* Functional Colors */
  --color-primary: var(--color-meadow-green);
  --color-secondary: var(--color-earth-brown);
  --color-accent: var(--color-cherry-red);
  --color-premium: var(--color-plum);

  /* Text Colors */
  --text-primary: var(--color-earth-brown);
  --text-secondary: rgba(115, 87, 64, 0.7);
  --text-light: #FFFFFF;
  --text-on-dark: var(--color-cream);

  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: var(--color-cream);
  --bg-dark: var(--color-earth-brown);
  --bg-accent: rgba(124, 185, 91, 0.1);

  /* Border Colors */
  --border-light: rgba(115, 87, 64, 0.2);
  --border-medium: rgba(115, 87, 64, 0.3);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(115, 87, 64, 0.1);
  --shadow-md: 0 4px 8px rgba(115, 87, 64, 0.15);
  --shadow-lg: 0 8px 16px rgba(115, 87, 64, 0.2);

  /* 2026 ENHANCEMENTS - Gradient Variations */
  --gradient-meadow: linear-gradient(135deg, #7CB95B 0%, #9AD87A 100%);
  --gradient-earth: linear-gradient(135deg, #735740 0%, #8B6F5B 100%);
  --gradient-premium: linear-gradient(135deg, #682D52 0%, #8B3D70 100%);
  --gradient-sunrise: linear-gradient(135deg, #F9F0D4 0%, #FFE5B4 50%, #FFC48C 100%);
  --gradient-hero: linear-gradient(135deg, rgba(124, 185, 91, 0.95) 0%, rgba(115, 87, 64, 0.90) 100%);

  /* Extended Palette - Nature Inspired */
  --color-sage: #9FA798;
  --color-honey: #D4A574;
  --color-wheat: #E8D5B7;
  --color-forest: #2F4F2F;
  --color-terracotta: #CC6B49;

  /* Semantic Colors for 2026 */
  --color-success: var(--color-meadow-green);
  --color-warning: var(--color-honey);
  --color-danger: var(--color-cherry-red);
  --color-info: var(--color-plum);

  /* Depth & Elevation (Organic Shadows) */
  --elevation-1: 0 2px 8px rgba(115, 87, 64, 0.08);
  --elevation-2: 0 4px 16px rgba(115, 87, 64, 0.12);
  --elevation-3: 0 8px 24px rgba(115, 87, 64, 0.16);
  --elevation-4: 0 16px 32px rgba(115, 87, 64, 0.20);

  /* Rounded Corners - Organic Feel */
  --radius-xl: 20px;
  --radius-pill: 50px;
  --radius-organic: 12px 24px 12px 24px;  /* Asymmetric for organic look */
}

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Open+Sans:wght@400;600;700&family=Pacifico&display=swap');

/* ============================================
   ENHANCED TOP BAR - Social & Account Links
   ============================================ */
#top {
  background-color: #F8F8F8;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
}

#top .header-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
}

#top .header-social li {
  display: inline-block;
}

#top .header-social a {
  display: block;
  width: 36px;
  height: 32px;
  text-align: center;
  line-height: 32px;
  color: #666;
  border-right: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

#top .header-social li:first-child a {
  border-left: 1px solid var(--border-light);
}

#top .header-social a:hover {
  color: var(--color-meadow-green);
  background-color: rgba(124, 185, 91, 0.05);
}

#top-links .list-inline {
  margin-bottom: 0;
}

#top-links li {
  padding: 0 15px;
  border-left: 1px solid var(--border-light);
  line-height: 32px;
}

#top-links li:last-child {
  border-right: 1px solid var(--border-light);
}

#top-links a {
  color: #666;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s ease;
}

#top-links a:hover {
  color: var(--color-meadow-green);
}

/* Enhanced dropdown menus */
#top-links .dropdown-menu {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--elevation-2);
  margin-top: 8px;
}

#top-links .dropdown-menu li {
  border: none;
  padding: 0;
}

#top-links .dropdown-menu a {
  display: block;
  padding: 8px 15px;
  line-height: 20px;
}

#top-links .dropdown-menu a:hover {
  background-color: rgba(124, 185, 91, 0.05);
}

/* ============================================
   ENHANCED PRODUCT DISPLAYS
   ============================================ */
.product-thumb {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.product-thumb:hover {
  box-shadow: var(--elevation-3);
  transform: translateY(-4px);
}

.product-thumb .image {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #f8f8f8;
}

.product-thumb .image img {
  transition: transform 0.4s ease;
  width: 100%;
  height: auto;
}

.product-thumb:hover .image img {
  transform: scale(1.05);
}

/* Second image hover effect */
.product-thumb .second-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-thumb:hover .second-img {
  opacity: 1;
}

/* Sale badge */
.product-thumb .salepro {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gradient-meadow);
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--elevation-2);
}

.product-thumb .caption {
  padding: 15px;
}

.product-thumb h4 {
  font-size: 16px;
  margin: 0 0 10px 0;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-thumb h4 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-thumb h4 a:hover {
  color: var(--color-meadow-green);
}

.product-thumb .price {
  color: var(--color-meadow-green);
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0;
}

.product-thumb .price-new {
  color: var(--color-meadow-green);
  font-weight: 700;
  margin-right: 8px;
}

.product-thumb .price-old {
  color: #999;
  text-decoration: line-through;
  font-size: 16px;
}

/* Product buttons */
.product-thumb .button-group {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.product-thumb .button-group button {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-light);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-thumb .button-group button:hover {
  background: var(--bg-accent);
  border-color: var(--color-meadow-green);
  color: var(--color-meadow-green);
}

.product-thumb .acart {
  width: 100%;
  background: var(--gradient-meadow);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.product-thumb .acart:hover {
  background: var(--gradient-earth);
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}

/* ============================================
   LIST VIEW LAYOUT
   ============================================ */
.product-layout.product-list .product-thumb {
  display: flex;
  align-items: center;
}

.product-layout.product-list .image {
  flex: 0 0 250px;
  margin-right: 20px;
}

.product-layout.product-list .caption {
  flex: 1;
}

.product-layout.product-list .list-des {
  display: block;
  margin: 10px 0;
  color: var(--text-secondary);
}

.product-layout.product-grid .list-des {
  display: none;
}

@media (max-width: 767px) {
  .product-layout.product-list .product-thumb {
    flex-direction: column;
  }

  .product-layout.product-list .image {
    flex: 0 0 auto;
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
#scroll {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--gradient-meadow);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: var(--elevation-3);
  transition: all 0.3s ease;
  text-decoration: none;
}

#scroll:hover {
  background: var(--gradient-earth);
  transform: translateY(-4px);
  box-shadow: var(--elevation-4);
}

/* ============================================
   ENHANCED FOOTER
   ============================================ */
footer {
  background: var(--gradient-earth);
  color: var(--color-cream);
  margin-top: 50px;
  padding-top: 40px;
}

footer h5 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

footer h5:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-meadow-green);
}

footer a {
  color: var(--color-cream);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
}

footer a:hover {
  color: var(--color-meadow-green);
  padding-left: 5px;
}

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

/* Collapsible footer on mobile */
footer .toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  float: right;
  font-size: 18px;
  padding: 0;
}

@media (max-width: 767px) {
  footer .toggle {
    display: block;
  }

  footer .toggle:after {
    content: '\f067';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
  }

  footer .toggle.collapsed:after {
    content: '\f067';
  }

  footer .toggle:not(.collapsed):after {
    content: '\f068';
  }

  footer .footer-collapse {
    display: none;
  }

  footer .footer-collapse.in {
    display: block;
  }
}

footer .foot-bottom {
  background: rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  padding: 20px 0;
}

footer .foot-bottom .copy {
  text-align: center;
  color: var(--color-cream);
  font-size: 13px;
}

/* ============================================
   BREADCRUMB ENHANCEMENT
   ============================================ */
.breadcrumb {
  background: transparent;
  padding: 15px 0;
  margin-bottom: 20px;
  border-radius: 0;
}

.breadcrumb > li {
  position: relative;
  padding-right: 25px;
  color: var(--text-secondary);
}

.breadcrumb > li:after {
  content: '';
  display: block;
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(-45deg);
}

.breadcrumb > li:last-child:after {
  display: none;
}

.breadcrumb > li a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb > li a:hover {
  color: var(--color-meadow-green);
}

/* ============================================
   CATEGORY PAGE ENHANCEMENTS
   ============================================ */
.cate-border {
  background: #f8f8f8;
  padding: 15px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cate-border .btn-group-sm {
  display: flex;
  gap: 5px;
}

.cate-border .inslistgrid {
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cate-border .inslistgrid:hover,
.cate-border .inslistgrid.active {
  background: var(--color-meadow-green);
  border-color: var(--color-meadow-green);
  color: white;
}

.cate-border .inslistgrid img {
  width: 20px;
  height: 20px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.cate-border .inslistgrid:hover img,
.cate-border .inslistgrid.active img {
  filter: grayscale(0%) brightness(0) invert(1);
}

.cate-border .sorting {
  display: flex;
  align-items: center;
}

.cate-border .input-group-addon {
  background: white;
  border: 1px solid var(--border-light);
  border-right: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 13px;
  white-space: nowrap;
}

.cate-border select.form-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
}

/* ============================================
   RATING STARS
   ============================================ */
.rating {
  display: flex;
  gap: 2px;
  margin: 8px 0;
}

.rating .fa-star,
.rating .fa-star-o {
  color: #FFC107;
  font-size: 14px;
}

.rating .fa-star-o {
  color: #ddd;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-earth-brown);
  text-decoration: none;
}

.handwritten {
  font-family: 'Pacifico', cursive;
}

/* Enhanced Typography for 2026 */
h1, h2, h3 {
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
}

.display-1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-earth-brown);
}

.subheading {
  font-family: 'Pacifico', cursive;
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================
   MODERN BUTTON SYSTEM - 2026
   ============================================ */
.btn {
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary,
.btn.btn-primary,
button.btn-primary {
  background: var(--gradient-meadow);
  color: var(--text-light);
  box-shadow: var(--elevation-2);
  border-color: transparent;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-3);
  filter: brightness(1.1);
  color: var(--text-light);
  border-color: transparent;
}

.btn-organic {
  background: var(--gradient-earth);
  color: var(--color-cream);
  border-radius: var(--radius-organic);
  border-color: transparent;
}

.btn-organic:hover {
  transform: translateY(-2px) rotate(1deg);
  box-shadow: var(--elevation-3);
  color: var(--color-cream);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-primary);
  color: var(--text-light);
  border-color: var(--color-primary);
}

.btn-secondary {
  background-color: var(--color-earth-brown);
  border-color: var(--color-earth-brown);
  color: var(--color-cream);
}

.btn-secondary:hover {
  background-color: var(--color-plum);
  border-color: var(--color-plum);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-urgent,
.btn-sale {
  background-color: var(--color-cherry-red);
  border-color: var(--color-cherry-red);
  color: var(--text-light);
}

.btn-urgent:hover,
.btn-sale:hover {
  background-color: #a00303;
  border-color: #a00303;
  transform: translateY(-2px);
}

/* Icon Buttons */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
#top {
  background-color: var(--color-earth-brown);
  color: var(--text-on-dark);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1001;
}

#top a {
  color: var(--text-on-dark);
}

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

#top .fa-solid {
  color: var(--color-primary);
  margin-right: 0.25rem;
}

/* Hide top bar when scrolled */
body.scrolled #top {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* STICKY HEADER - Modern 2026 */
header {
  background-color: var(--bg-primary);
  border-bottom: 3px solid var(--color-primary);
  padding: var(--spacing-md) 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrolled State - Compact Header */
header.scrolled {
  padding: var(--spacing-sm) 0;
  box-shadow: var(--elevation-3);
  border-bottom-width: 2px;
}

header.scrolled #logo img {
  max-height: 50px;
  transition: max-height 0.3s ease;
}

#logo img {
  max-height: 80px;
  transition: max-height 0.3s ease;
}

/* Search Bar in Sticky Header */
header.scrolled .search-group {
  max-width: 300px;
  transition: max-width 0.3s ease;
}

/* Cart Widget Optimization */
header.scrolled #cart {
  font-size: 0.9rem;
}

#logo h1 a {
  font-family: 'Merriweather', serif;
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 700;
}

/* Main Navigation Menu */
#menu {
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--border-light);
}

#menu .navbar {
  padding: 0;
}

#menu .navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all 0.3s ease;
}

#menu .navbar-nav .nav-link:hover,
#menu .navbar-nav .nav-link.active {
  color: var(--color-primary);
  background-color: rgba(124, 185, 91, 0.1);
}

#menu .dropdown-menu {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

#menu .dropdown-item:hover {
  background-color: var(--bg-accent);
  color: black;
}

/* ============================================
   SEARCH BAR
   ============================================ */
#search {
  margin: auto 0;
}

#search .input-group input {
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

#search .input-group button {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

#search .input-group button:hover {
  background-color: var(--color-earth-brown);
  border-color: var(--color-earth-brown);
}

/* ============================================
   CART
   ============================================ */
#cart {
  align-self: center;
}

#cart button {
  background-color: var(--color-plum);
  border-color: var(--color-plum);
  color: var(--text-light);
  font-weight: 600;
  border-radius: var(--radius-md);
  width: 100%;
}

#cart button:hover {
  background-color: var(--color-cherry-red);
  border-color: var(--color-cherry-red);
}

#cart .dropdown-menu {
  min-width: 320px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
main {
  min-height: 400px;
  padding: var(--spacing-lg) 0;
}

/* Trust Badges / Gluten-Free Messaging */
.trust-banner {
  background-color: var(--bg-accent);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.trust-banner h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.trust-banner p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.trust-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  margin: 0.25rem;
}

/* ============================================
   PRODUCT LISTINGS
   ============================================ */
.product-thumb {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.product-thumb .image {
  position: relative;
  margin-bottom: var(--spacing-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-thumb .image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.product-thumb:hover .image img {
  transform: scale(1.05);
}

.product-thumb .caption {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-thumb .caption h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  min-height: 2.5rem;
}

.product-thumb .caption h4 a {
  color: var(--text-primary);
}

.product-thumb .caption h4 a:hover {
  color: var(--color-primary);
}

.product-thumb .description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
  flex: 1;
}

.product-thumb .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.product-thumb .price-old {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-right: 0.5rem;
}

.product-thumb .price-new {
  color: var(--color-cherry-red);
}

.product-thumb .button-group {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.product-thumb .button-group button {
  flex: 1;
}

/* Sale Badge */
.product-thumb .sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--color-cherry-red);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10;
}

/* Gluten-Free Badge */
.product-thumb .gf-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
#product {
  background-color: var(--bg-primary);
}

#product .product-info {
  padding: var(--spacing-md);
}

#product h1 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

#product .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--spacing-md) 0;
}

#product .price-old {
  text-decoration: line-through;
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-right: var(--spacing-sm);
}

#product .price-new {
  color: var(--color-cherry-red);
}

#product #button-cart {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  font-size: 1.25rem;
  padding: 1rem 2rem;
  margin-top: var(--spacing-md);
}

#product #button-cart:hover {
  background-color: var(--color-earth-brown);
  border-color: var(--color-earth-brown);
}

#product .product-description {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
}

/* Allergy Information Table */
.allergy-table {
  width: 100%;
  margin: var(--spacing-md) 0;
  border-collapse: collapse;
}

.allergy-table th,
.allergy-table td {
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.allergy-table thead {
  background-color: var(--color-primary);
  color: var(--text-light);
}

.allergy-table tbody tr:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* ============================================
   CATEGORY PAGES
   ============================================ */
.category-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-plum) 100%);
  color: var(--text-light);
  padding: var(--spacing-xl) var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.category-header h1 {
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.category-description {
  background-color: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid var(--color-primary);
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-earth-brown) 100%);
  color: var(--text-light);
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius-lg);
  text-align: center;
}

.hero-section h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .btn {
  font-size: 1.25rem;
  padding: 1rem 2.5rem;
}

.features-section {
  margin: var(--spacing-xl) 0;
}

.feature-box {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  height: 100%;
  transition: all 0.3s ease;
}

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

.feature-box .icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-box h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: var(--color-earth-brown);
  color: var(--text-on-dark);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

footer h5 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

footer a {
  color: var(--text-on-dark);
/*  display: block;*/
  margin-bottom: 0.5rem;
}

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

footer .social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: var(--text-light);
  border-radius: 50%;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  background-color: var(--color-cream);
  color: var(--color-earth-brown);
  transform: translateY(-3px);
}

footer .copyright {
  text-align: center;
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid rgba(249, 240, 212, 0.2);
  color: var(--text-on-dark);
  font-size: 0.875rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(124, 185, 91, 0.25);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert {
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.alert-success {
  background-color: rgba(124, 185, 91, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-earth-brown);
}

.alert-danger {
  background-color: rgba(191, 4, 4, 0.1);
  border: 1px solid var(--color-cherry-red);
  color: var(--color-cherry-red);
}

.alert-info {
  background-color: rgba(104, 45, 82, 0.1);
  border: 1px solid var(--color-plum);
  color: var(--color-plum);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  background-color: var(--bg-secondary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.breadcrumb-item a {
  color: var(--color-primary);
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
  color: var(--color-primary);
  border-color: var(--border-light);
}

.pagination .page-link:hover {
  background-color: var(--bg-accent);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.pagination .page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-light);
}

/* ============================================
   ORGANIC & NATURAL DESIGN ELEMENTS - 2026
   ============================================ */

/* Organic Cards */
.organic-card {
  background: var(--bg-primary);
  border-radius: var(--radius-organic);
  padding: var(--spacing-lg);
  box-shadow: var(--elevation-2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.organic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-meadow);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.organic-card:hover::before {
  opacity: 1;
}

/* Nature-Inspired Dividers */
.divider-leaf {
  height: 2px;
  background: var(--gradient-meadow);
  margin: var(--spacing-xl) 0;
  position: relative;
  border-radius: var(--radius-pill);
}

.divider-leaf::after {
  content: '🌿';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  padding: 0 var(--spacing-sm);
  font-size: 1.5rem;
}

/* Soft Shadows - Organic Depth */
.shadow-soft {
  box-shadow: 0 4px 24px -8px rgba(124, 185, 91, 0.3),
              0 2px 8px -4px rgba(115, 87, 64, 0.2);
}

/* Gradient Overlays */
.overlay-gradient {
  position: relative;
}

.overlay-gradient::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  opacity: 0.8;
  z-index: 1;
}

.overlay-gradient > * {
  position: relative;
  z-index: 2;
}

/* Feature Cards */
.feature-card {
  padding: var(--spacing-lg);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-icon i {
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-earth-brown);
}

/* ============================================
   CHECKOUT & CART
   ============================================ */
.cart-table {
  width: 100%;
  margin-bottom: var(--spacing-lg);
}

.cart-table th {
  background-color: var(--color-primary);
  color: var(--text-light);
  padding: var(--spacing-sm);
}

.cart-table td {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-light);
}

.cart-total {
  background-color: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.cart-total .total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-total .total-row.grand-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: none;
  margin-top: var(--spacing-sm);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and Below */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  #logo img {
    max-height: 60px;
  }

  #menu .navbar-nav .nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .product-thumb {
    margin-bottom: var(--spacing-sm);
  }
}

/* Mobile Devices */
@media (max-width: 576px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .hero-section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

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

  .feature-box {
    margin-bottom: var(--spacing-sm);
  }

  footer {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
  }

  .product-thumb .button-group {
    flex-direction: column;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: var(--color-earth-brown) !important;
}

.bg-cream {
  background-color: var(--bg-secondary) !important;
}

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

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

.rounded-custom {
  border-radius: var(--radius-md);
}

.shadow-custom {
  box-shadow: var(--shadow-md);
}

/* ============================================
   HERO SECTION - ORGANIC 2026
   ============================================ */
.hero-organic {
  background: linear-gradient(135deg, #F9F0D4 0%, #E8D5B7 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-organic::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 185, 91, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  padding: var(--spacing-xl) 0;
  min-height: 500px;
}

.min-vh-60 {
  min-height: 60vh;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--text-light);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.hero-text h1 .handwritten {
  display: block;
  font-size: 1.2em;
  margin-top: 0.25em;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-image-organic img {
  border-radius: var(--radius-organic);
  box-shadow: var(--elevation-4);
  animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features-organic {
  background: var(--bg-primary);
}

.rounded-organic {
  border-radius: var(--radius-organic);
}

/* ============================================
   MODERN FOOTER - 2026
   ============================================ */
.footer-modern {
  margin-top: var(--spacing-xl);
}

.footer-main {
  background: var(--gradient-earth);
  color: var(--color-cream);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  position: relative;
}

.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-meadow);
}

.footer-brand h3 {
  color: var(--color-cream);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-honey);
  font-style: italic;
  margin-bottom: var(--spacing-sm);
}

.footer-heading {
  color: var(--color-cream);
  font-family: 'Merriweather', serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

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

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

.footer-links a {
  color: var(--color-cream);
  opacity: 0.85;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(249, 240, 212, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cream);
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--text-light);
  transform: translateY(-4px) rotate(5deg);
  box-shadow: var(--elevation-3);
}

/* Footer Bottom */
.footer-bottom {
  background: var(--color-forest);
  color: var(--color-wheat);
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--color-honey);
  transition: color 0.3s ease;
}

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

.footer-link-accent {
  font-weight: 600;
}

/* ============================================
   PRODUCT VIEW MODES - GRID & LIST
   ============================================ */

/* Grid View (Default) */
#product-list {
  transition: all 0.3s ease;
}

#product-list.grid-view .product-thumb {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elevation-2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#product-list.grid-view .product-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
}

#product-list.grid-view .product-thumb .image {
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
}

#product-list.grid-view .product-thumb .image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#product-list.grid-view .product-thumb:hover .image img {
  transform: scale(1.08);
}

#product-list.grid-view .product-thumb .content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

#product-list.grid-view .product-thumb h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* List View */
#product-list.list-view {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

#product-list.list-view .col {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

#product-list.list-view .product-thumb {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: var(--spacing-lg);
  align-items: center;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-2);
  transition: all 0.3s ease;
}

#product-list.list-view .product-thumb:hover {
  box-shadow: var(--elevation-3);
  background-color: rgba(249, 240, 212, 0.3);
}

#product-list.list-view .product-thumb .image {
  width: 250px;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

#product-list.list-view .product-thumb .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#product-list.list-view .product-thumb .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

#product-list.list-view .product-thumb h4 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

#product-list.list-view .product-thumb .description p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.6;
}

#product-list.list-view .product-thumb .button {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-width: 180px;
}

#product-list.list-view .product-thumb .button button {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
}

/* View Toggle Buttons */
.view-toggle .btn {
  transition: all 0.3s ease;
}

.view-toggle .btn.active {
  background-color: var(--color-primary);
  color: var(--text-light);
  border-color: var(--color-primary);
}

/* ============================================
   LOADING STATES & SKELETONS - 2026
   ============================================ */

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    rgba(249, 240, 212, 0.5) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

.skeleton-product {
  height: 400px;
  margin-bottom: var(--spacing-md);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
}

/* Button Loading State */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ============================================
   MICRO-ANIMATIONS - 2026
   ============================================ */

/* Hover Lift */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
}

/* Stagger Fade In */
.stagger-fade-in > * {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-fade-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade-in > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image Zoom on Hover */
.image-zoom-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   ACCESSIBILITY - WCAG 2.1 AA
   ============================================ */

/* Focus Visible (keyboard navigation) */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: var(--text-light);
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--bg-secondary);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: var(--spacing-lg) auto;
}

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