/* Mobile Optimized Styles for Kakoara */

/* Enhanced Mobile Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0,0,0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
  /* Larger touch targets */
  .bag-link {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
  
  .site-nav__link {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .product-card__button {
    padding: 16px;
    font-size: 16px;
    min-height: 48px;
  }
  
  /* Mobile header adjustments */
  .site-header__logo {
    font-size: 1.25rem;
  }
  
  .site-header__logo img {
    width: 32px;
    height: 32px;
  }
  
  /* Mobile navigation */
  .site-nav {
    gap: 12px;
  }
  
  /* Mobile product grid */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  
  .product-card {
    border-radius: 12px;
  }
  
  .product-card__image {
    height: 240px;
  }
  
  .product-card__content {
    padding: 16px;
  }
  
  /* Mobile animations */
  .product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .product-card:active {
    transform: scale(0.98);
  }
  
  /* Mobile cart drawer */
  .cart-drawer {
    width: 100%;
  }
  
  .cart-drawer__content {
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  /* Ultra mobile optimizations */
  .site-header {
    padding: 12px 16px;
  }
  
  .site-header__logo span {
    display: none;
  }
  
  .site-nav {
    gap: 8px;
  }
  
  .site-nav__link {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .products-grid {
    padding: 12px;
  }
  
  .product-card__image {
    height: 200px;
  }
  
  .product-card__title {
    font-size: 1.125rem;
  }
  
  .product-card__price {
    font-size: 1rem;
  }
}

/* Enhanced Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 {
  transition-delay: 0.1s;
}

.animate-delay-2 {
  transition-delay: 0.2s;
}

.animate-delay-3 {
  transition-delay: 0.3s;
}

.animate-delay-4 {
  transition-delay: 0.4s;
}

/* Mobile Swipe Gestures */
.swipe-container {
  touch-action: pan-y;
  user-select: none;
}

.swipe-container.dragging {
  cursor: grabbing;
}

/* Mobile Loading States */
.mobile-loading {
  position: relative;
  overflow: hidden;
}

.mobile-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: mobileLoading 1.5s infinite;
}

@keyframes mobileLoading {
  to { left: 100%; }
}

/* Mobile Form Enhancements */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 16px;
    border-radius: 8px;
  }
  
  .checkout-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .payment-methods {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .payment-method {
    padding: 16px;
  }
  
  .checkout-button {
    padding: 16px;
    font-size: 16px;
    min-height: 48px;
  }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
  /* Reduce motion for better performance */
  .product-card:hover {
    transform: none;
  }
  
  .product-card:active {
    transform: scale(0.98);
  }
  
  /* Simplified animations */
  .bag-link:hover {
    transform: none;
  }
  
  .bag-link:active {
    transform: scale(1.1);
  }
}

/* Mobile Accessibility */
@media (max-width: 768px) {
  /* Better focus states */
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--color-carmin);
    outline-offset: 2px;
  }
  
  /* High contrast mode */
  @media (prefers-contrast: high) {
    .glass-card {
      border: 2px solid var(--color-primary);
    }
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-card__image {
    height: 160px;
  }
}

/* Mobile Dark Mode Support */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
  :root {
    --color-bg: #0F172A;
    --color-surface: #1E293B;
    --color-border: #334155;
  }
  
  body {
    background: linear-gradient(135deg, #090b10 0%, #1a1d23 50%, #0f1114 100%);
  }
}

/* ═══════════════════════════════════════════
   CART IMAGE FALLBACKS — Graceful degradation
   ═══════════════════════════════════════════ */

