/**
 * Custom Shop Layout for Medacsi Care
 * Complete redesign with hero section and sidebar
 * 
 * @package Medacsi Care Child
 */

/* ============================================
   FORCE DISPLAY CUSTOM TEMPLATE
   ============================================ */

/* Hide WoodMart default elements */
body.woocommerce-shop .wd-builder-on,
body.woocommerce-shop .woodmart-archive-shop {
    /* Don't hide, just let custom template show */
}

/* Make custom shop wrapper visible and priority */
.custom-shop-page-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ============================================
   CUSTOM SHOP HERO SECTION
   ============================================ */

.custom-shop-hero-section {
    background: linear-gradient(135deg, #17538F 0%, #3AB8AE 100%);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0 0 40px 0;
    max-width: none;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.shop-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.shop-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.shop-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: white;
    line-height: 1.2;
}

.shop-hero-subtitle {
    font-size: 18px;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Hero Search Bar */
.hero-search-bar {
    max-width: 600px;
    margin: 30px auto;
}

.hero-search-bar form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-search-bar input[type="search"] {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.hero-search-bar button {
    background: #17538F;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-bar button:hover {
    background: #3AB8AE;
    transform: scale(1.05);
}

/* Hero Features */
.shop-hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 20px;
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   CUSTOM SHOP CONTAINER (2-COLUMN LAYOUT)
   ============================================ */

.custom-shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   CUSTOM SIDEBAR
   ============================================ */

.custom-shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.custom-shop-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(23, 83, 143, 0.1);
}

.custom-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #17538F;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.custom-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
}

.custom-category-item:hover {
    background: #17538F;
    color: white;
    transform: translateX(5px);
}

.custom-category-name {
    font-weight: 600;
    font-size: 15px;
}

.custom-category-count {
    font-size: 13px;
    opacity: 0.7;
}

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

.custom-price-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.custom-apply-filter-btn {
    width: 100%;
    padding: 12px;
    background: #FFCE12;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-apply-filter-btn:hover {
    background: #FFD84D;
    transform: scale(1.02);
}

/* ============================================
   PRODUCTS AREA
   ============================================ */

.custom-shop-products-area {
    min-height: 500px;
}

.custom-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .custom-shop-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .custom-shop-sidebar {
        position: static;
        order: 2;
    }
    
    .shop-hero-title {
        font-size: 32px;
    }
    
    .shop-hero-features {
        gap: 15px;
    }
}

/* ============================================
   WELCOME BANNER FOR NEW USERS
   ============================================ */

.shop-welcome-banner {
    background: linear-gradient(135deg, #17538F 0%, #3AB8AE 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(23, 83, 143, 0.2);
    position: relative;
    overflow: hidden;
}

.shop-welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shop-welcome-banner h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
}

.shop-welcome-banner p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ============================================
   QUICK CATEGORY NAVIGATION
   ============================================ */

