/**
 * Dolomix — декоративні сипучі суміші
 * Пalette та типографика успадковані зі старої версії сайту
 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #db4d3f;
    --dark-color: #1a252f;
    --light-color: #f8f9fa;
    --accent-color: #e74c3c;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ---------- Navbar ---------- */

.navbar-dolomix {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s;
}

.navbar-dolomix.scrolled {
    padding: 8px 0;
}

.navbar-dolomix .navbar-brand img {
    height: 42px;
    width: auto;
}

.navbar-dolomix .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

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

.navbar-dolomix .nav-link:hover:after,
.navbar-dolomix .nav-link.active:after {
    width: 100%;
}

.navbar-dolomix .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.phone-link {
    color: var(--dark-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.phone-link i {
    color: var(--secondary-color);
    margin-right: 8px;
    font-size: 1.1rem;
}

.phone-link:hover {
    color: var(--secondary-color);
}

/* ---------- Hero ---------- */

.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.82), rgba(44, 62, 80, 0.82)), url('../image/img_1010.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 150px 0 120px;
    position: relative;
}

.hero-content {
    max-width: 640px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-section { padding: 110px 0 80px; }
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 30px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ---------- Sections ---------- */

.section-title {
    position: relative;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title.text-start:after {
    left: 0;
    transform: none;
}

/* ---------- Features ---------- */

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: all 0.3s;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--secondary-color);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ---------- Products ---------- */

.products-section {
    background-color: #f9f9f9;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    background-color: #fff;
    border-top: 3px solid var(--secondary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card-img-wrapper {
    height: 250px;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.product-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 5px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.quantity-btn:hover {
    background-color: #c0392b;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
}

.product-btn {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--secondary-color);
}

.product-btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Сторінка товару */

.product-gallery-slick img {
    width: 100%;
    border-radius: 10px;
}

.product-gallery-slick .slick-slide img,
.product-thumb-slick .slick-slide img {
    display: block;
}

.product-thumb-slick .px-1 img {
    object-fit: cover;
}

/* ---------- About / Testimonials / Contact ---------- */

.about-section {
    padding: 80px 0;
}

.about-content {
    background-color: rgba(255, 255, 255, 0.97);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--secondary-color);
}

.testimonials-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: #fff;
}

.testimonials-section .section-title,
.testimonials-section .section-title:after {
    color: #fff;
    background: #fff;
}

.testimonial-slider .slick-slide {
    padding: 0 15px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    position: relative;
    border-top: 3px solid var(--secondary-color);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 0;
}

.testimonial-rating {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-section {
    padding: 80px 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
}

.contact-section .form-control {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

/* ---------- Gallery ---------- */

.gallery-filter {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 25px;
    border-radius: 30px;
    margin: 0 5px 10px;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: #fff;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    height: 220px;
    background: #f1f1f1;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.06);
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    background: rgba(219, 77, 63, 0.85);
    border-radius: 50%;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 37, 47, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- Footer ---------- */

.footer-dolomix {
    background-color: var(--dark-color);
    color: #cfd6dd;
    padding: 60px 0 30px;
}

.footer-dolomix h5 {
    color: #fff;
    margin-bottom: 18px;
}

.footer-dolomix a {
    color: #cfd6dd;
    text-decoration: none;
}

.footer-dolomix a:hover {
    color: var(--secondary-color);
}

.footer-dolomix .footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-dolomix .footer-links li {
    margin-bottom: 8px;
}

.footer-dolomix .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    margin-right: 8px;
    transition: all 0.3s;
}

.footer-dolomix .social-icons a:hover {
    background: var(--secondary-color);
    color: #fff;
}

.footer-dolomix .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #8f9aa5;
}

/* ---------- Floating buttons ---------- */

.floating-chat-btn,
.floating-viber-btn {
    position: fixed;
    left: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    z-index: 1500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s;
}

.floating-chat-btn {
    bottom: 90px;
    background: #0088cc;
}

.floating-viber-btn {
    bottom: 30px;
    background: #7360f2;
}

.floating-chat-btn:hover,
.floating-viber-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

#goToTopBtn {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    font-size: 1.1rem;
    display: none;
    z-index: 1500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

#goToTopBtn:hover {
    background: #c0392b;
}

/* ---------- Cart / Checkout ---------- */

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-card {
    border-top: 3px solid var(--secondary-color);
}

.toast-container {
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 3000;
}

/* ---------- Breadcrumb strip ---------- */

.breadcrumb-strip {
    background: var(--light-color);
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

/* ---------- Static pages ---------- */

.post-content {
    line-height: 1.8;
    font-size: 1.02rem;
}

.post-content h2, .post-content h3 {
    margin-top: 30px;
}

/* ---------- Ссылки без подчёркивания ---------- */

a,
a:hover,
a:focus {
    text-decoration: none;
}

/* ---------- Страница товара: разворот фото на весь экран ---------- */

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