:root {
    --sb-gold: #d4af37;
    --sb-gold-soft: #e9d68b;
    --sb-gold-deep: #a57c1a;
    --sb-ink: #0a1a15;
    --sb-muted: #b0a590;
    --sb-line: rgba(212, 175, 55, 0.22);
    --sb-surface: rgba(255, 255, 255, 0.05);
    --sb-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body {
    background-image: var(--sb-bg);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--sb-gold);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.empty-state {
    width: 100%;
    padding: 1.25rem;
    color: #fff;
    text-align: center;
    opacity: 0.75;
}

.search-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 60px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: var(--sb-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.search-input-wrapper input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.5rem;
    font: inherit;
    font-size: 1rem;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--sb-muted);
}

.search-input-wrapper input::-webkit-search-cancel-button {
    filter: invert(1);
}

.search-input-wrapper button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: var(--sb-ink);
    background: linear-gradient(135deg, var(--sb-gold), #c09c2e);
    border: 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-input-wrapper button:hover {
    background: linear-gradient(135deg, #e0bc4a, var(--sb-gold));
}

.service-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.slide-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%) !important;
}

.slide img {
    filter: brightness(0.75) !important;
}

.slider-btn {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s, border-color 0.3s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: var(--sb-gold) !important;
}

.parent-category-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sb-line);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.parent-category-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--sb-gold);
    text-shadow: none;
}

.parent-category-header .parent-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--sb-muted);
}

.subcategory-container {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.subcategory-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.subcategory-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    color: var(--sb-gold);
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
}

.subcategory-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sb-gold-soft);
}

.subcategory-header .badge-count-products {
    margin-right: auto;
    padding: 4px 14px;
    font-size: 0.85rem;
    color: var(--sb-gold);
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
}

.horizontal-scroll-container {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.5) transparent;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 8px;
}

.product-card {
    position: relative;
}

.product-card.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-card img {
    display: block;
    max-width: 100%;
}

.product-card .price-old {
    font-size: 0.85rem;
    color: #aaa;
    text-decoration: line-through;
}

.product-card .price-final {
    font-weight: 700;
    color: var(--sb-gold);
}

.product-card .rating {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ffc107;
}

.product-card .rating .rating-value {
    color: #ccc;
}

.add-to-cart-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.see-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-weight: 600;
    color: var(--sb-gold);
    text-decoration: none;
}

.see-all-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--sb-line);
    border-radius: 50%;
}

#install-app-banner {
    display: none;
    max-width: 600px;
    margin: 2rem auto 1rem;
    padding: 1.1rem;
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--sb-gold);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#install-app-banner.is-visible {
    display: block;
}

#install-app-banner p {
    margin: 0 0 0.9rem;
    color: #fff;
}

.install-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

#install-app-btn {
    padding: 0.55rem 2rem;
    font: inherit;
    font-weight: 700;
    color: var(--sb-ink);
    background: var(--sb-gold);
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.25s;
}

#install-app-btn:hover {
    background: #c09c2e;
}

.install-dismiss {
    padding: 0.55rem 1rem;
    font: inherit;
    color: var(--sb-muted);
    background: transparent;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
}

.install-dismiss:hover {
    color: #fff;
}

.ai-floating-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sb-gold), var(--sb-gold-deep));
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: sbAiPulse 2.4s infinite;
}

.ai-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.8), 0 8px 25px rgba(0, 0, 0, 0.6);
}

.ai-floating-btn i {
    font-size: 28px;
    color: var(--sb-ink);
}

.ai-floating-btn::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    animation: sbAiRing 2.4s infinite ease-out;
}

@keyframes sbAiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes sbAiRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.sb-toasts {
    position: fixed;
    left: 50%;
    bottom: 104px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: min(92vw, 420px);
    transform: translateX(-50%);
    pointer-events: none;
}

.sb-toast {
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    color: #fff;
    background: rgba(10, 26, 21, 0.95);
    border: 1px solid var(--sb-line);
    border-radius: 14px;
    box-shadow: var(--sb-shadow);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
}

.sb-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sb-toast.is-success {
    border-color: rgba(212, 175, 55, 0.7);
}

.sb-toast.is-error {
    border-color: rgba(255, 107, 107, 0.65);
}

@media (max-width: 600px) {
    .ai-floating-btn {
        right: 16px;
        bottom: 20px;
        width: 56px;
        height: 56px;
    }

    .ai-floating-btn i {
        font-size: 24px;
    }

    .sb-toasts {
        bottom: 88px;
    }

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

    .glass-card {
        margin-bottom: 0 !important;
        padding: 1rem !important;
    }

    .glass-card i {
        font-size: 1.8rem !important;
    }

    .glass-card h3 {
        font-size: 0.95rem !important;
    }

    .glass-card p {
        font-size: 0.75rem !important;
    }

    .product-card {
        min-width: 150px !important;
        max-width: 160px !important;
        padding: 0.5rem !important;
    }

    .product-card .img-wrapper {
        height: 120px !important;
    }

    .product-card h4 {
        font-size: 0.8rem !important;
    }

    .product-card .price {
        font-size: 0.8rem !important;
    }

    .product-card .rating {
        font-size: 0.7rem !important;
    }

    .add-to-cart-btn,
    .remove-cart-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }

    .article-news-card {
        padding: 0.5rem !important;
    }

    .article-news-card .card-img-container {
        height: 120px !important;
    }

    .article-news-card h4 {
        font-size: 0.85rem !important;
    }

    .article-news-card p {
        font-size: 0.75rem !important;
    }

    .article-news-card .read-more {
        font-size: 0.75rem !important;
    }

    .parent-category-header {
        padding: 0.8rem 1rem;
    }

    .parent-category-header h2 {
        font-size: 1.3rem;
    }

    .subcategory-container {
        padding: 1.2rem 1rem;
    }

    .subcategory-header h3 {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-floating-btn,
    .ai-floating-btn::after {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
