/**
 * Shop Page Styles - ChegôSJK
 * 
 * Modern WooCommerce Shop Design
 * Best Practices: SEO, UX, Accessibility
 * 
 * Versão 2.0.0 - Design System #9b6f50
 * Variáveis importadas de variables.css
 * 
 * @package monsitheme
 * @version 2.0.0
 */

/* ==========================================
   SHOP-SPECIFIC ALIASES
   Usando variáveis do Design System
   ========================================== */
   :root {
    /* Cores usando a nova paleta primária #9b6f50 */
    --coffee-dark: var(--color-neutral-950);
    --coffee-medium: var(--color-neutral-800);
    --coffee-brown: var(--color-neutral-700);
    --coffee-light: var(--color-primary-500);
    --coffee-tan: var(--color-primary-400);
    --coffee-cream: var(--color-neutral-200);
    --coffee-milk: var(--color-neutral-50);
    --gold: var(--color-secondary-500);
    --success: var(--color-success-500);
    --error: var(--color-error-500);
}

/* ==========================================
   UTILITIES
   ========================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.shop-breadcrumb {
    background: var(--coffee-cream);
    padding: 0px;
    padding-top: 68px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: var(--coffee-tan);
}

.breadcrumb-list a {
    color: var(--coffee-brown);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--coffee-dark);
}

.breadcrumb-list .current {
    color: var(--coffee-dark);
    font-weight: 500;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.shop-hero {
    padding: 48px 0 32px;
    background: linear-gradient(135deg, var(--coffee-cream) 0%, var(--coffee-milk) 100%);
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
}

.shop-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--coffee-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.shop-description {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: var(--coffee-brown);
    line-height: 1.6;
    margin-bottom: 8px;
}

.shop-count {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--coffee-light);
    margin: 0;
}

/* ==========================================
   CATEGORY PILLS
   ========================================== */
.category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--coffee-brown);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pill:hover {
    border-color: var(--coffee-tan);
    background: rgba(212, 165, 116, 0.1);
    color: var(--coffee-dark);
}

.pill.active {
    background: var(--coffee-dark);
    border-color: var(--coffee-dark);
    color: white;
}

.pill .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 12px;
}

.pill.active .count {
    background: rgba(255,255,255,0.2);
}

/* ==========================================
   MAIN LAYOUT
   ========================================== */
.shop-main {
    padding: 60px 0 100px;
    background: var(--coffee-milk);
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* ==========================================
   SIDEBAR FILTERS
   ========================================== */
.shop-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

.sidebar-header h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--coffee-dark);
    margin: 0;
}

.close-filters {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--coffee-cream);
    border: none;
    border-radius: 50%;
    color: var(--coffee-brown);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--coffee-dark);
    margin-bottom: 16px;
}

.filter-title svg {
    color: var(--coffee-tan);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--coffee-brown);
    transition: color 0.2s;
}

.filter-checkbox:hover {
    color: var(--coffee-dark);
}

.filter-checkbox input {
    display: none;
}

.filter-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox .checkmark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--coffee-tan);
    border-radius: 3px;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.filter-checkbox input:checked + .checkmark {
    border-color: var(--coffee-tan);
}

.filter-checkbox input:checked + .checkmark::after {
    transform: scale(1);
}

.filter-checkbox .count {
    margin-left: auto;
    color: var(--coffee-light);
    font-size: 13px;
}

/* ==========================================
   PRICE INPUTS
   ========================================== */
.price-inputs {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.price-field {
    flex: 1;
}

.price-field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--coffee-light);
    margin-bottom: 6px;
}

.price-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--coffee-dark);
    background: var(--coffee-milk);
    transition: all 0.3s ease;
}

.price-field input:focus {
    outline: none;
    border-color: var(--coffee-tan);
    background: white;
}

.price-separator {
    color: var(--coffee-light);
    padding-bottom: 12px;
}

/* ==========================================
   FILTER ACTIONS
   ========================================== */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

.btn-apply-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: var(--coffee-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-filters:hover {
    background: var(--coffee-medium);
    transform: translateY(-2px);
}

.btn-clear-filters {
    display: block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--coffee-light);
    text-decoration: none;
}

.btn-clear-filters:hover {
    color: var(--error);
    text-decoration: underline;
}

/* ==========================================
   TOOLBAR
   ========================================== */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

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

.filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--coffee-cream);
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--coffee-brown);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background: var(--coffee-tan);
    color: white;
}

.results-count {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--coffee-brown);
    margin: 0;
}

.results-count strong {
    color: var(--coffee-dark);
}

/* ==========================================
   VIEW TOGGLE
   ========================================== */
.view-toggle {
    display: flex;
    background: var(--coffee-cream);
    border-radius: 10px;
    padding: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coffee-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: var(--coffee-dark);
}

