/* ========================================
   SHOP PAGE STYLES
   ======================================== */

/* Shop Header */
.shop-header {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, #f8fcfd 0%, var(--bianco) 100%);
}

.shop-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

.shop-breadcrumb a {
    color: var(--azzurro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-breadcrumb a:hover {
    color: var(--azzurro-hover);
}

.shop-breadcrumb svg {
    width: 16px;
    height: 16px;
}

.shop-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--antracite);
    margin-bottom: 8px;
}

.shop-subtitle {
    font-size: 16px;
    color: #6B7280;
}

/* Shop Content */
.shop-content {
    padding: 40px 0 80px;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Mobile Filter Toggle */
.shop-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--azzurro) 0%, #5FB8CC 100%);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(127, 199, 217, 0.3);
}

.shop-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(127, 199, 217, 0.4);
}

.shop-filter-toggle svg {
    width: 20px;
    height: 20px;
}

.shop-filter-toggle .filter-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: white;
    color: var(--azzurro);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
}

/* Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bianco);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--antracite);
}

.sidebar-title svg {
    width: 22px;
    height: 22px;
    color: var(--azzurro);
}

.sidebar-close {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
}

.sidebar-close svg {
    width: 24px;
    height: 24px;
}

/* Sidebar Search */
.sidebar-search {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
}

.shop-search-container {
    position: relative;
}

.shop-search-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    color: var(--antracite);
    transition: all 0.3s ease;
}

.shop-search-input:focus {
    outline: none;
    border-color: var(--azzurro);
    background: white;
}

.shop-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    background: var(--azzurro);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.shop-search-btn:hover {
    background: var(--azzurro-hover);
}

.shop-search-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Search Results Dropdown */
.shop-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}

.shop-search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-loading {
    padding: 30px;
    text-align: center;
}

.search-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E5E7EB;
    border-top-color: var(--azzurro);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

.search-results-list {
    padding: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #F9FAFB;
}

.search-result-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #F3F4F6;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--antracite);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 13px;
    color: var(--azzurro);
    font-weight: 600;
}

.search-view-all {
    display: block;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--azzurro);
    border-top: 1px solid #E5E7EB;
    text-decoration: none;
    transition: background 0.2s ease;
}

.search-view-all:hover {
    background: #F9FAFB;
}

.search-no-results {
    padding: 30px;
    text-align: center;
    color: #6B7280;
    font-size: 14px;
}

/* Shop Filters */
.shop-filters {
    padding: 8px 0;
}

/* Active Filters */
.active-filters {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    background: linear-gradient(135deg, rgba(127, 199, 217, 0.08) 0%, rgba(127, 199, 217, 0.02) 100%);
}

.active-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
}

.clear-all-filters {
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #EF4444;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-all-filters:hover {
    color: #DC2626;
}

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

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bianco);
    border: 1px solid var(--azzurro);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--azzurro);
}

.active-filter-tag .remove-filter {
    display: flex;
    padding: 2px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--azzurro);
    transition: color 0.3s ease;
}

.active-filter-tag .remove-filter:hover {
    color: #EF4444;
}

.active-filter-tag .remove-filter svg {
    width: 14px;
    height: 14px;
}

/* Filter Groups */
.filter-group {
    border-bottom: 1px solid #E5E7EB;
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--antracite);
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-group-toggle:hover {
    background: #f8fcfd;
}

.filter-group-toggle svg {
    width: 18px;
    height: 18px;
    color: #9CA3AF;
    transition: transform 0.3s ease;
}

.filter-group-toggle.active svg {
    transform: rotate(180deg);
}

.filter-group-content {
    display: none;
    padding: 0 20px 16px;
}

.filter-group-content.open {
    display: block;
}

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

.filter-options-scrollable {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 8px;
}

.filter-options-scrollable::-webkit-scrollbar {
    width: 4px;
}

.filter-options-scrollable::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 2px;
}

.filter-options-scrollable::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 2px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-option:hover {
    background: #f8fcfd;
}

.filter-option input {
    display: none;
}

.filter-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    background: var(--bianco);
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.filter-option input:checked + .filter-checkbox {
    background: var(--azzurro);
    border-color: var(--azzurro);
}

