/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #FAFAFA;
    --color-white: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #666666;
    --color-accent: #E8A87C;
    --color-accent-dark: #D4915E;
    --color-accent-light: #F5D5BE;
    --color-border: #E5E5E5;
    --color-dark: #2C2C2C;
    --color-success: #4CAF50;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1400px;
    --header-height: 80px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--color-accent);
    color: var(--color-text);
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}

.top-bar a {
    color: var(--color-text);
    text-decoration: underline;
}

/* ===== HEADER ===== */
.header {
    background: var(--color-white);
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--color-accent-dark);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
    font-family: var(--font-body);
    margin-top: 1px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s;
    white-space: nowrap;
}

.main-nav a:hover { color: var(--color-accent-dark); }

.nav-categories {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-categories a {
    font-size: 14px;
    font-weight: 400;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-categories a:hover,
.nav-categories a.active {
    border-bottom-color: var(--color-accent);
    color: var(--color-accent-dark);
}

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

.search-toggle, .cart-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-text);
    position: relative;
    padding: 8px;
    transition: color 0.2s;
}

.search-toggle:hover, .cart-toggle:hover { color: var(--color-accent-dark); }

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count:empty { display: none; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.active { display: flex; }

.search-box {
    background: var(--color-white);
    padding: 32px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-box input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    outline: none;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--color-accent);
}

.search-input-wrapper {
    position: relative;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--color-text-light);
    padding: 4px 8px;
    transition: color 0.2s;
}

.search-clear:hover { color: var(--color-text); }

/* Live Search Results */
.search-results {
    margin-top: 12px;
    max-height: 480px;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
}

.search-results-header {
    padding: 10px 4px;
    font-size: 13px;
    color: var(--color-text-light);
    font-weight: 500;
}

.search-results-list {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

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

.search-result-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: #F5F5F5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.search-result-img .no-img {
    font-size: 24px;
    color: #CCC;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-desc {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-price {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-see-all {
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-dark);
    border-top: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}

.search-see-all:hover {
    background: var(--color-bg);
}

.search-loading {
    text-align: center;
    padding: 24px;
    color: var(--color-text-light);
    font-size: 14px;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #2C2C2C 0%, #4A3728 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232C2C2C"/><circle cx="200" cy="300" r="400" fill="%23ffffff08"/><circle cx="1000" cy="200" r="300" fill="%23E8A87C10"/></svg>') center/cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* ===== CATEGORIES GRID ===== */
.categories-section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 40px);
    text-align: center;
    margin-bottom: 48px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-card:hover { transform: translateY(-4px); }

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.category-card h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 22px;
}

/* ===== PRODUCT GRID ===== */
.products-section {
    padding: 60px 0 80px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid var(--color-border);
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.product-card-image {
    aspect-ratio: 1;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s;
}

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

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

.product-card-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-dark);
    margin-bottom: 6px;
}

.product-card-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-desc {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.product-card-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-light);
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.price-save {
    display: inline-block;
    background: #E8F5E9;
    color: #2E7D32;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.product-price-original {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}

.product-price-original s {
    color: #bbb;
}

.price-save-detail {
    color: #2E7D32;
    font-weight: 600;
}

.product-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.btn-add-cart {
    flex: 1;
    padding: 10px 16px;
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-add-cart:hover { background: var(--color-accent-dark); }

.btn-view {
    padding: 10px 16px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-view:hover {
    border-color: var(--color-text);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    padding: 40px 0 80px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.product-main-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    padding: 32px;
}

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

.product-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
}

.product-thumbnails img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
    transition: border-color 0.2s;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: var(--color-accent);
}

.product-info h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 8px;
}

