/* Minimalist Shop Layout - Inspired by Modern E-commerce */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    color: #e8e8e8;
}

/* Main Shop Layout */
.shop-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px; /* Account for header */
}

/* Left Sidebar */
.shop-sidebar {
    width: 240px;
    background: #2d2d2d;
    border-right: 1px solid #404040;
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 30px 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 0 30px 30px;
    border-bottom: 1px solid #404040;
    margin-bottom: 30px;
}

.sidebar-logo h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.sidebar-nav {
    padding: 0 20px;
}

.nav-section {
    margin-bottom: 35px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #999;
    margin-bottom: 15px;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
    border-radius: 8px;
    margin-bottom: 2px;
    line-height: 1.4;
}

.nav-item i {
    font-size: 12px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    background: #404040;
    color: #ffffff;
}

.nav-item:hover i {
    transform: translateX(3px);
}

.nav-item.active {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 500;
}

.nav-item.active i {
    color: #ffffff;
}

/* Main Content */
.shop-main {
    margin-left: 240px;
    flex: 1;
    padding: 40px 50px;
    max-width: calc(100% - 240px);
}

/* Shop Header */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.shop-result-count {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* Filter Bar */
.shop-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shop-filter-select {
    padding: 8px 14px;
    border: 1px solid #404040;
    border-radius: 8px;
    background: #2d2d2d;
    color: #e8e8e8;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
}

.shop-filter-select:focus {
    outline: none;
    border-color: #ffffff;
}

.shop-filter-btn {
    padding: 8px 14px;
    border: 1px solid #404040;
    border-radius: 8px;
    background: #2d2d2d;
    color: #e8e8e8;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.shop-filter-btn:hover {
    border-color: #ffffff;
}

.filter-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color, #7A1F3D);
    display: inline-block;
}

.shop-clear-filters {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shop-clear-filters:hover {
    color: #e74c3c;
}

/* Price Filter Panel */
.price-filter-panel {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 10px;
    margin-bottom: 24px;
}

.price-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-input-group label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #404040;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #e8e8e8;
    background: #1a1a1a;
}

.price-input:focus {
    outline: none;
    border-color: #ffffff;
}

.price-dash {
    color: #999;
    font-size: 16px;
    margin-bottom: 4px;
}

.price-apply-btn {
    padding: 8px 20px;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.price-apply-btn:hover {
    opacity: 0.85;
}

/* Active Filters Bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #404040;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #ccc;
}

/* Simple Product Grid */
.simple-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
}

.simple-product-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.simple-product-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.simple-product-image {
    flex-shrink: 0;
}

.simple-product-card:hover {
    transform: translateY(-5px);
}

.simple-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

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

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

.simple-product-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.simple-product-name {
    font-size: 15px;
    font-weight: 400;
    color: #e8e8e8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.simple-product-price {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}


/* Wishlist button on product cards */
.simple-product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 45, 45, 0.9);
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.simple-product-card .wishlist-btn:hover {
    background: rgba(45, 45, 45, 0.95);
    color: #ff6b6b;
    transform: scale(1.1);
}

.simple-product-card .wishlist-btn.active {
    color: #ff6b6b;
    background: rgba(45, 45, 45, 0.95);
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-products i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-products p {
    font-size: 16px;
}

/* Simple Pagination */
.simple-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #404040;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #404040;
    background: #2d2d2d;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: #ffffff;
    color: #ffffff;
}

.page-btn.active {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Light Mode Overrides */
[data-theme="light"] body {
    background: #faf9f6;
    color: #2d2d2d;
}

[data-theme="light"] .shop-sidebar {
    background: #ffffff;
    border-right-color: #e8e8e8;
}

[data-theme="light"] .sidebar-logo {
    border-bottom-color: #e8e8e8;
}

[data-theme="light"] .sidebar-logo h2 {
    color: #1a1a1a;
}

[data-theme="light"] .nav-section-title {
    color: #999;
}

[data-theme="light"] .nav-item {
    color: #666;
}

[data-theme="light"] .nav-item:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

[data-theme="light"] .nav-item.active {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="light"] .shop-title {
    color: #1a1a1a;
}

[data-theme="light"] .wishlist-header-btn {
    color: #1a1a1a;
}

[data-theme="light"] .simple-product-image {
    background: #f5f3f0;
}

[data-theme="light"] .simple-product-name {
    color: #2d2d2d;
}

[data-theme="light"] .simple-product-price {
    color: #1a1a1a;
}

[data-theme="light"] .page-btn {
    background: #ffffff;
    border-color: #e8e8e8;
    color: #666;
}

[data-theme="light"] .page-btn:hover:not(:disabled) {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

[data-theme="light"] .page-btn.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

[data-theme="light"] .simple-pagination {
    border-top-color: #e8e8e8;
}

[data-theme="light"] .shop-filter-select,
[data-theme="light"] .shop-filter-btn {
    background: #ffffff;
    border-color: #e8e8e8;
    color: #2d2d2d;
}

[data-theme="light"] .shop-filter-select:focus,
[data-theme="light"] .shop-filter-btn:hover {
    border-color: #1a1a1a;
}

[data-theme="light"] .price-filter-panel {
    background: #ffffff;
    border-color: #e8e8e8;
}

[data-theme="light"] .price-input {
    background: #faf9f6;
    border-color: #e8e8e8;
    color: #2d2d2d;
}

[data-theme="light"] .price-input:focus {
    border-color: #1a1a1a;
}

[data-theme="light"] .price-apply-btn {
    background: #1a1a1a;
    color: #ffffff;
}

[data-theme="light"] .active-filter-chip {
    background: #f0f0f0;
    color: #666;
}

[data-theme="light"] .shop-result-count {
    color: #999;
}

[data-theme="light"] .simple-product-card .wishlist-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #666;
}

[data-theme="light"] .simple-product-card .wishlist-btn:hover,
[data-theme="light"] .simple-product-card .wishlist-btn.active {
    background: #ffffff;
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .simple-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 25px;
    }

    .shop-main {
        padding: 30px 40px;
    }
}

@media (max-width: 992px) {
    .shop-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .shop-sidebar.active {
        transform: translateX(0);
    }

    .shop-main {
        margin-left: 0;
        max-width: 100%;
        padding: 30px 25px;
    }

    .simple-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
    }
}

@media (max-width: 768px) {
    .simple-product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .shop-header {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-filters {
        width: 100%;
    }

    .shop-filter-select,
    .shop-filter-btn {
        flex: 1;
    }

    .shop-title {
        font-size: 24px;
    }

    .shop-main {
        padding: 20px 20px;
    }

    .price-filter-row {
        flex-wrap: wrap;
    }

    .price-input {
        width: 100px;
    }
}

