/* Inner storefront pages — pair with inline theme :root (colorCSS) + sidebar nav styles */

.sf-page-body {
    font-family: var(--body-font);
    color: var(--custom-text, var(--text));
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Shared page header (gradient hero strip) ---------- */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 38px 34px;
    border-radius: 28px;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(var(--primary-rgb), 0.06),
        0 16px 48px rgba(var(--primary-rgb), 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.24) 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.07) 88%
    );
    pointer-events: none;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: var(--heading-font);
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    margin-bottom: 10px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-header p {
    font-size: 1.05rem;
    opacity: 0.94;
    max-width: 52ch;
    margin: 0 auto;
}

.page-header .page-header-note {
    margin-top: 12px;
    opacity: 0.9;
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 28px 22px;
        border-radius: 22px;
    }
    .page-header h1 {
        font-size: 1.75rem;
    }
    .page-header p {
        font-size: 0.98rem;
    }
}

/* ---------- Products listing ---------- */
.filter-bar {
    background: var(--surface);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 26px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow:
        0 2px 4px rgba(var(--primary-rgb), 0.04),
        0 12px 32px rgba(var(--primary-rgb), 0.06);
}

.filter-form {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 14px;
    font-family: var(--body-font);
    font-size: 0.95rem;
    background: var(--background);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 650;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.22);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.28);
}

.filter-btn.clear {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.05);
}

.filter-btn.clear:hover {
    background: var(--hover);
    opacity: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(var(--primary-rgb), 0.04),
        0 12px 32px rgba(var(--primary-rgb), 0.07);
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 16px rgba(var(--primary-rgb), 0.08),
        0 22px 44px rgba(var(--primary-rgb), 0.12);
    border-color: rgba(var(--primary-rgb), 0.14);
}

.product-image {
    width: 100%;
    height: 200px;
    min-height: 200px;
    background: linear-gradient(135deg, var(--hover), var(--background));
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.product-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.6rem;
    color: var(--primary);
}

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

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

.product-category {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    margin-bottom: 6px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: flex-start;
}

.product-brand {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-brand i {
    color: var(--primary);
    font-size: 0.8rem;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.product-price span.call-price {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
    display: inline-block;
    padding: 4px 8px;
    background: var(--hover);
    border-radius: 16px;
}

.product-price small {
    font-size: 0.7rem;
    font-weight: normal;
    color: var(--text-light);
}

.quick-view-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
    font-weight: 650;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: auto;
}

.quick-view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.22);
}

.product-color-swatches {
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.product-colors-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.product-color-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.product-color-swatch {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.product-color-swatch:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.product-color-swatch.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.empty-state {
    text-align: center;
    padding: 44px 26px;
    background: var(--surface);
    border-radius: 22px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    grid-column: 1 / -1;
    box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.06);
}

.empty-state i {
    font-size: 2.75rem;
    color: rgba(var(--primary-rgb), 0.2);
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.empty-state .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 650;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.2);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}

.empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.26);
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 16px;
        border-radius: 18px;
    }
    .product-image i {
        font-size: 2.2rem;
    }
    .product-info {
        padding: 12px 10px;
    }
    .product-info h3 {
        font-size: 0.95rem;
        min-height: 2.4rem;
        margin-bottom: 6px;
    }
    .product-price {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .product-price span.call-price {
        font-size: 0.85rem;
        padding: 3px 6px;
    }
    .quick-view-btn {
        padding: 8px;
        font-size: 0.75rem;
    }
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 22px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow:
        0 2px 4px rgba(var(--primary-rgb), 0.04),
        0 12px 32px rgba(var(--primary-rgb), 0.06);
}

.info-card h2 {
    font-family: var(--heading-font);
    font-size: 1.28rem;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
}

.info-card h2 i {
    color: var(--primary);
    font-size: 1.15rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px;
    background: rgba(var(--primary-rgb), 0.04);
    border-radius: 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}

.info-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.08);
}

.info-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, var(--surface), var(--hover));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.06);
}

.info-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text);
}

.info-content p,
.info-content a {
    color: var(--text-light);
    line-height: 1.55;
    text-decoration: none;
    font-size: 0.9rem;
}

