/* ==========================================================================
   Inflatable Rentals - Main Stylesheet
   jump.undervision.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FF8F66;
  --secondary: #004E98;
  --secondary-dark: #003D7A;
  --secondary-light: #1A6BB5;
  --accent: #FFD166;
  --accent-dark: #F0C040;
  --success: #06D6A0;
  --success-dark: #05B888;
  --danger: #EF476F;
  --danger-dark: #D93A5E;
  --warning: #FFD166;
  --info: #118AB2;
  --dark: #1B2A4A;
  --dark-light: #2D3F63;
  --gray-900: #212529;
  --gray-800: #343A40;
  --gray-700: #495057;
  --gray-600: #6C757D;
  --gray-500: #ADB5BD;
  --gray-400: #CED4DA;
  --gray-300: #DEE2E6;
  --gray-200: #E9ECEF;
  --gray-100: #F8F9FA;
  --light: #F7F9FC;
  --white: #FFFFFF;

  /* Fonts */
  --font-heading: 'Fredoka One', cursive;
  --font-body: 'Nunito', sans-serif;

  /* Border Radius */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-circle: 50%;

  /* Shadows */
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.16);
  --shadow-primary: 0 4px 15px rgba(255, 107, 53, 0.3);
  --shadow-secondary: 0 4px 15px rgba(0, 78, 152, 0.3);

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 3rem;

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;
  --z-toast: 700;
}


/* --------------------------------------------------------------------------
   Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background-color: var(--accent);
  color: var(--dark);
}


/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-sm {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.container-lg {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2rem 0;
}

.section-lg {
  padding: 6rem 0;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   Navigation / Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-sticky);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--secondary);
}

/* Main navigation links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
  background: rgba(255, 107, 53, 0.06);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 60%;
}

.nav-menu a.active {
  color: var(--primary);
}

/* Hide mobile-only auth links on desktop */
.mobile-auth-links {
  display: none;
}

/* Nav actions (auth + cart) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-auth-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark) !important;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-auth-link:hover {
  color: var(--primary) !important;
  background: rgba(255, 107, 53, 0.06);
}

/* Cart icon */
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--dark);
  transition: var(--transition-fast);
}

.nav-cart:hover {
  background: rgba(255, 107, 53, 0.06);
  color: var(--primary);
}

.nav-cart svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-pill);
}

.cart-count:empty {
  display: none;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
  z-index: var(--z-fixed);
  border-radius: var(--radius-sm);
  background: var(--light);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {

  /* ── Top bar: logo + cart + hamburger only ── */
  .nav-wrapper {
    padding: 0.5rem 0;
    overflow: hidden;
  }

  .nav-toggle {
    display: flex;
  }

  /* HIDE all auth links from the top bar completely */
  .nav-auth-link {
    display: none !important;
  }

  /* Logo: shrink text, keep it from overflowing */
  .nav-logo {
    min-width: 0;
    overflow: hidden;
  }

  .nav-logo img {
    height: 44px;
    flex-shrink: 0;
  }

  .nav-logo span {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Cart + hamburger */
  .nav-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .nav-cart {
    width: 46px;
    height: 46px;
  }

  .nav-cart svg {
    width: 26px;
    height: 26px;
  }

  /* ── Slide-out menu ── */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 88vw;
    max-width: 360px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 5rem 0 2rem;
    box-shadow: -4px 0 30px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: var(--z-fixed);
    gap: 0;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  /* Menu links — BIG and easy to tap */
  .nav-menu a {
    width: 100%;
    padding: 1.15rem 1.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(255, 107, 53, 0.08);
    color: var(--primary);
  }

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

  /* Auth links inside slide-out menu */
  .mobile-auth-links {
    display: block !important;
    border-top: 3px solid var(--primary);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .mobile-auth-links a {
    font-size: 1.3rem !important;
    color: var(--secondary) !important;
    font-weight: 700 !important;
  }

  /* Overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: var(--z-sticky);
  }

  .mobile-overlay.open {
    display: block;
  }
}


/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 3rem 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Wave divider at bottom of hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }
}


/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

/* Primary - gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  color: var(--white);
}

/* Secondary */
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  box-shadow: 0 6px 20px rgba(0, 78, 152, 0.4);
  color: var(--white);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline-secondary:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-secondary);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

/* Success */
.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: var(--success-dark);
  box-shadow: 0 6px 20px rgba(6, 214, 160, 0.35);
  color: var(--white);
}

/* Danger */
.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: var(--danger-dark);
  box-shadow: 0 6px 20px rgba(239, 71, 111, 0.35);
  color: var(--white);
}

/* White */
.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

/* Size variants */
.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Icon in button */
.btn svg,
.btn i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Cards (Inventory Items)
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-200);
}

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

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

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  border-radius: var(--radius-pill);
  z-index: 2;
}

