/*
=============================================
  PRODUCT CATEGORY TEMPLATE - LAYOUT ONLY
  Shop/Category Page Specific Styling
=============================================
*/

/* Typography Improvements */
.custom-product-category-template {
    font-family: var(--font-family-base);
    color: var(--neutral-1000);
    background: var(--neutral-100);
    line-height: 1.6;
}

.custom-product-category-template h1,
.custom-product-category-template h2,
.custom-product-category-template h3,
.custom-product-category-template h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--neutral-1000);
}

.custom-product-category-template p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.custom-product-category-template a {
    color: var(--ul-red-200);
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-product-category-template a:hover {
    color: var(--ul-red-300);
}

/* Hero Banner Section */
.hero-banner-section {
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--ul-red-30) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--ul-blue-30) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-main {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

/* Category breadcrumb styles now handled by header.css for consistency */
/* All breadcrumbs use consistent bold red larger font - removed conflicting styles */

.current-category {
    color: var(--neutral-1000);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--neutral-1000);
    margin: 0 0 25px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.category-description {
    font-size: 1.2rem;
    color: var(--neutral-700);
    line-height: 1.6;
    margin: 25px 0 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ul-red-200);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-right {
    position: relative;
}

.hero-models {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    position: relative;
}

.model {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.placeholder-model {
    background: var(--neutral-100);
    border: 2px dashed var(--neutral-300);
    padding: 50px 25px;
    border-radius: 10px;
    color: var(--neutral-600);
    font-weight: 500;
    font-size: 14px;
}

/* Section Titles */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neutral-1000);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ul-red-200);
    border-radius: 2px;
}

/* Featured Categories Section */
.featured-categories-section {
    padding: 80px 0;
    background: var(--neutral-100);
    position: relative;
}

.featured-categories-grid {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: transform 0.3s ease;
}

.featured-categories-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.featured-categories-grid.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    transition: none;
}

.featured-categories-grid.dragging .featured-category-card {
    pointer-events: none;
}

/* Ensure pointer events are restored when not dragging */
.featured-categories-grid:not(.dragging) .featured-category-card {
    pointer-events: auto;
}

/* FORCE clickability - override any blocking styles */
.featured-category-card,
.featured-category-card a,
.subcategory-item,
.subcategory-item a {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 999 !important;
}

/* Ensure the grid itself doesn't block clicks */
.featured-categories-grid {
    pointer-events: auto !important;
}

/* Remove any potential overlays */
.featured-categories-grid::before,
.featured-categories-grid::after,
.featured-category-card::before,
.featured-category-card::after {
    pointer-events: none !important;
}

.featured-category-card {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.featured-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-categories-grid.dragging .featured-category-card:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-card-image {
    height: 180px;
    background: var(--neutral-50);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.category-card-content {
    padding: 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-1000);
    margin: 0;
    line-height: 1.3;
}

.category-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--ul-red-200);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.featured-category-card:hover .category-card-arrow {
    background: var(--ul-red-300);
    transform: scale(1.1);
}

.featured-category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.featured-category-card a:focus {
    outline: 2px solid var(--ul-red-200);
    outline-offset: 2px;
    border-radius: 12px;
}

.placeholder-image {
    color: var(--neutral-600);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    background: var(--neutral-200);
    border-radius: 8px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subcategories Section */
.subcategories-section {
    padding: 60px 0;
    background: var(--neutral-100);
    border-top: 1px solid var(--neutral-200);
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.subcategory-card {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.subcategory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--ul-blue-200);
}

.subcategory-image {
    height: 140px;
    background: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.subcategory-content {
    padding: 20px 15px;
    text-align: center;
}

.subcategory-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-1000);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.subcategory-count {
    font-size: 0.8rem;
    color: var(--neutral-600);
    font-weight: 400;
}

.placeholder-subcategory-image {
    color: var(--neutral-600);
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    padding: 15px;
}

/* No Child Categories Message */
.no-child-categories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: var(--neutral-100);
    border-radius: 12px;
    border: 2px dashed var(--neutral-300);
    margin: 20px 0;
}

