/* Global responsive styles */
img {
    max-width: 100%;
    height: auto;
}

/* Make all containers responsive */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Ensure all videos and iframes are responsive */
video, iframe {
    max-width: 100%;
}

/* Fix for tables on mobile */
table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure all buttons are touch-friendly */
button,
.btn,
a.btn,
input[type="button"],
input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

@media (max-width: 1399px) {
    .col-gd {
        width: 25%;
    }
    .hero-area3.hero-area4 .item {
        height: 450px;
    }
}
@media (max-width: 1366px) {
    .slider-area-wrapper .item-inner {
        max-width: 70%;
    }
    .flash-sell-area.three_column_product .section-title h2{
        font-size: 24px;
    }
    .flash-sell-area.three_column_product .section-title h2 {
        font-size: 20px;
    }
}

@media (max-width: 1050px) {
    .left-category-area .category-list .navi-link img{
        display: none;
    }
    .left-category-area .category-list .navi-link {
        padding: 17px 8px;
    }
    .left-category-area .category-list {
        padding: 14px 0px;
    }
    .left-category-area .category-list .navi-link i {
        top: 5px;
    }

}

@media (max-width: 991px) {
    .hero-area3 .right-img img {
        max-width: 220px;
        display: inline-block;
        margin-bottom: 20px;
    }
    .slider-area-wrapper .item-inner {
        max-width: 100%;
    }

    .hero-area3 .left-content .title {
        font-size: 24px;
        line-height: 34px;
    }
    .hero-area3 .left-content{
        text-align: center;
        width: 100%;
    }
    .owl-carousel .owl-prev, .owl-carousel .owl-next {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
    .hero-area3 .left-content .subtitle {
        font-size: 30px;
    }
    .service-section.mt-60.pt-0{
        margin-top: 30px !important;
    }

    .col-gd {
        width: 33.333%;
    }
    .newproduct-section .section-title,
    .sps-two .section-title
    {
        display: block;
        text-align: center;
    }
    .sps-two  .section-title h2,
    .newproduct-section  .section-title h2
    {
        display: inline-block;
        margin-bottom : 20px;
    }
    .newproduct-section .section-title .links,
    .sps-two .section-title .links
    {
        display : block;
    }
    .newproduct-section .section-title .links,
    .sps-two .section-title .links
    {
        padding-bottom: 10px;
    }
    .section-title .links a::before {
        display: none;
    }
    .widget.p-4 {
        padding: 0px !important;
        box-shadow: none !important;
    }
    .contact-page .card.widget.p-4,
    .checkut-page .card.widget.p-4
    {
        border-radius: 5px !important;
        padding: 1.5rem !important;
    }
    .topbar{
        position: relative;
    }
    .compare-mobile {
        margin-right: 0px;
        margin-left: 10px;
    }
    .site-header .search-box-wrap{
        position: absolute;
        left: 0px;
        width: 100%;
        background: #fff;
        width: 100%;
        height: 100%;
        top: 0px;
        z-index: 999;
        display: none !important;
    }
    .close-m-serch{
        font-size: 24px;
        margin-left: 20px;
        cursor: pointer;
    }
    .track-order-link.wishlist-mobile{
        margin-right: 10px;
    }
    .t-h-dropdown {
        margin-right: 10px;
    }
    .hero-slider .item {
        height: 430px;
    }
    .body_theme2 .hero-slider .item {
        height: 430px;
    }

    /* Responsive header for tablets */
    .site-header .toolbar {
        flex-wrap: wrap;
    }

    /* Product grid responsive for tablets */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Our story section responsive for tablets */
    .our-story-content {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 40px 20px;
    }
    .our-story-text {
        flex: 1 0 100%;
        max-width: 100%;
        margin-bottom: 10px;
        text-align: left !important;
    }
    .our-story-image {
        flex: 1 0 100%;
        display: flex;
        justify-content: center;
        height: 400px;
    }
    .our-story-image img {
        max-height: 350px;
    }

    /* Responsive font sizes for tablets */
    .explore-text {
        font-size: 54px;
    }

    /* Fix for mobile-display-none elements */
    .mobile-display-none {
        display: none !important;
    }

    /* Show alternative mobile navigation */
    .mobile-menu-toggle {
        display: block !important;
    }

    /* Ensure buttons are properly sized */
    .btn {
        padding: 10px 15px;
        font-size: 16px !important;
    }

    /* Improve product slider for tablets */
    .product-slider-container {
        overflow-x: hidden;
    }
    .product-slider-card {
        width: 48%;
        margin: 0 1%;
    }
    .widget-title {
        border-bottom: 2px solid #CDCDCD;
    }
    .contact-section{
        display: none;
    }
    .back-arrow{
        margin-top: 33px;
        margin-bottom: 33px;
        display: block !important;
    }
}

@media (max-width: 767px) {
    .hero-area3.hero-area4 .item {
        height: 320px;
    }
    .body_theme2 .genius-banner{
        margin-bottom: 30px;
    }
    .body_theme3 .genius-banner{
        margin-bottom: 30px;
    }
    .body_theme4 .genius-banner{
        margin-bottom: 30px;
    }
    .shop-top-filter-wrapper .gd-text-sm-center{
        text-align: center;
    }
    .shop-top-filter-wrapper select.form-control:not([size]):not([multiple]) {
        height: 35px;
    }
    .quickFilter .quickFilter-title{
        height: 35px;
        line-height: 35px;
    }
    .shop-top-filter-wrapper .shop-sorting .form-control {
        max-width: 155px;
    }
    .shop-top-filter-wrapper .gd-text-sm-center .sptfl{
        justify-content: center;
        display: block;
    }
    .shop-top-filter-wrapper .shop-view{
        float: unset;
        margin-top: 15px;
    }
    .shop-top-filter-wrapper  .shop-sorting{
        display: block;
        flex: unset;
        margin-top: 15px;
        text-align: center;
    }

    .col-gd {
        width: 50%;
    }
    .hero-slider .owl-carousel .owl-nav div {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
    .hero-slider .item {
        padding: 0;
    }
    .payment-methods .single-payment-method {
        width: 50%;
    }
    .details-page-top-right-content{
        margin-top: 30px;
    }
    .t-m-s-a{
        text-align: center;
    }
    a.genius-banner {
        margin-bottom: 30px;
    }
    .deal-of-day-section .section-title{
        display: block;
        text-align: center;
    }
    .deal-of-day-section .section-title h2{
        display: inline-block;
    }
    .deal-of-day-section .countdown{
        display: table;
        margin: 0 auto;
    }
    .deal-of-day-section .section-title .right-area{
        padding: 10px 0px 10px;
    }
    .flash-sell-area .section-title{
        text-align: left;
    }

    /* Product grid responsive */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Our story section responsive */
    .our-story-content {
        padding: 30px;
    }
    .our-story-text {
        padding-right: 100px;
    }
    .our-story-text h2 {
        font-size: 28px;
    }
    .our-story-text p {
        font-size: 18px;
    }

    /* Responsive font sizes */
    .explore-text {
        font-size: 48px;
    }

    /* Make images responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Improve mobile menu */
    .mobile-menu {
        /*max-height: 80vh;*/
        overflow-y: auto;
    }
}
@media (max-width: 576px) {
    .shop-top-filter-wrapper  .shop-sorting #sorting{
        display: block;
        margin: 0 auto;
    }
    .hero-slider .item {
        height: 100%;
        gap: 12px;
    }
    .announcement-with-content .left-area {
        display: none;
    }
    .announcement-with-content .right-area {
        padding-left: 0px;
    }
    .announcement-with-content .right-area h3{
        font-size: 24px;
        font-weight: 600;
    }
    .slider-area-wrapper{
        margin-top: 0px;
    }
    .owl-carousel .owl-stage-outer{
        padding-top: 0;
    }
    .wrapper-item{
        height:  auto !important;
    }
    .hero-slider{
        border-radius: 0;
    }
    .item-text > .btn-primary{
        margin-bottom: 30px;
    }
    .justify-content-between{
        flex-direction: row-reverse;
    }
    .site-header .toolbar .toolbar-item>a>div{
        /*left: -115px;*/
    }
    .justify-content-between {
        /*justify-content: flex-end !important;*/
    }
    .site-header .site-branding .site-logo{
        width: 120px;
    }
    .line-text-container{
        display:  none;
    }
    .explore-text {
        margin-top: 0;
        text-align: left !important;
    }
    .overlay > .btn{
        max-width: 100% !important;
        font-size: 16px !important;
        font-weight: 100 !important;
        align-items: center !important;
        text-align: center !important;
        justify-content: center;
    }
    .product-card img {
        width: 16px;
    }
    .product-slider-section{
        margin-top: 48px;
    }
    .product-card{
        height: 215px;
    }
    .overlay h3 {
        font-size: 18px;
        font-weight: bold;
    }

}


@media (max-width: 500px) {
    .hero-area3.hero-area4 .item {
        height: 250px;
    }
    .slider-area-wrapper .item-inner .title {
        font-size: 30px;
    }
    .slider-area-wrapper .item-inner .subtitle {
        font-size: 15px;
        line-height: 24px;
    }

    .selected-product-section .features-slider .owl-nav div{
        top: 50% !important;
        transform: translateY(-50%);
    }
    .selected-product-section .features-slider .owl-nav div.owl-prev{
        left: -10px;
        right: auto;
    }
    .selected-product-section .features-slider .owl-nav div.owl-next{
        right: -10px;
    }
    .product-card .product-title > a {
        font-size: 13px !important;
        display: block;
    }
    .product-card .product-category>a{
        font-size: 12px;
    }
    .deal-of-day-section .section-title .h3::before{
        display: none;
    }
    .site-header .toolbar .toolbar-item {
        width: 34px;
        margin-left: 6px;
    }
    .flash-sell-new-section .product-card{
        display: block;
    }
    .flash-sell-new-section .product-card .product-thumb{
        width: 100%;
    }
    .flash-sell-area .section-title h2{
        font-size: 20px;
    }
    .p-action-button{
        display: block;
        margin-top: 12px;
    }
    .details-page-top-right-content .product-quantity{
        float: none;
    }
    .topbar .search-box-inner .search-box select {
        width: 80px;
    }
    .site-header .search-box-wrap .input-group{
        position: unset;
    }
    .site-header .search-box-wrap .search-box-inner{
        position: relative;
    }

    /* Product grid responsive */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Our story section responsive */
    .our-story-content {
        flex-direction: column;
        padding: 20px;
    }
    .our-story-text {
        max-width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    .our-story-text h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .our-story-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .our-story-image {
        position: absolute;
        left: 450px;
        top: 0;
    }
    .our-story-image img {
        position: relative;
        max-height: 400px;
        margin: 0 -20px;
    }
    .our-story-image img:nth-child(1),
    .our-story-image img:nth-child(2),
    .our-story-image img:nth-child(3) {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
    }

    /* Responsive buttons */
    .btn {
        width: 100% !important;
        max-width: 200px;
        padding: 8px 15px;
        font-size: 14px !important;
    }

    /* Responsive font sizes */
    .explore-text {
        font-size: 36px;
        text-align: center;
    }

    /* Section header responsive */
    .section-header {
        /*flex-direction: column;*/
        align-items: center;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .view-all {
        font-size: 20px;
        text-decoration: underline !important;
    }
    .view-all > img {
        width: 16px;
        margin-left: 6px;
    }
    /* Product slider responsive */
    .product-slider-card {
        width: 156px;
    }
    .carousel-div>.owl-carousel.owl-drag .owl-item{
        width: auto !important;
        margin-right: 12px !important;
    }
    .product-slider-card{
        padding:15px;
    }
    .product-slider-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-slider-title {
        font-size: 16px;
    }
    .product-slider-desc {
        margin-top: 8px;
    }
    .product-slider-new-price{
        font-size: 18px;
    }
    .widget-categories ul>li>a, .widget-links ul>li>a {
        font-size: 14px;
    }
}

@media (max-width: 414px) {
    .g-3, .gy-3 {
        --bs-gutter-y: 10px !important;
    }
    .g-3, .gx-3 {
        --bs-gutter-x: 10px !important;
    }
    .t-h-dropdown {
        margin-right: 8px;
    }
    .section-title h2 {
        font-size: 20px;
    }
    .details-page-top-right-content .p-title-main {
        font-size: 20px;
        line-height: 30px;
    }

}
@media (max-width: 390px) {
    .product-card .product-price > del{
        display: block;
    }
}
@media (max-width: 360px) {
    .product-card .product-title > a {
        font-size: 12px !important;
    }
    .product-card .product-card-body {
        padding: 10px 5px 0px;
    }
    .product-card.p-col .product-thumb {
        width: 100px;
        margin-right: 20px;
    }
    .genius-banner .inner-content h4 {
        font-size: 20px;
    }

    /* Extra small device optimizations */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .our-story-image {
        height: 250px;
    }

    .our-story-image img {
        max-height: 400px;
        margin: 0 -10px;
    }

    .explore-text {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .view-all {
        font-size: 14px;
    }

    /* Ensure buttons are properly sized for very small screens */
    .btn {
        padding: 8px 12px;
        font-size: 12px !important;
        max-width: 220px;
    }

    /* Adjust mobile menu for very small screens */
    .mobile-menu {
        /*max-height: 70vh;*/
    }
}

.our-story-image img {
    display: inline-block;
}

/* 1270px-დან 991px-მდე — პირველი ბოთლი გაქრეს */
@media (max-width: 1270px) and (min-width: 992px) {
    .our-story-image img:nth-child(1) {
        display: none;
    }
    .our-story-content {

        padding: 0px 20px;
    }
}

/* 911px-დან 500px-მდე — ყველა ბოთლი გაქრეს */
@media (max-width: 992px) and (min-width: 500px) {
    .our-story-image {
        display: none;
    }
}

@media (max-width: 499px) {
    .our-story-image img {
        display: inline-block;
    }
}

@media (max-width: 600px) {
    .menu-top-area > .container > a > h4{
        font-size: 14px !important;
    }
    .btn.btn-primary span {
        font-size: 16px;
    }
    button,
    .btn,
    a.btn,
    input[type="button"],
    input[type="submit"] {
        min-height: 40px;
        min-width: 44px;
    }

    .item-text > .btn-primary > span > img {
        height: 20px;
    }

}

@media (max-width: 420px) {
    .menu-top-area > .container > a > h4{
        font-size: 12px !important;
    }
    .menu-top-area {
        height: 34px !important;
    }
}

@media (max-width: 1401px) {
    #search-modal-trigger{
        display: none;
    }
}
.mobile-search-form {
    width: 100%;
    padding: 0 15px;
    margin-bottom: 1rem;
}

.mobile-search-form .input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.mobile-search-form .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0.375rem 0 0 0.375rem;
}

.mobile-search-form .input-group-append {
    display: flex;
}

.mobile-search-form .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Optional: improve spacing on small screens */
@media (max-width: 576px) {
    .mobile-search-form {
        padding: 0 10px;
    }

    .mobile-search-form .form-control {
        font-size: 14px;
        padding: 0.5rem;
    }

    .mobile-search-form .btn {
        padding: 0.5rem 0.75rem;
    }
    .share-button > span{
        display: none;
    }
}
