/* CSS Variables for Theming */
:root[data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-tertiary: #999;
    --border-color: #e0e6ed;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.12);
    --accent-primary: #0066cc;
    --accent-hover: #0052a3;
    --accent-light: #e3f2fd;
    --header-gradient-start: #0066cc;
    --header-gradient-end: #0052a3;
}

:root[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #333;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --border-color: #444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.4);
    --accent-primary: #4d94ff;
    --accent-hover: #3380ff;
    --accent-light: #1a3d5c;
    --header-gradient-start: #2563eb;
    --header-gradient-end: #1e40af;
}

:root[data-theme="ocean"] {
    --bg-primary: #e8f4f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #d1ecf1;
    --text-primary: #0c2d48;
    --text-secondary: #2e5266;
    --text-tertiary: #6b8996;
    --border-color: #b8daff;
    --shadow-sm: 0 2px 8px rgba(13, 110, 253, 0.1);
    --shadow-md: 0 8px 20px rgba(13, 110, 253, 0.15);
    --accent-primary: #0077be;
    --accent-hover: #005a8d;
    --accent-light: #cce5ff;
    --header-gradient-start: #0077be;
    --header-gradient-end: #004d73;
}

:root[data-theme="forest"] {
    --bg-primary: #f0f4f0;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8f5e8;
    --text-primary: #1b3a1b;
    --text-secondary: #4a5f4a;
    --text-tertiary: #7a8f7a;
    --border-color: #c8e6c9;
    --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.1);
    --shadow-md: 0 8px 20px rgba(46, 125, 50, 0.15);
    --accent-primary: #2e7d32;
    --accent-hover: #1b5e20;
    --accent-light: #c8e6c9;
    --header-gradient-start: #2e7d32;
    --header-gradient-end: #1b5e20;
}

:root[data-theme="sunset"] {
    --bg-primary: #fff5f0;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffe4d6;
    --text-primary: #4a1504;
    --text-secondary: #7a3a1a;
    --text-tertiary: #9a6a5a;
    --border-color: #ffd0b3;
    --shadow-sm: 0 2px 8px rgba(255, 87, 34, 0.1);
    --shadow-md: 0 8px 20px rgba(255, 87, 34, 0.15);
    --accent-primary: #ff6b35;
    --accent-hover: #e55a2b;
    --accent-light: #ffe4d6;
    --header-gradient-start: #ff6b35;
    --header-gradient-end: #e55a2b;
}

:root[data-theme="midnight"] {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #252d3d;
    --text-primary: #e3e8ef;
    --text-secondary: #a0aec0;
    --text-tertiary: #718096;
    --border-color: #2d3748;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.5);
    --accent-primary: #667eea;
    --accent-hover: #5a67d8;
    --accent-light: #2d3748;
    --header-gradient-start: #667eea;
    --header-gradient-end: #5a67d8;
}

:root[data-theme="purple"] {
    --bg-primary: #f8f5ff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0ebff;
    --text-primary: #2d1b4e;
    --text-secondary: #5a4a7a;
    --text-tertiary: #8a7aa0;
    --border-color: #d6c9ff;
    --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.1);
    --shadow-md: 0 8px 20px rgba(124, 58, 237, 0.15);
    --accent-primary: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-light: #ede9fe;
    --header-gradient-start: #7c3aed;
    --header-gradient-end: #6d28d9;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Focus states for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

.header-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-selector {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-selector:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-selector:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-selector option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

.auth-link {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-link-register {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-primary);
    font-weight: 600;
}

.auth-link-register:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.user-menu-dropdown a:last-child {
    border-bottom: none;
}

.user-menu-dropdown a:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
}

