/* ========================================
   TechShop - eMAG-style Theme (Green/White)
   ======================================== */

:root {
    --primary-color: #00a046;
    --primary-dark: #008c3c;
    --primary-light: #e8f5ec;
    --secondary-color: #333;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-color: #f5f5f5;
    --bg-white: #fff;
    --border-color: #e0e0e0;
    --error-color: #e50220;
    --success-color: #00a046;
    --warning-color: #ff9800;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-sm: 4px;
}

* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========================================
   Container
   ======================================== */

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

/* ========================================
   Shop Layout
   ======================================== */

.shop-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   Header
   ======================================== */

.shop-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-promo {
    font-weight: 500;
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.search-box {
    flex: 1;
    max-width: 600px;
}

.search-box form {
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

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

/* Search Bar with Suggestions */
.search-bar-container {
    position: relative;
    width: 100%;
}

.search-bar-form {
    display: flex;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-hover);
    z-index: 1001;
    max-height: 450px;
    overflow-y: auto;
}

.search-suggestions.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-light);
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.suggestions-section {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.suggestions-section:last-of-type {
    border-bottom: none;
}

.suggestions-section-title {
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.15s;
}

.suggestion-item:hover {
    background: var(--primary-light);
    text-decoration: none;
}

/* Category suggestion */
.suggestion-category svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.suggestion-category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-category-name {
    font-weight: 500;
}

.suggestion-category-parent {
    font-size: 12px;
    color: var(--text-muted);
}

/* Product suggestion */
.suggestion-product-image {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-color);
}

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

.suggestion-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
}

.suggestion-product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.suggestion-product-name {
    font-size: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-product-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.search-all-link {
    display: block;
    padding: 12px 15px;
    background: var(--bg-color);
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-top: 1px solid var(--border-color);
}

.search-all-link:hover {
    background: var(--primary-light);
    text-decoration: none;
}

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

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.cart-link:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-text {
    font-weight: 500;
}

/* Header Navigation */
.header-nav {
    background: var(--secondary-color);
}

.category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
}

.category-item {
    position: relative;
}

.category-item > a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.category-item > a:hover,
.category-item:hover > a {
    background: var(--primary-color);
    text-decoration: none;
}

.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 100;
}

.category-item:hover .category-dropdown {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    text-decoration: none;
}

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

.shop-main {
    flex: 1;
    padding: 30px 0;
}

/* ========================================
   Footer
   ======================================== */

.shop-footer {
    background: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin: 0 0 20px;
    font-size: 18px;
}

.footer-section p {
    color: #ccc;
    margin: 0;
}

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

.footer-section li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* ========================================
   Breadcrumb
   ======================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-light);
}

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

.breadcrumb .separator {
    color: var(--text-muted);
}

/* ========================================
   Home Page
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    text-align: center;
}

.hero-content h1 {
    font-size: 36px;
    margin: 0 0 15px;
}

.hero-content p {
    font-size: 18px;
    margin: 0 0 25px;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
}

.section-title {
    font-size: 24px;
    margin: 0 0 25px;
    color: var(--text-color);
}

.categories-section,
.featured-section {
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.category-icon {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-name {
    font-weight: 600;
    font-size: 15px;
}

/* USP Section */
.usp-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.usp-item {
    text-align: center;
}

.usp-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.usp-item h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.usp-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-grid-loading,
.product-grid-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.product-grid-empty svg {
    color: var(--border-color);
    margin-bottom: 20px;
}

.product-grid-empty h3 {
    margin: 0 0 10px;
    color: var(--text-color);
}

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

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

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

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    color: var(--border-color);
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--error-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--text-muted);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    margin-bottom: 10px;
}

.product-name:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.product-price-section {
    margin-bottom: 15px;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price.discounted {
    color: var(--error-color);
}

.product-original-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
}

.product-price-login {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
}

.btn-add-to-cart.disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

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

.category-page {
    min-height: 60vh;
}

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

.category-header h1 {
    margin: 0;
    font-size: 28px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-size: 14px;
    color: var(--text-light);
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
}

.category-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.category-main {
    min-width: 0;
}

.results-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

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

.shop-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 140px;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.filter-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px;
    color: var(--text-color);
}

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

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

.price-input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.price-separator {
    color: var(--text-muted);
}

.price-currency {
    font-size: 14px;
    color: var(--text-light);
}

.btn-apply-filter {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
}

.btn-apply-filter:hover {
    background: var(--primary-dark);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.btn-show-more {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    padding: 5px 0;
    text-align: left;
}

.btn-show-more:hover {
    text-decoration: underline;
}

.btn-clear-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--error-color);
    color: var(--error-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
}

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

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-link:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--text-muted);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-light);
}

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

