/* ══════════════════════════════════════
   Ryant2026 Theme — Custom Styles
   Bootstrap is loaded separately
   ══════════════════════════════════════ */

:root {
    --ryant-primary: #0d6efd;
    --ryant-dark: #1a1a2e;
    --ryant-transition: 0.3s ease;
}

/* ── General ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ── Top Bar ── */
.top-bar {
    font-size: 0.85rem;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* ── Navbar ── */
.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.navbar .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color var(--ryant-transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--ryant-primary) !important;
}

/* ── Hero Slider ── */
.section-hero {
    position: relative;
}

.hero-slide {
    position: relative;
    min-height: 70vh;
    background: var(--ryant-dark) center / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.min-vh-50 {
    min-height: 70vh;
}

.z-1 {
    z-index: 1;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #fff;
}

.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ── Section About ── */
.section-about img {
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}

/* ── USP Section ── */
.usp-card {
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--ryant-transition);
}

.usp-card:hover {
    background: rgba(255, 255, 255, 0.18);
}

.usp-card__icon i {
    opacity: 0.9;
}

/* ── Catalog Section ── */
.catalog-category {
    padding-top: 20px;
}

.catalog-category__title {
    position: relative;
    padding-bottom: 12px;
}

.catalog-category__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--ryant-primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Product Card */
.product-card {
    cursor: pointer;
    transition: transform var(--ryant-transition), box-shadow var(--ryant-transition);
    overflow: hidden;
}

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

.product-card__image {
    overflow: hidden;
    background: #f8f9fa;
}

.card-img-top-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.card-img-top-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform var(--ryant-transition);
}

.product-card:hover .card-img-top-wrap img {
    transform: scale(1.05);
}

.product-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.product-card__price {
    font-size: 0.8rem;
}

/* Placeholder card */
.placeholder-card {
    cursor: default;
}

.placeholder-card:hover {
    transform: none;
}

/* ── Product Modal ── */
.product-modal__main-image {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-modal__main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

#modalThumbs .col-3 img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--ryant-transition);
}

#modalThumbs .col-3 img:hover,
#modalThumbs .col-3 img.active {
    border-color: var(--ryant-primary);
}

/* Product attributes table */
.product-attributes {
    font-size: 0.9rem;
}

.product-attributes th {
    font-weight: 600;
    color: #333;
    width: 40%;
}

/* ── Contacts Section ── */
.section-contacts .contact-block i {
    opacity: 0.8;
}

.section-contacts a:hover {
    opacity: 0.8;
}

/* ── Footer ── */
.site-footer a:hover {
    color: #fff !important;
}

.site-footer .custom-logo {
    max-height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 50vh;
    }

    .min-vh-50 {
        min-height: 50vh;
    }

    .hero-slide h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: 40vh;
    }

    .min-vh-50 {
        min-height: 40vh;
    }

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

    .hero-slide .lead {
        font-size: 0.95rem;
    }

    .product-card__title {
        font-size: 0.75rem;
    }

    .catalog-category__title {
        font-size: 1.1rem;
    }

    .section-usp .display-4 {
        font-size: 2rem;
    }
}