.product-sku {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.product-price-large {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-price-vat {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

/* Product category badge */
.product-category-badge {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-dark);
    background: var(--color-accent-light);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Product variant description (e.g. "børstet messing") */
.product-variant-desc {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

/* Product attributes */
.product-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--color-bg);
    border-radius: 8px;
}

.product-attr {
    font-size: 14px;
}

.product-attr-label {
    color: var(--color-text-light);
    margin-right: 4px;
}

.product-attr-value {
    font-weight: 600;
}

/* Product tabs */
.product-tabs-section {
    padding: 48px 0 80px;
    background: var(--color-bg);
    margin-top: 48px;
}

.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 32px;
}

.product-tab-btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.product-tab-btn:hover {
    color: var(--color-text);
}

.product-tab-btn.active {
    color: var(--color-text);
    font-weight: 600;
    border-bottom-color: var(--color-accent);
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.active {
    display: block;
}

/* Rich text content from API */
.product-rich-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 800px;
}

.product-rich-text h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 16px;
    margin-top: 8px;
    line-height: 1.3;
}

.product-rich-text h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.product-rich-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
}

.product-rich-text p {
    margin-bottom: 16px;
}

.product-rich-text ul {
    margin: 12px 0 24px 24px;
}

.product-rich-text li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.product-rich-text iframe {
    border-radius: 12px;
    margin: 16px 0;
}

/* Documents list */
.product-documents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
}

.product-doc-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.product-doc-link:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-doc-icon {
    font-size: 28px;
}

.product-doc-link strong {
    display: block;
    font-size: 15px;
}

.product-doc-link small {
    font-size: 12px;
    color: var(--color-text-light);
}

.product-doc-dl {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-dark);
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 6px;
}

.stock-available {
    background: #E8F5E9;
    color: #2E7D32;
}

.stock-unavailable {
    background: #FFF3E0;
    color: #E65100;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.quantity-selector label {
    font-size: 14px;
    font-weight: 600;
}

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

.quantity-input button {
    width: 40px;
    height: 40px;
    background: var(--color-bg);
    border: none;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s;
}

.quantity-input button:hover { background: var(--color-border); }

.quantity-input input {
    width: 56px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--color-text-light);
}

.breadcrumb a:hover { color: var(--color-accent-dark); }
.breadcrumb span { margin: 0 8px; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination button {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination button:hover { border-color: var(--color-accent); }

.pagination button.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text);
    font-weight: 700;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
}

.cart-overlay.active { display: block; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--color-white);
    z-index: 301;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.cart-close:hover { color: var(--color-text); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
    width: 72px;
    height: 72px;
    background: #F5F5F5;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-info { flex: 1; }

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-sku {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    border-radius: 4px;
    font-size: 14px;
}

.cart-item-qty span { font-size: 14px; font-weight: 600; }

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #cc0000;
    font-size: 12px;
    margin-top: 4px;
}

.cart-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--color-text-light);
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-footer {
    border-top: 1px solid var(--color-border);
    padding: 24px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-section { padding: 40px 0 80px; }

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

.checkout-form h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

.order-summary {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 16px;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
}

.order-note {
    margin-top: 16px;
    padding: 16px;
    background: #FFF8E1;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #5D4037;
}

/* ===== ORDER SUCCESS ===== */
.order-success {
    text-align: center;
    padding: 80px 0;
}

.order-success svg {
    width: 80px;
    height: 80px;
    color: var(--color-success);
    margin-bottom: 24px;
}

.order-success h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 16px;
}

.order-success p {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 16px;
}

.footer p { font-size: 14px; line-height: 1.8; }

.footer-links {
    list-style: none;
}

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

.footer-links a {
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ===== LOADING ===== */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 48px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-dark);
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 400;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover { border-color: var(--color-accent); }

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    font-weight: 600;
}

/* ===== FILTER DROPDOWNS ===== */
.filter-dropdowns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    align-items: flex-end;
}

.filter-dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-dropdown label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-dropdown select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 180px;
    transition: border-color 0.2s;
}

