/* ============================================
   Global Styles & Variables
   ============================================ */

:root {
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-heading-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #1f2937;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #edf2ff 0%, #f8fafc 52%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0649b4;
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header.navbar {
    background-color: #1a2340 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.site-main a[href^="tel:"]:not(.btn) {
    color: var(--primary-color);
}

.site-main a[href^="tel:"]:not(.btn):hover {
    color: #0649b4;
}

.category-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card .btn {
    margin-top: auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.category-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateX(5px);
}

.navbar-brand:focus,
.navbar-brand:focus-visible {
    outline: none;
    box-shadow: none;
}

.brand-lockup {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-decoration: none;
    min-width: 0;
    flex: 0 0 auto;
    width: auto;
}

.brand-lockup-top {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.brand-logo {
    display: block;
    flex-shrink: 0;
    border: none;
    outline: none;
    box-shadow: none;
    object-fit: contain;
    object-position: left center;
}

.brand-title {
    font-size: 1.25rem;
    white-space: nowrap;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.7rem;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.footer-logo {
    flex-shrink: 0;
    border: none;
    outline: none;
    box-shadow: none;
    object-fit: contain;
}

.site-header .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.site-header .nav-link:hover {
    color: #ffffff !important;
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.site-header .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-label a {
    text-decoration: underline;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 50%, #f0f4ff 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.08), transparent);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.hero-section .text-primary {
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 500px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4) !important;
    border-radius: 0 0 1rem 1rem;
}

.hero-carousel-shell {
    overflow: visible;
    background: #fff;
}

#heroCarousel .carousel-inner {
    border-radius: 0.5rem 0.5rem 0 0;
    overflow: hidden;
}

#heroCarousel .carousel-item.active,
#heroCarousel .carousel-item-next,
#heroCarousel .carousel-item-prev {
    display: flex;
    flex-direction: column;
}

#heroCarousel .carousel-indicators {
    bottom: auto;
    top: 0.5rem;
    margin-bottom: 0;
}

#heroCarousel .carousel-caption.hero-carousel-caption {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    margin-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    background: #f8f9fa !important;
    padding: 0.875rem 1rem !important;
}

#heroCarousel .hero-carousel-caption h5 {
    color: #212529 !important;
    font-size: 1.1rem;
}

#heroCarousel .hero-carousel-caption p {
    color: #6c757d !important;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    background: #ffffff;
    padding: 4rem 0;
}

.features-section h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--dark-color);
}

.feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.12);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.feature-card h5 {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   Categories Section
   ============================================ */

.categories-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 4rem 0;
}

.category-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.category-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.category-image {
    overflow: hidden;
    position: relative;
}

.category-image img {
    transition: transform 0.3s ease;
    height: 100%;
    object-fit: cover;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h5 {
    font-weight: 700;
    color: var(--dark-color);
}

.category-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Call to Action Section
   ============================================ */

.cta-section {
    background: #ffffff;
    padding: 4rem 0;
}

.cta-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f4ff 100%);
    border: 2px solid rgba(13, 110, 253, 0.1);
    box-shadow: 0 10px 40px rgba(13, 110, 253, 0.08);
}

.cta-card h2 {
    font-weight: 800;
    color: var(--dark-color);
    font-size: 2rem;
}

.cta-card .lead {
    font-size: 1.1rem;
    color: #6c757d;
}

/* ============================================
   Stats Section
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, #1a2340 0%, #2c3e50 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1), transparent);
    border-radius: 50%;
}

.stat-card {
    position: relative;
    z-index: 1;
}

.stat-card h3 {
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.95rem;
}

/* ============================================
   News / Blog Section
   ============================================ */

.news-section {
    background: #ffffff;
    padding: 4rem 0;
}

.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-image {
    overflow: hidden;
    position: relative;
}

.news-image img {
    transition: transform 0.3s ease;
    height: 100%;
    object-fit: cover;
}

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

