/* ============================================
   CHICCUERO SHOP PAGE STYLES
   Clean, modern e-commerce layout
   ============================================ */

/* Page Container */
.shop-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

/* ── PAGE HEADER ─────────────────────────────── */
.shop-header {
    text-align: center;
    padding: 48px 0 40px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
}

.shop-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.shop-breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-breadcrumb a:hover { color: #000; }

.shop-breadcrumb-sep {
    margin: 0 8px;
}

.shop-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 400;
    color: #000;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.shop-count {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.3px;
}

/* ── LAYOUT: SIDEBAR + MAIN ──────────────────── */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

/* ── FILTER SIDEBAR ──────────────────────────── */
.shop-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.filter-block {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ececec;
}

.filter-block:last-of-type,
.filter-block.filter-block-inline {
    border-bottom: none;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.filter-label {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* Search box */
.filter-search-box {
    position: relative;
}

.filter-search-input {
    width: 100%;
    padding: 11px 42px 11px 14px;
    font-size: 13px;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #000;
    letter-spacing: 0.3px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.filter-search-input:focus {
    border-color: #000;
    background: #fff;
}

.filter-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    display: flex;
    align-items: center;
}

.filter-search-btn:hover { color: #000; }

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

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #000;
    flex-shrink: 0;
}

.filter-option-label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-option:hover .filter-option-label { color: #000; }

/* Price range */
.filter-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.filter-price-input {
    flex: 1;
    min-width: 0;
    padding: 10px 10px;
    font-size: 13px;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #000;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.filter-price-input:focus {
    border-color: #000;
    background: #fff;
}

.filter-price-dash { color: #bbb; font-size: 16px; }

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

.filter-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    border-radius: 2px;
}

.filter-tag:hover,
.filter-tag.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Filter actions */
.filter-actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

.filter-apply-btn {
    flex: 1;
    padding: 11px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-apply-btn:hover { background: #333; }

.filter-clear-btn {
    flex: 1;
    padding: 11px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-clear-btn:hover { border-color: #000; color: #000; }

/* ── MAIN CONTENT ────────────────────────────── */
.shop-main {
    min-width: 0;
}

/* Mobile filter button - hidden on desktop */
.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.mobile-filter-btn:hover { border-color: #000; }

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid #ececec;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-result-count {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.3px;
}

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

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

.shop-sort-label {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.shop-sort-select {
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.shop-sort-select:focus { border-color: #000; }

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

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover,
.view-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ── PRODUCT GRID ────────────────────────────── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.shop-grid.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ── PRODUCT CARD ────────────────────────────── */
.shop-card {
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
    border: 1px solid #ececec;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-color: #ccc;
}

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

.shop-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #fff;
}

.shop-badge-sale { background: #16a34a; }
.shop-badge-new { background: #000; }
.shop-badge-sold { background: #888; }

/* Card image */
.shop-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}

.shop-card-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.shop-card-slide.active { opacity: 1; z-index: 1; }

.shop-card-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
    display: block;
}

.shop-card:hover .shop-card-slide.active img {
    transform: scale(1.06);
}

.shop-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bbb;
    font-size: 12px;
    letter-spacing: 1px;
    background: #f5f5f5;
}

/* Dots */
.shop-card-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}

.product-image-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-image-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* Hover overlay */
.shop-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.shop-card:hover .shop-card-hover-overlay { opacity: 1; }

.shop-card-view-btn {
    padding: 12px 28px;
    background: #fff;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

/* Card info */
.shop-card-info {
    padding: 16px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-card-category {
    font-size: 10px;
    color: #999;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.shop-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 1.35;
    margin: 0;
}

.shop-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.shop-price-current {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.shop-price-orig {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

.shop-price-sale {
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
}

/* LIST VIEW */
.shop-grid.list-view .shop-card {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

.shop-grid.list-view .shop-card-image {
    width: 200px;
    min-width: 200px;
    aspect-ratio: auto;
    height: 200px;
    flex-shrink: 0;
}

.shop-grid.list-view .shop-card-info {
    padding: 20px 24px;
    justify-content: center;
}

.shop-grid.list-view .shop-card-name { font-size: 18px; }

.shop-grid.list-view .shop-card-hover-overlay { display: none; }

/* ── LOADING STATE ───────────────────────────── */
.shop-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.shop-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #eee;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── EMPTY STATE ─────────────────────────────── */
.shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

/* ── PAGINATION ──────────────────────────────── */
.products-pagination {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #ececec;
}

.products-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.products-pagination .pagination li {
    display: inline-flex;
}

.products-pagination .pagination a,
.products-pagination .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    min-width: 38px;
    height: 38px;
    font-size: 13px;
    text-decoration: none;
    color: #555;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    box-sizing: border-box;
    white-space: nowrap;
}

.products-pagination .pagination a:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.products-pagination .pagination .active span {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 600;
}

.products-pagination .pagination .disabled span {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f9f9f9;
    pointer-events: none;
}

/* ── CATEGORY PAGE ───────────────────────────── */
.category-shop-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

.category-shop-header {
    text-align: center;
    padding: 48px 0 40px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
}

.category-shop-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 400;
    color: #000;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 1.1;
}

.category-shop-desc {
    font-size: 15px;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.category-shop-count {
    font-size: 14px;
    color: #aaa;
    margin-top: 8px;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1280px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .shop-layout {
        grid-template-columns: 230px 1fr;
        gap: 36px;
    }
}

@media (max-width: 1024px) {
    .shop-page,
    .category-shop-page {
        padding: 0 24px 80px;
    }
    .shop-layout {
        grid-template-columns: 210px 1fr;
        gap: 28px;
    }
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .shop-title,
    .category-shop-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .shop-page,
    .category-shop-page {
        padding: 0 16px 64px;
    }
    .shop-title,
    .category-shop-title {
        font-size: 32px;
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        position: static;
        display: none;
    }
    .shop-sidebar.open {
        display: block;
        margin-bottom: 24px;
    }
    .mobile-filter-btn {
        display: flex;
    }
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .shop-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .shop-card-info {
        padding: 12px 10px 14px;
    }
    .shop-card-name {
        font-size: 14px;
    }
    .shop-grid.list-view .shop-card {
        flex-direction: column;
    }
    .shop-grid.list-view .shop-card-image {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }
    .shop-view-toggle { display: none; }
    .products-pagination .pagination a,
    .products-pagination .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }
}