.filter-dropdown select:hover {
    border-color: var(--color-accent);
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }

    .hero { padding: 48px 0; }

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

    .product-card-body { padding: 12px 14px 14px; }
    .product-card-name { font-size: 13px; }
    .product-card-price { font-size: 15px; }
    .product-card-actions { flex-direction: column; }

    .categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-white);
    z-index: 500;
    padding: 24px;
    flex-direction: column;
}

.mobile-nav.active { display: flex; }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 28px;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

/* ===== SHOWROOM & BOOKING ===== */
.showroom-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2C2C2C 0%, #4A3728 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.showroom-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="1100" cy="100" r="350" fill="%23ffffff06"/><circle cx="100" cy="500" r="250" fill="%23E8A87C08"/></svg>') center/cover;
}

.showroom-header {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 56px;
}

.showroom-section .section-title {
    color: white;
}

.showroom-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255,255,255,0.75);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.showroom-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.showroom-booking-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.booking-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(232,168,124,0.4);
    transform: translateY(-2px);
}

.booking-card-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,168,124,0.15);
    border-radius: 12px;
}

.booking-card-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 6px;
    color: white;
}

.booking-card-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.showroom-info-panel {
    background: var(--color-white);
    border-radius: 16px;
    padding: 32px;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.showroom-locations h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.showroom-location {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.showroom-location:last-child {
    border-bottom: none;
}

.location-pin {
    font-size: 24px;
    flex-shrink: 0;
}

.showroom-location strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.showroom-location p {
    font-size: 13px;
    color: var(--color-text-light);
    margin: 0;
}

.btn-book {
    text-align: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
}

.showroom-qr {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.qr-code-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 8px;
    border-radius: 8px;
}

.showroom-qr p {
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0;
}

@media (max-width: 1024px) {
    .showroom-grid {
        grid-template-columns: 1fr;
    }
    .showroom-info-panel {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .showroom-section { padding: 48px 0; }
    .booking-card { padding: 20px; }
    .booking-card-icon { width: 44px; height: 44px; font-size: 24px; }
}

/* ===== WISHLIST / PLANLEGG DITT BAD ===== */
.wishlist-toggle {
    position: relative;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.wishlist-toggle:hover { transform: scale(1.15); }

.wishlist-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--color-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

.wishlist-badge:empty { display: none; }

.btn-wishlist {
    background: none;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    flex-shrink: 0;
}

.btn-wishlist:hover { opacity: 1; border-color: #E57373; transform: scale(1.1); }
.btn-wishlist.active { opacity: 1; border-color: #E57373; background: #FFF0F0; }

.wishlist-section { padding: 48px 0 80px; min-height: 60vh; }

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.wishlist-subtitle { color: var(--color-text-light); font-size: 15px; margin-top: 4px; max-width: 600px; }

.wishlist-count {
    color: var(--color-text-light);
    font-size: 14px;
    white-space: nowrap;
}

.wishlist-empty { text-align: center; padding: 80px 0; }
.wishlist-empty h2 { font-family: var(--font-heading); margin-bottom: 8px; }
.wishlist-empty p { color: var(--color-text-light); }

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

.wishlist-card {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wishlist-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

.wishlist-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wishlist-remove:hover { background: #FEE; }

.wishlist-card-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #F8F8F8;
}

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

.wishlist-card-body { padding: 14px; }

.wishlist-card-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
}

.wishlist-card-name:hover { color: var(--color-accent); }

.wishlist-card-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.btn-small { font-size: 12px; padding: 6px 12px; }

.wishlist-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 16px;
}

.wishlist-total-items { font-size: 14px; color: var(--color-text-light); }
.wishlist-total-price { font-size: 18px; margin-top: 4px; }

.wishlist-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .wishlist-header { flex-direction: column; }
    .wishlist-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .wishlist-actions { flex-direction: column; text-align: center; }
    .wishlist-buttons { justify-content: center; }
}

/* ===== ROOM PLANNER ===== */
.planner-section { padding: 32px 0 80px; }

.planner-header { margin-bottom: 24px; }

.planner-room-settings {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.planner-input-group { display: flex; align-items: center; gap: 6px; }
.planner-input-group label { font-size: 13px; font-weight: 600; color: var(--color-text-light); white-space: nowrap; }
.planner-input-group input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.planner-stats { display: flex; gap: 16px; font-size: 13px; color: var(--color-text-light); }

.planner-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: start;
}

.planner-sidebar {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.planner-sidebar h3 { font-size: 15px; margin-bottom: 4px; }
.planner-hint { font-size: 12px; color: var(--color-text-light); margin-bottom: 12px; }

.planner-palette { display: flex; flex-direction: column; gap: 6px; }

.planner-fixture {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #F8F8F8;
    border-radius: 8px;
    cursor: grab;
    transition: background 0.15s, transform 0.15s;
    font-size: 13px;
    user-select: none;
}

.planner-fixture:hover { background: #EEE; transform: translateX(2px); }
.planner-fixture:active { cursor: grabbing; }
.planner-fixture-icon { font-size: 18px; flex-shrink: 0; }
.planner-fixture-label { flex: 1; font-weight: 500; }
.planner-fixture-size { font-size: 11px; color: #999; white-space: nowrap; }

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

.planner-canvas-wrap {
    position: relative;
    display: block;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 16px;
    overflow: auto;
}

.planner-canvas {
    display: block;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    max-width: 100%;
    height: auto;
    image-rendering: crisp-edges;
}

.planner-toolbar {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px;
    background: #F8F8F8;
    border-radius: 8px;
}

.planner-zoom-display {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    min-width: 45px;
    text-align: center;
}

.planner-toolbar .btn-small {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 40px;
}

.planner-toolbar .btn-small[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.planner-tips {
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-text-light);
}

.planner-tips kbd {
    background: #EEE;
    border: 1px solid #CCC;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
    white-space: nowrap;
}

.planner-divider { height: 1px; background: #E5E5E5; margin: 16px 0; }

.planner-product-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.planner-product-results { max-height: 300px; overflow-y: auto; }

.planner-product-item {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    align-items: center;
}

.planner-product-item:hover { background: #F0F0F0; }

.planner-product-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #F8F8F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

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

.planner-product-info { min-width: 0; }
.planner-product-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.planner-product-meta { font-size: 11px; color: #999; }

.planner-item.is-product { border-style: dashed; }

.planner-item-img {
    position: absolute;
    inset: 2px;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

.planner-item.is-product .planner-item-label,
.planner-item.is-product .planner-item-size {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 3px rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .planner-layout { grid-template-columns: 1fr; }
    .planner-sidebar { position: static; max-height: none; }
    .planner-palette { flex-direction: row; flex-wrap: wrap; }
    .planner-fixture { padding: 6px 8px; font-size: 12px; }
    .planner-fixture-size { display: none; }
    .planner-canvas-wrap { overflow-x: auto; }
    .planner-toolbar { gap: 6px; }
    .planner-toolbar .btn-small { padding: 5px 10px; font-size: 11px; min-width: auto; }
    .planner-zoom-display { min-width: 40px; font-size: 11px; }
}

/* ===== TRUCK DELIVERY ANIMATION ===== */
.truck-animation-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 44, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.truck-animation-overlay.active {
    opacity: 1;
}

.truck-animation-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.truck-scene {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
}

.truck-message {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    color: white;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

.truck-road {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.truck-ground {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 3px;
    background: rgba(255,255,255,0.3);
}

.truck-ground::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0, rgba(255,255,255,0.5) 20px, transparent 20px, transparent 40px);
    animation: roadScroll 0.8s linear infinite;
}

/* Package drops into truck */
.truck-package {
    position: absolute;
    font-size: 48px;
    left: 50%;
    top: -60px;
    transform: translateX(-50%);
    opacity: 0;
    animation: packageDrop 1s cubic-bezier(0.2, 0, 0.8, 1) 0.5s forwards;
}

/* The truck - starts centered, drives right */
.truck-vehicle {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-65%);
    width: 180px;
    height: 110px;
    animation: truckDriveAway 1.8s cubic-bezier(0.4, 0, 0.2, 1) 2.4s forwards;
}

.truck-box {
    position: absolute;
    left: 0;
    bottom: 24px;
    width: 110px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border-radius: 6px 6px 4px 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.truck-box-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--color-accent-dark);
    border-radius: 6px 6px 0 0;
}

.truck-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.truck-cabin {
    position: absolute;
    right: 0;
    bottom: 24px;
    width: 60px;
    height: 56px;
    background: linear-gradient(135deg, #555, #444);
    border-radius: 4px 16px 4px 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.truck-window {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 36px;
    height: 24px;
    background: linear-gradient(135deg, #8EC5FC, #A7D8F0);
    border-radius: 3px 10px 3px 3px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.15);
}

.truck-wheel {
    position: absolute;
    bottom: 0;
    width: 28px;
    height: 28px;
    background: #333;
    border-radius: 50%;
    border: 4px solid #555;
    box-shadow: inset 0 0 0 4px #222;
    animation: wheelSpin 0.4s linear infinite;
}

.truck-wheel-back {
    left: 16px;
}

.truck-wheel-front {
    right: 10px;
}

.truck-exhaust {
    position: absolute;
    left: -8px;
    bottom: 20px;
    width: 8px;
    height: 8px;
}

.truck-exhaust::before,
.truck-exhaust::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    animation: exhaustPuff 1s ease-out infinite;
}

.truck-exhaust::before {
    width: 12px;
    height: 12px;
    left: -10px;
    top: -4px;
}

.truck-exhaust::after {
    width: 8px;
    height: 8px;
    left: -20px;
    top: -2px;
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes packageDrop {
    0% { opacity: 0; top: -60px; transform: translateX(-50%) rotate(0deg); }
    20% { opacity: 1; }
    60% { top: 40px; transform: translateX(-50%) rotate(-10deg); }
    75% { top: 28px; transform: translateX(-50%) rotate(5deg); }
    85% { top: 36px; transform: translateX(-50%) rotate(-2deg); }
    100% { top: 32px; opacity: 0; transform: translateX(-50%) rotate(0deg) scale(0.3); }
}

@keyframes truckDriveAway {
    0% { left: 50%; transform: translateX(-65%); }
    10% { left: 50%; transform: translateX(-65%); }
    100% { left: 120%; transform: translateX(0%); }
}

@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes exhaustPuff {
    0% { opacity: 0.6; transform: scale(1) translateX(0); }
    100% { opacity: 0; transform: scale(2.5) translateX(-20px); }
}

@keyframes roadScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-40px); }
}

/* ===== INFO CARDS (Shipping/Mounting/Returns) ===== */
.info-cards-section {
    padding: 80px 0;
    background: #F8F6F3;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.info-card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.info-card > p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.info-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.info-list li:last-child { border-bottom: none; }

.info-list li a { color: var(--color-accent); text-decoration: none; }
.info-list li a:hover { text-decoration: underline; }

.free-shipping-badge {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    margin-bottom: 16px;
}

.info-note {
    font-size: 13px !important;
    color: #999 !important;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    .info-cards-section { padding: 48px 0; }
    .info-cards-grid { grid-template-columns: 1fr; }
    .info-card { padding: 24px 20px; }
}

/* ===== MOUNTING OPTION ===== */
.mounting-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.mounting-option:hover {
    border-color: var(--color-accent);
    background: #FFFAF6;
}

.mounting-option.active {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, #FFF8F2, #FFF3E8);
    box-shadow: 0 0 0 3px rgba(212, 149, 106, 0.15);
}

.mounting-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 2px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: transparent;
    background: white;
    transition: all 0.25s ease;
}

.mounting-option.active .mounting-check {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.mounting-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mounting-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.mounting-content strong {
    display: block;
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 3px;
}

.mounting-desc {
    display: block;
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* ===== STOCK BADGES ON PRODUCT CARDS ===== */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.3px;
}

.stock-badge.in-stock {
    background: #E8F5E9;
    color: #2E7D32;
}

.stock-badge.out-of-stock {
    background: #FFF3E0;
    color: #E65100;
}

.product-card-image {
    position: relative;
}

/* ===== RECENTLY VIEWED SCROLL ===== */
.recently-viewed-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.recently-viewed-scroll::-webkit-scrollbar {
    height: 4px;
}

.recently-viewed-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.recently-viewed-scroll::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 2px;
}

.recent-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.2s;
}

.recent-item:hover {
    transform: translateY(-4px);
}

.recent-item-img {
    width: 160px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 8px;
}

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

.recent-item-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.recent-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent-dark);
}

/* ===== TAWK.TO CUSTOM STYLING ===== */
/* Override Tawk.to widget color to match our theme */
#tawk-bubble-container .tawk-button,
.tawk-min-container .tawk-button-circle {
    background-color: var(--color-accent) !important;
}

@media (max-width: 768px) {
    .recent-item { flex: 0 0 130px; }
    .recent-item-img { width: 130px; height: 100px; }
}

/* ===== NO IMAGE PLACEHOLDER ===== */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
    color: #CCC;
    font-size: 48px;
}

/* ===== ACCESSORY SUGGESTIONS ===== */
.accessory-suggestions {
    margin-top: 48px;
    padding: 32px 24px;
    background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
    border: 2px solid #FFD54F;
    border-radius: 16px;
}

.accessory-suggestions .section-title {
    color: #F57F17;
}

/* ===== PRODUCT SERIES LINK ===== */
.product-series-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent-dark);
    transition: all 0.2s;
}

.product-series-link:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
}

/* ===== CART SHIPPING INFO ===== */
.cart-shipping-info {
    padding: 10px 16px;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.cart-shipping-info.free {
    background: #E8F5E9;
    color: #2E7D32;
}

.cart-shipping-info.free .shipping-check {
    font-weight: 700;
    font-size: 14px;
}

.cart-shipping-info.not-free {
    background: #FFF8E1;
    color: #6D4C00;
}

.shipping-progress-bar {
    width: 100%;
    height: 6px;
    background: #E0E0E0;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.shipping-progress-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    cursor: pointer;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background: var(--color-accent-dark);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    z-index: 1000;
}

.cookie-ok-btn {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-ok-btn:hover {
    background: var(--color-accent-dark);
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 70px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .cookie-banner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 0;
    background: var(--color-white);
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-white);
    user-select: none;
}

.faq-icon {
    font-size: 22px;
    font-weight: 400;
    color: var(--color-accent-dark);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

@media (max-width: 768px) {
    .faq-section { padding: 48px 0; }
    .faq-question { padding: 16px 18px; font-size: 15px; }
    .faq-answer { padding: 0 18px; font-size: 14px; }
    .faq-item.active .faq-answer { padding: 0 18px 16px; }
}

/* ===== LEGAL PAGES (Terms & Privacy) ===== */
.legal-page {
    padding: 60px 0 80px;
    background: var(--color-bg);
}

.legal-container {
    max-width: 800px;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 8px;
    color: var(--color-text);
}

.legal-updated {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.legal-page p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.legal-page ul {
    margin: 8px 0 16px 24px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
}

.legal-page ul li {
    margin-bottom: 4px;
}

.legal-page a {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .legal-page { padding: 40px 0 60px; }
    .legal-page h2 { margin-top: 24px; }
}

/* ===== PRODUCT DELIVERY ESTIMATE ===== */
.product-delivery-estimate {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 6px;
    padding: 8px 0;
}