.info-content a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hours-list {
    list-style: none;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.hours-day {
    font-weight: 650;
    color: var(--text);
}

.hours-time {
    color: var(--primary);
    font-weight: 600;
}

.map-container {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: 0;
}

.form-card {
    background: var(--surface);
    border-radius: 22px;
    padding: 28px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow:
        0 2px 4px rgba(var(--primary-rgb), 0.04),
        0 14px 36px rgba(var(--primary-rgb), 0.07);
}

.form-card h2 {
    font-family: var(--heading-font);
    font-size: 1.45rem;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 650;
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 0.9rem;
}

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

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

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.82rem;
}

.form-label.required::after {
    content: '*';
    color: #dc3545;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 14px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--background);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.22);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.22);
}

.captcha-container {
    background: var(--background);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-display {
    background: linear-gradient(145deg, var(--primary), var(--accent));
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.55rem;
    font-weight: bold;
    padding: 12px 22px;
    border-radius: 14px;
    letter-spacing: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 160px;
    text-align: center;
}

.captcha-input-group {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 14px;
    font-family: var(--body-font);
    font-size: 0.9rem;
}

.refresh-captcha {
    background: var(--surface);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.08);
}

.refresh-captcha:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

.submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.22);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--primary-rgb), 0.28);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.field-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 14px;
    text-align: center;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .hours-item {
        flex-direction: column;
        gap: 4px;
    }
    .captcha-box {
        flex-direction: column;
    }
    .captcha-display {
        width: 100%;
    }
    .captcha-input-group {
        width: 100%;
    }
}

/* ---------- Brands ---------- */
.alphabet-filter {
    background: var(--surface);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.06);
}

.alpha-btn {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 650;
    font-size: 0.84rem;
    transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}

.alpha-btn:hover,
.alpha-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.22);
}

.alpha-btn.all {
    width: auto;
    padding: 0 16px;
}

.brands-section {
    background: linear-gradient(165deg, var(--surface) 0%, var(--hover) 100%);
    padding: 28px 22px;
    border-radius: 26px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow:
        0 2px 4px rgba(var(--primary-rgb), 0.04),
        0 16px 40px rgba(var(--primary-rgb), 0.07);
    margin: 28px 0;
    width: 100%;
}

.brands-section .section-title {
    font-family: var(--heading-font);
    font-size: 1.55rem;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.brands-section .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.35), transparent);
    margin-left: 8px;
}

.brands-section .section-title i {
    color: var(--primary);
    background: linear-gradient(145deg, var(--surface), var(--hover));
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.08);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.brands-section .brand-card {
    background: var(--surface);
    padding: 14px 10px;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s, background 0.25s;
    border: 1px solid rgba(var(--primary-rgb), 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.05);
}

.brands-section .brand-card:hover {
    transform: translateY(-4px);
    background: var(--primary);
    border-color: transparent;
    box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.22);
    color: var(--button-text);
}

.brands-section .brand-card:hover h4,
.brands-section .brand-card:hover .brand-product-count {
    color: inherit;
}

.brands-section .brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--surface);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.1);
    transition: transform 0.2s;
    margin: 0 auto;
    position: relative;
    flex-shrink: 0;
}

.brands-section .brand-card:hover .brand-logo {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.85);
}

.brands-section .brand-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: auto;
    display: block;
}

.brands-section .brand-logo i {
    font-size: 1.65rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.brands-section .brand-card:hover .brand-logo i {
    color: var(--button-text);
}

.brands-section .brand-card h4 {
    font-size: 0.82rem;
    font-weight: 650;
    margin: 0;
}

.brands-section .brand-description {
    display: none;
}

.brands-section .brand-product-count {
    font-size: 0.72rem;
    color: var(--text-light);
    background: rgba(var(--primary-rgb), 0.08);
    padding: 4px 10px;
    border-radius: 999px;
}

.brands-section .brand-card:hover .brand-product-count {
    background: rgba(255, 255, 255, 0.2);
}

.brands-section .empty-state {
    grid-column: 1 / -1;
}

@media (max-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .alphabet-filter {
        padding: 12px;
        gap: 6px;
    }
    .alpha-btn {
        min-width: 34px;
        height: 34px;
        font-size: 0.78rem;
        border-radius: 10px;
    }
    .brands-section {
        padding: 18px 14px;
        border-radius: 22px;
    }
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    .brands-section .brand-logo {
        width: 54px;
        height: 54px;
    }
    .brands-section .brand-logo i {
        font-size: 1.45rem;
    }
    .brands-section .brand-card h4 {
        font-size: 0.74rem;
    }
}

/* ---------- Search ---------- */
.search-page {
    max-width: 900px;
    margin: 28px 0 60px;
    padding: 0;
}

.search-page h1 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.search-page .lead {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.65;
}

.search-section {
    margin-top: 30px;
}

.search-section h2 {
    font-size: 1.12rem;
    margin-bottom: 14px;
    color: var(--primary);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.15);
    padding-bottom: 10px;
    font-weight: 650;
}