.no-child-categories p {
    color: var(--neutral-700);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.featured-category-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.featured-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.featured-category-card:hover img {
    transform: scale(1.05);
}

/* Category card focus states for accessibility */
.featured-category-card:focus-within {
    outline: 2px solid var(--ul-red-200);
    outline-offset: 2px;
}

.category-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-right: 20px;
}

.nav-button {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    color: var(--neutral-800);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-button:hover {
    background: var(--ul-red-200);
    color: #ffffff;
    border-color: var(--ul-red-200);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--neutral-50);
    color: var(--neutral-500);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-button:disabled:hover {
    background: var(--neutral-50);
    color: var(--neutral-500);
    border-color: rgba(0, 0, 0, 0.1);
    transform: none;
}

/* Main Content Section */
.main-content-section {
    padding: 80px 0;
    background: var(--neutral-100);
    min-height: 100vh;
}

.content-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar Filters - Now handled by woocommerce.css as fixed overlay */
/* Old sidebar styles removed - sidebar is now position: fixed */

.filter-section {
    margin-bottom: 45px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-1000);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.filter-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--ul-red-200);
}

.price-filter {
    border-bottom: 1px solid var(--neutral-200);
    padding-bottom: 30px;
}

.price-slider {
    margin-bottom: 20px;
}

.price-range-slider {
    margin-bottom: 15px;
}

.slider-track {
    background: var(--ul-red-200);
    height: 6px;
    border-radius: 3px;
    position: relative;
    margin: 20px 0;
}

.slider-track::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20%;
    width: 20px;
    height: 20px;
    background: var(--ul-red-200);
    border-radius: 50%;
    border: 3px solid var(--neutral-100);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-track::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 20%;
    width: 20px;
    height: 20px;
    background: var(--ul-red-200);
    border-radius: 50%;
    border: 3px solid var(--neutral-100);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.price-display {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-range {
    font-size: 14px;
    color: var(--neutral-700);
    font-weight: 500;
}

.filter-button {
    background: var(--ul-blue-300);
    color: var(--neutral-100);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-button:hover {
    background: var(--ul-blue-400);
}

.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    margin-bottom: 12px;
}

.filter-link {
    color: var(--neutral-1000);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: block;
    padding: 6px 0;
    position: relative;
}

.filter-link:hover,
.filter-link.active {
    color: var(--ul-red-200);
}

.filter-link.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: var(--ul-red-200);
    border-radius: 50%;
}

/* ==========================================================================
   Product Controls - Refactored Layout
   ========================================================================== */

.product-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Search Form - Left Side */
.product-controls .product-search-form,
.product-controls form.woocommerce-product-search {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0; /* Allow flex shrinking */
    background-color: transparent !important; /* Override dark background from shop-archive.css */
    border-radius: 0;
    padding: 0;
    border: none;
    overflow: visible;
}

.product-controls .product-search-form .search-field,
.product-controls form.woocommerce-product-search input[type="search"] {
    width: 100%;
    padding: 0 16px 0 40px;
    border: 1px solid var(--neutral-200);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Stolzl', sans-serif;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.33, 1);
    background: #ffffff !important; /* Force white background */
    color: var(--neutral-1000) !important; /* Force dark text */
    height: 44px;
    line-height: 44px;
    box-sizing: border-box;
}

.product-controls .product-search-form .search-field::placeholder,
.product-controls form.woocommerce-product-search input[type="search"]::placeholder {
    color: var(--neutral-500) !important; /* Override white placeholder from shop-archive.css */
    opacity: 1;
}

.product-controls .product-search-form .search-field:focus,
.product-controls form.woocommerce-product-search input[type="search"]:focus {
    outline: none;
    border-color: var(--ul-red-200);
    box-shadow: 0 0 0 3px rgba(229, 54, 19, 0.12), 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff !important;
    color: var(--neutral-1000) !important;
}