.card-badge-success {
  background: var(--success);
}

.card-badge-danger {
  background: var(--danger);
}

.card-badge-accent {
  background: var(--accent);
  color: var(--dark);
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--primary);
}

.card-description {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary);
}

.card-price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-600);
}

/* Featured card variant */
.card-featured {
  border: 3px solid var(--accent);
  position: relative;
}

.card-featured::before {
  content: 'Popular';
  position: absolute;
  top: 1rem;
  right: -2rem;
  padding: 0.25rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  transform: rotate(45deg);
  z-index: 3;
}

/* Horizontal card variant */
.card-horizontal {
  flex-direction: row;
}

.card-horizontal .card-image {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

@media (max-width: 768px) {
  .card-horizontal {
    flex-direction: column;
  }

  .card-horizontal .card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}


/* --------------------------------------------------------------------------
   Inventory Grid + Filters
   -------------------------------------------------------------------------- */
.inventory-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar filters */
.filter-sidebar {
  position: sticky;
  top: 5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.filter-section {
  margin-bottom: 1.5rem;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
}

.filter-group label:hover {
  color: var(--primary);
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Category chips/tabs */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Search bar */
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-bar input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  font-size: 0.95rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-pill);
  background: var(--white);
  transition: var(--transition-fast);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.search-bar svg,
.search-bar i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  pointer-events: none;
}

/* Inventory grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.inventory-count {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.inventory-sort select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

@media (max-width: 1024px) {
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .filter-sidebar {
    position: static;
    display: none;
  }

  .filter-sidebar.open {
    display: block;
  }

  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .filter-toggle-btn {
    display: inline-flex;
  }
}

.filter-toggle-btn {
  display: none;
}


/* --------------------------------------------------------------------------
   Item Detail Page
   -------------------------------------------------------------------------- */
.item-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Image gallery */
.item-gallery {
  position: sticky;
  top: 5rem;
}

.item-gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-200);
  margin-bottom: 0.75rem;
}

.item-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.item-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.item-gallery-thumb:hover,
.item-gallery-thumb.active {
  border-color: var(--primary);
}

.item-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info panel */
.item-info {
  padding: 0.5rem 0;
}

.item-info .card-category {
  margin-bottom: 0.5rem;
}

.item-info-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.item-info-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.item-info-price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-600);
}

.item-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.item-spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  background: var(--light);
  border-radius: var(--radius-sm);
}

.item-spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
}

.item-spec-value {
  font-weight: 700;
  color: var(--dark);
}

.item-description {
  margin-bottom: 2rem;
  line-height: 1.8;
  color: var(--gray-700);
}

/* Add to cart form */
.item-cart-form {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
}

.item-cart-form .form-group {
  margin-bottom: 1rem;
}

.item-cart-form .btn {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .item-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .item-gallery {
    position: static;
  }

  .item-info-title {
    font-size: 1.5rem;
  }

  .item-specs {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   Specials / Deals Section
   -------------------------------------------------------------------------- */
.specials-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.specials-section .section-title {
  color: var(--white);
}

.special-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.special-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Diagonal ribbon */
.special-ribbon {
  position: absolute;
  top: 1.25rem;
  right: -2.5rem;
  padding: 0.3rem 3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--danger);
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.special-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.special-card-description {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.special-card-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.special-card-original-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  opacity: 0.6;
  margin-bottom: 1rem;
}

/* Countdown timer */
.countdown {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.countdown-block {
  text-align: center;
  min-width: 55px;
}

.countdown-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
}


/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works {
  text-align: center;
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-primary);
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-secondary);
}

.step-icon svg {
  width: 32px;
  height: 32px;
}

.step-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Connecting line between steps */
.steps-container::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--gray-300);
  z-index: 0;
}

/* Dotted version */
.steps-dotted::before {
  border-top: 3px dashed var(--gray-400);
  background: none;
  height: 0;
}

@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .steps-container::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 3px;
    height: 100%;
    transform: translateX(-50%);
  }

  .step {
    max-width: 320px;
  }
}


