/* Theme */
:root {
    --brand-900: #0b1f1e;
    --brand-800: #0e2d2a;
    --brand-700: #0f3a35;
    --brand-600: #0f4a43;
    --brand-500: #0f5e56;

    --accent-500: #ff6b4a; /* warm coral */
    --accent-600: #ff5530;

    --ink-900: #0b0f12;
    --ink-700: #27313a;
    --ink-500: #4b5a67;

    --surface-0: #ffffff;
    --surface-1: #fbfbfc;
    --surface-2: #f4f6f8;

    --ring: rgba(15, 94, 86, 0.35);
    --shadow-sm: 0 6px 18px rgba(11, 15, 18, 0.08);
    --shadow-md: 0 18px 45px rgba(11, 15, 18, 0.14);
    --radius-md: 14px;
    --radius-lg: 18px;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(255, 107, 74, 0.18), transparent 55%),
        radial-gradient(1000px 500px at 85% 0%, rgba(15, 94, 86, 0.16), transparent 50%),
        linear-gradient(180deg, var(--surface-1), var(--surface-2));
}

/* Make header (top bar + navbar) sticky */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Navbar */
.site-navbar {
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    background-color: rgba(255, 255, 255, 0.86) !important;
    border-bottom: 1px solid rgba(39, 49, 58, 0.10) !important;
    box-shadow: var(--shadow-sm);
    z-index: 1030; /* above content, below modals */
}

.site-search {
    gap: 0.5rem;
}

.site-search .form-control,
.site-search .btn {
    height: 44px;
}

.site-search .form-control {
    width: clamp(180px, 18vw, 240px);
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-search .btn {
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media (max-width: 991.98px) {
    .site-search .form-control {
        width: 100%;
        min-width: 220px;
    }
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--brand-600) !important;
    font-size: 1.55rem;
}

.header-top {
    font-size: 0.9rem;
}

.navbar-nav {
    gap: 0.15rem;
    flex-wrap: wrap;
}

.navbar-nav .nav-item {
    display: flex;
}

.site-navbar .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 0.8rem !important;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-700) !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.site-navbar .nav-link:hover {
    background-color: rgba(15, 94, 86, 0.08);
    color: var(--brand-600) !important;
}

.site-navbar .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--ring);
}

@media (min-width: 992px) {
    /* Equal-ish sizing and nice spacing on desktop */
    .navbar-nav.mx-auto {
        justify-content: center;
        flex: 1;
    }

    .navbar-nav.mx-auto .nav-item {
        flex: 0 0 auto;
    }

    .site-navbar .navbar-nav.mx-auto .nav-link {
        padding: 0 0.7rem !important;
        font-size: 0.95rem;
    }
}

/* Repairs page: process nav should not inherit header link sizing */
#processNav .nav-link {
    display: block;
    height: auto;
    padding: 0.9rem 1rem !important;
    border-radius: var(--radius-md);
    white-space: normal;
}

#processNav .nav-link h3 {
    margin-bottom: 0.35rem;
}

.form-control {
    border-radius: 999px;
    border: 1px solid rgba(39, 49, 58, 0.18);
    background-color: rgba(255, 255, 255, 0.85);
}

.form-control:focus {
    border-color: rgba(15, 94, 86, 0.55);
    box-shadow: 0 0 0 4px var(--ring);
}

.btn-outline-dark {
    border-radius: 999px;
    padding: 0.375rem 1.05rem;
    border-color: rgba(39, 49, 58, 0.25);
}

.btn-outline-dark:hover {
    border-color: rgba(15, 94, 86, 0.55);
}

.btn-link {
    color: var(--ink-700);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.btn-link:hover {
    color: var(--brand-600);
    background-color: rgba(15, 94, 86, 0.08);
}

/* Cart button: only count */
.site-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-cart-btn .snipcart-items-count {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    box-shadow: 0 10px 22px rgba(255, 85, 48, 0.25);
}

/* Buttons */
.btn-dark {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-500)) !important;
    border-color: transparent !important;
    box-shadow: 0 14px 30px rgba(15, 94, 86, 0.22);
}

.btn-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(15, 94, 86, 0.26);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600)) !important;
    border-color: transparent !important;
}

/* Cards */
.card {
    border: 1px solid rgba(39, 49, 58, 0.10);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card .card-img-top {
    object-fit: cover;
}

/* Carousels (global) */
.carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--surface-0);
}

.carousel .carousel-item {
    position: relative;
}

.carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Keep banners clean: no global color overlay */
    background: transparent;
    pointer-events: none;
}

.carousel .carousel-item img {
    width: 100%;
    height: clamp(340px, 48vw, 520px);
    object-fit: cover;
    transform: scale(1.02);
}

.carousel .carousel-caption {
    text-align: left;
    left: 7%;
    right: 7%;
    bottom: 12%;
    padding: 1.25rem 1.25rem;
    border-radius: var(--radius-md);
    color: #fff !important;
    background: rgba(11, 15, 18, 0.50);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 45px rgba(11, 15, 18, 0.30);
}

.carousel .carousel-caption.text-dark {
    color: #fff !important;
}

.carousel .carousel-caption h1,
.carousel .carousel-caption h2,
.carousel .carousel-caption h3 {
    color: #fff !important;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.60);
}

.carousel .carousel-caption p,
.carousel .carousel-caption .lead {
    color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.carousel .carousel-caption .btn {
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
}

/* Indicators: "нижний переключатель" */
.carousel-indicators {
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.carousel-indicators [data-bs-target] {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background-color: rgba(255, 255, 255, 0.28);
    opacity: 1;
    transition: transform 0.2s ease, background-color 0.2s ease, width 0.2s ease;
}

.carousel-indicators .active {
    width: 56px;
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.95), rgba(15, 94, 86, 0.75));
    border-color: rgba(255, 255, 255, 0.70);
    transform: translateY(-1px);
}

/* Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 12%;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    box-shadow: 0 18px 45px rgba(11, 15, 18, 0.24);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.30) !important;
}

@media (max-width: 576px) {
    .carousel .carousel-caption {
        left: 5%;
        right: 5%;
        bottom: 10%;
        padding: 1rem;
    }

    .carousel .carousel-item img {
        height: 360px;
    }
}

.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: var(--brand-600);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--ink-500);
}

footer {
    color: var(--ink-700);
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    color: var(--brand-600);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--ink-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-subscribe .form-control {
    border-radius: 0;
    border: 1px solid #ddd;
}

.footer-subscribe .btn {
    border-radius: 0;
    padding: 0.375rem 1.5rem;
}

.company-info {
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent {
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
