/*
Theme Name: Novoshop
Theme URI: https://example.com/novoshop
Author: Your Name
Description: قالب فروشگاهی نمونه Novoshop — پشتیبانی از WooCommerce و پنل تنظیمات ساده (موبایل-ریسپانسیو، RTL tuned)
Version: 1.3
Text Domain: novoshop
Tags: ecommerce, shop, woocommerce, rtl
*/

/* Google Fonts removed - using system fonts instead */

:root{
  --primary:var(--primary-color, #ff6600);
  --text:#222;
  --muted:#6b7280;
  --container:1620px;
  --gap:18px;
  --radius:8px;
}

/* RTL tuning */
html[dir="rtl"]{ direction: rtl; }

/* Base */
html, body{ overflow-x: hidden; }
body{ font-family: var(--novoshop-body-font, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); color:var(--text); line-height:var(--novoshop-line-height, 1.6); margin:0; background:#f4f5f9; }
.container{ max-width:var(--container); margin:0 auto; padding:0 16px; box-sizing:border-box; }

/*
 * Elementor full-width compatibility:
 * Theme wraps all content in `.site-main.container`. For Elementor pages
 * this wrapper can create asymmetric empty space around full-width hero/banner
 * sections (especially on RTL + mobile). Keep container behavior for normal
 * pages, but release width constraints for Elementor-built pages.
 */
body.elementor-page .site-main.container,
body[class*="elementor-page-"] .site-main.container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Typography from Redux */
h1, h2, h3, h4, h5, h6 { font-family: var(--novoshop-heading-font, var(--novoshop-body-font, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif)); }
input, textarea, select, button { font-family: var(--novoshop-body-font, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); }

/* Header */
.site-header{ background:#fff; border-bottom:1px solid #eee; padding:0px 0; position:relative; z-index:60; }
.logo img{ height:44px; display:block; }
.header-right{ float:left; } /* will be reversed by RTL */

/* Clearfix */
.clearfix::after{ content:''; display:block; clear:both; }

/* Navigation */
.main-navigation{ position:relative; }
.main-navigation ul{ list-style:none; margin:0; padding:0; display:flex; gap:12px; align-items:center; }
.main-navigation a{ display:block; padding:12px 14px; text-decoration:none; color:var(--text); font-weight:600; }

/* Submenu */
.main-navigation .sub-menu{ position:absolute; left:0; right:0; display:none; background:#fff; box-shadow:0 6px 20px rgba(0,0,0,0.06); padding:18px; list-style:none; }
.main-navigation li{ position:relative; }

/* Product grid */
.products-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:var(--gap); margin:24px 0; }
.product-card{ background:#fff; border:1px solid #eee; padding:12px; border-radius:8px; transition:box-shadow .18s ease; }
.product-card:hover{ box-shadow:0 8px 24px rgba(0,0,0,0.06); }
.product-card img{ max-width:100%; height:auto; display:block; border-radius:6px; }
.product-title{ font-size:15px; margin:10px 0; color:var(--text); min-height:38px; }
.price{ font-weight:700; color:var(--primary); font-size:16px; }

/* Single product */
.novoshop-product-single{ display:flex; gap:32px; padding:28px 0; align-items:flex-start; }
.product-left{ width:48%; }
.product-right{ width:52%; }
.product-price{ font-size:22px; font-weight:700; color:var(--primary); margin:8px 0; }
.product-short-desc{ color:var(--muted); margin:12px 0; }

/* Gallery thumbs */
.product-gallery .gallery-thumbs{ display:flex; gap:8px; margin-top:12px; }
.product-gallery .gallery-thumbs img{ cursor:pointer; width:72px; height:72px; object-fit:cover; border-radius:6px; border:1px solid #eee; }

/* Filters */
.shop-container{ display:flex; gap:24px; padding:24px 0; }
.shop-filters{ width:280px; flex:0 0 280px; background:#fff; padding:16px; border:1px solid #eee; border-radius:8px; height:fit-content; }
.shop-products{ flex:1; }

/* Buttons */
button:not(.add_to_cart_button):not(.single_add_to_cart_button), 
.button:not(.add_to_cart_button):not(.single_add_to_cart_button) { 
    background: var(--button-color, var(--primary-color, var(--primary))); 
    color: var(--button-text-color, #fff); 
    border: none; 
    /* padding: 10px 14px;  */
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600; 
}

/* ============================================
   RESPONSIVE DESIGN SYSTEM
   ============================================ */

/* Mobile First Base Styles (320px+) */
/* Base mobile styles are already defined above */

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
  /* Typography */
  body { font-size: 14px; line-height: 1.5; }
  
  /* Container */
  .container { padding: 0 12px; }
  
  /* Header Mobile */
  .site-header { padding: 0px 0; }
  .header-logo img { max-height: 35px; }
  
  /* Product Grid Mobile */
  .products-grid { 
    grid-template-columns: 1fr; 
    gap: 12px; 
    margin: 16px 0; 
  }
  
  .product-card { padding: 10px; }
  .product-title { font-size: 14px; min-height: auto; margin: 8px 0; }
  .price { font-size: 15px; }
  
  /* Single Product Mobile */
  .novoshop-product-single { 
    flex-direction: column; 
    gap: 20px; 
    padding: 16px 0; 
  }
  .product-left, .product-right { width: 100%; }
  .product-price { font-size: 18px; }
  
  /* Shop Layout Mobile */
  .shop-container { 
    flex-direction: column; 
    gap: 16px; 
    padding: 16px 0; 
  }
  .shop-filters { 
    width: 100%; 
    margin-bottom: 0; 
    padding: 12px; 
  }
  .shop-products { width: 100%; }
  
  /* Buttons Mobile */
  .button { padding: 8px 12px; font-size: 13px; }
  
  /* Gallery Mobile */
  .product-gallery .gallery-thumbs { 
    gap: 6px; 
    margin-top: 8px; 
  }
  .product-gallery .gallery-thumbs img { 
    width: 50px; 
    height: 50px; 
  }
  
  /* Navigation Mobile */
  .main-navigation { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* Large Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  
  .products-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
  }
  .product-card { padding: 12px; }
  
  .novoshop-product-single { 
    flex-direction: column; 
    gap: 24px; 
  }
  .product-left, .product-right { width: 100%; }
  
  .shop-container { 
    flex-direction: column; 
    gap: 20px; 
  }
  .shop-filters { width: 100%; }
  
  .main-navigation { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  
  .products-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 18px; 
  }
  
  .novoshop-product-single { 
    flex-direction: row; 
    gap: 28px; 
  }
  .product-left { width: 45%; }
  .product-right { width: 55%; }
  
  .shop-container { 
    flex-direction: row; 
    gap: 24px; 
  }
  .shop-filters { 
    width: 250px; 
    flex: 0 0 250px; 
  }
  .shop-products { flex: 1; }
  
  .main-navigation { display: block; }
  .mobile-menu-toggle { display: none; }
}

/* Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .container { padding: 0 24px; }
  
  .products-grid { 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
  }
  
  .novoshop-product-single { gap: 32px; }
  .product-left { width: 48%; }
  .product-right { width: 52%; }
  
  .shop-filters { 
    width: 280px; 
    flex: 0 0 280px; 
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .container { padding: 0 32px; }
  
  .products-grid { 
    grid-template-columns: repeat(5, 1fr); 
    gap: 24px; 
  }
  
  .novoshop-product-single { gap: 40px; }
  
  .shop-filters { 
    width: 320px; 
    flex: 0 0 320px; 
  }
}

/* ============================================
   MOBILE-SPECIFIC ENHANCEMENTS
   ============================================ */

/* Touch-friendly elements */
@media (max-width: 767px) {
  /* Larger touch targets */
  .button, .user-link, .cart-link, .action-icon a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improved spacing */
  .product-card { margin-bottom: 16px; }
  
  /* Better form elements */
  .search-field, .search-category {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Swipe gestures for mobile */
  .product-gallery { touch-action: pan-x; }
  
  /* Mobile-specific animations */
  .novoshop-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .novoshop-menu.mobile-menu-open {
    transform: translateX(0);
  }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
  .header-content {
    flex-direction: row;
    gap: 15px;
  }
  
  .header-search { order: 2; flex: 1; }
  .header-actions { order: 3; }
  
  .novoshop-menu {
    width: 100%;
    height: auto;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: translateY(100%);
  }
  
  .novoshop-menu.mobile-menu-open {
    transform: translateY(0);
  }
}

/* ============================================
   HIGH DPI DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .product-card img, .header-logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header, .mobile-menu-toggle, .header-actions-icons, .shop-filters {
    display: none !important;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
}

/* ============================================
   UTILITY CLASSES FOR RESPONSIVE DESIGN
   ============================================ */

/* Hide on mobile */
.hide-mobile { display: block; }
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

/* Show only on mobile */
.show-mobile { display: none; }
@media (max-width: 767px) {
  .show-mobile { display: block !important; }
}

/* Hide on tablet and below */
.hide-tablet { display: block; }
@media (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

/* Show only on desktop */
.show-desktop { display: none; }
@media (min-width: 1024px) {
  .show-desktop { display: block !important; }
}

/* Responsive text alignment */
.text-center-mobile { text-align: left; }
@media (max-width: 767px) {
  .text-center-mobile { text-align: center; }
}

/* Responsive spacing */
.padding-mobile { padding: 20px; }
@media (max-width: 767px) {
  .padding-mobile { padding: 12px; }
}

/* Responsive grid */
.grid-mobile-1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
@media (max-width: 767px) {
  .grid-mobile-1 { grid-template-columns: 1fr; }
}

/* RTL small fix: float directions */
html[dir="rtl"] .header-right{ float:right; }

/* Hide YITH Wishlist button completely from single product page */
.single-product .yith-add-to-wishlist-button-block,
.single-product .yith-wcwl-add-to-wishlist,
.single-product .yith-wcwl-add-to-wishlist-button,
.single-product .wd-single-wishlist-btn,
.single-product .wd-wishlist-icon,
.single-product .yith-wcwl-add-to-wishlist--single,
.single-product .yith-wcwl-add-to-wishlist--text-style,
.single-product .yith-wcwl-add-to-wishlist--icon-style,
.single-product .yith-wcwl-add-to-wishlist--button-style {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Hide default WooCommerce product meta (category, SKU, etc.) */
.single-product .product_meta,
.single-product .posted_in,
.single-product .tagged_as,
.single-product .sku_wrapper {
    display: none !important;
}

/* Minimal product tags styling */
.novoshop-minimal-tags {
    margin: 8px 0 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.minimal-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 11px;
    font-weight: 400;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.minimal-tag:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

/* RTL support for tags */
html[dir="rtl"] .novoshop-minimal-tags {
    direction: rtl;
}

html[dir="rtl"] .minimal-tag {
    font-family: 'Tahoma', 'Arial', sans-serif;
}
.e-con>.e-con-inner{
  max-width: 100% !important; 
}

/* ============================================
   WOOCOMMERCE NOTICES - MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    display: block !important;
    padding: 15px !important;
    margin: 10px 15px 15px !important;
    text-align: center !important;
  }
  
  .woocommerce-message .button,
  .woocommerce-message a.button,
  .woocommerce-info .button,
  .woocommerce-info a.button,
  .woocommerce-error .button,
  .woocommerce-error a.button {
    display: block !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 12px 20px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* ============================================
   ACCESSIBILITY - SCREEN READER TEXT
   ============================================ */
/* Hide text visually but keep it accessible to screen readers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* When focused (e.g., via keyboard navigation), show the text */
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}/**
 * Modern Minimal Archive Styles for Novoshop
 * Category & Archive Pages Design
 */

/* ========================================
   Archive Page Container
======================================== */
.novoshop-archive-page {
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* ========================================
   Category Banner
======================================== */
.category-banner {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 50px;
}

.category-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-banner .category-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.category-banner .category-description {
    font-size: 16px;
    color: #f0f0f0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Minimal Header
======================================== */
.archive-header.minimal-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.archive-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.archive-title {
    font-size: 42px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.archive-description {
    font-size: 16px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Archive Toolbar
======================================== */
.archive-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-count {
    font-size: 15px;
    color: #666666;
    font-weight: 500;
}

/* Filter Toggle Button */
.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.filter-toggle-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.filter-toggle-btn svg {
    transition: transform 0.3s ease;
}

.filter-toggle-btn.active svg {
    transform: rotate(90deg);
}

/* View Mode Switcher */
.view-mode-switcher {
    display: flex;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
}

.view-mode {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.view-mode:hover {
    background: #f5f5f5;
    color: #333;
}

.view-mode.active {
    background: #1a1a1a;
    color: #ffffff;
}

/* Archive Ordering */
.archive-ordering select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-ordering select:hover {
    border-color: #bbb;
}

.archive-ordering select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* ========================================
   Filters Panel
======================================== */
.filters-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.filters-panel.active {
    right: 0;
}

.filters-inner {
    padding: 0;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
}

.filters-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.close-filters {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-filters:hover {
    background: #f5f5f5;
}

.filters-content {
    padding: 20px 30px;
}

/* Filter Group */
.filter-group {
    margin-bottom: 35px;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

/* Price Filter */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.price-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.price-separator {
    color: #999;
    font-size: 14px;
}

.price-slider-container {
    padding: 10px 0;
}

#price-slider {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.filter-checkbox:hover {
    padding-right: 5px;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a1a1a;
}

.filter-label {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.filter-count {
    font-size: 13px;
    color: #999;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.apply-filters-btn,
.reset-filters-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filters-btn {
    background: #1a1a1a;
    color: #ffffff;
}

.apply-filters-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reset-filters-btn {
    background: #f5f5f5;
    color: #666;
}

.reset-filters-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Filters Overlay */
.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filters-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Products Grid
======================================== */
.archive-products-wrapper {
    padding: 20px 0;
}

.products-grid {
    display: grid;
    grid-gap: 20px;
    margin-bottom: 50px;
}

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

.products-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

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

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

.products-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* List View */
.products-grid.list-mode {
    grid-template-columns: 1fr !important;
}

.products-grid.list-mode .product-card {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 25px;
    padding: 25px;
}

/* ========================================
   No Products Found
======================================== */
.no-products-found {
    text-align: center;
    padding: 80px 20px;
}

.no-products-icon {
    margin-bottom: 25px;
    opacity: 0.3;
}

.no-products-icon svg {
    width: 80px;
    height: 80px;
    color: #666;
}

.no-products-found h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.no-products-found p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-back-shop {
    display: inline-block;
    padding: 14px 32px;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-shop:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ========================================
   Pagination
======================================== */
.archive-pagination {
    padding: 40px 0;
    text-align: center;
}

.archive-pagination .woocommerce-pagination {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
}

.archive-pagination .page-numbers li {
    list-style: none;
}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers a:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-2px);
}

.archive-pagination .page-numbers .current {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

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

@media (max-width: 992px) {
    .category-banner {
        height: 280px;
    }
    
    .category-banner .category-title {
        font-size: 36px;
    }
    
    .archive-title {
        font-size: 32px;
    }
    
    .products-grid.columns-4,
    .products-grid.columns-5,
    .products-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .archive-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .filters-panel {
        width: 100%;
        right: -100%;
    }
    
    .category-banner {
        height: 220px;
    }
    
    .category-banner .category-title {
        font-size: 28px;
    }
    
    .archive-title {
        font-size: 26px;
    }
    
    .products-grid.columns-3,
    .products-grid.columns-4,
    .products-grid.columns-5,
    .products-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid.list-mode .product-card {
        grid-template-columns: 1fr;
    }
    
    .view-mode-switcher {
        order: -1;
    }
}

@media (max-width: 480px) {
    .archive-header.minimal-header {
        padding: 40px 0 30px;
    }
    
    .archive-title {
        font-size: 22px;
    }
    
    .category-banner {
        height: 180px;
    }
    
    .products-grid {
        grid-gap: 15px;
    }
    
    .products-grid.columns-2,
    .products-grid.columns-3,
    .products-grid.columns-4,
    .products-grid.columns-5,
    .products-grid.columns-6 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Loading State
======================================== */
.products-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/**
 * Modern Minimal Product Card Styles
 * Novoshop Theme
 */

/* ========================================
   Product Card Base
======================================== */
.product-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card * {
    box-sizing: border-box;
}

/* Hover Effects */
.product-card.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-card.hover-shadow:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-card.hover-zoom:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-card.hover-fade:hover {
    opacity: 0.9;
}

/* Out of Stock */
.product-card.out-of-stock {
    opacity: 0.7;
}

.product-card.out-of-stock .product-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    z-index: 1;
}

/* ========================================
   Product Image
======================================== */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ========================================
   Product Badges
======================================== */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.badge-sale {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #ffffff;
}

.badge-stock {
    background: rgba(108, 117, 125, 0.95);
    color: #ffffff;
}

.badge-featured {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333333;
}

/* ========================================
   Quick Actions
======================================== */
.product-quick-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

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

.quick-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--button-text-color, #fff) !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: var(--button-color, #fff) !important;
}

.quick-action:hover {
    background: #1a1a1a;
    color: #ffffff;
    transform: scale(1.1);
}

.quick-action svg {
    width: 18px;
    height: 18px;
}

.quick-action.wishlist-btn.active {
    background: #ff6b6b;
    color: #ffffff;
}

.quick-action.wishlist-btn.active svg {
    fill: currentColor;
}

/* ========================================
   Product Details
======================================== */
.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Product Category */
.product-category {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-category a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-category a:hover {
    color: #1a1a1a;
}

/* Product Title */
.product-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #666;
}

/* Product Excerpt */
.product-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Product Rating
======================================== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 14px;
    color: #ddd;
}

.star.filled {
    color: #ffc107;
}

.rating-count {
    font-size: 12px;
    color: #999;
}

/* ========================================
   Product Footer
======================================== */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Product Price */
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.product-price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}

.product-price ins {
    text-decoration: none;
    color: #ff6b6b;
}

/* Product Actions */
.product-actions {
    flex: 1;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-cart-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn svg {
    width: 18px;
    height: 18px;
}

.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

.out-of-stock-btn {
    background: #999;
    cursor: not-allowed;
}

.out-of-stock-btn:hover {
    background: #999;
    transform: none;
    box-shadow: none;
}

/* ========================================
   Card Variations
======================================== */

/* Minimal Style */
.product-card-minimal {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.product-card-minimal:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Modern Style */
.product-card-modern {
    border: 1px solid #e0e0e0;
}

.product-card-modern:hover {
    border-color: #1a1a1a;
}

/* Elegant Style */
.product-card-elegant {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-radius: 16px;
}

.product-card-elegant .product-image-wrapper {
    border-radius: 12px;
    margin: 10px;
}

.product-card-elegant:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ========================================
   List View Mode
======================================== */
.products-grid.list-mode .product-card {
    flex-direction: row;
}

.products-grid.list-mode .product-image-wrapper {
    width: 250px;
    flex-shrink: 0;
}

.products-grid.list-mode .product-details {
    flex: 1;
    padding: 25px;
}

.products-grid.list-mode .product-title {
    font-size: 20px;
}

.products-grid.list-mode .product-excerpt {
    display: block;
    -webkit-line-clamp: 3;
}

.products-grid.list-mode .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.products-grid.list-mode .product-actions {
    width: auto;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .product-quick-actions {
        opacity: 1;
        transform: translateX(0);
    }
    
    .quick-action {
        width: 36px;
        height: 36px;
    }
    
    .product-details {
        padding: 15px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .add-to-cart-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .products-grid.list-mode .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-mode .product-image-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-badges {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .product-quick-actions {
        flex-direction: row;
        left: 10px;
        top: auto;
        bottom: 10px;
    }
    
    .quick-action {
        width: 32px;
        height: 32px;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .add-to-cart-btn span {
        font-size: 12px;
    }
}

/* ========================================
   Animations
======================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease;
}

/* Stagger animation for grid items */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   Print Styles
======================================== */
@media print {
    .product-quick-actions,
    .product-actions {
        display: none;
    }
}

