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

@media (max-width: 1399.98px) {
    .site-logo img {
        height: 64px;
    }

    .main-menu .nav-item + .nav-item {
        margin-left: 28px;
    }

    .main-menu .nav-link {
        font-size: 14px;
        letter-spacing: 0.07em;
    }
}

@media (max-width: 1199.98px) {
    .site-header .container-fluid {
        gap: 14px;
    }

    .site-logo img {
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .site-header {
        height: 55px;
    }

    .site-logo img {
        height: 30px;
    }

    .header-mobile-tools {
        gap: 10px;
    }

    .header-icon {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .navbar-toggler {
        width: 22px;
        height: 22px;
    }

    .navbar-toggler-icon,
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        width: 22px;
    }
}

/* =========================================================
   Modal Windows
========================================================= */

@media (max-width: 768px) {
    h1,
    .h1 {
        font-size: 40px;
    }

    h2,
    .h2 {
        font-size: 32px;
    }

    h3,
    .h3 {
        font-size: 25px;
    }

    h4,
    .h4 {
        font-size: 24px;
    }

    h5,
    .h5 {
        font-size: 22px;
    }

    h6,
    .h6 {
        font-size: 18px;
    }

    .site-modal {
        padding: 16px;
    }

    .site-modal-dialog {
        max-width: 100%;
        max-height: calc(100vh - 32px);
    }

    .site-modal-body {
        padding: 1.5rem;
    }

    .site-modal-close {
        top: 16px;
        right: 16px;
        font-size: 1rem;
    }
}

/* =========================================================
   Homepage
========================================================= */

@media (max-width: 991.98px) {
    .hero-banners {
        height: clamp(520px, 90vw, 760px);
    }

    .hero-banner {
        width: 50%;
    }

    .hero-banner-2 {
        left: 50%;
    }

    .hero-banner-3 {
        display: none;
    }

    .hero-band {
        padding: 28px 0;
    }

    .collection-slider-controls {
        margin-top: 16px;
    }

    .collection-slider-nav {
        width: 64px;
    }

    .about-panel-inner {
        padding: 64px 20px;
    }

    .made-section {
        padding: 56px 0;
    }

    .appointment-banner-inner {
        padding: 48px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        overflow: hidden;
    }

    .hero-banners {
        display: block;
        height: clamp(520px, 120vw, 760px);
        overflow: hidden;
    }

    .hero-banner {
        position: relative;
        inset: auto;
        width: 100%;
        height: 100%;
        transform: none !important;
    }

    .hero-banner-2,
    .hero-banner-3 {
        display: none;
    }

    .hero-banner img {
        width: 100%;
        min-width: 0;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transform: none !important;
    }

    .hero-band {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 20px 0;
        background-color: var(--site-bg-blur);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .hero-band-inner {
        gap: 14px;
        align-items: flex-start !important;
    }

    .hero-title {
        font-size: clamp(34px, 8vw, 52px);
    }

    .hero-band .btn-link {
        font-size: 14px;
        letter-spacing: 0.08em;
    }

    .collection-section {
        padding-top: 40px;
    }

    .collection-slider {
        padding: 0 16px;
    }

    .collection-slider-nav {
        display: none;
    }

    .collection-slider-controls {
        padding: 0 16px;
    }

    .about-panel-inner {
        padding: 40px 20px;
    }

    .about-image {
        min-height: 340px;
    }

    .made-section .row {
        gap: 28px;
    }

    .made-section .col-lg-6.d-flex img {
        width: calc(50% - 4px);
        height: auto;
    }

    .appointment-banner-inner {
        padding: 40px 0;
    }
}

/* =========================================================
   Archive
========================================================= */

@media (max-width: 1199.98px) {
    .shop-archive-title {
        font-size: clamp(44px, 8vw, 68px);
    }

    .shop-filters-row-top,
    .shop-filters-row-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-products-grid .product-card-title,
    .shop-products-grid .product-card-price {
        font-size: clamp(22px, 2.4vw, 30px);
    }

    .shop-filters-top {
        gap: 2rem;
    }

    .shop-filters-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .shop-archive-section {
        padding: 48px 0 72px;
    }

    .shop-filters-toggle {
        margin-bottom: 20px;
    }

    .shop-filters-toggle.is-open {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .shop-filters {
        display: none;
        margin-top: 0;
        padding: 24px 20px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .shop-filters.is-open {
        display: grid;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }
}

@media (max-width: 767.98px) {
    .columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-archive-header {
        margin-bottom: 32px;
    }

    .shop-filters-row-top,
    .shop-filters-row-fields,
    .shop-products-grid,
    .shop-filters-top,
    .shop-filters-bottom {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-filter-input {
        min-height: 44px;
    }

    .shop-products-grid {
        gap: 24px;
    }

    .shop-products-grid .product-card-title,
    .shop-products-grid .product-card-price {
        font-size: clamp(20px, 6vw, 28px);
    }

    .shop-load-more-wrap {
        margin-top: 48px;
    }

    .shop-load-more-link {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 575.98px) {
    .columns-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .product-card-wishlist {
        top: 12px;
        right: 12px;
    }

    .product-card-info {
        gap: 12px;
        padding: 12px 8px 0;
    }

    .product-card-title,
    .product-card-price {
        font-size: 17px;
        line-height: 1.1;
    }

    .product-card-action {
        flex: 0 0 auto;
        align-items: flex-end;
    }

    .product-card-cart-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 575.98px) {
    .collection-slider {
        padding: 0 12px;
    }

    .collection-slider-controls {
        padding: 0 12px;
    }

    .shop-products-grid .product-card-info {
        padding: 12px 0 0;
    }

    .shop-products-grid .product-card-title,
    .shop-products-grid .product-card-price {
        font-size: 16px;
    }
}

/* =========================================================
   Single Product
========================================================= */

@media (max-width: 991.98px) {
    .single-product-section {
        padding: 12px 0 48px;
    }

    .single-product-summary {
        position: static;
    }

    .single-product-gallery-grid {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .single-product-gallery-thumbs-wrap {
        grid-template-rows: 46px minmax(0, 1fr) 46px;
        gap: 10px;
    }

    .single-product-gallery-thumb {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .single-product-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .single-product-gallery-main-wrap {
        order: 1;
    }

    .single-product-gallery-thumbs-wrap {
        order: 2;
        display: block;
        height: auto;
    }

    .single-product-gallery-thumbs {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .single-product-gallery-thumbs::-webkit-scrollbar {
        display: none;
    }

    .single-product-gallery-thumbs-track {
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: max-content;
        transform: none !important;
    }

    .single-product-gallery-thumbs-arrow {
        display: none;
    }

    .single-product-gallery-thumbs .swiper-slide,
    .single-product-gallery-thumb {
        width: 88px !important;
        flex: 0 0 88px;
    }

    .single-product-gallery-thumb-badge {
        width: 28px;
        height: 28px;
        right: 8px;
        bottom: 8px;
    }

    .single-product-title {
        font-size: 34px;
    }

    .single-product-summary-head {
        gap: 12px;
    }
}

/* =========================================================
   Feedback
========================================================= */

@media (max-width: 1199.98px) {
    .feedback-text,
    .feedback-question-title,
    .feedback-answer {
        font-size: 1.25rem;
    }
}

@media (max-width: 991.98px) {
    .product-feedback-head,
    .product-feedback-body {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

@media (max-width: 767.98px) {
    .feedback-review,
    .feedback-question {
        gap: 0.75rem;
    }

    .feedback-text,
    .feedback-question-title,
    .feedback-answer {
        font-size: 1.0625rem;
        line-height: 1.6;
    }

    .feedback-action-btn,
    .feedback-form-wrap .form-submit .submit {
        width: 100%;
        min-width: 0;
    }
}

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

@media (max-width: 991.98px) {
    .site-footer {
        padding: 60px 0;
    }

    .footer-top {
        margin-bottom: 32px;
    }

    .footer-links,
    .footer-contact,
    .footer-social,
    .footer-bottom-links {
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        background-position: 64% center;
    }

    .footer-logo {
        margin-bottom: 24px !important;
    }

    .footer-links-title,
    .footer-links .menu-item a,
    .footer-contact a,
    .footer-contact p,
    .footer-bottom p,
    .footer-bottom-links a {
        font-size: 14px;
        letter-spacing: 0.04em;
    }

    .footer-top .col-12 + .col-12 {
        padding-top: 8px;
    }

    .footer-bottom {
        align-items: flex-start !important;
    }

    .footer-bottom-links {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .footer-social {
        flex-wrap: wrap;
        gap: 14px !important;
    }
}

@media (max-width: 575.98px) {
    .footer-top {
        row-gap: 24px;
    }

    .footer-contact {
        gap: 10px !important;
    }

    .footer-social a {
        font-size: 18px;
    }
}

/* =========================================================
   Notices
========================================================= */

@media (max-width: 767.98px) {
    .woocommerce-notices-wrapper.wc-notices-modal {
        padding: 16px;
    }

    .woocommerce-notices-wrapper.wc-notices-modal .woocommerce-error,
    .woocommerce-notices-wrapper.wc-notices-modal .woocommerce-message,
    .woocommerce-notices-wrapper.wc-notices-modal .woocommerce-info {
        width: min(100%, calc(100vw - 32px));
        padding: 24px 44px 24px 18px;
        border-radius: 12px;
    }

    .woocommerce-notices-wrapper.wc-notices-modal .wc-notices-close {
        top: 10px;
        right: 10px;
    }
}

/* =========================================================
   Floating Contact
========================================================= */

@media (max-width: 991.98px) {
    .floating-contact {
        left: 8px;
        right: auto;
        top: auto;
        bottom: 0;
        transform: none;
    }

    .floating-contact-panel {
        width: 168px;
        min-height: 40px;
        border-radius: 5px 5px 0 0;
    }

    .floating-contact-default,
    .floating-contact-overlay {
        width: 168px;
        min-height: 40px;
        height: 40px;
        flex-direction: row;
    }

    .floating-contact-default {
        padding: 5px 16px;
        gap: 10px;
    }

    .floating-contact-label {
        font-size: 14px;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        writing-mode: initial;
        transform: none;
    }

    .floating-contact-overlay {
        padding: 10px 14px;
        justify-content: center;
        gap: 12px;
        transform: translateY(100%);
    }

    .floating-contact-panel:hover .floating-contact-overlay {
        opacity: 0;
        visibility: hidden;
        transform: translateY(100%);
    }

    .floating-contact.is-open .floating-contact-overlay {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .to-top-btn {
        right: 12px;
        bottom: 12px;
        width: 35px;
        height: 35px;
    }
}

/* =========================================================
   Cart Modal
========================================================= */

@media (max-width: 575.98px) {
    .cart-modal .mini-cart-thumb-link {
        width: 56px;
    }

    .cart-modal .mini-cart-row {
        gap: 0.75rem !important;
    }

    .cart-modal .mini-cart-bottom {
        gap: 0.75rem !important;
    }

    .cart-modal .mini-cart-subtotal {
        width: 100%;
    }

    .cart-modal .woocommerce-mini-cart__buttons {
        flex-direction: column;
    }

    .cart-modal .woocommerce-mini-cart__buttons .button {
        width: 100%;
    }
}
