/* ==========================================================================
   Shop / E-commerce Styles for Conserv Building Solutions
   Modern hardware store aesthetic with industrial touches
   ========================================================================== */

:root {
    --shop-primary: #d35400;
    --shop-primary-dark: #a04000;
    --shop-secondary: #2c3e50;
    --shop-accent: #27ae60;
    --shop-danger: #e74c3c;
    --shop-warning: #f39c12;
    --shop-bg: #f8f9fa;
    --shop-card-bg: #ffffff;
    --shop-text: #2c3e50;
    --shop-text-muted: #6c757d;
    --shop-border: #dee2e6;
    --shop-radius: 8px;
    --shop-radius-lg: 12px;
    --shop-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shop-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shop-transition: 0.2s ease;
}

/* Container */
.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.shop-hero {
    background: linear-gradient(135deg, var(--shop-secondary) 0%, #1a252f 100%);
    border-radius: var(--shop-radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(211, 84, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.shop-hero h1 {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--shop-primary);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.hero-search {
    margin-top: 2rem;
    position: relative;
    max-width: 600px;
}

.search-form {
    display: flex;
    background: white;
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 1rem;
    color: var(--shop-text);
}

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

.search-btn {
    background: var(--shop-primary);
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background var(--shop-transition);
}

.search-btn:hover {
    background: var(--shop-primary-dark);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 var(--shop-radius) var(--shop-radius);
    box-shadow: var(--shop-shadow-hover);
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-dropdown.show {
    display: block;
}

.search-result {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--shop-border);
    cursor: pointer;
    color: var(--shop-text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result:hover {
    background: var(--shop-bg);
}

.search-result-name {
    font-weight: 500;
}

.search-result-price {
    color: var(--shop-primary);
    font-weight: 600;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.shop-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shop-text);
    margin: 0;
}

.section-badge {
    background: var(--shop-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.section-badge.new {
    background: var(--shop-primary);
}

.view-all {
    color: var(--shop-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--shop-text);
    box-shadow: var(--shop-shadow);
    transition: all var(--shop-transition);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-hover);
    border-color: var(--shop-primary);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
}

.category-count {
    font-size: 0.8rem;
    color: var(--shop-text-muted);
}

/* Categories List */
.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.category-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius);
    text-decoration: none;
    color: var(--shop-text);
    transition: all var(--shop-transition);
}

.category-list-item:hover {
    background: var(--shop-bg);
    padding-left: 1.25rem;
}

.category-list-item .category-count {
    background: var(--shop-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

.category-list-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.4;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */

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

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.products-list .product-card {
    flex-direction: row;
    align-items: center;
}

.products-list .product-image {
    width: 120px;
    flex-shrink: 0;
}

.products-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.products-scroll .product-card {
    min-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* ==========================================================================
   Product Card - Enhanced Design
   ========================================================================== */

.product-card {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(211, 84, 0, 0.2);
}

.product-card.compact {
    min-width: 200px;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Category-specific placeholder backgrounds */
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Default placeholder gradient */
.product-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #cbd5e1 100%);
}

/* Category-specific backgrounds */
.product-placeholder[data-category="hardware"]::before {
    background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
}
.product-placeholder[data-category="tools"]::before {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #3b82f6 100%);
}
.product-placeholder[data-category="plumbing"]::before {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
}
.product-placeholder[data-category="electrical"]::before {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
}
.product-placeholder[data-category="paint"]::before {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
}
.product-placeholder[data-category="garden"]::before {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}
.product-placeholder[data-category="household"]::before {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}
.product-placeholder[data-category="building"]::before {
    background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%);
}
.product-placeholder[data-category="safety"]::before {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}
.product-placeholder[data-category="automotive"]::before {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
}

/* Decorative pattern overlay */
.product-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.product-placeholder .placeholder-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-placeholder .placeholder-icon svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.9);
    stroke-width: 1.5;
}

.product-placeholder.large .placeholder-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
}

.product-placeholder.large .placeholder-icon svg {
    width: 48px;
    height: 48px;
}

.product-placeholder .placeholder-label {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stock badges - enhanced */
.stock-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.stock-badge.in-stock {
    background: rgba(39, 174, 96, 0.95);
    color: white;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.stock-badge.out-of-stock {
    background: rgba(231, 76, 60, 0.95);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.stock-badge.low-stock {
    background: rgba(243, 156, 18, 0.95);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

/* Product info - improved spacing */
.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.product-category {
    font-size: 0.7rem;
    color: var(--shop-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.85;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: var(--shop-text);
    text-decoration: none;
    transition: color var(--shop-transition);
}

.product-name a:hover {
    color: var(--shop-primary);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--shop-text-muted);
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-code {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.75rem;
    background: var(--shop-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--shop-text-muted);
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--shop-accent);
    font-weight: 500;
}

.product-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--shop-border);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--shop-primary);
    letter-spacing: -0.5px;
}

.product-price .call-for-price {
    font-size: 0.85rem;
    color: var(--shop-warning);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-price .call-for-price::before {
    content: '📞';
    font-size: 0.75rem;
}

/* Add to cart button - enhanced */
.btn-add-cart,
.btn-call {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--shop-primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.25);
}

.btn-add-cart:hover {
    background: var(--shop-primary-dark);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.35);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

.btn-call {
    background: var(--shop-accent);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}

.btn-call:hover {
    background: #219653;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.35);
}

.btn-add-cart svg,
.btn-call svg {
    width: 20px;
    height: 20px;
}

/* Compact card adjustments */
.product-card.compact .product-info {
    padding: 1rem;
}

.product-card.compact .product-name {
    font-size: 0.9rem;
    min-height: auto;
    -webkit-line-clamp: 2;
}

.product-card.compact .product-footer {
    border-top: none;
    padding-top: 0.5rem;
}

.product-card.compact .product-price .price {
    font-size: 1.1rem;
}

/* ==========================================================================
   Category Page Layout
   ========================================================================== */

.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

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

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--shop-text-muted);
}

.breadcrumb a {
    color: var(--shop-text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--shop-primary);
}

.breadcrumb li[aria-current="page"] {
    color: var(--shop-text);
    font-weight: 500;
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        display: none;
    }
    
    .btn-mobile-filters {
        display: flex !important;
    }
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shop-shadow);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for sidebar */
.filters-sidebar::-webkit-scrollbar {
    width: 8px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: rgba(211, 84, 0, 0.2);
    border-radius: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(211, 84, 0, 0.4);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--shop-border);
}