/* --------------------------------------------------------------------------
   Cart Page
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.cart-items {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-header {
  display: grid;
  grid-template-columns: 80px 1fr 140px 100px 100px 40px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr 140px 100px 100px 40px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-fast);
}

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

.cart-item:hover {
  background: var(--light);
}

.cart-item-image {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-200);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-name {
  font-weight: 700;
  color: var(--dark);
}

.cart-item-dates {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.cart-item-price {
  font-weight: 700;
  color: var(--dark);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-item-qty input {
  width: 48px;
  padding: 0.35rem 0.5rem;
  text-align: center;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  background: rgba(239, 71, 111, 0.1);
  color: var(--danger);
}

/* Order summary sidebar */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}

.cart-summary-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gray-200);
  color: var(--primary);
}

.cart-summary .btn {
  margin-top: 1.25rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty svg {
  width: 80px;
  height: 80px;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.cart-empty h3 {
  margin-bottom: 0.5rem;
}

.cart-empty p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
  }

  .cart-summary {
    position: static;
  }
}


/* --------------------------------------------------------------------------
   Checkout Page
   -------------------------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.checkout-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-section-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
}

/* Stripe card element container */
.stripe-element {
  padding: 0.7rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  transition: var(--transition-fast);
}

.stripe-element:focus-within,
.stripe-element.StripeElement--focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.stripe-element.StripeElement--invalid {
  border-color: var(--danger);
}

@media (max-width: 1024px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   Account / Auth Pages
   -------------------------------------------------------------------------- */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.auth-card-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.auth-card-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.auth-footer a {
  font-weight: 700;
}

/* Account dashboard */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.account-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: var(--transition-fast);
}

.account-sidebar-menu a:hover {
  background: var(--light);
  color: var(--primary);
}

.account-sidebar-menu a.active {
  background: rgba(255, 107, 53, 0.06);
  color: var(--primary);
  border-left-color: var(--primary);
}

.account-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

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

  .account-sidebar-menu {
    display: flex;
    overflow-x: auto;
  }

  .account-sidebar-menu a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .account-sidebar-menu a.active {
    border-left: none;
    border-bottom-color: var(--primary);
  }
}


/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: var(--transition-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.form-control::placeholder {
  color: var(--gray-500);
}

.form-control:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Error state */
.form-control.is-invalid {
  border-color: var(--danger);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 71, 111, 0.15);
}

.invalid-feedback {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--danger);
}

/* Success state */
.form-control.is-valid {
  border-color: var(--success);
}

/* Textarea */
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Select */
select.form-control {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

/* Helper text */
.form-text {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Checkbox and radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-check input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-check label {
  font-size: 0.9rem;
  cursor: pointer;
}

/* Inline form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0 2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: var(--white);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* Copyright */
.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  opacity: 0.7;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}


/* --------------------------------------------------------------------------
   Section Dividers (Wave / Cloud)
   -------------------------------------------------------------------------- */
.section-wave-top,
.section-wave-bottom {
  position: relative;
}

.section-wave-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--light);
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

.section-wave-bottom::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--light);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 1;
}

.wave-divider {
  position: relative;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.cloud-divider {
  position: relative;
}

.cloud-divider::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -5%;
  right: -5%;
  height: 60px;
  background: var(--light);
  border-radius: 50% 50% 0 0;
  z-index: 1;
}


/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text colors */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-dark { color: var(--dark); }
.text-muted { color: var(--gray-600); }
.text-white { color: var(--white); }

/* Font weight */
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* Font size */
.fs-sm { font-size: 0.85rem; }
.fs-base { font-size: 1rem; }
.fs-lg { font-size: 1.25rem; }
.fs-xl { font-size: 1.5rem; }

/* Background colors */
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-success { background-color: var(--success); }
.bg-danger { background-color: var(--danger); }
.bg-dark { background-color: var(--dark); }
.bg-light { background-color: var(--light); }
.bg-white { background-color: var(--white); }

/* Display */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none; }

/* Flexbox */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* Margins */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-auto { margin: auto; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-auto { margin-right: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: var(--space-1); margin-right: var(--space-1); }
.mx-2 { margin-left: var(--space-2); margin-right: var(--space-2); }
.mx-3 { margin-left: var(--space-3); margin-right: var(--space-3); }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: var(--space-1); margin-bottom: var(--space-1); }
.my-2 { margin-top: var(--space-2); margin-bottom: var(--space-2); }
.my-3 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-5 { margin-top: var(--space-5); margin-bottom: var(--space-5); }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-5 { padding-top: var(--space-5); padding-bottom: var(--space-5); }

