/**
 * Reusable Components
 * Switch & Save EPOS Theme
 */

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  line-height: 1.5;
  min-height: 44px; /* Touch-friendly */
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-purple) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-accent-dark) 0%, #6D28D9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--brand-cyan);
  color: var(--brand-primary);
}

.btn-secondary:hover {
  background: var(--brand-cyan-light);
  transform: translateY(-2px);
  color: var(--brand-primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
}

.btn-outline:hover {
  background: var(--brand-accent);
  color: white;
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

.btn-small {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-sm);
}

/* Mobile button adjustments */
@media (max-width: 768px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--text-sm);
    width: 100%; /* Full width on mobile for better UX */
    min-height: 48px; /* Larger touch target */
  }
  
  .btn-large {
    padding: 1rem 2rem;
    font-size: var(--text-base);
  }
  
  .btn-small {
    padding: 0.625rem 1.25rem;
    min-height: 44px;
  }
}

/* ========================================
   CARDS
======================================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: var(--text-base);
  color: var(--brand-text-secondary);
  line-height: 1.6;
}

/* Category Cards */
.category-card {
  background: linear-gradient(135deg, var(--card-color-start) 0%, var(--card-color-end) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  color: white;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.category-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.category-card-description {
  font-size: var(--text-sm);
  opacity: 0.95;
  color: white;
}

/* ========================================
   BADGES
======================================== */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.5rem;
  letter-spacing: 0.5px;
}

.badge-popular {
  background: var(--brand-purple);
  color: white;
}

.badge-sale {
  background: var(--brand-orange);
  color: white;
}

.badge-hot {
  background: var(--brand-pink);
  color: white;
}

.badge-new {
  background: var(--brand-green);
  color: white;
}

/* ========================================
   STAR RATING
======================================== */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-sm);
  color: var(--brand-yellow);
}

.star-rating .star {
  width: 16px;
  height: 16px;
}

.star-rating .star.filled {
  color: var(--brand-yellow);
}

.star-rating .star.empty {
  color: var(--border);
}

.star-rating-count {
  margin-left: 0.5rem;
  color: var(--brand-text-light);
  font-size: var(--text-xs);
}

/* ========================================
   SECTION HEADERS
======================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--brand-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Mobile section header adjustments */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: var(--text-2xl);
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    font-size: var(--text-base);
  }
}

/* ========================================
   GRID LAYOUTS
======================================== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FORMS
======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--text-base);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--input-background);
  color: var(--foreground);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Mobile form adjustments */
@media (max-width: 768px) {
  .form-input,
  .form-textarea,
  .form-select {
    padding: 1rem;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 48px;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
}

/* ========================================
   GRADIENT BACKGROUNDS
======================================== */
.gradient-blue-purple {
  background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-purple) 100%);
}

.gradient-purple-pink {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-pink) 100%);
}

.gradient-cyan-blue {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-accent) 100%);
}

.gradient-green-cyan {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-cyan) 100%);
}

.gradient-yellow-orange {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-orange) 100%);
}

.gradient-pink-orange {
  background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-orange) 100%);
}

/* ========================================
   LOADING SPINNER
======================================== */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   PRICE DISPLAY
======================================== */
.price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--brand-accent);
}

.price-small {
  font-size: var(--text-xl);
}

.price-large {
  font-size: var(--text-4xl);
}

.price-currency {
  font-size: 0.7em;
  font-weight: 600;
  opacity: 0.8;
}

.price-old {
  font-size: var(--text-lg);
  color: var(--brand-text-light);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

/* ========================================
   CHECKMARKS / FEATURES LIST
======================================== */
.features-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: var(--text-sm);
  color: var(--brand-text-secondary);
}

.features-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--brand-green);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ========================================
   RESPONSIVE IMAGES
======================================== */
.img-responsive {
  width: 100%;
  height: auto;
  display: block;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========================================
   HEADER & CART ICON
======================================== */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(24, 119, 242, 0.1);
  color: var(--brand-accent);
  transition: all 0.3s ease;
  text-decoration: none;
}

.header-cart-icon:hover {
  background: var(--brand-accent);
  color: white;
  transform: scale(1.05);
}

.header-cart-icon .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-error);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   HEADER
======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Header Account Link */
.header-account-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--brand-primary);
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.header-account-link:hover {
  background: #F3F4F6;
  color: var(--brand-accent);
}

.header-account-link svg {
  flex-shrink: 0;
}

.header-main {
  padding: 1.25rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.header-main-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.header-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--brand-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.header-cart-link:hover {
  background: #F3F4F6;
  color: var(--brand-accent);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  line-height: 1;
}

.site-branding h1 {
  font-size: var(--text-2xl);
  margin: 0;
  color: var(--brand-accent);
}

.site-logo-text {
  text-decoration: none;
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  display: inline-block;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--brand-accent);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
  width: 100%;
}