.news-card h5 {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #1a2340 0%, #0f1729 100%);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h5,
.site-footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer .text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Buttons & Links
   ============================================ */

.btn {
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0649b4);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0649b4, #053399);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   Forms
   ============================================ */

.form-control,
.form-select {
    border: 1.5px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background-color: white;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

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

/* ============================================
   Cards & Containers
   ============================================ */

.card {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-body {
    padding: 2rem;
}

.badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

/* ============================================
   Breadcrumbs
   ============================================ */

.breadcrumb {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-item.active {
    color: var(--dark-color);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

/* ============================================
   Product Cards (Catalog)
   ============================================ */

.product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    aspect-ratio: 4 / 3;
    height: auto;
}

.product-card:hover .product-image img {
    transform: none;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #0dcaf0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.05rem;
    margin: 1rem 0 0.5rem 0;
}

.product-sku {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Product detail page */
.product-header-top {
    gap: 0.75rem;
}

.product-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.product-detail-price {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.03));
    border: 2px solid rgba(13, 110, 253, 0.2);
    border-radius: 1rem;
    line-height: 1.1;
}

.product-detail-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}

.product-detail-price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

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

@media (min-width: 960px) {
    .product-header-sidebar {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }

    .product-header-sidebar .product-detail-price-desktop {
        margin-bottom: 1.25rem;
    }

    .product-header-sidebar .product-header-actions-lg {
        justify-content: flex-end;
    }
}

.product-detail-price-mobile .product-detail-price {
    display: flex;
    width: 100%;
    margin-bottom: 0;
}

.product-info-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.25rem;
    gap: 0.25rem;
}

.product-info-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: #6c757d !important;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0;
    position: static;
    white-space: normal;
}

.product-info-tabs .nav-link::after {
    display: none;
}

.product-info-tabs .nav-link.active {
    color: var(--primary-color) !important;
    background: transparent;
    border-bottom-color: var(--primary-color);
}

.product-info-tabs .nav-link:hover {
    color: var(--primary-color) !important;
}

@media (min-width: 960px) {
    .product-info-tabs {
        display: none !important;
    }

    .product-info-section .tab-pane {
        display: block !important;
        opacity: 1;
    }

    .product-info-section .tab-pane.fade {
        transition: none;
    }

    .product-info-section .tab-pane + .tab-pane {
        margin-top: 3rem;
    }

    .product-info-heading {
        display: block !important;
    }
}

@media (max-width: 959.98px) {
    .product-info-heading {
        display: none !important;
    }

    .product-detail-price-desktop {
        display: none !important;
    }

    .product-header-sidebar {
        display: none !important;
    }

    .product-detail-price-mobile .product-detail-price-value {
        font-size: 2rem;
    }
}

@media (min-width: 960px) {
    .product-detail-price-mobile,
    .product-header-actions {
        display: none !important;
    }
}