.filter-option input:checked + .filter-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.filter-label {
    flex: 1;
    font-size: 14px;
    color: var(--antracite);
}

.filter-count {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 10px;
}

.filter-count-sale {
    background: #FEE2E2;
    color: #DC2626;
}

.filter-count-new {
    background: #D1FAE5;
    color: #059669;
}

/* Category with subcategories */
.filter-category-item {
    margin-bottom: 2px;
}

.filter-option-parent {
    display: flex;
    align-items: center;
    padding: 0;
}

.filter-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-option-label:hover {
    background: #f8fcfd;
}

.filter-option-label input {
    display: none;
}

.subcats-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.subcats-toggle:hover {
    background: var(--azzurro);
}

.subcats-toggle:hover svg {
    color: white;
}

.subcats-toggle svg {
    width: 16px;
    height: 16px;
    color: #6B7280;
    transition: all 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.filter-subcategories {
    display: none;
    padding-left: 24px;
    margin-top: 4px;
    border-left: 2px solid #E5E7EB;
    margin-left: 20px;
}

.filter-category-item.expanded .filter-subcategories {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-option-sub {
    padding: 8px 12px;
}

.filter-option-sub .filter-label {
    font-size: 13px;
    color: #6B7280;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    cursor: pointer;
}

.filter-tag input {
    display: none;
}

.filter-tag-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    color: #6B7280;
    transition: all 0.3s ease;
}

.filter-tag:hover .filter-tag-label {
    background: #E5E7EB;
}

.filter-tag input:checked + .filter-tag-label {
    background: rgba(127, 199, 217, 0.1);
    border-color: var(--azzurro);
    color: var(--azzurro);
}

.filter-tag-label .tag-count {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
}

/* Filter Search */
.filter-search {
    position: relative;
    margin-bottom: 12px;
}

.filter-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 13px;
    color: var(--antracite);
    transition: all 0.3s ease;
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--azzurro);
    background: var(--bianco);
}

.filter-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9CA3AF;
}

/* Price Range */
.price-range-filter {
    padding: 8px 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.price-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.price-currency {
    padding: 10px 12px;
    background: #F3F4F6;
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
}

.price-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--antracite);
    width: 100%;
}

.price-input-group input:focus {
    outline: none;
}

.price-separator {
    color: #D1D5DB;
    font-weight: 500;
}

/* Price Slider */
.price-slider-container {
    padding: 0 8px;
}

.price-slider {
    position: relative;
    height: 24px;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    transform: translateY(-50%);
}

.price-slider-range {
    position: absolute;
    top: 50%;
    height: 6px;
    background: linear-gradient(90deg, var(--azzurro) 0%, #4BA8C2 100%);
    border-radius: 3px;
    transform: translateY(-50%);
}

.price-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.price-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--bianco);
    border: 3px solid var(--azzurro);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.price-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.price-slider-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--bianco);
    border: 3px solid var(--azzurro);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Apply Button */
.filter-actions-mobile {
    display: none;
    padding: 16px 20px;
    border-top: 1px solid #E5E7EB;
    background: white;
}

.btn-apply-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--azzurro) 0%, #4BA8C2 100%);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--bianco);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-filters svg {
    width: 20px;
    height: 20px;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(127, 199, 217, 0.4);
}

/* Shop Main */
.shop-main {
    min-width: 0;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: var(--bianco);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.shop-results {
    font-size: 14px;
    color: #6B7280;
}

.shop-results strong {
    color: var(--antracite);
    font-weight: 700;
}

.shop-sorting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-sorting label {
    font-size: 14px;
    color: #6B7280;
    white-space: nowrap;
}

.shop-orderby {
    padding: 10px 40px 10px 14px;
    background: #F9FAFB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") right 12px center/18px no-repeat;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    color: var(--antracite);
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
}

.shop-orderby:focus {
    outline: none;
    border-color: var(--azzurro);
}

.shop-view-toggle {
    display: flex;
    gap: 4px;
}

.view-toggle {
    padding: 10px;
    background: none;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle:hover {
    border-color: var(--azzurro);
    color: var(--azzurro);
}

.view-toggle.active {
    background: var(--azzurro);
    border-color: var(--azzurro);
    color: var(--bianco);
}

.view-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Products Container */
.products-container {
    position: relative;
    min-height: 400px;
}

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

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

.products-grid.view-list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 24px;
    align-items: center;
}

/* Products Loading */
.products-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    z-index: 10;
}