.search-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.search-thumb {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--hover);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.06);
    padding: 6px;
    box-sizing: border-box;
}

.search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

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

.search-result-body h3 {
    font-size: 1.06rem;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.search-result-body h3 a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
}

.search-result-body h3 a:hover {
    color: var(--primary);
}

.search-result-meta {
    font-size: 0.84rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.search-result-snippet {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.55;
}

.search-empty {
    text-align: center;
    padding: 36px 18px;
    color: var(--text-light);
    border: 1px dashed rgba(var(--primary-rgb), 0.22);
    border-radius: 18px;
    margin-top: 16px;
    background: rgba(var(--primary-rgb), 0.03);
}

/* ---------- Services ---------- */
.services-page {
    padding: 0 0 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.service-card {
    background: var(--surface);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 22px;
    padding: 20px;
    box-shadow:
        0 2px 4px rgba(var(--primary-rgb), 0.04),
        0 14px 36px rgba(var(--primary-rgb), 0.07);
    scroll-margin-top: 100px;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}

a.service-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.service-card--link:hover {
    color: inherit;
}

.service-card-more {
    margin-left: auto;
    font-weight: 600;
    color: var(--primary);
}

.service-card--link:hover .service-card-more {
    text-decoration: underline;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(var(--primary-rgb), 0.12),
        0 4px 8px rgba(0, 0, 0, 0.04);
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.28rem;
    margin-bottom: 10px;
    font-weight: 650;
}

.service-card .service-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 16px;
    margin-bottom: 14px;
    background: var(--hover);
}

.service-card .service-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--primary-rgb), 0.35);
    font-size: 2.5rem;
    object-fit: unset;
}

.service-card .desc {
    color: var(--text);
    line-height: 1.65;
    font-size: 0.96rem;
    margin-bottom: 14px;
}

.service-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.88rem;
}

.service-meta .pill {
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 999px;
    padding: 7px 14px;
}

/* ---------- Service detail page ---------- */
.service-detail-page {
    max-width: 960px;
}

.service-detail-breadcrumb {
    margin-bottom: 20px;
}

.service-detail-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.service-detail-header {
    margin-bottom: 28px;
}

.service-detail-header h1 {
    font-family: var(--heading-font);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 650;
}

.service-detail-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.service-detail-summary {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 72ch;
}

.service-detail-gallery {
    margin-bottom: 32px;
}

.service-detail-gallery-main {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    background: var(--hover);
    margin-bottom: 14px;
}

.service-detail-gallery-main img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.service-detail-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-detail-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    width: 88px;
    height: 72px;
    flex-shrink: 0;
}

.service-detail-thumb.is-active {
    border-color: var(--primary);
}

.service-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-detail-body {
    background: var(--surface);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    padding: 28px 30px;
    margin-bottom: 28px;
    box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.06);
}

.service-detail-body h2 {
    font-family: var(--heading-font);
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.service-detail-full {
    color: var(--text);
    line-height: 1.75;
    font-size: 1rem;
}

.service-detail-empty {
    color: var(--text-light);
}

.service-detail-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.service-detail-back-link,
.service-detail-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.service-detail-back-link {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

.service-detail-contact-link {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.service-detail-back-link:hover,
.service-detail-contact-link:hover {
    opacity: 0.92;
    color: inherit;
}

.service-detail-contact-link:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .service-detail-body {
        padding: 20px 18px;
    }
    .service-detail-gallery-main img {
        max-height: 280px;
    }
}

/* ---------- Shared alerts ---------- */
.error-message {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 53, 69, 0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
}

.error-message i {
    font-size: 1.15rem;
}

/* ---------- Product modal (products page) ---------- */
.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top));
}

.product-modal.show {
    display: flex;
    animation: sfFadeModal 0.22s ease;
}

@keyframes sfFadeModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-modal .modal-content {
    background: var(--surface);
    border-radius: 22px;
    width: 100%;
    position: relative;
    animation: sfSlideModal 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.22),
        0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.product-modal--detail .modal-content {
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
}