/* Width / Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Position */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-sticky { position: sticky; }

/* Border radius */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-pill { border-radius: var(--radius-pill); }
.rounded-circle { border-radius: var(--radius-circle); }

/* Shadow */
.shadow { box-shadow: var(--shadow); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Text utilities */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }
.text-nowrap { white-space: nowrap; }


/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-primary {
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary);
}

.badge-secondary {
  background: rgba(0, 78, 152, 0.12);
  color: var(--secondary);
}

.badge-accent {
  background: rgba(255, 209, 102, 0.25);
  color: #B8860B;
}

.badge-success {
  background: rgba(6, 214, 160, 0.12);
  color: var(--success-dark);
}

.badge-danger {
  background: rgba(239, 71, 111, 0.12);
  color: var(--danger);
}

.badge-warning {
  background: rgba(255, 209, 102, 0.25);
  color: #B8860B;
}

.badge-info {
  background: rgba(17, 138, 178, 0.12);
  color: var(--info);
}

.badge-dark {
  background: var(--dark);
  color: var(--white);
}


/* --------------------------------------------------------------------------
   Alerts / Flash Messages
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-success {
  background: rgba(6, 214, 160, 0.1);
  border-color: rgba(6, 214, 160, 0.25);
  color: #047857;
}

.alert-danger {
  background: rgba(239, 71, 111, 0.1);
  border-color: rgba(239, 71, 111, 0.25);
  color: #B91C3A;
}

.alert-warning {
  background: rgba(255, 209, 102, 0.15);
  border-color: rgba(255, 209, 102, 0.35);
  color: #92400E;
}

.alert-info {
  background: rgba(17, 138, 178, 0.1);
  border-color: rgba(17, 138, 178, 0.25);
  color: #0C5C75;
}

.alert-dismissible {
  padding-right: 3rem;
  position: relative;
}

.alert-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: inherit;
  opacity: 0.5;
  transition: var(--transition-fast);
}

.alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.05);
}

/* Flash messages at top of page content */
.flash-container {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
  width: 100%;
}

.flash-container .alert {
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.35s ease-out;
}

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


/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 107, 53, 0.06);
}

.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.pagination .dots {
  border: none;
  background: none;
  min-width: auto;
  color: var(--gray-500);
}


/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  text-align: center;
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9rem;
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--gray-600);
}


/* --------------------------------------------------------------------------
   CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.08);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.06);
}

.cta-banner-title {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-banner-text {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}


/* --------------------------------------------------------------------------
   Loading / Skeleton
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.skeleton-text:last-child {
  width: 70%;
}

.skeleton-title {
  height: 1.5rem;
  margin-bottom: 0.75rem;
  width: 60%;
}

.skeleton-image {
  aspect-ratio: 4 / 3;
  width: 100%;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-300);
  border-top-color: var(--primary);
  border-radius: var(--radius-circle);
  animation: spin 0.6s linear infinite;
}

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

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}


/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--gray-600);
}

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

.breadcrumb-separator {
  color: var(--gray-400);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--dark);
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   Modal / Popup
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: var(--z-modal);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  overflow-y: auto;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-title {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}


/* --------------------------------------------------------------------------
   Tooltip
   -------------------------------------------------------------------------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--white);
  background: var(--dark);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-fast);
  z-index: var(--z-tooltip);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}


/* --------------------------------------------------------------------------
   Responsive Visibility
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .d-none-mobile { display: none !important; }
  .d-block-mobile { display: block !important; }
  .d-flex-mobile { display: flex !important; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .section { padding: 2.5rem 0; }
  .section-lg { padding: 3.5rem 0; }
  .section-title { font-size: 1.5rem; }
}

@media (min-width: 769px) {
  .d-none-desktop { display: none !important; }
  .d-block-desktop { display: block !important; }
  .d-flex-desktop { display: flex !important; }
}

@media (max-width: 480px) {
  .container,
  .container-sm,
  .container-lg {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}


/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .flash-container,
  .btn,
  .filter-sidebar {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* ==========================================================================
   Admin Inline Edit Links (only visible to admins on frontend)
   ========================================================================== */

.admin-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  background: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: relative;
  z-index: 5;
}

.admin-edit-link:hover {
  opacity: 1;
  color: var(--white);
}

.admin-edit-link i {
  font-size: 0.6rem;
}

.card .admin-edit-link {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.card {
  position: relative;
}