/* Search icon positioning - positioned relative to form container */
.product-controls .product-search-form::before,
.product-controls form.woocommerce-product-search::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    margin-left: 12px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.6;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.product-controls .product-search-form:focus-within::before,
.product-controls form.woocommerce-product-search:focus-within::before {
    opacity: 0.7;
}

/* Filter Toggle Button - Middle */
.filter-toggle-control {
    flex-shrink: 0;
}

.filter-toggle-btn {
    background: var(--ul-red-200);
    color: var(--neutral-100);
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.33, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(229, 54, 19, 0.25);
    height: 44px;
    line-height: 44px;
    box-sizing: border-box;
}

.filter-toggle-btn:hover {
    background: var(--ul-red-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 54, 19, 0.35);
}

.filter-toggle-btn.active {
    background: var(--ul-red-200);
    box-shadow: 0 2px 8px rgba(229, 54, 19, 0.3);
}

.filter-toggle-btn.active:hover {
    background: var(--ul-red-300);
}

.filter-toggle-btn .filter-icon {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.filter-toggle-btn .filter-text {
    font-size: 13px;
}

.filter-toggle-btn .filter-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--neutral-1000);
    color: var(--neutral-100);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ul-red-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Sort Control - Right Side */
.sort-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.results-count {
    font-size: 12px;
    color: var(--neutral-600);
    font-weight: 500;
    white-space: nowrap;
    font-family: 'Stolzl', sans-serif;
    letter-spacing: 0.1px;
    padding: 0 12px;
    height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* WooCommerce ordering dropdown styling */
.woocommerce-ordering {
    position: relative;
    flex-shrink: 0;
}

.woocommerce-ordering select {
    padding: 0 32px 0 12px;
    border: 1px solid var(--neutral-200);
    border-radius: 6px;
    background: var(--neutral-50);
    font-size: 13px;
    color: var(--neutral-1000);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.33, 1);
    width: auto;
    max-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    font-family: 'Stolzl', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 44px;
    line-height: 44px;
    box-sizing: border-box;
}

.woocommerce-ordering select:hover {
    border-color: var(--neutral-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
    transform: translateY(-2px);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23E53613' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--ul-red-200);
    box-shadow: 0 0 0 3px rgba(229, 54, 19, 0.12), 0 2px 8px rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23E53613' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.woocommerce-ordering select:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Custom dropdown arrow wrapper for better styling */
.woocommerce-ordering::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.2s ease;
}

.woocommerce-ordering:hover::after {
    transform: translateY(-50%) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .product-controls {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .sort-control {
        justify-content: space-between;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid var(--neutral-200);
        margin-top: 0;
    }

    .results-count {
        font-size: 12px;
        padding: 0;
        height: auto;
        order: -1;
        text-align: center;
        width: 100%;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--neutral-200);
        margin-bottom: 0;
    }

    .filter-toggle-btn,
    .woocommerce-ordering select,
    .product-controls .product-search-form .search-field {
        height: 44px;
        line-height: 44px;
    }
    
    .woocommerce-ordering select {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-controls {
        padding: 16px;
        gap: 16px;
    }

    .filter-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .sort-control {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 16px;
    }

    .results-count {
        font-size: 12px;
        padding-bottom: 16px;
    }

    .woocommerce-ordering {
        width: 100%;
    }

    .woocommerce-ordering select {
        width: 100%;
        min-width: 0;
    }

    .product-controls .product-search-form .search-field {
        padding-left: 44px;
    }
}

/* Product Grid - 4 columns desktop, 3 tablet, 2 mobile */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #ffffff !important;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    height: fit-content;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--ul-red-200);
}

.product-image {
    height: 280px;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--neutral-200);
}

.placeholder-product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: var(--neutral-200);
}

