/* mobile-app-layout.css */
/* Modern app-like layout for products page */

:root {
  --app-bg: #f4f6f9;
  --app-card: #ffffff;
  --app-text: #0b1f38;
  --app-text-muted: #64748b;
  --app-accent: #c58b41;
  --app-accent-rgb: 197, 139, 65;
  --app-navy: #0b1f38;
  --app-border: #e2e8f0;
}

html[data-theme="dark"],
body.is-dark {
  --app-bg: #0b1f38;
  --app-card: #142a45;
  --app-text: #ffffff;
  --app-text-muted: #94a3b8;
  --app-border: #1e3a5f;
  --app-accent: #c58b41;
}

.mobile-app-layout {
  background-color: var(--app-bg);
  min-height: 100vh;
  padding-bottom: 80px; /* Space for bottom nav */
  font-family: inherit;
}

/* Layout Toggles */
@media (min-width: 769px) {
  .mobile-app-layout,
  .app-modal-overlay:not(.active) {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-app-layout {
    display: none !important;
  }
}

/* App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: var(--app-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header-left, .app-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon-btn {
  background: none;
  border: none;
  color: var(--app-text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  position: relative;
}

.app-badge {
  position: absolute;
  top: 0;
  right: -4px;
  background-color: var(--app-accent);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--app-bg);
}

.app-logo {
  height: 32px;
  object-fit: contain;
}

/* Search Bar */
.app-search-container {
  padding: 0 20px 16px;
  background-color: var(--app-bg);
  position: sticky;
  top: 64px;
  z-index: 99;
}

.app-search-box {
  display: flex;
  align-items: center;
  background-color: var(--app-card);
  border-radius: 24px;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--app-border);
}

.app-search-box input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  color: var(--app-text);
  font-size: 15px;
  padding: 0 10px;
}

.app-search-box .search-icon {
  color: var(--app-text-muted);
  font-size: 18px;
}

.app-search-box .filter-icon {
  color: var(--app-text);
  font-size: 18px;
  background: none;
  border: none;
  border-left: 1px solid var(--app-border);
  padding-left: 12px;
  margin-left: 4px;
  cursor: pointer;
}
html[dir="rtl"] .app-search-box .filter-icon {
  border-left: none;
  border-right: 1px solid var(--app-border);
  padding-left: 0;
  padding-right: 12px;
  margin-left: 0;
  margin-right: 4px;
}

/* Hero Banner */
.app-hero-banner {
  margin: 0 20px 24px;
  background: linear-gradient(135deg, var(--app-navy) 0%, #1a365d 100%);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(11, 31, 56, 0.15);
}

.app-hero-banner::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,139,65,0.4) 0%, rgba(197,139,65,0) 70%);
}
html[dir="rtl"] .app-hero-banner::after {
  right: auto;
  left: -20px;
}

.app-hero-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--app-accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.app-hero-title {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
  max-width: 70%;
}

.app-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--app-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Horizontal Categories */
.app-categories-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 0 20px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.app-categories-scroll::-webkit-scrollbar {
  display: none;
}

.app-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  scroll-snap-align: start;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.app-category-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background-color: var(--app-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 32px;
  color: var(--app-accent);
  border: 1px solid var(--app-border);
  transition: all 0.2s ease;
}

html[data-theme="dark"] .app-category-icon {
  background-color: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.app-category-item.active .app-category-icon {
  background-color: var(--app-navy);
  color: var(--app-accent);
  border-color: var(--app-navy);
}

.app-category-name {
  font-size: 12px;
  color: var(--app-text);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* Section Header */
.app-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 16px;
}

.app-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--app-text);
  margin: 0;
}

.app-section-link {
  font-size: 14px;
  color: var(--app-accent);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Products Horizontal Scroll */
.app-products-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 0 20px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.app-products-scroll::-webkit-scrollbar {
  display: none;
}

.app-product-card {
  min-width: 160px;
  max-width: 160px;
  background-color: var(--app-card);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--app-border);
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--app-navy);
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: bold;
  z-index: 2;
}
html[dir="rtl"] .app-product-badge {
  left: auto;
  right: 12px;
}
.app-product-badge.popular {
  background-color: var(--app-accent);
  color: var(--app-navy);
}

.app-product-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
  background: var(--app-bg);
  border-radius: 12px;
  padding: 8px;
}

.app-product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.app-product-meta {
  font-size: 11px;
  color: var(--app-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-product-meta svg {
  color: var(--app-accent);
  width: 12px;
  height: 12px;
}

.app-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.app-product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--app-text);
  direction: ltr; /* keep prices readable */
}

/* Full width add to cart button */
.app-product-action-text-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--app-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 10;
  transition: all 0.2s ease;
}
.app-product-action-text-btn:active {
  transform: scale(0.96);
  background-color: var(--app-accent);
}
.app-product-action-text-btn svg {
  fill: currentColor;
}

