/* ========================================
   OrganikMarket - Responsive Stil Dosyası
   Tüm ekran boyutları için uyarlamalar
   ======================================== */

/* ========================================
   Extra Large: max-width 1400px
   ======================================== */
@media (max-width: 1400px) {
  .container {
    max-width: 1180px;
  }

  .container-lg {
    max-width: 1280px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr;
    gap: 1.75rem;
  }

  .mega-menu {
    min-width: 600px;
    max-width: 800px;
  }

  .hero-slider .slides-wrapper {
    height: 440px;
  }

  .products-grid {
    gap: 1.25rem;
  }

  .categories-grid {
    gap: 1rem;
  }
}

/* ========================================
   Large: max-width 1200px
   ======================================== */
@media (max-width: 1200px) {
  :root {
    --font-heading-size-h1: 2.5rem;
  }

  .container {
    max-width: 960px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-grid > .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .trust-badges-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .hero-slider .slides-wrapper {
    height: 400px;
  }

  .slide-content h2 {
    font-size: 2.25rem;
  }

  .checkout-grid {
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
  }

  .product-detail-grid {
    gap: 2rem;
  }

  .product-gallery-main {
    height: 400px;
  }

  .mega-menu {
    min-width: 550px;
  }
}

/* ========================================
   Medium: max-width 992px (Tablet)
   ======================================== */
@media (max-width: 992px) {
  :root {
    --font-heading-size-h1: 2rem;
    --font-heading-size-h2: 1.65rem;
  }

  .container {
    max-width: 720px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  h3 { font-size: 1.35rem; }

  .section {
    padding: 3rem 0;
  }

  .section-lg {
    padding: 3.5rem 0;
  }

  /* Header */
  .top-bar {
    font-size: 0.78rem;
  }

  .top-bar-left {
    gap: 1rem;
  }

  .header-search {
    max-width: 400px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav,
  .header-bottom .nav-link {
    display: none;
  }

  /* Hero */
  .hero-slider .slides-wrapper {
    height: 340px;
  }

  .slide-content {
    padding: 1.5rem 2rem;
  }

  .slide-content h2 {
    font-size: 1.85rem;
  }

  .slide-content p {
    font-size: 0.95rem;
  }

  .slider-arrows {
    display: none;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .product-card-image {
    height: 180px;
  }

  /* Campaigns */
  .campaigns-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .campaign-card {
    height: 220px;
  }

  /* Trust Badges */
  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-grid > .footer-col:nth-child(5) {
    grid-column: 1 / -1;
  }

  /* Product Detail */
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    position: static;
  }

  .product-gallery-main {
    height: 360px;
  }

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

  .cart-summary {
    position: static;
  }

  .cart-table-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem;
    position: relative;
  }

  .cart-item-price {
    display: none;
  }

  .cart-item-remove {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

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

  .order-review {
    position: static;
  }

  /* Mega menu hidden on tablet */
  .mega-menu {
    display: none;
  }

  .dropdown-menu {
    display: none;
  }

  /* Auth */
  .auth-form {
    padding: 2rem;
  }
}

/* ========================================
   Small: max-width 768px (Mobile)
   ======================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.1rem; }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.92rem;
  }

  /* Top Bar */
  .top-bar {
    display: none;
  }

  /* Header */
  .main-header {
    top: 0;
  }

  .header-middle {
    padding: 0.75rem 0;
  }

  .header-middle .container {
    gap: 0.75rem;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo-img {
    height: 38px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .logo-tagline {
    display: none;
  }

  .header-search {
    flex: 1;
    max-width: none;
  }

  .header-search .search-form select {
    display: none;
  }

  .header-search .search-form {
    border-radius: var(--radius-xl);
  }

  .header-actions {
    gap: 0.25rem;
  }

  .header-action-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .header-bottom {
    display: none;
  }

  /* Mobile menu */
  .mobile-menu {
    width: 290px;
  }

  /* Hero */
  .hero-slider .slides-wrapper {
    height: 280px;
  }

  .slide-content {
    padding: 1.25rem;
    max-width: 100%;
  }

  .slide-content h2 {
    font-size: 1.55rem;
    margin-bottom: 0.5rem;
  }

  .slide-content p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-content .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
  }

  .slider-dots {
    bottom: 1rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .product-card-image {
    height: 160px;
  }

  .product-card-body {
    padding: 0.75rem;
  }

  .product-card-title {
    font-size: 0.85rem;
  }

  .product-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .product-price .current-price {
    font-size: 1rem;
  }

  .product-card-actions {
    opacity: 1;
    transform: translateX(0);
  }

  .product-add-to-cart-quick {
    transform: translateY(0);
    position: static;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .category-card-image {
    height: 100px;
  }

  .category-card-body {
    padding: 0.6rem 0.5rem;
  }

  .category-card-name {
    font-size: 0.8rem;
  }

  /* Featured Tabs */
  .featured-tabs {
    gap: 0.35rem;
  }

  .featured-tab {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Campaigns */
  .campaign-card {
    height: 200px;
  }

  .campaign-card-content h3 {
    font-size: 1.25rem;
  }

  .campaign-card-content .campaign-discount {
    font-size: 1.5rem;
  }

  /* Trust Badges */
  .trust-badges {
    padding: 2rem 0;
  }

  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .trust-badge {
    padding: 1rem 0.75rem;
  }

  .trust-badge-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .trust-badge h4 {
    font-size: 0.85rem;
  }

  .trust-badge p {
    font-size: 0.75rem;
  }

  /* Newsletter */
  .newsletter-section {
    padding: 3rem 0;
  }

  .newsletter-content h2 {
    font-size: 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  /* Product Detail */
  .product-gallery-main {
    height: 300px;
  }

  .product-gallery-thumbs .thumb {
    width: 60px;
    height: 60px;
  }

  .product-info h1 {
    font-size: 1.35rem;
  }

  .product-info .product-price-box .main-price {
    font-size: 1.5rem;
  }

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

  .product-actions .btn-add-cart {
    width: 100%;
  }

  .product-actions .btn-wishlist {
    width: 100%;
  }

  .product-guarantees {
    grid-template-columns: 1fr;
  }

  /* Product Tabs */
  .product-tabs .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-tabs .tab-btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.78rem;
    padding: 0.75rem 0;
  }

  /* Pagination */
  .pagination {
    gap: 0.25rem;
  }

  .pagination-link {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  /* Cart */
  .cart-item {
    padding: 1rem;
  }

  .cart-item-info {
    gap: 0.75rem;
  }

  .cart-item-image {
    width: 65px;
    height: 65px;
  }

  .cart-item-details h4 {
    font-size: 0.85rem;
  }

  .coupon-input {
    flex-direction: column;
  }

  /* Checkout Progress */
  .checkout-progress {
    padding: 1rem;
    gap: 0;
  }

  .checkout-step .step-label {
    display: none;
  }

  .checkout-step-connector {
    width: 30px;
    margin: 0 0.35rem;
  }

  /* Checkout */
  .checkout-form {
    padding: 1.25rem;
  }

  .order-review {
    padding: 1.25rem;
  }

  /* Footer */
  .footer {
    padding-top: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-col h4 {
    margin-bottom: 1rem;
  }

  .footer-col h4::after {
    display: none;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* Auth */
  .auth-page {
    padding: 1.5rem 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .auth-form {
    padding: 1.75rem 1.25rem;
  }

  .auth-form .auth-title {
    font-size: 1.25rem;
  }

  .social-login {
    flex-direction: column;
  }

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

  /* Modal */
  .modal {
    max-width: 95%;
    margin: 1rem auto;
    max-height: 90vh;
  }

  .modal-overlay {
    padding: 1rem;
    align-items: flex-end;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
  }

  .quick-view-image {
    height: 250px;
  }

  /* Back to top */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  /* Toast */
  .toast-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  /* List view */
  .products-list .product-card {
    grid-template-columns: 1fr;
  }

  .products-list .product-card-image {
    height: 200px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  /* Compare bar */
  .compare-bar {
    left: 1rem;
    right: 1rem;
    transform: none;
    width: auto;
    padding: 0.75rem 1rem;
  }

  .compare-bar .compare-items {
    overflow-x: auto;
    gap: 0.5rem;
  }

  /* Sort & filter bar */
  .sort-dropdown label {
    display: none;
  }

  /* Section title */
  .section-title .subtitle {
    font-size: 0.75rem;
  }

  /* Skeleton */
  .skeleton-image {
    height: 160px;
  }
}

/* ========================================
   Extra Small: max-width 576px
   ======================================== */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 0.85rem;
  }

  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  .section {
    padding: 2rem 0;
  }

  .section-sm {
    padding: 1.5rem 0;
  }

  /* Header */
  .header-search {
    display: none;
  }

  .header-middle .container {
    justify-content: space-between;
  }

  .header-action-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .header-action-btn .action-label {
    display: block;
    font-size: 0.6rem;
    position: absolute;
    bottom: 2px;
  }

  /* Hero */
  .hero-slider .slides-wrapper {
    height: 220px;
    border-radius: 0;
  }

  .hero-slider {
    border-radius: 0;
  }

  .slide-content {
    padding: 1rem;
  }

  .slide-content h2 {
    font-size: 1.3rem;
  }

  .slide-content p {
    display: none;
  }

  .slide-content .slide-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.5rem;
  }

  .slider-dots .dot {
    width: 8px;
    height: 8px;
  }

  .slider-dots .dot.active {
    width: 22px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .product-card-image {
    height: 140px;
  }

  .product-card-body {
    padding: 0.6rem;
  }

  .product-card-category {
    font-size: 0.68rem;
  }

  .product-card-title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .product-card-rating {
    margin-bottom: 0.35rem;
  }

  .product-card-footer {
    padding-top: 0.35rem;
  }

  .product-price .current-price {
    font-size: 0.92rem;
  }

  .product-price .old-price {
    font-size: 0.75rem;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .category-card-image {
    height: 85px;
  }

  .category-card-body {
    padding: 0.5rem;
  }

  .category-card-name {
    font-size: 0.75rem;
  }

  .category-card-count {
    font-size: 0.68rem;
  }

  /* Campaigns */
  .campaign-card {
    height: 180px;
  }

  .campaign-card-content {
    padding: 1.25rem;
  }

  .campaign-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }

  .campaign-card-content p {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
  }

  .campaign-card-content .campaign-discount {
    font-size: 1.3rem;
  }

  /* Trust Badges */
  .trust-badges-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .trust-badge {
    padding: 0.85rem 0.5rem;
  }

  .trust-badge-icon {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .trust-badge h4 {
    font-size: 0.78rem;
  }

  .trust-badge p {
    font-size: 0.7rem;
  }

  /* Product Detail */
  .product-gallery-main {
    height: 250px;
  }

  .product-gallery-thumbs {
    gap: 0.5rem;
  }

  .product-gallery-thumbs .thumb {
    width: 50px;
    height: 50px;
  }

  .product-info h1 {
    font-size: 1.15rem;
  }

  .product-info .product-description-short {
    font-size: 0.85rem;
  }

  .product-info .product-price-box {
    padding: 1rem;
  }

  .product-info .product-price-box .main-price {
    font-size: 1.3rem;
  }

  /* Cart */
  .cart-item-image {
    width: 55px;
    height: 55px;
  }

  .cart-summary {
    padding: 1.25rem;
  }

  .cart-summary h3 {
    font-size: 1rem;
  }

  /* Checkout */
  .checkout-progress {
    padding: 0.75rem;
  }

  .checkout-step .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .checkout-step-connector {
    width: 20px;
  }

  /* Auth */
  .auth-form {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .auth-form .auth-title {
    font-size: 1.15rem;
  }

  /* Buttons */
  .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }

  .btn-xl {
    padding: 0.95rem 2rem;
    font-size: 1rem;
  }

  /* Footer */
  .footer-grid {
    gap: 1.5rem;
  }

  .footer-about .footer-logo .logo-text {
    font-size: 1.1rem;
  }

  .footer-newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-newsletter-form input {
    border-right: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
  }

  .footer-newsletter-form button {
    border-radius: var(--radius-sm);
  }

  /* Modal */
  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-footer {
    padding: 0.85rem 1.25rem;
  }

  .modal-footer .btn {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  /* Toast */
  .toast {
    padding: 0.85rem 1rem;
  }

  .toast-content .toast-title {
    font-size: 0.82rem;
  }

  .toast-content .toast-message {
    font-size: 0.78rem;
  }

  /* Pagination */
  .pagination {
    gap: 0.2rem;
  }

  .pagination-link {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  /* Empty state */
  .empty-state {
    padding: 2rem 1rem;
  }

  .empty-state-icon {
    font-size: 2.5rem;
  }
}

/* ========================================
   Very Small: max-width 375px
   ======================================== */
@media (max-width: 375px) {
  html {
    font-size: 13px;
  }

  .container {
    padding: 0 0.75rem;
  }

  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }

  /* Header */
  .logo-img {
    height: 32px;
  }

  .logo-text {
    font-size: 1rem;
  }

  /* Hero */
  .hero-slider .slides-wrapper {
    height: 190px;
  }

  .slide-content h2 {
    font-size: 1.15rem;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .product-card-image {
    height: 120px;
  }

  .product-card-body {
    padding: 0.5rem;
  }

  .product-card-title {
    font-size: 0.75rem;
    -webkit-line-clamp: 1;
  }

  .product-card-weight {
    display: none;
  }

  .product-card-rating {
    display: none;
  }

  .product-price .current-price {
    font-size: 0.85rem;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category-card-image {
    height: 80px;
  }

  /* Cart */
  .cart-item-image {
    width: 48px;
    height: 48px;
  }

  .cart-item-details h4 {
    font-size: 0.78rem;
  }

  /* Campaigns */
  .campaign-card {
    height: 160px;
  }

  .campaign-card-content h3 {
    font-size: 1rem;
  }

  /* Auth */
  .auth-form {
    padding: 1.25rem 0.85rem;
  }

  .social-login-btn {
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
  }

  .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Product detail */
  .product-gallery-main {
    height: 220px;
  }

  .product-info .product-price-box .main-price {
    font-size: 1.15rem;
  }

  /* Footer */
  .footer-social a {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  /* Checkout */
  .order-review-item {
    gap: 0.65rem;
    padding: 0.65rem 0;
  }

  .order-review-item img {
    width: 44px;
    height: 44px;
  }
}

/* ========================================
   Touch Devices (hover: none)
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .product-card:hover {
    transform: none;
  }

  .product-card:hover .product-card-image img {
    transform: none;
  }

  .product-card-actions {
    opacity: 1;
    transform: translateX(0);
  }

  .product-add-to-cart-quick {
    transform: translateY(0);
  }

  .category-card:hover {
    transform: none;
  }

  .campaign-card:hover {
    transform: none;
  }

  .campaign-card:hover .campaign-card-bg {
    transform: none;
  }

  .trust-badge:hover {
    transform: none;
  }

  .trust-badge:hover .trust-badge-icon {
    background: var(--white);
    color: var(--primary);
    transform: none;
  }

  /* Make links and buttons more tap-friendly */
  .nav-link {
    padding: 0.95rem 1rem;
  }

  .btn {
    min-height: 44px;
  }

  .header-action-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .pagination-link {
    width: 44px;
    height: 44px;
  }

  /* Disable all dropdown hovers */
  .dropdown-menu,
  .mega-menu {
    display: none !important;
  }

  /* Mega menu via click handled by JS */
  .mega-menu.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Disable tooltip on touch */
  .tooltip-wrapper .tooltip {
    display: none;
  }
}

/* ========================================
   Landscape orientation on mobile
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-slider .slides-wrapper {
    height: 220px;
  }

  .slide-content h2 {
    font-size: 1.25rem;
  }

  .slide-content p {
    display: none;
  }

  .auth-page {
    align-items: flex-start;
    padding-top: 1rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    overflow: visible;
  }

  a, a:visited {
    text-decoration: underline;
    color: #000 !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  h2, h3 {
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Hide unnecessary elements */
  .top-bar,
  .main-header,
  .header-bottom,
  .hero-slider,
  .slider-dots,
  .slider-arrows,
  .mobile-menu-toggle,
  .mobile-menu,
  .mobile-overlay,
  .back-to-top,
  .toast-container,
  .modal-overlay,
  .footer,
  .footer-bottom,
  .newsletter-section,
  .btn,
  .product-card-actions,
  .product-add-to-cart-quick,
  .nav-link::after,
  .compare-bar,
  .breadcrumb,
  .pagination {
    display: none !important;
  }

  /* Product cards for printing */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

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

  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .product-price .current-price {
    font-weight: 700;
  }

  /* Cart table */
  .cart-table {
    border: 1px solid #ddd;
  }

  .cart-item {
    border-bottom: 1px solid #ddd;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .cart-item-price,
  .cart-item-remove {
    display: block;
  }

  .cart-summary {
    border: 1px solid #ddd;
    padding: 1rem;
  }

  /* Section titles */
  .section-title h2 {
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
  }

  /* Footer for print */
  .print-footer {
    display: block !important;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #000;
    font-size: 10pt;
    color: #666;
  }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slider .slide {
    opacity: 1;
    visibility: visible;
  }

  .hero-slider .slide:not(.active) {
    display: none;
  }

  .product-card:hover {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   High Contrast
   ======================================== */
@media (prefers-contrast: high) {
  :root {
    --border: #666;
    --text-light: #555;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
  }

  .btn {
    border-width: 2px;
  }

  .btn-primary {
    border-color: var(--primary-dark);
  }

  .form-control {
    border-width: 2px;
  }

  .product-card {
    border-width: 2px;
  }

  .nav-link::after {
    height: 3px;
  }
}

/* ========================================
   Dark Mode Media Query (optional)
   ======================================== */
@media (prefers-color-scheme: dark) {
  /* Placeholder for future dark mode support */
  /* These styles only apply if user prefers dark mode
     and the site has dark mode enabled via class */
}

/* ========================================
   Responsive Grid Helpers
   ======================================== */
@media (max-width: 992px) {
  .grid-4, .grid-5, .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-4, .grid-5, .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-6 {
    grid-template-columns: 1fr;
  }
}

/* Responsive Flex */
@media (max-width: 768px) {
  .flex-responsive {
    flex-direction: column;
    gap: 1rem;
  }

  .flex-between-responsive {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .show-mobile-flex {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }

  .show-desktop {
    display: block !important;
  }

  .show-desktop-flex {
    display: flex !important;
  }
}
