/* ============================================
   MOD SLM - RESPONSIVE CSS
   Mobile-First Responsive Design
   ============================================ */

/* ==================== MOBILE-FIRST BASE (Tüm ekranlar) ==================== */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  min-width: 320px;
}

/* Notch / safe area (iPhone X+, Android) - viewport-fit=cover önerilir */
@supports (padding: env(safe-area-inset-left)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ==================== TABLET LARGE (1023px ve altı) - Filter Sidebar ==================== */
@media (max-width: 1023px) {
  .filter-sidebar__header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #e9ecef !important;
    margin-bottom: 20px !important;
  }
  
  .filter-sidebar__close {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f0f0f0 !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }
  
  .filter-sidebar__close:hover {
    background: var(--accent-gold) !important;
    color: white !important;
    transform: translateX(-3px) !important;
  }
  
  .filter-sidebar__close:hover svg {
    transform: translateX(-2px) !important;
  }
  
  .filter-sidebar__close:active {
    transform: translateX(-5px) !important;
  }
  
  .filter-sidebar__close svg {
    transition: transform 0.3s ease !important;
    width: 20px !important;
    height: 20px !important;
  }
}

@media (max-width: 768px) {
  /* Typography Adjustments */
  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  /* Header */
  .header {
    height: var(--header-height-mobile);
  }

  /* Mobile Navigation */
  .header__nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height-mobile));
    background-color: var(--primary-white);
    flex-direction: column;
    padding: var(--space-lg);
    transition: left 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
  }

  .header__nav.active {
    left: 0;
  }
  
  /* Mobile Overlay - Backdrop */
  .header__nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
    pointer-events: none;
  }
  
  .header__nav.active::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .header__nav-item {
    width: 100%;
    border-bottom: var(--border-width) solid var(--neutral-border);
  }

  .header__nav-link {
    display: block;
    padding: var(--space-md) 0;
    font-size: var(--text-base);
  }

  .header__mobile-toggle {
    display: flex;
  }

  .header__mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .header__mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Hero */
  .hero {
    height: 500px;
  }

  /* Categories Grid */
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  /* CTA Banner */
  .cta-banner__title {
    font-size: var(--text-3xl);
  }

  /* Footer */
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .footer__payment-logos {
    padding: var(--space-md) var(--space-sm);
  }

  .footer__payment-band {
    height: 28px;
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Category Page */
  .category-content {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    z-index: var(--z-modal);
    transition: left var(--transition-base);
    overflow-y: auto;
    background: #fff !important;
    border-radius: 0 !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
  }

  .filter-sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
    pointer-events: none;
  }

  .filter-sidebar.active {
    left: 0;
  }

  .filter-sidebar.active::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .category-header__title {
    font-size: var(--text-3xl);
  }

  .category-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .category-toolbar__left,
  .category-toolbar__right {
    width: 100%;
  }

  .category-toolbar__right {
    display: flex;
    justify-content: stretch;
  }

  .sort-select {
    flex: 1;
  }

  /* Product Detail */
  .product-detail__container {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  /* Product detail page (product.html) - tablet & mobile */
  .product-detail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
    align-items: start !important;
    padding: var(--space-md) 0 !important;
    min-width: 0;
  }

  .product-detail__gallery {
    min-width: 0;
    width: 100%;
  }

  .product-detail__info {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .product-page-breadcrumb {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .product-page-container {
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-detail__title {
    font-size: var(--text-2xl) !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
  }

  .product-detail__price-wrapper {
    flex-wrap: wrap !important;
    gap: var(--space-sm) !important;
  }

  .product-detail__actions {
    flex-wrap: wrap !important;
    gap: var(--space-sm) !important;
  }

  .product-detail__actions .quantity-selector {
    min-width: 0;
  }

  .product-detail__actions .quantity-selector button,
  .product-detail__actions #addToCartBtn {
    min-height: 44px;
    padding: 12px 16px;
  }

  .product-detail__actions #productQuantity {
    min-width: 44px;
    font-size: 16px; /* iOS zoom önleme */
  }

  .product-detail__info input,
  .product-detail__info select {
    font-size: 16px !important;
  }

  .product-tabs {
    margin-top: var(--space-xl) !important;
    margin-bottom: var(--space-xl) !important;
  }

  .tab-header {
    flex-wrap: wrap !important;
    gap: var(--space-sm) !important;
  }

  /* Product sayfasında main içeriğin header altında kalması */
  .product-page-main {
    padding-top: calc(var(--header-height-mobile) + 8px) !important;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  /* Cart Page */
  .cart-page {
    padding: var(--space-lg) 0;
  }

  .cart-page .section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
  }

  .cart-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .cart-items {
    order: 2;
  }

  .cart-summary {
    position: static;
    order: 1;
    margin-bottom: var(--space-md);
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .cart-item__image {
    width: 80px;
    height: auto;
    aspect-ratio: 3/4;
  }

  .cart-item__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .cart-item__name {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    line-height: 1.4;
  }

  .cart-item__details {
    font-size: var(--text-xs);
    color: var(--neutral-medium);
  }

  .cart-item__price {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
  }

  .cart-item__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
  }

  .cart-item__quantity {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }

  .cart-item__quantity input {
    width: 50px;
    text-align: center;
    padding: var(--space-xs);
  }

  .cart-item__remove {
    width: 100%;
    padding: var(--space-xs);
    font-size: var(--text-xs);
  }

  .cart-summary__title {
    font-size: var(--text-lg);
  }

  .cart-summary__row {
    font-size: var(--text-sm);
  }

  .cart-summary__total {
    font-size: var(--text-lg);
  }

  .cart-summary .btn {
    width: 100%;
    margin-top: var(--space-md);
  }

  /* Cart container grid */
  .cart-container-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Cart container içindeki inline grid override */
  .cart-container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  /* Cart item inline style override */
  .cart-item[style*="grid-template-columns"] {
    grid-template-columns: 80px 1fr !important;
    gap: var(--space-sm) !important;
    padding: var(--space-sm) !important;
  }

  /* Cart item image inline style override */
  .cart-item img[style*="width: 120px"] {
    width: 80px !important;
    height: auto !important;
  }

  /* Cart summary inline style override */
  .cart-summary[style*="position: sticky"] {
    position: static !important;
    top: auto !important;
  }

  /* Buttons */
  .btn-lg {
    height: var(--btn-height);
    font-size: var(--text-sm);
  }

  /* Spacing Adjustments */
  .categories,
  .featured-products,
  .new-arrivals {
    padding: var(--space-xl) 0;
  }
}