/* Promo Banner Secondary */
.app-promo-banner {
  margin: 0 20px 24px;
  background: linear-gradient(to right, #111, var(--app-navy));
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-promo-banner-content {
  max-width: 60%;
}
.app-promo-title {
  font-size: 14px;
  color: var(--app-accent);
  font-weight: 700;
  margin-bottom: 4px;
}
.app-promo-headline {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.app-promo-copy {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 12px;
}
.app-promo-btn {
  background: transparent;
  border: 1px solid var(--app-accent);
  color: var(--app-accent);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
}
.app-promo-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Bottom Navigation (Modern Glassmorphism Dock) */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(20, 42, 69, 0.85); /* var(--app-card) with transparency */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  z-index: 999;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}
html[data-theme="light"] .app-bottom-nav {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.05);
}

.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--app-text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  flex: 1;
  transition: color 0.2s ease;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none;
  border: none !important;
}
.app-nav-item:focus,
.app-nav-item:active,
.app-nav-item:focus-visible,
.app-nav-item:visited {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}
.app-nav-item,
.app-nav-item * {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.app-nav-item.active {
  color: var(--app-accent);
}

.app-nav-icon {
  font-size: 24px;
  line-height: 1;
}
.app-nav-item.active .app-nav-icon {
  color: var(--app-accent);
}

.app-nav-item-icon-wrapper {
  position: relative;
  display: inline-flex;
}
.app-bottom-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 2px 5px rgba(255, 59, 48, 0.4);
  line-height: 1;
  pointer-events: none;
}

/* Special Center Action Button (Search / Browse) */
.app-nav-item.center-action {
  position: relative;
  top: -14px;
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  gap: 2px !important;
}

.app-nav-item.center-action .app-nav-icon {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  background: #c58b41 !important;
  background: linear-gradient(135deg, #f5bc44 0%, #c58b41 50%, #9e6922 100%) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(197, 139, 65, 0.65), 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  border: 4px solid #142a45 !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
  margin-bottom: 2px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html[data-theme="light"] .app-nav-item.center-action .app-nav-icon {
  border-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(197, 139, 65, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.app-nav-item.center-action:active .app-nav-icon {
  transform: scale(0.92) !important;
  box-shadow: 0 2px 8px rgba(197, 139, 65, 0.45) !important;
}

.app-nav-item.center-action .app-nav-icon svg {
  width: 24px !important;
  height: 24px !important;
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
  stroke-width: 0.6px !important;
  display: block !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.app-nav-item.center-action span,
.app-nav-item.center-action {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #d4a755 !important;
  line-height: 1.2 !important;
}

.app-nav-item.center-action.active span {
  color: #f5bc44 !important;
}

/* Fix WhatsApp button overlapping */
body.has-app-layout .floating-whatsapp {
  bottom: 100px !important; /* Above the dock */
}

/* Desktop Overrides for Modern Floating Dock and Stability */
@media (min-width: 769px) {
  /* Ultra-Stable, Fixed Luxury Glassmorphic Navigation Dock for Desktop & Laptop */
  .app-bottom-nav {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(580px, calc(100vw - 48px)) !important;
    max-width: 580px !important;
    height: 66px !important;
    border-radius: 36px !important;
    border: 1px solid rgba(212, 160, 86, 0.4) !important;
    background: rgba(11, 31, 56, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(212, 160, 86, 0.15) !important;
    padding: 0 24px !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    justify-content: space-around !important;
    align-items: center !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
  }

  html[data-theme="light"] .app-bottom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(212, 160, 86, 0.45) !important;
    box-shadow: 0 16px 40px rgba(11, 31, 56, 0.14), 0 0 20px rgba(212, 160, 86, 0.12) !important;
  }

  .app-bottom-nav:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 25px rgba(212, 160, 86, 0.25) !important;
  }

  .app-bottom-nav .app-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    border-radius: 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    gap: 3px !important;
    flex: 1 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .app-bottom-nav .app-nav-item:hover {
    color: #f5bc44 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px) !important;
  }

  html[data-theme="light"] .app-bottom-nav .app-nav-item:hover {
    background: rgba(11, 31, 56, 0.06) !important;
    color: #c58b41 !important;
  }

  .app-bottom-nav .app-nav-item.active {
    color: #f5bc44 !important;
    font-weight: 700 !important;
  }

  .app-bottom-nav .app-nav-item.center-action {
    position: relative !important;
    top: -12px !important;
  }

  .app-bottom-nav .app-nav-item.center-action .app-nav-icon {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, #f5bc44 0%, #c58b41 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0b1f38 !important;
    box-shadow: 0 6px 20px rgba(212, 160, 86, 0.45) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  .app-bottom-nav .app-nav-item.center-action:hover .app-nav-icon {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 24px rgba(212, 160, 86, 0.65) !important;
  }

  /* Safe bottom space for desktop content so dock never covers buttons or footers */
  body,
  .desktop-app-layout,
  main {
    padding-bottom: 95px !important;
  }

  /* Position floating WhatsApp button safely in bottom corner on desktop */
  .floating-whatsapp {
    bottom: 28px !important;
    right: 28px !important;
    left: auto !important;
    z-index: 998 !important;
  }
}

/* Better mobile footer for app layout */
body.has-app-layout .site-footer {
  padding: 40px 20px 100px !important;
}
body.has-app-layout .site-footer .footer-title {
  display: none !important;
}
body.has-app-layout .site-footer .footer-links {
  margin: 0 !important;
}
body.has-app-layout .site-footer .footer-links > div {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
}
body.has-app-layout .site-footer a {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  display: inline-block;
  transition: all 0.3s ease;
}
body.has-app-layout .site-footer a:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
}
body.has-app-layout .site-footer > div > div:nth-child(2) {
  flex-direction: column !important;
  gap: 16px !important;
}

/* Utility to hide desktop header/footer when app layout is active */
.app-hidden {
  display: none !important;
}

/* Products Grid view when searching/filtering */
.app-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 20px 24px;
}
.app-products-grid .app-product-card {
  min-width: 0;
  max-width: 100%;
}

/* Modals and Bottom Sheets */
.app-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(11, 31, 56, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.app-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.app-bottom-sheet {
  background-color: var(--app-bg);
  width: 100%;
  max-width: 480px;
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}
.app-modal-overlay.active .app-bottom-sheet {
  transform: translateY(0);
}

.app-sheet-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--app-border);
}
.app-sheet-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--app-navy);
}
.app-close-modal {
  background: var(--app-border);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--app-text);
  cursor: pointer;
}

