/* ============================================
   SHOP STYLES
   ============================================ */

/* Split color swatch gradient - use with --swatch-color1 and --swatch-color2 */
.swatch-split-gradient {
    background: linear-gradient(135deg, var(--swatch-color1) 49.5%, var(--swatch-color2) 50.5%);
}

/* Shop Hero */
.shop-hero {
    background: var(--color-primary);
    color: var(--color-bg-white);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/static/images/construction-site-night.webp') center center / cover no-repeat;
    opacity: 0.4;
}

.shop-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.4) 100%);
}

.shop-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.shop-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.shop-hero-content p {
    color: var(--color-text-lighter);
    font-size: 1.1rem;
    max-width: 600px;
}

.shop-hero-callout {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 380px;
    backdrop-filter: blur(8px);
}

.shop-hero-callout h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-bg-white);
    margin-bottom: 0.5rem;
}

.shop-hero-callout p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.shop-hero-callout-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-bg-white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.shop-hero-callout-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Shop Page Layout */
.shop-page {
    background: var(--color-bg-light);
    padding: 3rem 2rem;
    min-height: 60vh;
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* Shop Sidebar */
.shop-sidebar {
    align-self: start;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem 0;
}

/* Sidebar Sections */
.sidebar-section {
    padding: 0 1rem;
}

.sidebar-section:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

/* Sidebar Rows (shared layout for categories and filters) */
.sidebar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
}

/* Category Groups with Checkboxes */
.category-group {
    margin-bottom: 0;
}

.category-group:last-child {
    margin-bottom: 0;
}

.category-parent {
    font-size: 0.8375rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.category-parent:hover {
    background: var(--color-bg-hover);
}

.category-parent.selected {
    background: #eff6ff;
    color: #1e40af;
}

.category-name {
    flex: 1;
}

.category-checkbox,
.subcategory-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
    background: var(--color-bg-white);
}

.subcategory-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.category-checkbox input,
.subcategory-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
}

.category-parent:hover .category-checkbox,
.subcategory-item:hover .subcategory-checkbox {
    border-color: var(--color-text-muted);
}

.category-checkbox:has(input:checked),
.subcategory-checkbox:has(input:checked) {
    background: var(--color-accent-blue-dark);
    border-color: var(--color-accent-blue-dark);
}

.category-checkbox:has(input:checked)::after,
.subcategory-checkbox:has(input:checked)::after {
    content: '';
    width: 10px;
    height: 6px;
    border: 2px solid var(--color-bg-white);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.subcategory-checkbox:has(input:checked)::after {
    width: 8px;
    height: 5px;
}

.category-count,
.subcategory-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.category-parent.selected .category-count,
.subcategory-item.selected .subcategory-count {
    color: var(--color-accent-blue-dark);
}

.category-chevron {
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.category-group.expanded .category-chevron {
    transform: rotate(180deg);
}

/* Subcategories */
.subcategories {
    display: none;
    padding-left: 1.75rem;
    margin-top: 0.125rem;
}

.category-group.expanded .subcategories {
    display: block;
}

.subcategory-item {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.subcategory-item:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-secondary);
}

.subcategory-item.selected {
    background: #eff6ff;
    color: #1e40af;
}

.subcategory-name {
    flex: 1;
}

/* Sidebar Filter Groups */
.sidebar-filters .filter-group {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.sidebar-filters .filter-group:last-child {
    margin-bottom: 0;
}

.sidebar-filters .filter-header {
    justify-content: flex-start;
    user-select: none;
}

.sidebar-filters .filter-header:hover {
    background: var(--color-bg-hover);
}

.sidebar-filters .filter-label {
    font-size: 0.8375rem;
    font-weight: 500;
    color: var(--color-text-primary);
    flex: 1;
}

.sidebar-filters .filter-chevron {
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.sidebar-filters .filter-group:not(.collapsed) .filter-chevron {
    transform: rotate(180deg);
}

.sidebar-filters .filter-content {
    margin-top: 0.125rem;
}

.sidebar-filters .filter-group.collapsed .filter-content {
    display: none;
}

.sidebar-filters .filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0;
    background: transparent;
}

.sidebar-filters .filter-option {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.sidebar-filters .filter-option:hover {
    background: var(--color-bg-hover);
    color: var(--color-text-primary);
}

.sidebar-filters .filter-option.selected {
    background: #eff6ff;
    color: #1e40af;
}

.sidebar-filters .filter-option-name {
    flex: 1;
}

.sidebar-filters .filter-option-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.sidebar-filters .filter-option.selected .filter-option-count {
    color: var(--color-accent-blue-dark);
}

.sidebar-filters .filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    position: relative;
    background: var(--color-bg-white);
}

.sidebar-filters .filter-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    margin: 0;
}

.sidebar-filters .filter-option:hover .filter-checkbox {
    border-color: var(--color-text-muted);
}

.sidebar-filters .filter-checkbox:has(input:checked) {
    background: var(--color-accent-blue-dark);
    border-color: var(--color-accent-blue-dark);
}

.sidebar-filters .filter-checkbox:has(input:checked)::after {
    content: '';
    width: 10px;
    height: 6px;
    border: 2px solid var(--color-bg-white);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    margin-top: -2px;
}

/* Hide size filter from sidebar */
#size-filter-group {
    display: none;
}