@media (max-width: 959.98px) {
    .product-header-actions .btn .bi {
        margin-right: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .product-header-actions .btn {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .product-header-actions .btn .bi {
        margin: 0 !important;
        font-size: 1.1rem;
        line-height: 1;
    }

    .product-header-actions .product-header-btn-label {
        display: none;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .features-section,
    .categories-section,
    .news-section {
        padding: 2.5rem 0;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .cta-card {
        padding: 2rem 1.5rem !important;
    }

    .btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .site-header .nav-link {
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .features-section h2,
    .categories-section h2,
    .news-section h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .category-card,
    .news-card {
        margin-bottom: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.65rem 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1rem;
    }

    .cta-card {
        padding: 1.5rem 1rem !important;
    }
}

/* ============================================
   Utilities
   ============================================ */

.shadow-sm {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.object-fit-cover {
    object-fit: cover;
}

.lh-sm {
    line-height: 1.1;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Loading and interaction states */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.75;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}


.hero-section h1 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.hero-section p {
    max-width: 620px;
    color: #475569;
}

.hero-section .btn {
    min-width: 170px;
}

.card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.card .card-body {
    padding: 1.9rem;
}

.card-title {
    font-weight: 700;
    color: #111827;
}

.section-heading {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: #475569;
    max-width: 760px;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.15);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.carousel-caption .btn-outline-secondary,
.hero-section .text-white .btn-outline-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.carousel-caption .btn-outline-secondary:hover,
.hero-section .text-white .btn-outline-secondary:hover {
    color: #0f172a;
    background-color: #ffffff;
    border-color: #ffffff;
}

.card-img-top {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    object-fit: cover;
    min-height: 220px;
}

.list-group-item {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    margin-bottom: 0.75rem;
}

.accordion-button {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.accordion-button:not(.collapsed) {
    background-color: #eff6ff;
    color: #0d527e;
}

.accordion-body {
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
    color: #475569;
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 1rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
    margin-left: 0.5rem;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: rgba(255, 255, 255, 0.76);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Alert styles */
.alert {
    border-radius: 14px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #842029;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #664d03;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
}

/* Sticky offset for in-page sidebars only (not the main site header) */
.sticky-lg-top {
    top: 1rem;
}

/* Header layout fix on wide screens */
.site-header .navbar-brand {
    min-width: 0;
    margin-right: 1rem;
    flex: 0 0 auto;
    width: auto;
}

.site-header .navbar-brand img.brand-logo {
    height: 34px !important;
    width: auto !important;
    max-height: 34px !important;
}

.site-footer .footer-logo {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
}

@media (max-width: 576px) {
    .site-header .navbar-brand img.brand-logo {
        height: 26px !important;
        max-height: 26px !important;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }
}

/* Search form responsive fixes */
.site-search-form {
    width: 100%;
    max-width: 360px;
}

.site-search-input {
    min-width: 0;
}

.site-search-input::placeholder {
    color: rgba(15, 23, 42, 0.42);
}

.site-header .btn {
    width: auto;
}

@media (max-width: 1399.98px) {
    .site-search-form {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .site-search-form {
        max-width: 100%;
    }

    .site-header .site-search-input {
        font-size: 0.95rem;
    }

    .site-header .btn.btn-sm {
        padding: 0.45rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Media slots — reserved space + placeholder while image loads */
.media-slot,
.product-image,
.product-carousel-stage,
.product-gallery-thumb,
.product-media-wrap,
.category-image.ratio,
.news-image.ratio {
    background-color: #f1f5f9;
}

.media-slot:not(.media-slot--ready),
.product-image:not(.media-slot--ready),
.product-carousel-stage:not(.media-slot--ready),
.product-gallery-thumb:not(.media-slot--ready) {
    background-image: linear-gradient(110deg, #f1f5f9 8%, #e8edf3 18%, #f1f5f9 33%);
    background-size: 200% 100%;
    animation: media-shimmer 1.4s linear infinite;
}

@keyframes media-shimmer {
    to {
        background-position-x: -200%;
    }
}

/* Cards / news / categories — cover in ratio boxes */
.ratio > img.category-cover-image,
.ratio > img.media-cover-image,
.ratio > video,
.ratio > iframe,
.news-image img.media-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product images — contain, centered, no stretch */
.product-image,
.product-carousel-stage,
.product-gallery-thumb,
.product-media-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-media-wrap {
    background: #f8fafc;
    width: 100%;
}

.product-carousel-stage {
    aspect-ratio: 4 / 3;
    height: auto;
    background: #f8fafc;
}

.product-gallery-thumb {
    aspect-ratio: 4 / 3;
    height: auto;
    cursor: pointer;
    background: #f8fafc;
}

.product-image img,
.product-media-image,
.product-carousel-stage .product-media-image,
.product-gallery-thumb .product-media-image,
.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    flex-shrink: 0;
}

.product-image-4x3 {
    aspect-ratio: 4 / 3;
}

.product-image-square {
    aspect-ratio: 1 / 1;
}

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

.product-gallery-modal-content {
    background: rgba(0, 0, 0, 0.92);
}

.product-fullscreen-stage {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-fullscreen-image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.product-zoom-trigger {
    cursor: zoom-in;
}


/* Stable category card button position */
.category-card .btn {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .categories-section .row.g-4 {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.65rem;
    }

    .categories-section .category-card-body {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-bottom: 0.65rem !important;
    }

    .categories-section .category-card-title {
        font-size: 0.82rem;
        line-height: 1.25;
        word-break: break-word;
        hyphens: auto;
    }

    .categories-section .category-card p {
        font-size: 0.72rem;
        line-height: 1.35;
        margin-bottom: 0.5rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .categories-section .category-card .btn {
        font-size: 0.72rem;
        padding: 0.35rem 0.4rem;
        white-space: normal;
        line-height: 1.2;
    }
}

.site-search-suggestions {
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    right: 0;
    z-index: 1070;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    padding: 0.35rem;
}

.site-search-option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    color: #0f172a;
}

.site-search-option:hover {
    background: #eef4ff;
}

.site-search-option-title {
    font-size: 0.9rem;
}

/* Agreement checkbox alignment */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check .form-check-input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-check .form-check-label {
    margin-left: 0;
    line-height: 1.35;
}

/* Explicit invalid state for all forms */
.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
}

/* Custom badge */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Improved carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 1rem;
    bottom: 1.25rem;
}

/* Table improvements */
.table {
    border-radius: 14px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Modal improvements */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 20px 20px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 20px 20px;
}

/* Dropdown improvements */
.dropdown-menu {
    border-radius: 14px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* Custom utilities */
.text-gradient {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.shadow-strong {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Quick contact buttons on main page — outline by default, fill on hover */
.btn-quick-contact {
    background-color: transparent !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-quick-whatsapp {
    color: #25D366 !important;
    border: 1px solid #25D366 !important;
}

.btn-quick-whatsapp:hover,
.btn-quick-whatsapp:focus {
    background-color: #25D366 !important;
    color: #fff !important;
    border-color: #25D366 !important;
}

.btn-quick-telegram {
    color: #2aa1db !important;
    border: 1px solid #2aa1db !important;
}

.btn-quick-telegram:hover,
.btn-quick-telegram:focus {
    background-color: #2aa1db !important;
    color: #fff !important;
    border-color: #2aa1db !important;
}

.btn-quick-max {
    color: #0d6efd !important;
    border: 1px solid #0d6efd !important;
}

.btn-quick-max .btn-quick-max-icon,
.btn-contacts-max-icon {
    display: block;
    flex-shrink: 0;
}

.btn-quick-max .btn-quick-max-icon {
    filter: brightness(0);
}

.btn-outline-secondary .btn-contacts-max-icon {
    filter: invert(1);
}

.btn-quick-max:hover,
.btn-quick-max:focus {
    background: linear-gradient(135deg, #0d6efd, #e83e8c) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.btn-quick-max:hover .btn-quick-max-icon,
.btn-quick-max:focus .btn-quick-max-icon {
    filter: brightness(0) invert(1);
}

.btn-quick-phone {
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
}

.btn-quick-phone:hover,
.btn-quick-phone:focus {
    background-color: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
}

/* Contacts map embed */
.contacts-map iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

/* Product detail — collapsible sidebar in grid layout */
.product-sidebar-content {
    flex: 1 1 auto;
    min-width: 0;
    scroll-margin-top: 5rem;
}

.product-sidebar-toggle {
    display: none;
}

@media (min-width: 992px) {
    .product-sidebar-toggle {
        display: flex;
        flex: 0 0 28px;
        align-items: center;
        justify-content: center;
        align-self: flex-start;
        width: 28px;
        min-height: 72px;
        margin-top: 1.25rem;
        padding: 0;
        border: 1px solid #dee2e6;
        border-right: none;
        border-radius: 8px 0 0 8px;
        background: #fff;
        color: #0d6efd;
        box-shadow: -2px 2px 8px rgba(15, 23, 42, 0.08);
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .product-sidebar-toggle:hover,
    .product-sidebar-toggle:focus {
        background: #eef4ff;
        color: #0649b4;
        outline: none;
    }

    .product-detail-row.sidebar-collapsed .product-detail-main {
        flex: 0 0 calc(100% - 28px);
        max-width: calc(100% - 28px);
        transition: flex 0.3s ease, max-width 0.3s ease;
    }

    .product-detail-row.sidebar-collapsed .product-detail-media {
        max-width: 66.666%;
        transition: max-width 0.3s ease;
    }

    .product-detail-row.sidebar-collapsed .product-sidebar-col {
        flex: 0 0 28px;
        max-width: 28px;
        padding-left: 0;
        padding-right: 0;
        transition: flex 0.3s ease, max-width 0.3s ease;
    }

    .product-detail-row.sidebar-collapsed .product-sidebar-content {
        display: none;
    }

    .product-detail-row.sidebar-collapsed .product-sidebar-toggle {
        margin-top: 1rem;
        min-height: 72px;
        border-right: 1px solid #dee2e6;
        box-shadow: -2px 2px 12px rgba(15, 23, 42, 0.1);
    }

    .product-detail-row.sidebar-collapsed .product-sidebar-toggle .bi {
        transform: rotate(180deg);
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 2rem;
    }

    .sticky-top {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}