.app-sheet-body {
  padding: 20px;
  overflow-y: auto;
}

/* Specific Vet Health Sheet styles */
.sheet-item {
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  padding: 12px;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  margin-bottom: 12px;
}
.sheet-item .app-category-icon {
  width: 40px;
  height: 40px;
}
.sheet-item .app-category-name {
  font-size: 16px;
}

/* Image Fixes */
.app-product-image {
  width: 100%;
  height: 140px !important; /* Slightly taller to accommodate full images */
  object-fit: contain !important; /* Prevents cropping */
  margin-bottom: 12px;
  background: transparent !important;
  border-radius: 12px;
  padding: 0 !important; /* Remove padding to maximize image space */
}

/* Cart Specific Styles */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--app-card);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--app-border);
}
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--app-bg);
}
.cart-item-info {
  flex: 1;
}
.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 12px;
  color: var(--app-text-muted);
}
.cart-item-remove {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-checkout-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-checkout-form h4 {
  margin: 0 0 8px 0;
  color: var(--app-navy);
}
.app-checkout-form input,
.app-checkout-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-card);
  color: var(--app-text);
  font-family: inherit;
}
.app-checkout-form textarea {
  min-height: 80px;
  resize: vertical;
}
.app-btn-primary {
  background: #25D366; /* WhatsApp Green */
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
}
.app-btn-primary:hover {
  background: #1da851;
}

/* Enhancing Mobile Footer */
body.has-app-layout .site-footer {
  margin-bottom: 70px; /* Leave space for bottom nav */
  background: transparent;
  padding: 32px 20px;
  border-top: none;
  text-align: center;
}
body.has-app-layout .site-footer .footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
body.has-app-layout .site-footer .footer-brand {
  margin: 0 auto 16px;
  text-align: center;
}
body.has-app-layout .site-footer .footer-brand img {
  height: 60px;
  margin-bottom: 12px;
  opacity: 0.9;
}
body.has-app-layout .site-footer .footer-brand p {
  color: var(--app-text-muted);
  font-size: 13px;
  max-width: 280px;
  margin: 0 auto;
}
body.has-app-layout .site-footer .footer-title {
  color: var(--app-accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 700;
}
body.has-app-layout .site-footer .footer-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
body.has-app-layout .site-footer .footer-links a {
  color: var(--app-text);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  background: var(--app-card);
  border-radius: 8px;
  border: 1px solid var(--app-border);
  text-decoration: none;
}
body.has-app-layout .site-footer .footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--app-border);
  color: var(--app-text-muted);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Responsive View Modes for products.html and hybrid pages */
@media (min-width: 769px) {
  .mobile-only-view {
    display: none !important;
  }
  .desktop-only-view {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .desktop-only-view {
    display: none !important;
  }
  .mobile-only-view {
    display: block !important;
  }
  .app-bottom-nav {
    display: flex !important;
  }
}

/* Responsive Table Card Styles for Small Screens */
@media (max-width: 768px) {
  .table-card {
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .products-data-table thead {
    display: none;
  }
  .products-data-table, 
  .products-data-table tbody, 
  .products-data-table tr, 
  .products-data-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .products-data-table tr {
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(11, 31, 56, 0.04);
  }
  .products-data-table td {
    padding: 6px 0;
    border: none;
  }
  .products-data-table .col-num {
    display: none;
  }
  .products-data-table .cell-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
  }
}