.products-loading.active {
    display: flex;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loading-spinner .spinner {
    width: 48px;
    height: 48px;
    color: var(--azzurro);
    animation: spin 1s linear infinite;
}

.loading-spinner .spinner circle {
    stroke-dasharray: 90 150;
    stroke-dashoffset: 0;
}

.loading-spinner span {
    font-size: 14px;
    color: #6B7280;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No Products Found */
.no-products-found {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.no-products-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    border-radius: 50%;
    margin-bottom: 24px;
}

.no-products-icon svg {
    width: 48px;
    height: 48px;
    color: #9CA3AF;
}

.no-products-found h3 {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--antracite);
    margin-bottom: 8px;
}

.no-products-found p {
    font-size: 15px;
    color: #6B7280;
    margin-bottom: 24px;
}

.btn-reset-filters {
    padding: 14px 28px;
    background: var(--azzurro);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bianco);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: var(--azzurro-hover);
    transform: translateY(-2px);
}

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

.shop-pagination {
    margin-top: 48px;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 8px;
    margin: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pagination-list li {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--antracite);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #F3F4F6;
    color: var(--azzurro);
}

.page-link.page-current {
    background: linear-gradient(135deg, var(--azzurro) 0%, #4BA8C2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(127, 199, 217, 0.4);
}

.page-link.page-prev,
.page-link.page-next {
    padding: 0;
    min-width: 44px;
}

.page-link.page-prev svg,
.page-link.page-next svg {
    width: 20px;
    height: 20px;
}

.page-link.page-prev:hover,
.page-link.page-next:hover {
    background: linear-gradient(135deg, var(--azzurro) 0%, #4BA8C2 100%);
    color: white;
}

.page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    font-size: 14px;
    color: #9CA3AF;
    letter-spacing: 2px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(4px);
}

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

/* ========================================
   PRODUCT CARD
   ======================================== */

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bianco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(127, 199, 217, 0.15);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: #f8fcfd;
    overflow: hidden;
}

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

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

.product-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fcfd 0%, #edf5f7 100%);
}

.product-card-no-image svg {
    width: 60px;
    height: 60px;
    color: #D1D5DB;
}

/* Badges */
.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge-sale {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: var(--bianco);
}

.product-badge-new {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--bianco);
}

.product-badge-out {
    background: #6B7280;
    color: var(--bianco);
}

/* Quick View */
.product-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
    visibility: visible;
}

.product-quick-view {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bianco);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--antracite);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

.product-quick-view svg {
    width: 18px;
    height: 18px;
    color: var(--azzurro);
}

/* Content */
.product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.product-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--azzurro);
    margin-bottom: 8px;
}

.product-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--antracite);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.product-card:hover .product-card-title {
    color: var(--azzurro);
}

.product-card-subtitle {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-package {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fcfd;
    border-radius: 8px;
    font-size: 12px;
    color: #6B7280;
    margin-top: auto;
}

.product-card-package svg {
    width: 14px;
    height: 14px;
    color: var(--azzurro);
}

/* Footer */
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #F3F4F6;
    background: #fafbfc;
}

.product-card-price {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--antracite);
}

.product-card-price del {
    font-size: 13px;
    font-weight: 400;
    color: #9CA3AF;
    margin-right: 6px;
}

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

.price-on-request {
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
}

/* Add to Cart Button */
.product-add-to-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--azzurro) 0%, #4BA8C2 100%);
    border: none;
    border-radius: 12px;
    color: var(--bianco);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-add-to-cart:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(127, 199, 217, 0.4);
}

.product-add-to-cart svg {
    width: 20px;
    height: 20px;
}

