/* ===== Переменные ===== */
:root {
    --primary: #0077be;
    --primary-light: #00a8cc;
    --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
    --text-dark: #1a2a3a;
    --text-muted: #4a5a6a;
    --bg-glass: rgba(255, 255, 255, 0.5);
    --bg-glass-hover: rgba(255, 255, 255, 0.7);
    --radius-card: 28px;
    --radius-btn: 40px;
    --shadow-card: 0 12px 40px rgba(0,20,40,0.08);
    --shadow-card-hover: 0 24px 60px rgba(0,20,40,0.15);
    --font-base: 'Segoe UI', system-ui, sans-serif;
  }
  
  /* ===== Глобальные ===== */
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: var(--font-base);
    background: #f0f4f8;
    background-image: radial-gradient(circle at 20% 30%, rgba(200,230,255,0.3) 0%, transparent 30%),
                      radial-gradient(circle at 80% 70%, rgba(180,220,255,0.2) 0%, transparent 40%),
                      url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    color: var(--text-dark);
    padding: 16px 16px 80px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }
  
  /* ===== Пузырьки ===== */
  .bubble {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), rgba(200,230,255,0.1));
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
    pointer-events: none;
    z-index: 0;
    animation: rise linear infinite;
  }
  @keyframes rise {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0.7; }
    100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
  }
  
  /* ===== Общие утилиты ===== */
  .container { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
  .glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,20,40,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    border-radius: 20px;
    transition: all 0.3s ease;
  }
  .glass:hover { background: var(--bg-glass-hover); box-shadow: 0 12px 40px rgba(0,20,40,0.12); }
  /* .glass:active { transform: scale(0.98); } */
  
  /* ===== Шапка ===== */
  .header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; margin-bottom: 24px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
  }
  .header h1 {
    font-size: 24px; font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
  }
  
  /* ===== Плавающая кнопка "Назад" ===== */
  .back-link {
    position: fixed; bottom: 24px; right: 24px; z-index: 1100;
    padding: 16px 32px; min-height: 52px; min-width: 120px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px rgba(0,20,40,0.08);
    border-radius: var(--radius-btn);
    color: var(--primary);
    font-weight: 600; font-size: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.3s; cursor: pointer;
    text-decoration: none;
  }
  .back-link:hover { background: rgba(255,255,255,0.8); box-shadow: 0 12px 40px rgba(0,20,40,0.15); }
  /* .back-link:active { transform: scale(0.95); } */
  
  /* ===== Сетка ===== */
  .products-grid {
    display: flex; flex-direction: column; gap: 6px; align-items: stretch;
  }
  
  /* ===== Карточка товара ===== */
  .product-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-card);
    padding: 18px 16px 16px;
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .product-card::before {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.6) 0%, transparent 70%);
    pointer-events: none; opacity: 0.4; transition: opacity 0.6s ease;
  }
  .product-card:hover::before { opacity: 0.8; }
  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-glass-hover);
  }
  /* .product-card:active { transform: scale(0.98); } */
  
  .product-card .product-image,
  .product-card .carousel-slide img {
    width: 100%; height: 160px; object-fit: contain;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    transition: transform 0.4s, box-shadow 0.4s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  }
  .product-card:hover .product-image,
  .product-card:hover .carousel-slide img {
    transform: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  }
  
  .product-card h3 {
    font-size: 20px; font-weight: 700;
    margin: 12px 0 4px;
    cursor: pointer; transition: color 0.2s;
    letter-spacing: -0.3px;
  }
  .product-card h3:hover { color: var(--primary); }
  .product-card .short-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;              /* ← добавлено */
    -webkit-box-orient: vertical;
    margin-bottom: 14px;
    font-weight: 400;
  }
  
  /* ===== Блок цен ===== */
  .product-card .prices {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 4px 8px;
    margin-top: auto; padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
  }
  .old-price {
    font-size: 14px; font-weight: 500; color: #999;
    text-decoration: line-through; order: 2;
  }
  .special-price {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-gradient);
    color: #fff !important;
    font-size: 22px; font-weight: 700;
    padding: 4px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0,119,190,0.3);
    transition: all 0.25s;
    cursor: pointer; border: none; order: 1; line-height: 1.2;
  }
  .special-price:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(0,119,190,0.4);
  }
  .favorite-btn-price {
    background: none; border: none; padding: 0;
    margin: 0 4px 0 auto;
    font-size: 32px; cursor: pointer; line-height: 1;
    order: 3;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  }
  .favorite-btn-price:hover { transform: scale(1.2); }
  .favorite-btn-price .heart { color: #ccc; transition: color 0.3s, transform 0.3s; }
  .favorite-btn-price .heart.active { color: #ff6b6b; animation: heartPulse 0.5s ease; }
  @keyframes heartPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.6); }
    100% { transform: scale(1); }
  }
  .stock-indicator {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(0,200,100,0.12);
    color: #00a86b;
    order: 4; margin-left: auto;
    border: 1px solid rgba(0,200,100,0.2);
  }
  .stock-indicator::before { content: "●"; font-size: 12px; }
  .stock-indicator.out-of-stock {
    background: rgba(255,80,80,0.12);
    color: #ff6b6b;
    border-color: rgba(255,80,80,0.2);
  }
  
  /* ===== Карусель ===== */
  .carousel-container {
    position: relative; overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 4px;
  }
  .carousel-track {
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-track { -ms-overflow-style: none; scrollbar-width: none; }
  .carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 160px;
    display: flex; align-items: center; justify-content: center;
  }
  .carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    color: var(--primary);
    border: none; border-radius: 50%;
    width: 32px; height: 32px;
    cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: 0.2s;
  }
  .carousel-btn:hover { background: rgba(255,255,255,0.9); }
  .carousel-btn.prev { left: 4px; }
  .carousel-btn.next { right: 4px; }
  .carousel-dots {
    display: flex; gap: 6px; justify-content: center; margin-top: 8px;
  }
  .carousel-dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(0,119,190,0.25);
    transition: background 0.3s; cursor: pointer;
  }
  .carousel-dots .dot.active { background: var(--primary); }
  
  /* ===== Галерея товара ===== */
  .gallery-main {
    position: relative; overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
  }
  .gallery-main img {
    display: block; width: 100%; max-height: 400px;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
  }
  .gallery-thumbs {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
  }
  .gallery-thumb {
    width: 60px; height: 60px; object-fit: cover;
    border-radius: 12px; cursor: pointer;
    border: 2px solid transparent; transition: border-color 0.2s;
  }
  .gallery-thumb:hover,
  .gallery-thumb.active { border-color: var(--primary); }
  
  /* ===== Секция популярных товаров ===== */
  .popular-section {
    margin-bottom: 24px;
  }
  .section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .popular-grid {
    display: flex;
    gap: 12px;
    overflow-x: hidden;        /* скрываем полосу прокрутки */
    scroll-snap-type: x mandatory;
    height: 100px;             /* фиксированная высота */
    align-items: center;
    position: relative;
    scroll-behavior: smooth;   /* плавная прокрутка */
  }
  /* Скрываем полосу прокрутки */
  .popular-grid::-webkit-scrollbar {
    display: none;
  }
  .popular-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .popular-product-card {
    flex: 0 0 100px;
    height: 100px;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .popular-product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,20,40,0.1);
  }
  
  .popular-image-wrapper {
    width: 100%;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
  }
  .popular-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  
  .popular-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    margin-top: 2px;
  }
  
  /* ===== Модалки ===== */
  [popover], dialog {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    padding: 24px;
    max-width: 500px; width: 90%;
    margin: auto;
    position: fixed; inset: 0;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,20,40,0.15);
    transition: opacity 0.3s, transform 0.3s;
  }
  [popover]:popover-open, dialog[open] {
    opacity: 1; transform: scale(1);
  }
  @starting-style {
    [popover]:popover-open, dialog[open] {
      opacity: 0; transform: scale(0.9);
    }
  }
  [popover]::backdrop, dialog::backdrop {
    background: rgba(0,20,40,0.2);
    backdrop-filter: blur(4px);
  }
  .popover-close-btn {
    float: right; background: none; border: none;
    font-size: 28px; cursor: pointer; line-height: 1;
    color: var(--text-muted);
  }
  .popover-close-btn:hover { color: var(--text-dark); }
  
  /* ===== Форма заказа ===== */
  #orderForm label { display: block; margin: 12px 0 4px; font-weight: 600; }
  #orderForm input[type="text"],
  #orderForm input[type="tel"] {
    width: 100%; padding: 12px 16px;
    border: 1px solid rgba(0,119,190,0.2); border-radius: 12px;
    background: rgba(255,255,255,0.4); backdrop-filter: blur(4px);
    font-size: 16px; transition: border 0.2s;
  }
  #orderForm input:focus {
    border-color: var(--primary);
    outline: none; box-shadow: 0 0 0 3px rgba(0,119,190,0.1);
  }
  #orderForm .checkbox-group {
    display: flex; align-items: center; gap: 8px; margin: 12px 0;
  }
  #orderForm .order-form-actions {
    display: flex; gap: 8px; margin-top: 16px;
  }
  #orderForm .order-form-actions button {
    flex: 1; padding: 12px; border: none; border-radius: 12px; font-weight: bold; cursor: pointer;
  }
  
  /* ===== Кнопки ===== */
  .btn-primary {
    background: var(--primary-gradient);
    color: #fff; border: none;
    padding: 12px 24px; border-radius: var(--radius-btn);
    font-weight: 700; font-size: 18px; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 4px 16px rgba(0,119,190,0.25);
  }
  .btn-primary:hover { box-shadow: 0 8px 24px rgba(0,119,190,0.35); }
  /* .btn-primary:active { transform: scale(0.96); } */
  .btn-secondary {
    background: rgba(200,200,200,0.3);
    backdrop-filter: blur(4px);
    color: var(--text-dark);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 12px 24px; border-radius: var(--radius-btn);
    font-weight: 600; cursor: pointer; transition: all 0.2s;
  }
  .btn-secondary:hover { background: rgba(200,200,200,0.5); }
  .btn-danger {
    background: rgba(255,107,107,0.15);
    backdrop-filter: blur(4px);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.2);
    padding: 6px 12px; border-radius: 8px; cursor: pointer; transition: all 0.2s;
  }
  .btn-danger:hover { background: rgba(255,107,107,0.25); }
  
  /* ===== Корзина ===== */
  .cart-item {
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    border-radius: 16px; padding: 12px; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
  }
  .item-title { font-weight: 600; }
  .item-price { font-size: 18px; font-weight: 600; color: var(--primary); }
  .item-actions { display: flex; align-items: center; gap: 8px; }
  .qty-btn {
    background: rgba(255,255,255,0.4);
    border: none; width: 30px; height: 30px; border-radius: 50%;
    font-size: 18px; cursor: pointer; transition: 0.2s;
  }
  .qty-btn:hover { background: rgba(255,255,255,0.6); }
  .qty-input {
    width: 50px; text-align: center; padding: 4px;
    border: 1px solid rgba(0,119,190,0.2); border-radius: 8px;
    background: rgba(255,255,255,0.3);
  }
  .empty-cart { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 18px; }
  .cart-total { font-size: 24px; font-weight: bold; text-align: right; margin: 16px 0; }
  
  /* ===== Нижняя панель ===== */
  .bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-around; align-items: stretch;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.3);
    padding: 6px 0 8px; box-shadow: 0 -2px 20px rgba(0,20,40,0.05);
    z-index: 1000; height: 64px;
  }
  .nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-decoration: none; color: var(--text-muted);
    font-size: 11px; font-weight: 500;
    padding: 4px 12px; position: relative;
    transition: color 0.2s; flex: 1;
    border: none; background: none; cursor: pointer;
  }
  .nav-item .nav-icon { font-size: 26px; line-height: 1.2; }
  .nav-item .nav-label { margin-top: 2px; font-size: 11px; letter-spacing: 0.3px; }
  .nav-item.active { color: var(--primary); }
  .nav-item.active .nav-icon { transform: scale(1.05); }
  .nav-item.active .nav-label { font-weight: 600; }
  .nav-item:hover { color: var(--primary); }
  .nav-item:hover .nav-icon { transform: scale(1.05); }
  /* .nav-item:active { opacity: 0.7; } */
  .nav-item .badge {
    position: absolute; top: 0px; right: 8px;
    background: #ff6b6b; color: #fff;
    border-radius: 50%; padding: 1px 6px;
    font-size: 10px; font-weight: 700; min-width: 18px; text-align: center;
    box-shadow: 0 2px 8px rgba(255,107,107,0.3);
    display: none; line-height: 1.4;
  }
  .nav-item .badge.show { display: block; }
  
  /* ===== Уведомления ===== */
  #notification {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 24px; border-radius: var(--radius-btn);
    color: var(--text-dark); font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,20,40,0.1);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 999;
  }
  #notification.show { opacity: 1; }
  
  /* ===== Ripple ===== */
  .ripple { position: relative; overflow: hidden; cursor: pointer; }
  .ripple-effect {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out forwards;
    pointer-events: none; will-change: transform, opacity;
  }
  @keyframes ripple-anim {
    0% { transform: scale(0); opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
  }
  
  /* ===== АДАПТИВ ===== */
  @media (max-width: 600px) {
    .product-card { padding: 14px 12px; border-radius: 20px; }
    .product-card .product-image,
    .product-card .carousel-slide img { height: 140px; }
    .product-card h3 { font-size: 18px; }
    .special-price { font-size: 22px; padding: 6px 16px; }
    .favorite-btn-price { font-size: 28px; }
    .bottom-nav { height: 58px; }
    .nav-item .nav-icon { font-size: 24px; }
    .nav-item .nav-label { font-size: 10px; }
    .back-link { padding: 14px 24px; font-size: 16px; min-height: 48px; min-width: 100px; }
  }
  @media (max-width: 480px) {
    body { padding: 10px 10px 70px; }
    .container { padding: 0 2px; }
    .product-card { padding: 12px 10px; border-radius: 18px; }
    .product-card .product-image,
    .product-card .carousel-slide img { height: 120px; border-radius: 14px; }
    .product-card h3 { font-size: 17px; margin-top: 8px; }
    .product-card .short-description { font-size: 13px; height: 38px; margin-bottom: 10px; }
    .special-price { font-size: 20px; padding: 5px 14px; }
    .old-price { font-size: 14px; }
    .favorite-btn-price { font-size: 26px; margin: 0 2px 0 auto; }
    .stock-indicator { font-size: 11px; padding: 2px 10px; }
    .carousel-slide { height: 120px; }
    .carousel-btn { width: 28px; height: 28px; font-size: 16px; }
    .bottom-nav { height: 54px; padding: 4px 0 6px; }
    .nav-item .nav-icon { font-size: 22px; }
    .nav-item .nav-label { font-size: 9px; }
    .nav-item .badge { font-size: 8px; min-width: 14px; padding: 0 4px; top: -2px; right: 4px; }
    .header { padding: 10px 14px; margin-bottom: 16px; border-radius: 24px; }
    .header h1 { font-size: 20px; }
    #notification { font-size: 14px; padding: 10px 18px; bottom: 70px; max-width: 90%; }
    .back-link { padding: 12px 20px; font-size: 15px; min-height: 44px; min-width: 90px; bottom: 16px; right: 16px; }
    dialog, [popover] { padding: 16px; border-radius: 18px; }
    .btn-primary { font-size: 16px; padding: 10px 16px; }
  }
  @media (max-width: 400px) {
    body { padding: 8px 8px 60px; }
    .product-card { padding: 10px 8px; border-radius: 16px; }
    .product-card .product-image,
    .product-card .carousel-slide img { height: 100px; border-radius: 12px; }
    .product-card h3 { font-size: 15px; }
    .product-card .short-description { font-size: 12px; height: 34px; }
    .special-price { font-size: 18px; padding: 4px 12px; }
    .favorite-btn-price { font-size: 22px; }
    .stock-indicator { font-size: 10px; padding: 2px 8px; }
    .carousel-slide { height: 100px; }
    .carousel-btn { width: 24px; height: 24px; font-size: 14px; }
    .bottom-nav { height: 48px; padding: 3px 0 4px; }
    .nav-item .nav-icon { font-size: 20px; }
    .nav-item .nav-label { font-size: 8px; }
    .nav-item .badge { font-size: 7px; min-width: 12px; padding: 0 3px; top: -2px; right: 2px; }
    .header h1 { font-size: 17px; }
    #notification { font-size: 12px; padding: 8px 14px; bottom: 60px; }
    .back-link { padding: 10px 16px; font-size: 14px; min-height: 40px; min-width: 80px; bottom: 12px; right: 12px; }
    .btn-primary { font-size: 14px; padding: 8px 14px; }
    .cart-item { padding: 8px; flex-wrap: wrap; gap: 6px; }
    .item-actions { flex-wrap: wrap; justify-content: flex-end; }
    .qty-btn { width: 26px; height: 26px; font-size: 16px; }
    .qty-input { width: 40px; font-size: 14px; }
    .cart-total { font-size: 18px; }
  }
  @media (pointer: coarse) {
    .nav-item, .favorite-btn-price, .special-price, .qty-btn,
    .btn-primary, .btn-secondary, .btn-danger, .back-link, .carousel-btn {
      min-height: 44px; min-width: 44px;
    }
    .favorite-btn-price {
      display: flex; align-items: center; justify-content: center;
    }
    .special-price { min-height: 44px; }
  }