/* Color Swatches in Sidebar */
.sidebar-filters .color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.125rem 0.5rem;
}

.sidebar-filters .color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid var(--color-border);
    transition: all 0.15s ease;
    padding: 0;
}

.sidebar-filters .color-swatch:hover {
    border-color: var(--color-text-muted);
}

.sidebar-filters .color-swatch.selected {
    border-color: var(--color-text-primary);
}

/* Active Filter Tags (reserved space between toolbar and grid) */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    min-height: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.active-filter-tags {
    display: contents;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.active-filter-tag button:hover {
    color: var(--color-bg-white);
}

.clear-filters-link {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    padding: 0.375rem 0;
}

.clear-filters-link:hover {
    color: var(--color-accent-blue-dark);
}

/* Shop Filters */
.shop-filters {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Filter Bar (horizontal dropdowns above grid) */
.shop-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--color-text-secondary);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
}

.filter-dropdown-toggle:hover {
    border-color: var(--color-text-muted);
}

.filter-dropdown.open .filter-dropdown-toggle {
    border-color: var(--color-text-muted);
}

.filter-dropdown-toggle svg {
    transition: transform 0.15s;
}

.filter-dropdown.open .filter-dropdown-toggle svg {
    transform: rotate(180deg);
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    min-width: 180px;
    max-height: 240px;
    overflow-y: auto;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 0.5rem;
}

.filter-dropdown.open .filter-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shop-filters-bar .filter-checkbox {
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.shop-filters-bar .filter-checkbox:hover {
    background: var(--color-bg-light);
}

.shop-filters-bar .filter-clear-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
}

.shop-filters-bar .filter-clear-btn:hover {
    color: var(--color-text-primary);
}

.filter-group {
    margin-bottom: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.filter-group:last-of-type {
    margin-bottom: 1rem;
}

.filter-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--color-text-secondary);
    background: var(--color-bg-light);
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.filter-group-toggle:hover {
    background: var(--color-bg-hover);
}

.filter-group-toggle svg {
    transition: transform 0.2s;
}

.filter-group.collapsed .filter-group-toggle svg {
    transform: rotate(-90deg);
}

.filter-group.collapsed .filter-options {
    display: none;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-white);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

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

.filter-checkbox span {
    flex: 1;
}

.filter-checkbox:hover {
    color: var(--color-text-primary);
}

/* Size filter - grid layout */
.filter-sizes {
    flex-direction: row;
    flex-wrap: wrap;
}

.filter-size-box {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-size-box input[type="checkbox"] {
    display: none;
}

.filter-size-box span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.15s;
}

.filter-size-box:hover span {
    border-color: var(--color-text-muted);
    color: var(--color-text-primary);
}

