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

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #8B4513;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: #8B4513;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo i {
    margin-right: 12px;
    font-size: 32px;
    color: #D2691E;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    position: relative;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 2px solid #e9ecef;
}

.search-box input {
    width: 350px;
    padding: 12px 50px 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    position: absolute;
    right: 8px;
    background: #8B4513;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s;
}

.search-box button:hover {
    background: #A0522D;
    transform: scale(1.05);
}

.header-icons {
    display: flex;
    gap: 20px;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 12px;
}

.icon-link:hover {
    color: #8B4513;
    background: #f8f9fa;
    transform: translateY(-2px);
}

.icon-link i {
    font-size: 22px;
    margin-bottom: 4px;
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #D2691E;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.main-nav {
    padding: 16px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    position: relative;
    font-size: 16px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
}

.hero-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    background: #fff;
    color: #8B4513;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 40px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255,255,255,0.9);
    padding: 16px 0;
    backdrop-filter: blur(10px);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.breadcrumb li:not(:last-child)::after {
    content: '🏠';
    margin: 0 8px;
    font-size: 12px;
}

.breadcrumb a {
    text-decoration: none;
    color: #8B4513;
    font-weight: 600;
}

.breadcrumb li:last-child {
    color: #666;
}

/* Main Content */
.main-content {
    padding: 32px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
}

/* Sidebar */
.sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.filter-section {
    margin-bottom: 32px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section h3 i {
    color: #8B4513;
}

.category-list {
    list-style: none;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #555;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
}

.category-item:hover {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
    transform: translateX(5px);
}

.category-item.active {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
    font-weight: 600;
}

.count {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

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

.price-inputs {
    display: flex;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.price-inputs input:focus {
    outline: none;
    border-color: #8B4513;
}

.apply-filter {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.apply-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    font-weight: 500;
    transition: color 0.3s;
}

.checkbox-group label:hover {
    color: #8B4513;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #8B4513;
}

.checkbox-group span {
    margin-left: auto;
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    color: #666;
}

/* Product Area */
.product-area {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.results-info h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-info p {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-controls label {
    font-weight: 600;
    color: #555;
}

.sort-controls select {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    background: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    font-size: 16px;
}

.view-btn.active {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.15);
    border-color: #8B4513;
}

.product-image {
    position: relative;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #8B4513;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: #28a745;
}

.product-badge.sale {
    background: #dc3545;
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #8B4513;
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    list-style: none;
    margin-bottom: 12px;
}

.product-specs li {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-specs li::before {
    content: '🏠';
    font-size: 10px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #8B4513;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.add-to-cart {
    width: 100%;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* List View */
.product-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-grid.list-view .product-card {
    display: flex;
    height: 200px;
}

.product-grid.list-view .product-image {
    width: 250px;
    height: 200px;
    flex-shrink: 0;
}

.product-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-grid.list-view .product-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-grid.list-view .add-to-cart {
    width: auto;
    align-self: flex-start;
    padding: 10px 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #555;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #8B4513;
    color: #8B4513;
}

.page-btn.active {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    border-color: transparent;
    color: white;
}

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

.page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="30" cy="70" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="20" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: #D2691E;
    margin-bottom: 20px;
}

.footer-logo i {
    margin-right: 12px;
    font-size: 32px;
    color: #8B4513;
}

.footer-section p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: #D2691E;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    color: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.social-links a:hover {
    background: #D2691E;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.payment-methods {
    display: flex;
    gap: 16px;
    font-size: 28px;
    color: #bdc3c7;
}

.payment-methods i {
    transition: color 0.3s;
}

.payment-methods i:hover {
    color: #D2691E;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 24px;
    }
    
    .search-box input {
        width: 280px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .hero-image {
        margin-left: 0;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box input {
        width: 220px;
    }
    
    .nav-menu {
        overflow-x: auto;
        padding-bottom: 8px;
        justify-content: flex-start;
    }
    
    .product-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .product-area {
        order: 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .main-content {
        margin: 10px;
        border-radius: 15px;
    }
    
    .hero-image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .search-box input {
        width: 180px;
    }
    
    .header-icons {
        gap: 12px;
    }
    
    .icon-link span:not(.badge) {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .nav-menu {
        gap: 16px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-image img {
        height: 250px;
    }
}