.product-page {
    min-height: 60vh;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-gallery {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.product-image-placeholder.large {
    width: 100%;
    height: 400px;
    background: #f9f9f9;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
}

.product-info .product-brand {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-title {
    font-size: 28px;
    margin: 0 0 10px;
    line-height: 1.3;
}

.product-sku {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
}

.product-availability.in-stock {
    background: var(--primary-light);
    color: var(--primary-color);
}

.product-availability.orderable {
    background: #fff8e1;
    color: #f59e0b;
}

.product-availability.out-of-stock {
    background: #fee;
    color: var(--error-color);
}

.product-arrival-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #f59e0b;
    margin-bottom: 25px;
    margin-top: -18px;
}

.product-price-box {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.discount-info {
    margin-bottom: 8px;
}

.discount-info .discount-badge {
    position: static;
    display: inline-block;
    margin-right: 10px;
}

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

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-login-required {
    color: var(--text-light);
    font-style: italic;
}

.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 44px;
    background: var(--bg-color);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

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

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

.btn-add-to-cart.large {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
}

.cart-notification {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.manufacturer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.manufacturer-link:hover {
    color: var(--primary-color);
}

.product-specifications,
.product-description {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.product-specifications h2,
.product-description h2 {
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background: var(--bg-color);
}

.specs-table td {
    padding: 12px 15px;
    font-size: 14px;
}

.spec-name {
    font-weight: 600;
    width: 40%;
    color: var(--text-light);
}

.spec-value {
    color: var(--text-color);
}

.description-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
}

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

.search-page {
    min-height: 60vh;
}

.search-header {
    margin-bottom: 25px;
}

.search-header h1 {
    font-size: 28px;
    margin: 0 0 10px;
}

.search-query {
    color: var(--text-light);
    margin: 0;
}

.search-box-large {
    margin-bottom: 30px;
}

.search-box-large form {
    display: flex;
    max-width: 600px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-box-large .search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-box-large .search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.search-box-large .search-button:hover {
    background: var(--primary-dark);
}

.search-empty {
    text-align: center;
    padding: 60px 20px;
}

.search-empty svg {
    color: var(--border-color);
    margin-bottom: 20px;
}

.search-empty h3 {
    margin: 0 0 10px;
}

.search-empty p {
    color: var(--text-light);
    margin: 0;
}

/* ========================================
   Cart Page
   ======================================== */

.cart-page {
    min-height: 60vh;
}

.cart-page h1 {
    font-size: 28px;
    margin: 0 0 30px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
}

.cart-empty svg {
    color: var(--border-color);
    margin-bottom: 20px;
}

.cart-empty h2 {
    margin: 0 0 10px;
}

.cart-empty p {
    color: var(--text-light);
    margin: 0 0 25px;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
}

.btn-continue-shopping:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 120px 1fr 50px;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

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

.item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

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

.item-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    border-radius: var(--radius-sm);
}

.item-name {
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-name:hover {
    color: var(--primary-color);
}

.item-price,
.item-total {
    font-weight: 600;
}

.item-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-quantity .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.item-quantity .qty-value {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

.btn-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-remove:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    position: sticky;
    top: 140px;
}

.cart-summary h3 {
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.shipping-free {
    color: var(--primary-color);
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
}

.total-price {
    color: var(--primary-color);
    font-size: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.btn-checkout:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-checkout:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.btn-continue-shopping-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.btn-continue-shopping-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-clear-cart {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
}

.btn-clear-cart:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

/* ========================================
   Loading States
   ======================================== */

.loading,
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Not Found
   ======================================== */

.not-found {
    text-align: center;
    padding: 60px 20px;
}

.not-found h2 {
    margin: 0 0 10px;
}

.not-found p {
    color: var(--text-light);
    margin: 0 0 25px;
}

.btn-back {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
}

.btn-back:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

/* ========================================
   Error UI
   ======================================== */

#blazor-error-ui {
    background: var(--error-color);
    padding: 12px 20px;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
}

#blazor-error-ui a {
    color: white;
    margin-left: 15px;
}

.blazor-error-boundary {
    background: var(--error-color);
    padding: 15px;
    color: white;
}

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

@media (max-width: 1200px) {
    .category-content {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width: 992px) {
    .category-content {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-main-content {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 15px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .item-product {
        grid-column: 1;
    }

    .item-price,
    .item-quantity,
    .item-total {
        justify-self: start;
    }

    .item-price::before {
        content: 'Ar: ';
        color: var(--text-light);
    }

    .item-total::before {
        content: 'Osszesen: ';
        color: var(--text-light);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .category-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 13px;
        min-height: 38px;
    }

    .product-price {
        font-size: 16px;
    }
}