.filter-size-box input:checked + span {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-white);
}

/* Clear filters button */
.filter-clear-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.filter-clear-btn:hover {
    color: var(--color-text-primary);
    border-color: var(--color-text-muted);
}

/* Shop Main Area */
.shop-main {
    min-width: 0;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.shop-search {
    width: 360px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: border-color 0.15s;
}

.shop-search:focus-within {
    border-color: var(--color-text-muted);
}

.shop-search svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.shop-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
}

.shop-search input::placeholder {
    color: var(--color-text-light);
}

.shop-sort {
    display: none;
}

.shop-sort label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.shop-sort select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--color-bg-white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.shop-sort select:focus {
    outline: none;
    border-color: var(--color-accent-blue-dark);
}

.shop-category-header {
    margin-bottom: 1.5rem;
}

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

/* No Results */
.shop-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

/* Product Grid */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Product Card */
.product-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    position: relative;
    background: var(--color-bg-light);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.card-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .card-image-nav {
    opacity: 1;
}

.card-image-nav:hover {
    background: var(--color-bg-light);
}

.card-image-prev {
    left: 0.5rem;
}

.card-image-next {
    right: 0.5rem;
}

.product-image-placeholder {
    width: 60px;
    height: 60px;
    color: var(--color-text-lighter);
    padding: 1.5rem;
}

.product-image-placeholder.large {
    width: 300px;
    height: 300px;
}

.product-image-placeholder.small {
    width: 50px;
    height: 50px;
}

.product-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.product-card-content {
    padding: 0.875rem;
}

.product-card-brand {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    margin: 0 0 0.125rem 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.product-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 0.15em;
}