.add-to-cart-icon,
.add-to-cart-loading,
.add-to-cart-success {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-to-cart-loading,
.add-to-cart-success {
    opacity: 0;
    transform: scale(0.5);
}

.product-add-to-cart.loading .add-to-cart-icon {
    opacity: 0;
    transform: scale(0.5);
}

.product-add-to-cart.loading .add-to-cart-loading {
    opacity: 1;
    transform: scale(1);
}

.product-add-to-cart.loading .add-to-cart-loading .spinner {
    animation: spin 0.8s linear infinite;
}

.product-add-to-cart.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.product-add-to-cart.success .add-to-cart-icon {
    opacity: 0;
    transform: scale(0.5);
}

.product-add-to-cart.success .add-to-cart-success {
    opacity: 1;
    transform: scale(1);
}

.product-view-details {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    text-decoration: none;
}

.product-out-of-stock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #E5E7EB;
    border-radius: 12px;
    color: #9CA3AF;
    cursor: not-allowed;
}

.product-out-of-stock-btn svg {
    width: 20px;
    height: 20px;
}

/* Error toast icon */
.cart-toast-error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
}

/* ========================================
   CATEGORY & TAG PAGES
   ======================================== */

.category-header {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f8fcfd 0%, var(--bianco) 100%);
    overflow: hidden;
}

.category-header.has-image {
    min-height: 300px;
}

.category-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.category-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
}

.category-header-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 1;
}

.category-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--antracite);
    margin-bottom: 16px;
}

.category-description {
    font-size: 17px;
    color: #6B7280;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 20px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(127, 199, 217, 0.1);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--azzurro);
}

.category-count svg {
    width: 20px;
    height: 20px;
}

/* Tag Page */
.tag-header {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, #f8fcfd 0%, var(--bianco) 100%);
}

.tag-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(127, 199, 217, 0.15) 0%, rgba(127, 199, 217, 0.05) 100%);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--azzurro);
    margin-bottom: 16px;
}

.tag-badge svg {
    width: 16px;
    height: 16px;
}

.tag-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--antracite);
    margin-bottom: 8px;
}

.tag-count {
    font-size: 15px;
    color: #6B7280;
}

.related-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.related-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bianco);
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-tag:hover {
    background: var(--azzurro);
    border-color: var(--azzurro);
    color: var(--bianco);
}

.related-tag .tag-num {
    font-weight: 600;
    opacity: 0.7;
}

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

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-filter-toggle {
        display: flex;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 340px;
        max-width: 90vw;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-bottom: 100px;
    }
    
    .shop-sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .filter-actions-mobile {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 340px;
        max-width: 90vw;
        padding: 16px 20px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
        background: white;
        border-top: 1px solid #E5E7EB;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }
    
    .shop-toolbar {
        flex-wrap: wrap;
    }
    
    .shop-results {
        order: 3;
        width: 100%;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid #F3F4F6;
    }
    
    .shop-view-toggle {
        display: none;
    }
    
    .product-card-overlay {
        display: none;
    }
}

@media (max-width: 600px) {
    .shop-header {
        padding: 40px 0 30px;
    }
    
    .shop-content {
        padding: 24px 0 60px;
    }
    
    .shop-container {
        padding: 0 16px;
    }
    
    .shop-filter-toggle {
        margin-bottom: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        border-radius: 16px;
    }
    
    .product-card-badges {
        top: 8px;
        left: 8px;
    }
    
    .product-badge {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .product-card-content {
        padding: 14px;
    }
    
    .product-card-category {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .product-card-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .product-card-subtitle {
        display: none;
    }
    
    .product-card-package {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .product-card-footer {
        padding: 12px 14px;
    }
    
    .product-card-price {
        font-size: 15px;
    }
    
    .product-card-price del {
        font-size: 11px;
    }
    
    .product-add-to-cart {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    
    .product-add-to-cart svg {
        width: 18px;
        height: 18px;
    }
    
    .shop-toolbar {
        padding: 12px 16px;
        border-radius: 12px;
    }
    
    .shop-sorting label {
        display: none;
    }
    
    .shop-orderby {
        padding: 10px 36px 10px 12px;
        font-size: 13px;
    }
    
    /* Pagination Mobile */
    .pagination-list {
        padding: 6px;
        gap: 4px;
    }
    
    .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .page-dots {
        min-width: 32px;
    }
    
    /* Category */
    .category-header {
        padding: 50px 0 40px;
    }
    
    .category-title {
        font-size: 28px;
    }
    
    .category-description {
        font-size: 14px;
    }
}