.filters-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--shop-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-clear-filters {
    background: none;
    border: none;
    color: var(--shop-text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all var(--shop-transition);
}

.btn-clear-filters:hover {
    color: white;
    background: var(--shop-danger);
}

.filter-group {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--shop-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--shop-primary);
    border-radius: 2px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for filter options */
.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: var(--shop-bg);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--shop-primary);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--shop-primary-dark);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all var(--shop-transition);
    margin: 0 -0.75rem;
}

.filter-option:hover {
    background: var(--shop-bg);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    accent-color: var(--shop-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-option label {
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-count {
    color: var(--shop-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--shop-bg);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.price-inputs input {
    width: 90px;
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--shop-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--shop-transition);
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

.price-inputs span {
    color: var(--shop-text-muted);
    font-weight: 600;
}

.price-range-info {
    font-size: 0.8rem;
    color: var(--shop-text-muted);
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--shop-bg);
    border-radius: 6px;
    text-align: center;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--shop-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all var(--shop-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d35400' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

.filter-select:hover {
    border-color: var(--shop-primary);
}

.btn-apply-filters {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: var(--shop-radius-lg);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
    margin-top: 1rem;
}

.btn-apply-filters:hover {
    background: var(--shop-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.4);
}

.btn-apply-filters:active {
    transform: translateY(0);
}

.categories-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--shop-border);
}

.categories-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cat-link {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    color: var(--shop-text);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.cat-link:hover {
    background: var(--shop-bg);
}

.cat-link.active {
    background: var(--shop-primary);
    color: white;
}

.cat-link span {
    color: var(--shop-text-muted);
}

.cat-link.active span {
    color: rgba(255, 255, 255, 0.8);
}

/* Category Main Content */
.category-main {
    min-width: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-title {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.category-title h1 {
    margin: 0;
    font-size: 1.75rem;
}

.product-count {
    color: var(--shop-text-muted);
    font-size: 0.9rem;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-btn {
    width: 36px;
    height: 36px;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--shop-transition);
}

.view-btn:hover,
.view-btn.active {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: white;
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

.btn-mobile-filters {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    cursor: pointer;
}

.btn-mobile-filters svg {
    width: 18px;
    height: 18px;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.filter-tag {
    background: var(--shop-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag a {
    color: var(--shop-danger);
    text-decoration: none;
    font-weight: 700;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-link {
    padding: 0.5rem 0.75rem;
    background: var(--shop-card-bg);
    border: 1px solid var(--shop-border);
    border-radius: 4px;
    color: var(--shop-text);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--shop-transition);
}

.page-link:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

.page-link.current {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: white;
}

.page-link svg {
    width: 16px;
    height: 16px;
}

.page-ellipsis {
    padding: 0.5rem;
    color: var(--shop-text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--shop-text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--shop-text);
}

.empty-state p {
    color: var(--shop-text-muted);
    margin-bottom: 1.5rem;
}

/* Mobile Filters Overlay */
.mobile-filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: flex-end;
}

.mobile-filters-overlay.show {
    display: flex;
}

.mobile-filters-content {
    background: white;
    width: 100%;
    max-height: 80vh;
    border-radius: var(--shop-radius-lg) var(--shop-radius-lg) 0 0;
    padding: 1.5rem;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--shop-text-muted);
}

body.filters-open {
    overflow: hidden;
}

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

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    padding: 2rem;
    box-shadow: var(--shop-shadow);
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image {
    background: var(--shop-bg);
    border-radius: var(--shop-radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    border-bottom: 1px solid var(--shop-border);
    padding-bottom: 1.5rem;
}

.product-category-badge {
    display: inline-block;
    background: var(--shop-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--shop-text-muted);
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.product-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--shop-text-muted);
}

.product-codes .code strong {
    color: var(--shop-text);
}

.product-pricing {
    padding: 1.5rem;
    background: var(--shop-bg);
    border-radius: var(--shop-radius);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-main .currency {
    font-size: 1.25rem;
    color: var(--shop-primary);
}

.price-main .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--shop-primary);
}

.price-compare {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.price-compare .original {
    text-decoration: line-through;
    color: var(--shop-text-muted);
}

.price-compare .discount {
    background: var(--shop-accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-call {
    text-align: center;
}

.call-text {
    display: block;
    font-size: 1.25rem;
    color: var(--shop-warning);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.btn-call-now {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--shop-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--shop-radius);
    font-weight: 600;
    transition: background var(--shop-transition);
}

.btn-call-now:hover {
    background: #219653;
}

.btn-call-now svg {
    width: 20px;
    height: 20px;
}

.product-availability {
    display: flex;
    align-items: center;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--shop-radius);
    font-weight: 500;
}

.stock-status.in-stock {
    background: rgba(39, 174, 96, 0.1);
    color: var(--shop-accent);
}

.stock-status.out-of-stock {
    background: rgba(231, 76, 60, 0.1);
    color: var(--shop-danger);
}

.stock-status svg {
    width: 20px;
    height: 20px;
}

.stock-qty {
    font-weight: 400;
    opacity: 0.8;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-selector label {
    font-weight: 500;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--shop-bg);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--shop-transition);
}

.qty-btn:hover {
    background: var(--shop-border);
}

.qty-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
}

.qty-controls input::-webkit-inner-spin-button,
.qty-controls input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.min-qty-note {
    font-size: 0.8rem;
    color: var(--shop-text-muted);
}

.btn-add-to-cart,
.btn-notify {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: var(--shop-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--shop-transition);
}

.btn-add-to-cart:hover {
    background: var(--shop-primary-dark);
    transform: translateY(-2px);
}

.btn-notify {
    background: var(--shop-secondary);
}

.btn-notify:hover {
    background: #1a252f;
}

.btn-add-to-cart svg,
.btn-notify svg {
    width: 20px;
    height: 20px;
}

.product-details {
    border-top: 1px solid var(--shop-border);
    padding-top: 1.5rem;
}

.product-details h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.details-list {
    display: grid;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--shop-border);
}

.detail-row dt {
    color: var(--shop-text-muted);
}

.detail-row dd {
    font-weight: 500;
    margin: 0;
}

.additional-description {
    margin-top: 1.5rem;
}

.additional-description h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.additional-description p {
    color: var(--shop-text-muted);
    line-height: 1.6;
}

.product-actions-secondary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    color: var(--shop-text);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--shop-transition);
}

.btn-secondary:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

/* Related Products */
.related-products {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Shop CTA Section
   ========================================================================== */

.shop-cta {
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-primary-dark) 100%);
    border-radius: var(--shop-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.cta-content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.shop-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--shop-primary);
    text-decoration: none;
    border-radius: var(--shop-radius);
    font-weight: 600;
    transition: all var(--shop-transition);
}

.shop-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shop-cta .btn-primary svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Staff Import Page
   ========================================================================== */

.import-card {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    padding: 2rem;
    box-shadow: var(--shop-shadow);
}

.import-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.import-stat {
    background: var(--shop-bg);
    padding: 1rem;
    border-radius: var(--shop-radius);
    text-align: center;
}

.import-stat .value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--shop-primary);
}

.import-stat .label {
    font-size: 0.85rem;
    color: var(--shop-text-muted);
}

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

@media (max-width: 768px) {
    .shop-container {
        padding: 1rem;
    }
    
    .shop-hero {
        padding: 2rem 1.5rem;
    }
    
    .shop-hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .product-detail {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .price-main .amount {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-add-to-cart,
    .btn-notify {
        width: 100%;
    }
}