.product-modal--compact .modal-content {
    max-width: 420px;
    padding: 32px 28px;
    text-align: center;
}

.product-modal--compact .modal-content > i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 16px;
    display: block;
}

.product-modal--compact .modal-content h3 {
    font-size: 1.28rem;
    color: var(--text);
    margin-bottom: 12px;
    font-weight: 650;
}

.product-modal--compact .modal-content p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.product-modal--compact .modal-btn {
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 650;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.22);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}

.product-modal--compact .modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--primary-rgb), 0.26);
}

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

.product-modal--detail .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.1);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    z-index: 10;
}

.product-modal--detail .modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.product-modal--detail .modal-body {
    padding: 48px 56px 24px 24px;
}

.product-modal--detail .modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.product-modal--detail .modal-product-gallery {
    width: 100%;
}

.product-modal--detail .modal-product-gallery > .modal-product-price {
    margin-top: 0;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
    text-align: center;
}

.product-modal--detail .modal-product-gallery > .modal-product-price .call-price {
    font-size: 0.95rem;
    white-space: nowrap;
}

.product-modal--detail .modal-main-image {
    width: 100%;
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    background: var(--hover);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 0;
    position: relative;
}

.product-modal--detail .modal-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-modal--detail .modal-main-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--primary);
}

.product-modal--detail .modal-product-colors {
    margin-bottom: 10px;
}

.product-modal--detail .modal-colors-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.product-modal--detail .modal-color-swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-modal--detail .modal-color-swatch {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-modal--detail .modal-color-swatch .color-swatch-dot {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.product-modal--detail .modal-color-swatch.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.product-modal--detail .modal-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-modal--detail .modal-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    min-height: 72px;
    background: var(--hover);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.product-modal--detail .modal-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(var(--primary-rgb), 0.12);
}

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

.product-modal--detail .modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-modal--detail .modal-thumbnail i {
    font-size: 1.5rem;
    color: var(--primary);
}

.product-modal--detail .product-category,
.product-modal--detail .modal-product-category,
.product-modal--detail .product-brand,
.product-modal--detail .modal-product-brand {
    display: none !important;
}

.product-modal--detail .modal-product-info h2 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--text);
    margin: 0 0 8px 0;
    padding-right: 36px;
    font-weight: 650;
    line-height: 1.25;
}

.product-modal--detail .modal-product-description {
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 0.95rem;
    white-space: normal;
    word-wrap: break-word;
}

.product-modal--detail .modal-product-price {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.06), var(--background));
    padding: 6px 12px;
    border-radius: 11px;
    margin-bottom: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.product-modal--detail .modal-price-label {
    color: var(--text);
    font-weight: 650;
    margin-bottom: 0;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-modal--detail .modal-price-value {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}

.product-modal--detail .modal-price-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
}

.product-modal--detail .modal-price-suffix {
    color: var(--text-light);
    font-size: 0.75rem;
}

.product-modal--detail .modal-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.product-modal--detail .modal-action-btn {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 14px;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

.product-modal--detail .modal-action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.22);
}

.product-modal--detail .modal-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.28);
}

.product-modal--detail .modal-product-info div[style*="background: var(--hover)"] {
    margin-bottom: 15px !important;
    padding: 12px 14px !important;
    font-size: 0.85rem !important;
    border-radius: 14px !important;
}

@media (max-width: 992px) {
    .product-modal--detail .modal-product {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-modal--detail .modal-main-image {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
    }
    .product-modal--detail .modal-content {
        max-width: 540px;
    }
    .product-modal--detail .modal-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .product-modal--detail .modal-body {
        padding: 44px 48px 16px 16px;
    }
    .product-modal--detail .modal-main-image {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }
    .product-modal--detail .modal-product-actions {
        flex-direction: column;
        gap: 10px;
    }
    .product-modal--detail .modal-product-info h2 {
        font-size: 1.28rem;
    }
    .product-modal--detail .modal-price-amount {
        font-size: 1.2rem;
    }
    .product-modal--detail .modal-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
        gap: 6px;
    }
    .product-modal--detail .modal-thumbnail {
        border-radius: 10px;
        min-height: 52px;
    }
    .product-modal--detail .modal-thumbnail i {
        font-size: 1.2rem;
    }
}