.view-btn.active {
    background: white;
    color: var(--coffee-dark);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   SORT DROPDOWN
   ========================================== */
.sort-dropdown {
    position: relative;
}

.orderby-select {
    appearance: none;
    padding: 10px 40px 10px 16px;
    background: white;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--coffee-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.orderby-select:focus {
    outline: none;
    border-color: var(--coffee-tan);
}

.sort-dropdown .select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--coffee-light);
}

/* ==========================================
   ACTIVE FILTERS
   ========================================== */
.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 12px;
}

.active-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--coffee-brown);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--coffee-dark);
}

.filter-tag a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--coffee-cream);
    border-radius: 50%;
    color: var(--coffee-brown);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s;
}

.filter-tag a:hover {
    background: var(--error);
    color: white;
}

.clear-all {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--error);
    text-decoration: none;
    margin-left: auto;
}

.clear-all:hover {
    text-decoration: underline;
}

/* ==========================================
   PRODUCTS GRID
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

/* ==========================================
   PRODUCT CARD
   ========================================== */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--coffee-cream);
}

.image-wrapper {
    width: 100%;
    height: 100%;
}

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

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

/* ==========================================
   BADGES
   ========================================== */
.badge {
    position: absolute;
    z-index: 5;
    padding: 6px 12px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sale-badge {
    top: 14px;
    left: 14px;
    background: var(--error);
    color: white;
}

.featured-badge {
    top: 14px;
    right: 14px;
    background: var(--gold);
    color: var(--coffee-dark);
}

.out-badge {
    top: 14px;
    left: 14px;
    background: rgba(0,0,0,0.7);
    color: white;
}

/* ==========================================
   QUICK ACTIONS
   ========================================== */
.quick-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .quick-actions {
    transform: translateY(0);
}

.quick-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--coffee-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-add-btn:hover {
    background: var(--coffee-dark);
    color: white;
}

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

/* ==========================================
   PRODUCT INFO
   ========================================== */
.product-info {
    padding: 20px;
}

.product-category {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--coffee-tan);
    margin-bottom: 8px;
}

.product-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.product-name a {
    color: var(--coffee-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.product-name a:hover {
    color: var(--coffee-tan);
}

/* ==========================================
   RATING
   ========================================== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--coffee-cream);
}

.star.filled {
    color: var(--gold);
}

.rating-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--coffee-light);
}

/* ==========================================
   PRICE
   ========================================== */
.product-price {
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--coffee-dark);
}

.product-price del {
    font-size: 14px;
    color: var(--coffee-light);
    font-weight: 400;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
    color: var(--coffee-dark);
}

/* ==========================================
   LIST VIEW
   ========================================== */
.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.products-grid.list-view .product-image {
    aspect-ratio: 1;
}

.products-grid.list-view .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
}

.products-grid.list-view .product-name {
    font-size: 20px;
}

.products-grid.list-view .product-price {
    font-size: 22px;
}

/* ==========================================
   PAGINATION
   ========================================== */
.shop-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
}

.pagination-info {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--coffee-light);
}

.pagination-links ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-links li a,
.pagination-links li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: white;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--coffee-brown);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 6px;
}

.pagination-links li a:hover {
    background: var(--coffee-cream);
    border-color: var(--coffee-tan);
    color: var(--coffee-dark);
}

.pagination-links li span.current {
    background: var(--coffee-dark);
    border-color: var(--coffee-dark);
    color: white;
}

.pagination-links li.prev a,
.pagination-links li.next a {
    padding: 0 20px;
}

/* ==========================================
   NO PRODUCTS
   ========================================== */
.no-products {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.no-products-icon {
    width: 100px;
    height: 100px;
    background: var(--coffee-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--coffee-light);
}

.no-products h2 {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--coffee-dark);
    margin-bottom: 12px;
}

.no-products p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--coffee-brown);
    margin-bottom: 28px;
}

.btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--coffee-dark);
    color: white;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    background: var(--coffee-medium);
    transform: translateY(-2px);
}

/* ==========================================
   SIDEBAR OVERLAY
   ========================================== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 11, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   RESPONSIVE - LARGE SCREENS
   ========================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-layout {
        grid-template-columns: 260px 1fr;
        gap: 32px;
    }
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 90vw;
        height: 100vh;
        border-radius: 0;
        z-index: 2000;
        overflow-y: auto;
        transition: left 0.4s ease;
    }
    
    .shop-sidebar.open {
        left: 0;
    }
    
    .close-filters {
        display: flex;
    }
    
    .filter-toggle {
        display: flex;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .shop-hero {
        padding: 40px 0 32px;
    }
    
    .shop-title {
        font-size: 32px;
    }
    
    .shop-description {
        font-size: 16px;
    }
    
    .category-pills {
        gap: 8px;
    }
    
    .pill {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        justify-content: space-between;
    }
    
    .products-grid {
        gap: 20px;
    }
    
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE
   ========================================== */
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-name {
        font-size: 16px;
    }
}

