/**
 * Abhirang Store - Products Pages
 * Product list, product detail, filters, sidebar
 */

/* =============================================================================
   Products Layout
   ============================================================================= */

.products-container {
    display: flex;
    min-height: calc(100vh - 64px);
    background: #ffffff;
}

/* =============================================================================
   Sidebar
   ============================================================================= */

.products-sidebar {
    width: 280px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    padding: 24px 16px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 5;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title .clear-btn {
    font-size: 11px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    text-transform: none;
}

.sidebar-title .clear-btn:hover {
    color: #ef4444;
}

/* Sidebar Search */
.sidebar-search {
    position: relative;
    margin-bottom: 20px;
}

.sidebar-search .search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-search .search-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.05);
}

.sidebar-search .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    transition: all 0.2s ease;
}

.sidebar-search .search-btn:hover {
    background: #374151;
}

/* =============================================================================
   Category Links
   ============================================================================= */

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 4px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.category-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1a1a1a;
}

.category-link.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.category-link .count {
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-link.active .count {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

.subcategory-link {
    padding-left: 28px;
    font-size: 13px;
}

/* =============================================================================
   Filter Options
   ============================================================================= */

.filter-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #1a1a1a;
    cursor: pointer;
}

.filter-option label {
    flex: 1;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-option label .count {
    font-size: 12px;
    color: #9ca3af;
}

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

/* Color Swatches */
.color-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.selected {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a;
}

.color-swatch input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Price Range */
.price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

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

.price-separator {
    color: #9ca3af;
    font-size: 14px;
}

/* Apply Filters Button */
.apply-filters-btn {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 16px;
}

.apply-filters-btn:hover {
    background: #374151;
}

/* Active Filter Tags */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
}

.filter-tag .remove {
    cursor: pointer;
    color: #9ca3af;
    font-size: 12px;
}

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

.clear-all-filters {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: 20px;
    font-size: 13px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.15s ease;
}

.clear-all-filters:hover {
    background: #ef4444;
    color: #ffffff;
}

/* =============================================================================
   Main Content
   ============================================================================= */

.products-main {
    flex: 1;
    padding: 32px 40px;
    min-width: 0;
}

.products-main.full-width {
    max-width: 1400px;
    margin: 0 auto;
}

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

.filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.filter-toggle i {
    font-size: 14px;
}

.results-count {
    font-size: 14px;
    color: #6b7280;
}

.results-count strong {
    color: #1a1a1a;
}

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

.sort-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* View Toggle */
.view-toggle {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle-btn,
.view-btn {
    padding: 8px 12px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s ease;
}

.view-toggle-btn:hover,
.view-btn:hover {
    background: #f3f4f6;
}

.view-toggle-btn.active,
.view-btn.active {
    background: #1a1a1a;
    color: #ffffff;
}

/* Page Header */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: #6b7280;
    max-width: 600px;
}

/* =============================================================================
   Product Grid
   ============================================================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.products-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* =============================================================================
   Product Card
   ============================================================================= */

.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

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

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

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

.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.new {
    background: #1a1a1a;
    color: #ffffff;
}

.product-badge.sale {
    background: #ef4444;
    color: #ffffff;
}

.product-badge.bestseller {
    background: #f59e0b;
    color: #1a1a1a;
}

.product-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-action-btn:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.product-card-body {
    padding: 16px;
}

.product-card-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: #4b5563;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.price-original {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.price-discount {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

/* =============================================================================
   Mobile Sidebar
   ============================================================================= */

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #1a1a1a;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.sidebar-toggle .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 1024px) {
    .products-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;
        width: 300px;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        padding-top: 80px;
    }
    
    .products-sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .filter-toggle {
        display: flex;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .products-main {
        padding: 24px 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .products-toolbar {
        flex-direction: row;
        align-items: center;
    }
    
    .toolbar-left {
        flex: 1;
    }
    
    .toolbar-actions {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card-body {
        padding: 12px;
    }
    
    .product-card-title {
        font-size: 14px;
    }
    
    .price-current {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 24px;
    }
    
    .products-main {
        padding: 16px 12px;
    }
    
    .sort-select {
        flex: 1;
    }
}

/* =============================================================================
   Product Detail Page
   ============================================================================= */

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

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
}

.breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #1a1a1a;
}

.breadcrumbs span {
    color: #9ca3af;
}

.breadcrumbs .current {
    color: #1a1a1a;
    font-weight: 500;
}

/* Main Grid */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.discount-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    background: #ef4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
}

.thumbnail-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    border-color: #1a1a1a;
    opacity: 1;
}

/* Product Info */
.product-detail-info {
    padding-top: 8px;
}