.shop-category-nav {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.shop-category-nav h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #17538F;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-category-nav h3::before {
    content: '🏷️';
    font-size: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.category-card-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(58, 184, 174, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card-link:hover::before {
    left: 100%;
}

.category-card-link:hover {
    border-color: #3AB8AE;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(58, 184, 174, 0.2);
}

.category-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.category-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #17538F;
    margin: 0 0 5px 0;
}

.category-count {
    font-size: 0.9rem;
    color: #666;
}

/* ============================================
   SEARCH & FILTER BAR
   ============================================ */

.shop-toolbar {
    background: white;
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.shop-search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.shop-search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.shop-search-box input:focus {
    border-color: #3AB8AE;
    outline: none;
    box-shadow: 0 0 0 4px rgba(58, 184, 174, 0.1);
}

.shop-search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3AB8AE, #2a8a82);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-search-box button:hover {
    background: linear-gradient(135deg, #2e9a91, #238075);
    transform: translateY(-50%) scale(1.05);
}

/* ============================================
   ADVANCED FILTERS SECTION
   ============================================ */

.shop-filters-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Sidebar Filters */
.shop-filters-sidebar {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filters-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #17538F;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filters-header h3::before {
    content: '🔍';
    font-size: 1.5rem;
}

.clear-filters {
    background: transparent;
    color: #ff6b6b;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #fff5f5;
    transform: scale(1.05);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 30px;
}

.filter-group-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #17538F;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.filter-group-title::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.filter-group-title.collapsed::after {
    transform: rotate(-90deg);
}

.filter-group-content {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-group-content.collapsed {
    max-height: 0;
}

/* Price Range Slider */
.price-filter {
    padding: 10px 0;
}

.price-range-slider {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 25px 0 20px;
}

.price-range-progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(135deg, #3AB8AE, #2a8a82);
    border-radius: 3px;
}

.price-inputs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.price-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.price-input-group input:focus {
    border-color: #3AB8AE;
    outline: none;
}

/* Checkbox Filters */
.filter-checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-checkbox-list::-webkit-scrollbar {
    width: 6px;
}

.filter-checkbox-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.filter-checkbox-list::-webkit-scrollbar-thumb {
    background: #3AB8AE;
    border-radius: 3px;
}

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

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

.filter-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #3AB8AE;
}

.filter-checkbox-item label {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.filter-count {
    font-size: 0.85rem;
    color: #999;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Active Filters Display */
.active-filters {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.active-filters-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #17538F;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.active-filter-tag:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.remove-filter {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-filter:hover {
    transform: scale(1.2);
}

/* Apply Filters Button */
.apply-filters-btn {
    width: 100%;
    background: #FFCE12;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.apply-filters-btn:hover {
    background: #FFD84D;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 206, 18, 0.5);
}

/* Products Main Area */
.shop-products-main {
    min-width: 0;
}

/* Mobile Toggle for Filters */
.mobile-filter-toggle {
    display: none;
    background: linear-gradient(135deg, #17538F, #104272);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.mobile-filter-toggle:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(23, 83, 143, 0.3);
}

/* ============================================
   PAGE HEADER
   ============================================ */

.woocommerce .page-header,
.woocommerce-products-header {
    background: linear-gradient(135deg, #17538F 0%, #104272 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(23, 83, 143, 0.2);
}

.woocommerce .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.woocommerce-products-header__title,
.page-title {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: white !important;
    position: relative;
    z-index: 1;
}

.term-description {
    font-size: 1.1rem;
    margin-top: 15px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* ============================================
   RESULT COUNT & ORDERING
   ============================================ */

.woocommerce-result-count {
    color: #555;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
    border-color: #3AB8AE;
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 184, 174, 0.1);
}

.woocommerce::before,
.woocommerce::after {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   TRUST BADGES SECTION
   ============================================ */

.shop-trust-badges {
    background: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.trust-badge-icon {
    font-size: 2rem;
}

.trust-badge-text {
    text-align: left;
}

.trust-badge-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #17538F;
    margin-bottom: 2px;
}

.trust-badge-text span {
    font-size: 0.85rem;
    color: #666;
}

/* ============================================
   PRODUCT GRID WITH SECTION HEADER
   ============================================ */

.products-section-header {
    text-align: center;
    margin: 40px 0 30px;
}

.products-section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #17538F;
    margin: 0 0 10px 0;
}

.products-section-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e8e8e8;
    display: flex !important;
    flex-direction: column;
    position: relative;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(58, 184, 174, 0.25);
    border-color: #3AB8AE;
}

/* Quick View Badge */
.woocommerce ul.products li.product::after {
    content: '👁️ Quick View';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(23, 83, 143, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.woocommerce ul.products li.product:hover::after {
    opacity: 1;
}

/* ============================================
   PRODUCT IMAGE
   ============================================ */

.woocommerce ul.products li.product img {
    width: 100%;
    height: 280px !important;
    object-fit: contain !important;
    transition: transform 0.4s ease;
    background: #f9f9f9;
    padding: 20px !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product a img {
    display: block;
}

/* ============================================
   SALE BADGE
   ============================================ */

.woocommerce span.onsale {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    background: #FFCE12 !important;
    color: #000 !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(255, 206, 18, 0.4) !important;
    margin: 0 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
}

/* ============================================
   PRODUCT TITLE
   ============================================ */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #17538F !important;
    margin: 15px 20px 10px !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none;
}

/* ============================================
   PRODUCT PRICE
   ============================================ */

.woocommerce ul.products li.product .price {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #3AB8AE !important;
    margin: 0 20px 15px !important;
    display: block !important;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.6;
    font-size: 0.85em;
    margin-right: 8px;
    color: #999;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 700;
}

/* ============================================
   STAR RATING
   ============================================ */

.woocommerce .star-rating {
    color: #FFA500 !important;
    margin: 0 20px 12px !important;
}

.woocommerce .star-rating::before {
    color: #e0e0e0 !important;
}

/* ============================================
   ADD TO CART BUTTON
   ============================================ */

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product button.add_to_cart_button,
.woocommerce ul.products li.product .ajax_add_to_cart,
.woocommerce ul.products li.product .product_type_simple,
.woocommerce ul.products li.product .product_type_variable {
    background: #FFCE12 !important;
    color: #000 !important;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 20px 20px !important;
    text-align: center !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(255, 206, 18, 0.3) !important;
    width: calc(100% - 40px) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
.woocommerce ul.products li.product button.add_to_cart_button:hover,
.woocommerce ul.products li.product .ajax_add_to_cart:hover,
.woocommerce ul.products li.product .product_type_simple:hover,
.woocommerce ul.products li.product .product_type_variable:hover {
    background: #FFD84D !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 206, 18, 0.5) !important;
}

.woocommerce ul.products li.product .button.loading {
    opacity: 0.7;
}

.woocommerce ul.products li.product .button.added {
    background: linear-gradient(135deg, #4CAF50, #388E3C) !important;
}

.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

/* ============================================
   PAGINATION
   ============================================ */

.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin: 50px 0 20px;
    padding: 30px 0;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: inline-flex;
    gap: 8px;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: white;
    color: #17538F;
    border: 2px solid #e0e0e0;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: linear-gradient(135deg, #3AB8AE, #2a8a82);
    color: white;
    border-color: #3AB8AE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 184, 174, 0.3);
}

/* ============================================
   SIDEBAR (IF PRESENT)
   ============================================ */

.woocommerce-page .sidebar,
.woocommerce .widget-area {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.woocommerce .widget {
    margin-bottom: 30px;
}

.woocommerce .widget .widget-title,
.woocommerce .widget h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #17538F;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3AB8AE;
}

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

/* Desktop: 3-4 cards */
@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Laptop/Tablet: Adjust filters */
@media (max-width: 1199px) {
    .shop-filters-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

/* Tablet: Hide filters sidebar, show mobile toggle */
@media (max-width: 992px) {
    .shop-filters-container {
        grid-template-columns: 1fr;
    }
    
    .shop-filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    }
    
    .shop-filters-sidebar.open {
        left: 0;
    }
    
    .mobile-filter-toggle {
        display: block;
    }
    
    .filters-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }
    
    .filters-overlay.active {
        display: block;
    }
    
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape: 2 cards */
@media (max-width: 767px) {
    .woocommerce ul.products li.product img {
        height: 240px !important;
    }
    
    .woocommerce .page-header,
    .woocommerce-products-header {
        padding: 40px 25px;
    }
    
    .shop-trust-badges {
        gap: 15px;
    }
    
    .trust-badge {
        flex: 1 1 calc(50% - 15px);
    }
}

/* Mobile Portrait: 1 card */
@media (max-width: 576px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 450px;
        margin: 0 auto !important;
    }
    
    .woocommerce ul.products li.product img {
        height: 280px !important;
    }
    
    .woocommerce .page-header,
    .woocommerce-products-header {
        padding: 30px 20px;
    }
    
    .woocommerce-products-header__title,
    .page-title {
        font-size: 1.8rem !important;
    }
    
    .woocommerce::before,
    .woocommerce::after {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .woocommerce-ordering select {
        width: 100%;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-trust-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .trust-badge {
        width: 100%;
    }
    
    .shop-filters-sidebar {
        width: 100%;
        left: -100%;
    }
}

/* ============================================
   NO PRODUCTS MESSAGE
   ============================================ */

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
    background: #E3F2FD;
    color: #17538F;
    border-top: 3px solid #3AB8AE;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before {
    color: #3AB8AE;
}

/* ============================================
   LOADING STATE
   ============================================ */

.woocommerce ul.products li.product.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */

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

.woocommerce ul.products li.product {
    animation: fadeIn 0.4s ease-out backwards;
}

.woocommerce ul.products li.product:nth-child(1) { animation-delay: 0.05s; }
.woocommerce ul.products li.product:nth-child(2) { animation-delay: 0.1s; }
.woocommerce ul.products li.product:nth-child(3) { animation-delay: 0.15s; }
.woocommerce ul.products li.product:nth-child(4) { animation-delay: 0.2s; }
.woocommerce ul.products li.product:nth-child(5) { animation-delay: 0.25s; }
.woocommerce ul.products li.product:nth-child(6) { animation-delay: 0.3s; }