/* ==================== MOBILE (480px ve altı) ==================== */

@media (max-width: 480px) {
  /* Container Padding */
  .container {
    padding: 0 var(--space-sm);
  }

  /* Typography */
  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }

  /* Header */
  .header__logo {
    font-size: var(--text-xl);
  }

  /* Hero */
  .hero {
    height: 400px;
  }

  /* Categories */
  .categories__grid {
    grid-template-columns: 1fr;
  }

  .category-card__title {
    font-size: var(--text-xl);
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* Product Card */
  .product-card__title {
    font-size: var(--text-sm);
  }

  .product-card__price {
    font-size: var(--text-lg);
  }

  /* CTA Banner */
  .cta-banner__title {
    font-size: var(--text-2xl);
  }

  .cta-banner__text {
    font-size: var(--text-base);
  }

  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
  }

  .footer__section {
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__payment-logos {
    padding: var(--space-sm) 8px;
  }

  .footer__payment-band {
    height: 24px;
    max-width: calc(100% - 16px);
  }

  .payment-logos {
    padding-top: var(--space-md);
    margin-top: var(--space-md);
  }

  .payment-logos__badge {
    height: 44px;
    max-width: 100%;
  }

  /* Product Detail */
  .product-info__title {
    font-size: var(--text-2xl);
  }

  .product-info__price {
    font-size: var(--text-3xl);
  }

  .product-gallery__thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }

  .size-options,
  .color-options {
    gap: var(--space-xs);
  }

  .size-option,
  .color-option {
    min-width: 40px;
    height: 40px;
    font-size: var(--text-xs);
  }

  .product-actions {
    flex-direction: column;
  }

  .quantity-selector {
    width: 100%;
  }

  /* Product detail page - 480px */
  #main-content .container {
    padding-left: max(var(--space-sm), env(safe-area-inset-left));
    padding-right: max(var(--space-sm), env(safe-area-inset-right));
  }

  .product-detail {
    gap: var(--space-md) !important;
    padding: var(--space-sm) 0 !important;
  }

  .product-detail__title {
    font-size: var(--text-xl) !important;
    margin-bottom: var(--space-xs) !important;
  }

  .product-detail__info .product-detail__price-wrapper {
    margin-bottom: var(--space-md) !important;
  }

  .product-detail__variants,
  .product-detail__option,
  .product-detail__actions {
    margin-bottom: var(--space-md) !important;
  }

  .product-detail__actions {
    flex-direction: column !important;
  }

  .product-detail__actions .quantity-selector {
    width: 100%;
    justify-content: center;
  }

  .product-detail__actions #addToCartBtn {
    width: 100%;
    min-height: 48px;
    font-size: var(--text-base);
  }

  .size-options,
  .color-options {
    gap: var(--space-xs);
  }

  .size-option,
  .color-option {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: var(--text-sm);
  }

  .product-detail__short-desc {
    font-size: var(--text-sm);
    line-height: 1.6;
  }

  .product-detail__meta {
    font-size: var(--text-xs);
  }

  .product-tabs {
    margin-top: var(--space-lg) !important;
    margin-bottom: var(--space-lg) !important;
  }

  .tab-content {
    font-size: var(--text-sm);
    line-height: 1.7;
  }

  /* Cart Page */
  .cart-page {
    padding: var(--space-md) 0;
  }

  .cart-page .section-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
  }

  .cart-container {
    gap: var(--space-md);
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: var(--space-xs);
    padding: var(--space-xs);
  }

  .cart-item__image {
    width: 60px;
    height: auto;
  }

  .cart-item__name {
    font-size: var(--text-xs);
    line-height: 1.3;
  }

  .cart-item__details {
    font-size: 10px;
  }

  .cart-item__price {
    font-size: var(--text-sm);
  }

  .cart-item__quantity input {
    width: 40px;
    font-size: var(--text-xs);
  }

  .cart-summary {
    padding: var(--space-md);
  }

  .cart-summary__title {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
  }

  .cart-summary__row {
    font-size: var(--text-xs);
    margin-bottom: var(--space-xs);
  }

  .cart-summary__total {
    font-size: var(--text-base);
  }

  /* Cart container grid (480px) */
  .cart-container-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }

  /* Cart container inline style override (480px) */
  .cart-container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-md) !important;
  }

  /* Cart item inline style override (480px) */
  .cart-item[style*="grid-template-columns"] {
    grid-template-columns: 60px 1fr !important;
    gap: var(--space-xs) !important;
    padding: var(--space-xs) !important;
  }

  /* Cart item image inline style override (480px) */
  .cart-item img[style*="width: 120px"] {
    width: 60px !important;
    height: auto !important;
  }

  /* Cart item title inline style override */
  .cart-item h3[style*="font-size: 16px"] {
    font-size: var(--text-xs) !important;
  }

  /* Cart item price inline style override */
  .cart-item div[style*="font-size: 18px"] {
    font-size: var(--text-sm) !important;
  }

  /* Checkout */
  .checkout-container {
    grid-template-columns: 1fr;
  }

  /* Buttons */
  .btn {
    height: var(--btn-height-sm);
    font-size: var(--text-xs);
  }

  .btn-full {
    width: 100%;
  }

  /* Forms */
  .input,
  .textarea,
  .select {
    font-size: var(--text-sm);
  }

  /* Spacing */
  .categories,
  .featured-products,
  .new-arrivals {
    padding: var(--space-lg) 0;
  }

  .cta-banner {
    margin: var(--space-xl) 0;
  }

  .cta-banner__content {
    padding: var(--space-lg) 0;
  }

  /* Genel Mobil Düzeltmeler */
  .container {
    padding: 0 12px;
  }

  /* Overflow: sadece içerik kutuları, grid kırılmasın */
  .container,
  .legal-page__content,
  .cart-container,
  main,
  .footer__content {
    max-width: 100%;
    box-sizing: border-box;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
  }

  /* Header Mobil */
  .header__logo {
    font-size: 18px;
  }

  .header__nav-list {
    width: 100%;
  }

  .header__nav-link {
    width: 100%;
    padding: 16px 0;
  }

  /* Hero Mobil */
  .hero {
    height: 400px;
    padding: 0 12px;
  }

  .hero__title {
    font-size: 28px;
    padding: 0 12px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  /* Ürün Grid Mobil */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .product-card {
    max-width: 100%;
  }

  /* Mobilde hover olmadığı için favori butonu sürekli görünür */
  .product-card .product-card__favorite {
    opacity: 1;
    width: 34px;
    height: 34px;
    top: 8px;
    right: 8px;
  }

  /* Button Mobil */
  .btn {
    width: 100%;
    max-width: 100%;
  }

  /* Form Mobil */
  .form-row {
    grid-template-columns: 1fr;
  }

  .input,
  .select,
  .textarea {
    width: 100%;
    font-size: 16px; /* iOS zoom önleme */
  }

  /* Checkout Mobil */
  .checkout-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .checkout-summary {
    position: static;
    margin-top: 24px;
  }

  /* Cart Mobil */
  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 16px;
  }

  /* Search Modal Mobil */
  .search-modal__content {
    margin: 0 12px;
    max-width: calc(100% - 24px);
  }

  .search-results__list {
    grid-template-columns: 1fr;
  }

  /* Kategori Mobil */
  .category-header__title {
    font-size: 24px;
  }

  .categories__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==================== WIDE SCREENS (1440px ve üzeri) ==================== */