.cart-item__media--fallback {
  background: linear-gradient(135deg, #efe4d4, #e0d5c4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 12px;
  position: relative;
}

.cart-item__media--fallback::after {
  content: "\1F6CD\FE0F";
  font-size: 2rem;
  opacity: 0.35;
}

.k-cart-popup__item-img--error {
  opacity: 0.4;
  object-fit: contain;
  padding: 8px;
  background: #f0ece4;
}

/* ═══════════════════════════════════════════
   MOBILE-FIRST CART PAGE IMPROVEMENTS
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
  .cart-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  #cart-summary {
    order: -1;
  }

  .cart-item {
    grid-template-columns: 1fr;
    padding: 0.9rem;
    gap: 0.75rem;
  }

  .cart-item__media {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .cart-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .cart-item .card-grid {
    padding: 0;
  }

  .cart-item .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .cart-item .summary-row h3 {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .cart-item .summary-row strong {
    font-size: 1.1rem;
  }

  .cart-item__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .cart-item__controls .quantity-stepper {
    flex: 0 0 auto;
  }

  .cart-item__controls .product-link,
  .cart-item__controls button.product-link {
    min-height: 2.75rem;
    padding: 0 1rem;
    font-size: 0.85rem;
    flex: 1;
  }

  .empty-state {
    padding: 1.5rem 1rem;
  }

  .empty-state h2 {
    font-size: 1.5rem;
  }

  .summary-card.sticky-card {
    position: static;
    margin-bottom: 0;
  }

  .summary-card h3 {
    font-size: 1.2rem;
  }

  .section-heading--inline {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  #cart-recommendations .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem;
  }
}

@media (max-width: 480px) {
  .cart-item__media {
    aspect-ratio: 4 / 3;
  }

  #cart-recommendations .product-grid {
    grid-template-columns: 1fr !important;
  }

  .cart-item .summary-row h3 {
    font-size: 0.95rem;
  }

  .section-heading h1 {
    font-size: 2rem;
  }
}

/* ═══════════════════════════════════════════
   MOBILE CART POPUP IMPROVEMENTS
   ═══════════════════════════════════════════ */

@media (max-width: 480px) {
  .k-cart-popup {
    width: 100vw;
    border-radius: 0;
  }

  .k-cart-popup__item {
    gap: 10px;
    padding: 12px 0;
  }

  .k-cart-popup__item-img {
    width: 56px;
    height: 70px;
    border-radius: 6px;
  }

  .k-cart-popup__item-name {
    font-size: 0.82rem;
  }

  .k-cart-popup__item-price {
    font-size: 0.82rem;
  }

  .k-cart-popup__checkout {
    min-height: 50px !important;
    font-size: 0.95rem !important;
  }

  .k-cart-popup__continue {
    min-height: 44px !important;
  }
}

/* ═══════════════════════════════════════════
   GENERAL MOBILE UX ENHANCEMENTS
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Prevent text size adjustment on orientation change */
  html {
    -webkit-text-size-adjust: 100%;
  }

  /* Better tap highlights */
  a, button, .product-link, .text-link {
    -webkit-tap-highlight-color: rgba(201, 169, 110, 0.2);
  }

  /* Smooth momentum scrolling */
  .cart-items,
  .k-cart-popup__items,
  .product-grid {
    -webkit-overflow-scrolling: touch;
  }

  /* Improved sticky behavior */
  .site-header {
    top: 0;
    position: sticky;
  }

  /* Better breadcrumb visibility */
  .breadcrumb {
    font-size: 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   CHECKOUT MOBILE IMPROVEMENTS
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
  .checkout-form--focused {
    padding: 0.75rem;
  }

  .checkout-step-block {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .checkout-step-label {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }

  .checkout-step-block h2 {
    font-size: 1.2rem;
  }

  .payment-methods {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .payment-method {
    padding: 0.85rem;
  }

  .checkout-submit {
    min-height: 3.25rem;
    font-size: 1rem;
    bottom: 0.5rem;
  }
}

/* ═══════════════════════════════════════════
   PRODUCT GRID — Improved mobile touch
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
  .product-card {
    padding: 0.55rem;
    border-radius: 14px;
  }

  .product-card__media {
    border-radius: 10px;
  }

  .product-link,
  .add-to-cart-button {
    min-height: 2.65rem;
    font-size: 0.78rem;
    border-radius: 999px;
  }

  .product-card__title h3 {
    font-size: 0.88rem !important;
  }

  .product-card__info {
    padding: 0.45rem 0.15rem 0.15rem !important;
    gap: 0.3rem !important;
  }

  .price {
    font-size: 0.88rem;
  }

  .wishlist-button {
    width: 2.2rem;
    height: 2.2rem;
    top: 0.55rem;
    right: 0.55rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   BOTTOM NAV — Fixed bottom bar (injected globally via header.js)
   ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV — Fixed bottom bar for mobile
   ═══════════════════════════════════════════════════════════════════ */
.kb-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(200,148,59,0.12);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  box-shadow: 0 -4px 20px rgba(45,36,30,0.06);
}
@media (max-width: 767px) { .kb-bottom-nav { display: flex; } }

/* Dark theme bottom nav override */
[data-theme="dark"] .kb-bottom-nav {
  background: rgba(15,12,10,0.95);
  border-top-color: rgba(200,148,59,0.08);
}

[data-theme="dark"] .kb-bottom-nav__item {
  color: rgba(255,255,255,0.45);
}

[data-theme="dark"] .kb-bottom-nav__item.is-active {
  color: var(--acct-gold, #c8943b);
}

[data-theme="dark"] .kb-bottom-nav__item:hover {
  background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .kb-bottom-nav__item:active {
  background: rgba(255,255,255,0.08);
}
.kb-bottom-nav__inner {
  display: flex; justify-content: space-around; align-items: center;
  max-width: 500px; margin: 0 auto; gap: 2px;
}
.kb-bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 6px 14px;
  font-family: var(--font-sans); font-size: 0.6rem; font-weight: 700;
  color: var(--k-text-muted); text-decoration: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: transparent;
  border: 1px solid transparent;
}
.kb-bottom-nav__item:hover {
  background: rgba(200,148,59,0.06);
  border-color: rgba(200,148,59,0.1);
}
.kb-bottom-nav__item:active {
  transform: scale(0.94);
  background: rgba(200,148,59,0.12);
}
.kb-bottom-nav__item.is-active {
  color: #c8943b;
  background: rgba(200,148,59,0.08);
  border-color: rgba(200,148,59,0.15);
}
.kb-bottom-nav__item svg { width: 20px; height: 20px; flex-shrink: 0; }
.kb-bottom-nav__cart-wrap { position: relative; }
.kb-bottom-nav__badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #c8943b;
  color: #fff; font-size: 0.5rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════
   NATIVE APP ENHANCEMENTS — Mobile app-like feel
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Page entrance animation (subtle fade-slide) ─── */
@keyframes appPageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  animation: appPageIn 0.3s ease-out;
}

/* ─── Touch feedback — press effect on interactive elements ─── */
@media (hover: none) and (pointer: coarse) {
  a:active,
  button:active,
  .tappable:active,
  .kb-btn:active,
  .k-btn:active,
  .cko-btn:active,
  .k-product-card:active,
  .kb-product:active,
  .kb-edit-card:active,
  .k-related-card:active,
  .kb-bottom-nav__item:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
  }

  .cko-pay-option:active {
    transform: scale(0.98) !important;
  }

  .k-size-btn:active,
  .kb-curated__tab:active,
  .kb-cat-chip:active {
    transform: scale(0.95) !important;
  }
}

/* ─── Remove tap highlight on mobile ─── */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ─── Smooth momentum scrolling ─── */
.mobile-scroll,
.scroll-container,
.cko-cart-items,
.k-cart-popup__items,
.k-gallery__thumbs,
.kb-edits__scroll,
.k-drops__scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ─── Safe area inset for sticky elements ─── */
.kb-bottom-nav {
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.checkout-submit,
.sticky-bottom,
.sticky-checkout {
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

/* ─── Compact mobile header (reduces top space on small screens) ─── */
@media (max-width: 767px) {
  .site-topbar {
    display: none !important;
  }

  .site-header {
    padding-top: 0 !important;
  }

  .site-header.is-shrunk .brand__logo {
    width: 100px !important;
    height: auto !important;
  }

  .site-nav__inner {
    padding: 8px 12px !important;
    min-height: 48px !important;
  }

  .site-nav__links {
    display: none !important;
  }

  .site-nav__actions .kb-header-label,
  .kb-header-label {
    display: none !important;
  }
}

/* ─── Safe area for bottom of page content (avoids nav overlap) ─── */
@media (max-width: 767px) {
  main,
  .main-content,
  #main-content {
    padding-bottom: 80px;
  }

  .k-container,
  .cko-page {
    padding-bottom: 80px;
  }

  .section {
    padding-bottom: 80px;
  }
}

/* ─── Mobile input fix (prevent zoom on focus in iOS) ─── */
@media (max-width: 767px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ─── Better mobile product grid spacing ─── */
@media (max-width: 480px) {
  .kb-products__grid,
  .k-shop-grid,
  .k-related-grid {
    gap: 8px !important;
  }
}

/* ─── Pull-to-refresh indicator (visual cue) ─── */
.pull-indicator {
  text-align: center;
  padding: 12px;
  color: var(--color-text-muted, #8B6F47);
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ─── Skeleton loading shimmer for mobile ─── */
@media (max-width: 767px) {
  .k-skeleton-overlay {
    animation: mobileShimmer 1.2s ease-in-out infinite;
    background: linear-gradient(90deg, var(--k-cream-100, #f0ece4) 25%, var(--k-cream-50, #f8f4ee) 50%, var(--k-cream-100, #f0ece4) 75%);
    background-size: 200% 100%;
  }

  @keyframes mobileShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
}

/* ─── Mobile product page sizing + sticky CTA ─── */
@media (max-width: 767px) {
  .kpo-modal {
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .kpo-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .kpo-gallery {
    max-height: 45vh !important;
    min-height: 30vh !important;
  }
  .kpo-info {
    padding: 16px !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .kpo-add-to-cart {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    width: 100% !important;
    border-radius: 0 !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    transform: none !important;
  }
  .kpo-tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .kpo-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE SPLASH / SKELETON SCREEN OPTIMIZATIONS
   Smaller, faster, more compact on mobile devices
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .k-skeleton__logo {
    max-width: 160px !important;
    max-height: 60px !important;
    margin-bottom: 12px !important;
  }

  .k-skeleton__bar {
    max-width: 140px !important;
    height: 4px !important;
    margin-bottom: 8px !important;
  }

  .k-skeleton__tagline {
    font-size: 0.7rem !important;
    letter-spacing: 0.12em !important;
  }

  .k-skeleton.is-hidden {
    transition: opacity 0.35s ease, visibility 0.35s ease !important;
  }
}

@media (max-width: 480px) {
  .k-skeleton__logo {
    max-width: 120px !important;
    max-height: 44px !important;
    margin-bottom: 10px !important;
    animation-duration: 0.5s !important;
  }

  .k-skeleton__bar {
    max-width: 100px !important;
    height: 3px !important;
    margin-bottom: 6px !important;
  }

  .k-skeleton__tagline {
    font-size: 0.6rem !important;
  }

  .k-skeleton {
    background: #faf8f4 !important;
  }

  .k-skeleton.is-hidden {
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE HERO SECTION HEIGHT REDUCTION
   Minimize hero sections on mobile for better content-to-chrome ratio
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hp-hero {
    min-height: auto !important;
  }

  .hp-hero__content {
    padding: 2rem 1.25rem 1.5rem !important;
  }

  .hp-hero__media {
    min-height: 38vh !important;
    max-height: 46vh !important;
  }

  .craft-studio,
  [class*="craft-studio"] {
    min-height: 50vh !important;
  }

  .k-home-hero {
    min-height: 50vh !important;
  }

  .k-home-hero__content {
    padding: 2rem 1.25rem !important;
  }

  .k-home-hero__stats {
    min-height: auto !important;
    padding: 1rem !important;
  }

  /* Reduce hero visual heights */
  .hero__visual,
  [class*="hero__visual"] {
    min-height: 28rem !important;
  }

  .hero-card {
    min-height: 18rem !important;
  }

  .hero-card--secondary {
    min-height: 13rem !important;
  }

  .landing-shop__copy,
  .landing-shop__feature {
    min-height: auto !important;
  }

  .editorial__visual {
    min-height: 22rem !important;
  }

  .shop-banner__hero-media,
  .social-hero-media {
    min-height: clamp(20rem, 40vw, 30rem) !important;
  }
}

@media (max-width: 480px) {
  .hp-hero__media {
    min-height: 30vh !important;
    max-height: 38vh !important;
  }

  .hp-hero__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
  }

  .hero__visual,
  [class*="hero__visual"] {
    min-height: 14rem !important;
  }

  .editorial__visual {
    min-height: 16rem !important;
  }

  .landing-shop__feature-media {
    min-height: 14rem !important;
  }

  .shop-banner__hero-media {
    min-height: 18rem !important;
  }

  .founder-portrait {
    min-height: 24rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT PAGE PDP — Mobile reductions
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .pd-hero {
    min-height: auto !important;
    padding: 2rem 0 !important;
  }

  .pd-hero__inner {
    padding: 0 1.25rem !important;
    gap: 1rem !important;
  }

  .pd-hero__title-line {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .pd-hero__desc {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  .pd-hero__breadcrumb {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 480px) {
  .pd-hero {
    padding: 1.5rem 0 !important;
  }

  .pd-hero__title-line {
    font-size: 1.4rem !important;
  }

  .pd-hero__desc {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SHOP PAGE HERO — Mobile height reduction
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .k-hero-v5,
  .k-hero-v6 {
    min-height: auto !important;
    padding-top: 0.5rem !important;
  }

  .k-hero-v5__inner,
  .k-hero-v6__inner {
    padding: 1rem 1rem 1.5rem !important;
    gap: 1rem !important;
  }

  .k-hero-v5__title-line,
  .k-hero-v6__title-line {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }

  .k-hero-v5__image-wrap,
  .k-hero-v6__image-wrap {
    max-width: 220px !important;
  }

  .k-hero-v5__card,
  .k-hero-v6__card {
    width: 160px !important;
    height: 200px !important;
  }

  .k-hero-v5__visual,
  .k-hero-v6__visual {
    gap: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .k-hero-v5__title-line,
  .k-hero-v6__title-line {
    font-size: 1.5rem !important;
  }

  .k-hero-v5__image-wrap,
  .k-hero-v6__image-wrap {
    max-width: 180px !important;
  }

  .k-hero-v5__card,
  .k-hero-v6__card {
    width: 130px !important;
    height: 170px !important;
  }

  .k-hero-v5__urgency,
  .k-hero-v6__urgency {
    font-size: 0.55rem !important;
    padding: 0.3rem 0.4rem !important;
    gap: 0.1rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   APP-LIKE TEXT REDUCTION — Native mobile app feel
   ═══════════════════════════════════════════════════════════════════ */

/* App-like text reduction on mobile */
@media (max-width: 767px) {
  /* Truncate long descriptions to 3 lines */
  .k-product-card__info .k-product-card__name,
  .hp-journey-card__info p,
  .hp-hero__desc,
  .hp-coll-banner__text,
  .blog-card__excerpt,
  .kl-look-card__desc,
  .ka-artisan__bio {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hp-hero__desc { -webkit-line-clamp: 2; font-size: 0.82rem; }
  .hp-hero__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hp-section { padding: 2rem 0; }
  .hp-coll-banner__text { font-size: 0.75rem; }
  
  /* Compact product cards on mobile */
  .k-product-card__info { padding: 0.6rem 0.75rem 0.75rem; }
  .k-product-card__name { font-size: 0.78rem; }
  .k-product-card__price { font-size: 0.82rem; }
  .k-product-card__cat { font-size: 0.55rem; }
  
  /* Reduce section spacing */
  .hp-section-head { margin-bottom: 1rem; }
  .hp-section-head__left .hp-eyebrow { font-size: 0.6rem; margin-bottom: 0.4rem; }
  .hp-section-head__left .hp-h2 { font-size: clamp(1.1rem, 5vw, 1.4rem); }
  
  /* Reduce hero padding */
  .hp-hero__content { padding: 2rem 1.25rem 1.5rem !important; }
}

/* Extra small screens */
@media (max-width: 400px) {
  .k-product-card__info { padding: 0.4rem 0.5rem 0.5rem; }
  .k-product-card__name { font-size: 0.7rem; }
}