.product-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-sku {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.rating-stars {
    color: #fbbf24;
    font-size: 16px;
}

.rating-text {
    font-size: 14px;
    color: #6b7280;
}

.rating-text a {
    color: #1a1a1a;
    text-decoration: underline;
}

/* Pricing */
.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.original-price {
    font-size: 20px;
    color: #9ca3af;
    text-decoration: line-through;
}

.savings-badge {
    padding: 4px 10px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

/* Short Description */
.short-description {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Variant Selectors */
.variant-section {
    margin-bottom: 24px;
}

.variant-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.variant-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.variant-label-value {
    font-size: 14px;
    color: #6b7280;
}

.size-chart-link {
    font-size: 13px;
    color: #1a1a1a;
    text-decoration: underline;
    cursor: pointer;
}

/* Size Chart Table */
.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.size-chart-table thead tr {
    background: #f3f4f6;
}

.size-chart-table th,
.size-chart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.size-chart-table th {
    font-weight: 600;
    color: #374151;
}

.size-chart-table td:first-child {
    font-weight: 600;
}

.size-chart-image {
    max-width: 100%;
    border-radius: 8px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.15s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.selected {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1a1a1a;
}

.color-swatch.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #ef4444;
    transform: rotate(-45deg);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 48px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.size-btn:hover:not(:disabled) {
    border-color: #1a1a1a;
}

.size-btn.selected {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.size-btn .low-stock {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #f59e0b;
    margin-top: 2px;
}

/* Quantity Selector */
.quantity-section {
    margin-bottom: 24px;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: #f9fafb;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.qty-btn:hover {
    background: #e5e7eb;
}

.qty-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.stock-status.in-stock {
    color: #16a34a;
}

.stock-status.low-stock {
    color: #f59e0b;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

.stock-status i {
    font-size: 16px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-add-cart {
    flex: 1;
    padding: 16px 32px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-cart:hover:not(:disabled) {
    background: #374151;
}

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

.btn-wishlist {
    width: 56px;
    height: 56px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-wishlist:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-wishlist.active {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* Stock Notify Form */
.notify-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.notify-form h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.notify-form p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.notify-input-group {
    display: flex;
    gap: 8px;
}

.notify-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.notify-input-group button {
    padding: 10px 20px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
}

.feature-item i {
    width: 20px;
    color: #1a1a1a;
}

/* Attributes */
.product-attributes {
    margin-bottom: 24px;
}

.attribute-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.attribute-item:last-child {
    border-bottom: none;
}

.attribute-label {
    width: 120px;
    color: #6b7280;
}

.attribute-value {
    flex: 1;
    color: #1a1a1a;
    font-weight: 500;
}

/* Tabs */
.product-tabs {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 64px;
}

.tab-headers {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.tab-header {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
}

.tab-header:hover {
    color: #1a1a1a;
}

.tab-header.active {
    color: #1a1a1a;
    background: #ffffff;
    border-bottom-color: #1a1a1a;
}

.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.tab-content p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Related Products */
.related-section {
    margin-bottom: 64px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.section-link {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.section-link:hover {
    text-decoration: underline;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.related-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.related-card .info {
    padding: 12px;
}

.related-card .name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card .price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Product Detail Responsive */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-detail-container {
        padding: 16px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .tab-headers {
        overflow-x: auto;
    }
}

/* =============================================================================
   Search Results Page
   ============================================================================= */

.results-count {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 40px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.results-count i {
    font-size: 16px;
    color: #16a34a;
}

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

.product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

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

.product-image-wrapper {
    position: relative;
    padding-top: 133.33%;
    overflow: hidden;
    background: #f9fafb;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1a1a1a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.out-of-stock {
    background: #6b7280;
    left: 12px;
    right: auto;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.view-details {
    background: #ffffff;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

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

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
}

.product-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}

.product-meta i {
    color: #1a1a1a;
    margin-right: 4px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    padding: 16px 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.page-link {
    padding: 10px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #1a1a1a;
    color: #ffffff;
}

.page-info {
    color: #6b7280;
    font-weight: 500;
    padding: 0 12px;
    font-size: 14px;
}

/* No Results */
.no-results,
.empty-search {
    text-align: center;
    padding: 80px 20px;
}

.no-results i,
.empty-search i {
    font-size: 80px;
    color: #d1d5db;
    margin-bottom: 30px;
}

.no-results h3,
.empty-search h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 700;
}

.no-results p,
.empty-search p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

.search-suggestions,
.quick-links {
    max-width: 500px;
    margin: 40px auto 0;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: left;
}

.search-suggestions h4,
.quick-links h4 {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 10px 0;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

.quick-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-category {
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.quick-category:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* Search Results Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .no-results h3,
    .empty-search h3 {
        font-size: 28px;
    }
}

/* =============================================================================
   Category List Page
   ============================================================================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

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

.category-image-wrapper {
    position: relative;
    padding-top: 133.33%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 32px;
    text-align: center;
}

.category-name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.category-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-weight: 500;
}

.category-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.2s ease;
}

.category-card:hover .category-explore {
    transform: translateY(0);
    opacity: 1;
}

.no-categories {
    text-align: center;
    padding: 100px 20px;
}

.no-categories i {
    font-size: 80px;
    color: #d1d5db;
    margin-bottom: 30px;
}

.no-categories h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 700;
}

.no-categories p {
    font-size: 16px;
    color: #6b7280;
}

/* Category List Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-name {
        font-size: 32px;
    }
}