/* Submenu/Dropdown Styles for Desktop */
.nav-menu .sub-menu,
.nav-menu .children {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0.5rem;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:hover > .children,
.nav-menu li.menu-item-has-children:hover > .sub-menu,
.nav-menu li.menu-item-has-children:hover > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li,
.nav-menu .children li {
  position: relative;
  margin: 0;
  border-bottom: 1px solid #F3F4F6;
}

.nav-menu .sub-menu li:last-child,
.nav-menu .children li:last-child {
  border-bottom: none;
}

.nav-menu .sub-menu li a,
.nav-menu .children li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--brand-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.nav-menu .sub-menu li a::after,
.nav-menu .children li a::after {
  display: none;
}

.nav-menu .sub-menu li a:hover,
.nav-menu .children li a:hover {
  background: #EFF6FF;
  color: var(--brand-accent);
  padding-left: 1.75rem;
}


.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10000;
  position: relative;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--brand-primary);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--brand-primary);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Hamburger animation when active */
.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-navigation {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 4rem 0 1rem;
}

.mobile-navigation.active {
  left: 0;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid #F3F4F6;
}

.mobile-nav-menu li a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li.current-menu-item a {
  background: #EFF6FF;
  color: var(--brand-accent);
  border-left: 3px solid var(--brand-accent);
}

/* Mobile Submenu Styles */
.mobile-nav-menu .sub-menu,
.mobile-nav-menu .children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #F9FAFB;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu .sub-menu.active,
.mobile-nav-menu .children.active,
.mobile-nav-menu li.menu-item-has-children.active > .sub-menu,
.mobile-nav-menu li.menu-item-has-children.active > .children {
  max-height: 1000px;
}

.mobile-nav-menu .sub-menu li,
.mobile-nav-menu .children li {
  border-bottom: 1px solid #E5E7EB;
}

.mobile-nav-menu .sub-menu li a,
.mobile-nav-menu .children li a {
  padding-left: 2.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.mobile-nav-menu .sub-menu li a:hover,
.mobile-nav-menu .children li a:hover {
  background: #EFF6FF;
  border-left: 3px solid var(--brand-accent);
}

/* Mobile submenu toggle button */
.mobile-nav-menu .menu-item-has-children > a {
  position: relative;
  padding-right: 3rem;
}

.mobile-nav-menu .menu-item-has-children > a::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--brand-primary);
  transition: transform 0.3s ease;
}

.mobile-nav-menu .menu-item-has-children.active > a::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-main-content {
    gap: 1rem;
  }
  
  .header-right-actions {
    gap: 0.75rem;
  }
  
  .site-branding {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .header-main {
    padding: 1rem 0;
  }
  
  .site-branding h1 {
    font-size: 1.5rem;
  }
  
  .header-account-link span {
    display: none;
  }
  
  .header-cart-link {
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--brand-primary-dark);
  color: white;
  margin-top: 0;
}

.footer-main {
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-column h3,
.footer-column h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-branding p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--brand-accent);
  transform: translateY(-3px);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-payment-methods {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-payment-methods span {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  color: white;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  color: white;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: white;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.9);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product-image {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ========================================
   CATEGORY SECTION
======================================== */
.category-section {
  background: white;
}

.category-grid {
  margin-top: 2rem;
}

/* ========================================
   FEATURES SECTION
======================================== */
.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--brand-text-secondary);
  line-height: 1.6;
}

/* ========================================
   PRICING SECTION
======================================== */
.pricing-card {
  position: relative;
  text-align: center;
  padding: 2.5rem 2rem;
}

.pricing-card.popular {
  border: 2px solid var(--brand-accent);
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(24, 119, 242, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.pricing-description {
  color: var(--brand-text-secondary);
  margin-bottom: 2rem;
}

.pricing-price {
  margin-bottom: 2rem;
}

.price-currency {
  font-size: var(--text-xl);
  vertical-align: super;
}

.price-amount {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--brand-accent);
}

.price-period {
  font-size: var(--text-base);
  color: var(--brand-text-secondary);
}

.pricing-features {
  margin-bottom: 2rem;
  text-align: left;
}

/* ========================================
   CONTENT + IMAGE SECTION
======================================== */
.content-image-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-image-text h2 {
  margin-bottom: 1.5rem;
}

.content-image-text p {
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .content-image-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   GALLERY SECTION
======================================== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.gallery-title {
  font-size: var(--text-lg);
  color: white;
  margin-top: 0.5rem;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
  color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.contact-icon {
  font-size: 2rem;
}

.contact-info-item h4 {
  margin-bottom: 0.25rem;
}

.contact-form-wrapper {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-form .form-label {
  color: var(--brand-primary);
}

@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--brand-accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--brand-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

/* ========================================
   UTILITY CLASSES
======================================== */
.btn-success {
  background: var(--brand-success) !important;
  border-color: var(--brand-success) !important;
}

.text-success {
  color: var(--brand-success);
}

.text-error {
  color: var(--brand-error);
}

.text-warning {
  color: var(--brand-warning);
}