.product-outline {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.polo-front,
.polo-back {
    background: var(--neutral-100);
    border: 2px dashed var(--neutral-400);
    padding: 30px 25px;
    border-radius: 8px;
    color: var(--neutral-600);
    font-weight: 500;
    text-align: center;
    flex: 1;
    max-width: 90px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1.3;
}

.product-info {
    padding: 25px 20px;
    text-align: left;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-1000);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--ul-red-200);
    font-weight: 700;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.onsale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--ul-red-200);
    color: var(--neutral-100);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 12px var(--ul-red-30);
    z-index: 10;
}

.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    margin: 40px 0;
}

.no-products-found h2 {
    font-size: 2rem;
    color: var(--neutral-1000);
    margin-bottom: 20px;
    font-weight: 700;
}

.no-products-found p {
    color: var(--neutral-700);
    margin-bottom: 35px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pagination-wrapper {
    margin-top: 60px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }
    
    .featured-categories-grid {
        gap: 25px;
    }
    
    .featured-category-card {
        flex: 0 0 280px;
    }
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .featured-category-card {
        flex: 0 0 260px;
    }
    
    .product-image {
        height: 280px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 640px) /* Mobile breakpoint - standardized */ {
    /* Sidebar is now a fixed overlay - no layout changes needed */

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; /* Reduced from 20px for more product space */
    }
    
    .product-controls {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .sort-control {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--neutral-200);
    }
    
    .results-count {
        order: -1;
        text-align: center;
        width: 100%;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--neutral-200);
        height: auto;
    }

    .filter-toggle-btn,
    .woocommerce-ordering select,
    .product-controls .product-search-form .search-field {
        height: 44px;
        line-height: 44px;
    }
    
    .woocommerce-ordering select {
        max-width: 100%;
    }
    
    .hero-banner-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .hero-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .featured-categories-section,
    .subcategories-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .featured-categories-grid {
        gap: 20px;
        padding: 0 15px;
    }
    
    .featured-category-card {
        flex: 0 0 240px;
    }
    
    .category-card-image {
        height: 160px;
        padding: 15px;
    }
    
    .category-card-content {
        padding: 15px;
    }
    
    .category-card-title {
        font-size: 0.95rem;
    }
    
    .category-card-arrow {
        width: 28px;
        height: 28px;
    }
    
    .category-card-arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .subcategory-image {
        height: 120px;
    }
    
    .main-content-section {
        padding: 40px 0; /* Reduced from 60px for mobile */
    }

    .product-card {
        border-radius: 8px; /* Slightly smaller radius on mobile */
    }

    .product-image {
        height: 180px; /* Reduced from 240px for better mobile proportions */
    }

    .product-info {
        padding: 12px 10px; /* Reduced from 20px 15px for more compact cards */
    }

    .product-title {
        font-size: 0.875rem; /* Slightly smaller for mobile */
        -webkit-line-clamp: 3; /* Allow 3 lines on mobile instead of 2 */
        line-height: 1.35;
        margin-bottom: 8px;
    }
    
    .category-navigation {
        padding-right: 15px;
    }
    
    .nav-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 374px) {
    .hero-banner-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .hero-stats .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .featured-categories-grid {
        gap: 15px;
        padding: 0 10px;
    }

    .featured-category-card {
        flex: 0 0 200px;
    }

    .category-card-image {
        height: 130px;
        padding: 12px;
    }

    .category-card-content {
        padding: 12px;
    }

    .category-card-title {
        font-size: 0.9rem;
    }

    .category-card-arrow {
        width: 26px;
        height: 26px;
    }

    .category-card-arrow svg {
        width: 14px;
        height: 14px;
    }

    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on small screens */
        gap: 8px; /* Reduced gap for tiny screens */
    }

    .product-image {
        height: 160px; /* Smaller images for tiny screens */
    }

    .product-info {
        padding: 10px 8px;
    }

    .product-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 3; /* Allow 3 lines */
        line-height: 1.3;
    }

    .product-content {
        padding: 20px 10px;
    }

    .sidebar-filters {
        padding: 15px;
    }

    .content-layout {
        padding: 0 10px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .pagination-wrapper {
        margin-top: 40px;
    }
} 