/* Info Notice */
.info-notice {
    margin: 1rem 0;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.notice-icon {
    font-size: 1.2rem;
}

/* Filters and Search */
.filters {
    margin: 2rem 0 1rem;
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-box {
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 0.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.category-filters,
.stock-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 1rem;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.sort-controls label {
    font-weight: 500;
    color: var(--text-secondary);
}

.sort-controls select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-controls select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.view-btn:hover {
    background: var(--bg-tertiary);
}

.view-btn.active {
    background: var(--accent-primary);
    color: white;
}

.btn-export {
    padding: 10px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-export:hover {
    background: var(--accent-hover);
}

/* Stats */
.stats {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Products Grid View */
.products-grid[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.stock-in {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-out {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stock-alternative {
    position: absolute;
    top: 45px;
    left: 10px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.btn-buy-alternative {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-color: #e67e22;
}

.btn-buy-alternative:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
}

.btn-notify {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    background: var(--accent-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-notify-active {
    background: #28a745;
    border-color: #20c997;
}

.btn-notify-active:hover {
    background: #218838;
    transform: translateY(-1px);
}

.notify-icon {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

/* CSS Bell Icon - guaranteed to work everywhere */
.notify-icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50% 50% 0 0;
}

.notify-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 14px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-primary);
}

.product-image {
    background: var(--bg-tertiary);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.product-card:hover .product-image {
    background: var(--bg-primary);
}

.product-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-name {
    font-size: 1.15rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.product-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0;
    width: fit-content;
    letter-spacing: 0.02em;
}

.product-code {
    display: block;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    margin-bottom: 0;
    margin-top: 0;
    width: fit-content;
    font-weight: 500;
}

.product-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
    align-items: stretch;
}

.product-actions .btn-view,
.product-actions .btn-buy,
.product-actions .btn-notify {
    flex: 1;
}

.btn-view,
.btn-specs {
    flex: 1;
    padding: 11px 16px;
    text-align: center;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-view {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-view:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-specs {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 2px solid var(--border-color);
}

.btn-specs:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-buy {
    padding: 11px 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.btn-buy:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Products List View - ENHANCED PROFESSIONAL DESIGN */
.products-grid[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.product-list-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
}

.product-list-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.list-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
}

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

.list-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.list-info .product-name {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.list-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.list-meta .product-category {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.list-meta .product-code {
    margin: 0;
    font-size: 0.8rem;
}

/* Price display in list view */
.list-price {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.list-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 180px;
}

.list-actions .btn-view,
.list-actions .btn-specs,
.list-actions .btn-buy,
.list-actions .btn-notify {
    flex: initial;
    padding: 10px 18px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

/* Product Detail Page */
.breadcrumb {
    margin: 1.5rem 0;
}

.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

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

.product-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 3rem;
}

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

.product-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

.badge-code {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.badge-stock-in {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-stock-out {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.product-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
}

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

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

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
}

.btn-buy-large {
    padding: 8px 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.btn-buy-large:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
}

.product-specs {
    margin-top: 0;
}

.product-specs h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.product-specs th,
.product-specs td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.product-specs th {
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
}

.product-specs td {
    color: var(--text-primary);
}

.product-specs td a {
    color: var(--accent-primary);
    text-decoration: none;
}

.product-specs td a:hover {
    text-decoration: underline;
}

.product-description {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 8px;
    line-height: 1.7;
}

.product-description p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.note {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.note a {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Content Sections Container */
.content-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.content-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.content-section:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    cursor: pointer;
    user-select: none;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    font-size: 1.3rem;
}

.section-toggle {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.section-toggle:hover {
    background: var(--accent-light);
    color: var(--accent-primary);
    transform: scale(1.1);
}

.section-toggle.collapsed {
    transform: rotate(180deg);
}

.section-content {
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s;
}

.section-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin: 0;
}

/* Image Galleries Section */
.image-galleries-section {
    margin-top: 0;
}

.image-galleries-section > h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gallery-section {
    margin-bottom: 2rem;
}

.gallery-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

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

.gallery-item {
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: var(--bg-tertiary);
}

.gallery-video {
    width: 100%;
    max-height: 300px;
}

/* Documents Section */
.documents-section {
    margin-top: 0;
}

.documents-section > h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Installation Guide Highlight */
.install-guide-highlight {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.install-guide-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.install-guide-icon {
    font-size: 2rem;
}

.install-guide-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.install-guide-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    gap: 1rem;
}

.install-guide-link:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.install-guide-filename {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.install-guide-action {
    color: var(--accent-primary);
    font-weight: 600;
    white-space: nowrap;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.document-link:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.document-icon {
    font-size: 1.5rem;
}

.document-name {
    flex: 1;
    font-weight: 500;
}

.document-action {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Detailed Specifications */
.detailed-specs {
    margin-top: 0;
}

.detailed-specs > h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.spec-section {
    margin-bottom: 2rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.spec-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

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

.spec-table th,
.spec-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.spec-table th {
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
}

.spec-table td {
    color: var(--text-primary);
    white-space: pre-line;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-group-header td {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    font-weight: 600;
    padding: 10px 12px;
}

.spec-child th {
    padding-left: 2rem;
    font-weight: 500;
}

.spec-note {
    color: var(--text-tertiary);
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
}

/* Error and No Results */
.error,
.no-results {
    background: var(--bg-secondary);
    padding: 3rem;
    text-align: center;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Product Comparison */
.compare-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.compare-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.compare-checkbox label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

/* Comparison Bar */
.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-primary);
    color: white;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.comparison-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.comparison-info {
    font-size: 1.1rem;
    font-weight: 500;
}

.comparison-info span {
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-compare,
.btn-clear-compare {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-compare {
    background: var(--bg-primary);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

.btn-compare:hover {
    background: var(--bg-tertiary);
}

.btn-clear-compare {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-clear-compare:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Comparison Modal */
.comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.comparison-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.comparison-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.comparison-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
}

.comparison-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.comparison-product {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-product-header {
    position: relative;
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.comparison-product-header img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.comparison-product-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.btn-remove-compare {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-remove-compare:hover {
    background: rgba(255, 0, 0, 0.2);
}

.comparison-product-details {
    padding: 1.5rem;
}

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

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row strong {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comparison-row span {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.comparison-row a {
    color: var(--accent-primary);
    text-decoration: none;
}

.comparison-row a:hover {
    text-decoration: underline;
}

.comparison-product-actions {
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
}

.comparison-product-actions .btn-view {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
}

.comparison-product-actions .btn-view:hover {
    background: var(--accent-hover);
}

/* Adjust list view for comparison checkbox */
.product-list-item {
    position: relative;
}

.product-list-item .compare-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .products-grid[data-view="grid"] {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .product-list-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
        padding: 1rem;
    }

    .list-image-container {
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .list-info {
        text-align: center;
    }

    .list-actions {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
        min-width: auto;
    }

    .list-actions .btn-view,
    .list-actions .btn-specs,
    .list-actions .btn-buy,
    .list-actions .btn-notify {
        flex: 1;
        font-size: 0.85rem;
        padding: 10px 12px;
        min-height: 44px;
    }

    .product-actions {
        gap: 0.5rem;
    }

    .product-actions .btn-view,
    .product-actions .btn-buy,
    .product-actions .btn-notify {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .comparison-bar-content {
        flex-direction: column;
        align-items: stretch;
    }

    .comparison-actions {
        width: 100%;
    }

    .comparison-actions button {
        flex: 1;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .comparison-modal-body {
        padding: 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    .section-header {
        flex-direction: row;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .product-links {
        flex-direction: column;
    }

    .product-links .btn-primary,
    .product-links .btn-secondary {
        width: 100%;
        text-align: center;
    }

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

/* Preferences Page Styles */
.preferences-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.preference-section {
    margin-bottom: 2rem;
}

.preference-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.preference-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.preference-label {
    flex: 1;
}

.preference-label strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.preference-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.preference-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    min-width: 200px;
}

.preference-select:hover {
    border-color: var(--accent-primary);
}

.preference-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb, 0, 102, 204), 0.1);
}

/* Toggle Switch */
.preference-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.preference-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

.preference-toggle input:checked + .toggle-slider {
    background: var(--accent-primary);
}

.preference-toggle input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.save-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes for dynamic content */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.fade-in-scale {
    animation: fadeInScale 0.4s ease-out forwards;
}

/* Responsive Preferences */
@media (max-width: 768px) {
    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .preference-select {
        width: 100%;
    }

    .save-notification {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Installer Checklists */
.checklists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.checklist-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.checklist-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.checklist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.checklist-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.checklist-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.checklist-tech {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.checklist-date {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.checklist-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checklist-actions .btn-view {
    flex: 1;
    min-width: 100px;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: #c82333;
}

/* Product Selection */
.product-selection-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
}

.product-selection-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

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

.product-selection-item:hover {
    background: var(--bg-tertiary);
}

.product-selection-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 1rem;
}

/* Category-based selection styles */
.category-selection-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
}

.category-section {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    background: var(--bg-tertiary);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: background 0.2s;
}

.category-header:hover {
    background: var(--accent-light);
}

.category-icon {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.category-count {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.category-products {
    padding: 0.5rem;
}

.product-selection-row {
    display: grid;
    grid-template-columns: 30px 1fr 100px;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.product-selection-row:last-child {
    border-bottom: none;
}

.product-selection-row:hover {
    background: var(--bg-tertiary);
}

.product-selection-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.product-name-label {
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-input {
    width: 80px;
    padding: 6px 10px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: center;
}

.qty-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.selected-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.selected-product-name {
    font-weight: 500;
}

.selected-product-qty {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.product-selection-item label {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    cursor: pointer;
}

.product-selection-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.product-selection-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-selection-info strong {
    color: var(--text-primary);
}

.product-code {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.has-guide {
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.selected-products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.selected-product-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.selected-product-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #c82333;
}

/* Checklist View */
.checklist-view {
    max-width: 1000px;
    margin: 2rem auto;
    padding-bottom: 3rem;
}

.checklist-header-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.checklist-header-info h2 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.checklist-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checklist-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.checklist-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.checklist-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checklist-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.checkbox-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 30px;
}

.checklist-item-header h3 {
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.checklist-item-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.checklist-item-image {
    text-align: center;
}

.checklist-item-image img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.checklist-item-code {
    background: var(--accent-light);
    color: var(--accent-primary);
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.checklist-item-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-install-guide {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 1.25rem;
}

.install-guide-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.install-guide-banner .install-guide-icon {
    font-size: 2rem;
}

.install-guide-banner strong {
    display: block;
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.install-guide-banner p {
    color: #1b5e20;
    margin: 0;
    font-size: 0.9rem;
}

.btn-download {
    background: #4caf50;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

.checklist-no-guide {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 1rem;
    color: #856404;
}

.checklist-item-notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.checklist-item-notes label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.install-notes {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    resize: vertical;
}

.checklist-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive Checklists */
@media (max-width: 768px) {
    .checklists-grid {
        grid-template-columns: 1fr;
    }

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

    .checklist-item-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .install-guide-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-download {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   ENHANCED CHECKLIST CREATION INTERFACE
   ========================================== */

/* Step-based Layout */
.checklist-step {
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
}

.step-number {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.step-content {
    padding: 2rem;
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* Search Input Enhancement */
.search-input {
    padding-left: 2.5rem !important;
    font-size: 1rem !important;
}

/* Category Section - New Design */
.category-selection-list-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-section-new {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.category-header-new {
    padding: 1rem 1.5rem;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: opacity 0.2s;
}

.category-header-new:hover {
    opacity: 0.9;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.category-header-new h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.category-count-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Product Cards - Selectable */
.category-products-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
}

.product-card-selectable {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.product-card-selectable:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.product-card-selectable.selected {
    border-color: var(--accent-primary);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.product-card-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.product-card-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    flex-shrink: 0;
}

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

.product-card-info {
    flex: 1;
    min-width: 0;
}

.product-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.product-has-guide {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: var(--accent-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.product-card-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qty-input-card {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.qty-input-card:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Selection Summary Stats */
.selection-summary {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--accent-light), rgba(0, 102, 204, 0.05));
    border-radius: 12px;
}

.summary-stat {
    text-align: center;
}

.summary-stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.summary-stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Selected Products List - New Design */
.selected-products-list-new {
    min-height: 200px;
}

.empty-selection {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-selection p {
    margin: 0.5rem 0;
}

.selected-category-group {
    margin-bottom: 2rem;
}

.selected-category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

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

.selected-product-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.2s;
}

.selected-product-card:hover {
    box-shadow: var(--shadow-sm);
}

.selected-product-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 0.3rem;
    flex-shrink: 0;
}

.selected-product-details {
    flex: 1;
    min-width: 0;
}

.selected-product-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-product-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.selected-product-qty-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.selected-product-qty-display strong {
    color: var(--accent-primary);
    font-size: 1rem;
}

.btn-remove-card {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--text-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-card:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Responsive Design for New Checklist UI */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .category-products-new {
        grid-template-columns: 1fr;
    }

    .selected-products-grid {
        grid-template-columns: 1fr;
    }

    .selection-summary {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .summary-stat-number {
        font-size: 2rem;
    }

    .product-card-selectable {
        flex-wrap: wrap;
    }

    .product-card-qty {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .qty-input-card {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .step-header {
        padding: 1rem;
    }

    .step-content {
        padding: 1rem;
    }

    .category-header-new {
        padding: 0.75rem 1rem;
    }

    .category-header-new h4 {
        font-size: 1rem;
    }
}

/* ==========================================
   GENERAL MODAL STYLES
   ========================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.modal-large {
    max-width: 1200px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 16px 16px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .modal-large {
        max-width: 100%;
    }
}

/* ==========================================
   PROJECT MANAGEMENT FEATURES
   ========================================== */

/* Form Section Titles */
.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Project Information Card */
.project-info-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-right: 1rem;
}

.info-value {
    text-align: right;
    color: var(--text-primary);
    flex: 1;
}

.info-value a {
    color: var(--accent-primary);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Installation Notes Section */
.installation-notes-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.installation-notes-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.notes-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    line-height: 1.6;
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Installation Photos Section */
.installation-photos-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

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

.photos-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
}

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

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-date {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-delete-photo {
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-delete-photo:hover {
    background: #dc3545;
    transform: scale(1.05);
}

.empty-photos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-photos p {
    margin: 0.5rem 0;
}

/* Form Input Enhancements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Responsive Project Management Features */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-value {
        text-align: left;
        margin-top: 0.25rem;
    }

    .photos-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .photos-header button {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
    }

    .installation-notes-section,
    .installation-photos-section,
    .project-info-card {
        padding: 1.5rem;
    }
}

/* Autocomplete Results */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    margin-top: 0.5rem;
}

.autocomplete-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

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

.autocomplete-item:hover {
    background: var(--bg-tertiary);
}

.autocomplete-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.autocomplete-item-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.autocomplete-item-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.autocomplete-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}