@media (min-width: 1440px) {
  /* Container */
  .container {
    max-width: 1600px;
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Category Grid */
  .categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hero */
  .hero {
    height: 700px;
  }

  .hero__title {
    font-size: var(--text-6xl);
  }
}

/* ==================== TABLET LANDSCAPE (1024px) ==================== */

@media (min-width: 769px) and (max-width: 1024px) {
  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Categories */
  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== PRINT STYLES ==================== */

@media print {
  .header,
  .footer,
  .header__actions,
  .product-card__favorite,
  .product-card__add-to-cart,
  .cta-banner,
  .filter-sidebar,
  .category-toolbar {
    display: none !important;
  }

  body {
    background-color: white;
    color: black;
  }

  .product-card,
  .cart-item {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* ==================== MOBILE OVERFLOW FIX ==================== */

@media (max-width: 768px) {
  table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
  }

  .container,
  .legal-page__content,
  .legal-section {
    overflow-x: hidden;
    max-width: 100%;
  }

  p, li, td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  code, pre {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-all;
    white-space: pre-wrap;
  }
}

/* ==================== TOUCH TARGETS (min 44px - Apple HIG) ==================== */

@media (max-width: 768px) {
  .header__icon-btn,
  .header__mobile-toggle,
  .header__user-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header__nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 14px 0;
  }

  .btn:not(.product-card__add-to-cart) {
    min-height: 48px;
    padding: 12px 20px;
  }

  .cart-item__quantity-btn,
  .cart-item__remove {
    min-width: 44px;
    min-height: 44px;
  }

  .search-modal__close,
  .filter-sidebar__close {
    min-width: 44px;
    min-height: 44px;
  }

  .size-option,
  .color-option {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ==================== SAFE AREA (notch / home indicator) ==================== */

@supports (padding: env(safe-area-inset-bottom)) {
  .footer__bottom,
  .footer__content {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .whatsapp-float {
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
  }
}

/* ==================== EXTRA SMALL PHONES (360px ve altı) ==================== */

@media (max-width: 360px) {
  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card__title {
    font-size: 13px;
  }

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

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

  .footer__payment-band {
    height: 20px;
  }

  .payment-logos__badge {
    height: 38px;
  }

  .header__logo {
    font-size: 16px;
  }

  /* Product detail - çok küçük ekranlar */
  .product-detail__title {
    font-size: var(--text-lg) !important;
  }

  .product-detail__actions .quantity-selector button,
  .product-detail__actions #addToCartBtn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: var(--text-sm);
  }

  .size-option,
  .color-option {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
    font-size: var(--text-xs);
  }

  .tab-link {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}

/* ==================== DARK MODE (Opsiyonel) ==================== */

@media (prefers-color-scheme: dark) {
  /* Dark mode stilleri buraya eklenebilir */
  /* Şu an için aktif değil */
}

/* ==================== REDUCED MOTION (Accessibility) ==================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== HIGH CONTRAST MODE (Accessibility) ==================== */

@media (prefers-contrast: high) {
  .btn,
  .product-card,
  .cart-item {
    border: 2px solid currentColor;
  }

  .product-card:hover {
    box-shadow: 0 0 0 3px currentColor;
  }
}

/* ==================== PRODUCT CARD MOBILE TUNING ==================== */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card__content {
    padding: 10px;
  }

  .product-card__title {
    font-size: 13px;
    font-weight: var(--weight-bold);
    line-height: 1.35;
  }

  .product-card__price {
    font-size: var(--text-base);
  }

  .product-card__add-to-cart {
    height: 34px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card__image-wrapper {
    padding-top: 120%;
  }

  .product-card__content {
    padding: 8px;
  }

  .product-card__title {
    font-size: 12px;
  }

  .product-card__price {
    font-size: 14px;
  }

  .product-card .product-card__favorite {
    width: 32px;
    height: 32px;
    top: 6px;
    right: 6px;
  }
}