.product-card-swatches {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.product-card-swatch {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.product-card-swatch .swatch-solid,
.product-card-swatch .swatch-split {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.product-card-lead-time {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.product-card-actions {
    display: flex;
    gap: 1px;
    background: var(--color-border);
}

.product-card-add-btn {
    flex: 1;
    padding: 0.875rem;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card-add-btn:hover {
    background: var(--color-primary-light);
}

.product-card-add-btn:disabled {
    background: var(--color-text-light);
    cursor: wait;
}

.product-card-quote-btn {
    padding: 0.875rem 1rem;
    background: var(--color-bg-light);
    color: var(--color-text-muted);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.product-card-quote-btn:hover {
    background: var(--color-bg-hover);
    color: var(--color-accent-blue-dark);
}

/* CTA Card (Contact Card) */
.product-card-cta {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-white) 100%);
    border: 2px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-cta-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.product-card-cta-icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
}

.product-card-cta-icon svg {
    width: 100%;
    height: 100%;
}

.product-card-cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.product-card-cta-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.product-card-cta-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-primary);
    color: var(--color-bg-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.15s;
}

.product-card-cta-btn:hover {
    background: var(--color-primary-light);
}

/* Button loading spinner */
.btn-loading {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Shop Empty State */
.shop-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

/* Shop Pagination */
.shop-pagination {
    margin-top: 2.5rem;
    padding-top: 2rem;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    background: transparent;
    box-shadow: none;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

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

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

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

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

/* Product Detail Page */
.product-page {
    background: var(--color-bg-light);
    padding: 1rem 1.5rem 1.5rem;
    min-height: 60vh;
}

.product-page-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Breadcrumb */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.product-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 400;
    background: none;
}

.product-breadcrumb a:hover {
    color: var(--color-accent-blue-dark);
    text-decoration: underline;
    background: none;
}

.product-breadcrumb span {
    color: var(--color-text-lighter);
}

.product-breadcrumb .current {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--color-bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.product-detail-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-blue-dark);
    margin-bottom: 0.5rem;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.product-detail-brand {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

/* Product Detail Image Section */
.product-detail-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Main Image Container - consistent size regardless of thumbnails */
.product-image-main {
    position: relative;
    background: #f2f2f2;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.product-image-main:hover .image-nav {
    opacity: 1;
    pointer-events: auto;
}

.image-nav:hover {
    background: var(--color-bg-light);
}

.image-nav svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-primary);
}

.image-nav-prev {
    left: 0.75rem;
}

.image-nav-next {
    right: 0.75rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f2f2f2;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

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

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.lightbox-image-container.zoomed {
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-image-container.zoomed img {
    transition: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: var(--color-bg-light);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.product-image-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-image-main .product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-main .product-image-placeholder svg {
    width: 60px;
    height: 60px;
    color: var(--color-text-tertiary);
    opacity: 0.5;
}

/* Thumbnails - separate from main image */
.product-image-thumbnails {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg-white);
    cursor: pointer;
    transition: border-color 0.2s;
    overflow: hidden;
}

.product-thumbnail:hover {
    border-color: var(--color-text-muted);
}

.product-thumbnail.active {
    border-color: var(--color-text-primary);
}

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

/* Product Tabs */
.product-tabs {
    margin-bottom: 1rem;
}

.product-tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
}

.product-tab {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

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

.product-tab.active {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-primary);
}

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

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

.product-tab-panel p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.certifications-list,
.features-list,
.description-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certifications-list li,
.features-list li,
.description-list li {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.certifications-list li::before,
.features-list li::before,
.description-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

.product-features {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-feature:last-child {
    margin-bottom: 0;
}

.feature-label {
    font-weight: 600;
    color: var(--color-text-secondary);
    min-width: 60px;
    font-size: 0.875rem;
}

.feature-value {
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.feature-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-size: 0.8rem;
    color: var(--color-text-primary);
}

.color-swatches {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-swatch {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-swatch.split {
    border: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.color-swatch.active {
    box-shadow: 0 0 0 2px var(--color-bg-white), 0 0 0 4px var(--color-primary);
}

.color-swatch.split.active {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 2px var(--color-bg-white), 0 0 0 4px var(--color-primary);
}

.product-detail-stock {
    margin-bottom: 1.5rem;
}

.stock-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.stock-badge.out-of-stock {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

/* Product Actions */
.product-detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-detail-actions .btn-primary,
.product-detail-actions .btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.product-detail-actions .btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-white);
    border: 1px solid var(--color-primary);
}

.product-detail-actions .btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.product-detail-actions .btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.product-detail-actions .btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
}

.product-detail-meta {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

.related-products h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Shop Responsive */
@media (max-width: 1024px) {
    .shop-hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shop-hero-callout {
        max-width: 100%;
    }

    .shop-container {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .shop-filters {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        align-items: start;
    }

    .shop-filters .filter-group {
        margin-bottom: 0;
    }

    .shop-filters .filter-clear-btn {
        grid-column: 1 / -1;
    }

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

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding-top: 5rem;
    }

    .shop-hero h1 {
        font-size: 1.75rem;
    }

    .shop-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .product-card-content {
        padding: 0.75rem;
    }

    .product-card-title {
        font-size: 0.8rem;
    }

    .product-detail {
        padding: 1.5rem;
    }

    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ============================================
   LOADING SKELETON STYLES
   ============================================ */

.product-card-skeleton {
    pointer-events: none;
}

.product-card-skeleton .product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skeleton-image {
    aspect-ratio: 1;
    background: linear-gradient(90deg, var(--color-bg-light) 25%, var(--color-bg-hover) 50%, var(--color-bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-text {
    background: linear-gradient(90deg, var(--color-bg-light) 25%, var(--color-bg-hover) 50%, var(--color-bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-brand {
    width: 60%;
    height: 0.75rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    width: 100%;
    height: 1rem;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   FILTER COUNT BADGES
   ============================================ */

.filter-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: auto;
    padding-left: 0.5rem;
}

.filter-checkbox.filter-disabled {
    opacity: 0.5;
}

.filter-checkbox.filter-disabled input {
    cursor: not-allowed;
}

/* Badge for active filter count on dropdown toggle */
.filter-dropdown-toggle .filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9px;
    margin-left: 0.25rem;
}
