/**
 * ZIN Fashion - Shop Page Styles (Production Ready)
 * Location: /public_html/dev_staging/assets/css/shop.css
 * Updated: Breadcrumb styles moved to independent breadcrumb.css file
 */

/* ========================================
   Shop Layout
   ======================================== */
.shop-section {
    padding: 60px 0;
    min-height: 80vh;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ========================================
   Sidebar
   ======================================== */
.shop-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--bg-secondary);
}

.shop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.category-list a:hover {
    color: var(--gold-primary);
    background: var(--bg-hover);
    border-left-color: var(--gold-primary);
}

.category-list li.active > a {
    color: var(--gold-primary);
    background: var(--bg-hover);
    border-left-color: var(--gold-primary);
    font-weight: 500;
}

/* Subcategory List */
.subcategory-list {
    list-style: none;
    margin-top: 10px;
    margin-left: 20px;
    padding: 0;
}

.subcategory-list li {
    margin-bottom: 8px;
}

.subcategory-list a {
    font-size: 14px;
    padding: 6px 10px;
}

/* Price Filter */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    border-radius: 4px;
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.price-inputs span {
    color: var(--text-muted);
}

.btn-filter {
    padding: 10px;
    background: var(--gold-primary);
    color: #000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-filter:hover {
    background: var(--gold-secondary);
    transform: translateY(-2px);
}

/* Badge Filters */
.badge-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
}

.badge-filter:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateX(5px);
}

.badge-filter.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

.badge-icon {
    font-size: 18px;
}

.clear-filter {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: underline;
    margin-top: 10px;
    display: inline-block;
}

.clear-filter:hover {
    color: var(--gold-primary);
}

/* ========================================
   Shop Main
   ======================================== */
.shop-main {
    min-height: 500px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.shop-title h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.product-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.shop-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* View Mode */
.view-mode {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.view-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.view-btn.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

/* Sort Control */
.sort-control select {
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
    border-radius: 4px;
}

.sort-control select:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    border-radius: 4px;
}

.active-filters > span:first-child {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    border-radius: 20px;
}

.remove-filter {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.remove-filter:hover {
    color: var(--gold-primary);
}

.clear-all {
    margin-left: auto;
    color: var(--gold-primary);
    font-size: 14px;
    text-decoration: underline;
}

.clear-all:hover {
    color: var(--gold-secondary);
}

/* ========================================
   Products Grid - Use main.css styles
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* List View - Additional styles for list layout only */
.products-grid.view-list {
    grid-template-columns: 1fr;
}

.products-grid.view-list .product-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 20px;
}

.products-grid.view-list .product-image {
    height: 250px;
}

.products-grid.view-list .product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid.view-list .product-name {
    font-size: 20px;
}

.products-grid.view-list .btn-add-to-cart {
    width: auto;
    align-self: flex-start;
    padding: 10px 30px;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
}

.page-link:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.page-link.active {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    font-weight: 600;
}

.page-link.prev,
.page-link.next {
    width: auto;
    padding: 0 15px;
}

.page-dots {
    color: var(--text-muted);
}

/* ========================================
   No Products
   ======================================== */
.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products i {
    font-size: 64px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 30px;
}

.no-products h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.no-products p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.no-products .btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold-primary);
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.no-products .btn:hover {
    background: var(--gold-secondary);
    transform: translateY(-2px);
}

/* ========================================
   Mobile Sidebar Toggle
   ======================================== */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--gold-primary);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.sidebar-close {
    display: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1199px) {
    .shop-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 300px;
        height: 100vh;
        background: var(--bg-primary);
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    
    .shop-sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar-close {
        display: block !important;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .shop-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid.view-list .product-card {
        grid-template-columns: 1fr;
    }
    
    .sort-control select {
        min-width: 150px;
    }
}

@media (max-width: 575px) {
    .shop-section {
        padding: 40px 0;
    }
    
    .shop-title h1 {
        font-size: 24px;
    }
    
    .active-filters {
        padding: 10px;
    }
    
    .filter-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
}