/* ============================================
   RESPONSIVE STYLES FOR LILIYA ATELIER
   Mobile-first approach with media queries
   ============================================ */

/* Base responsive fixes - Apply to all screen sizes */
body {
    min-width: auto !important;
}

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

/* Remove fixed widths from navbar and containers */
.navbar-default,
.navbar,
.online-store-catalog {
    min-width: auto !important;
}

/* Make iframes responsive (YouTube videos, Google Maps, etc.) */
iframe {
    max-width: 100%;
}

/* Responsive embed wrapper for maintaining aspect ratio */
.video-container,
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   TABLET AND BELOW (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {
    /* Container adjustments */
    .my-container {
        width: auto !important;
        padding: 0 15px;
    }

    /* Navbar adjustments */
    .navbar-default .navbar-nav > li > a {
        padding: 15px 10px;
        font-size: 11px;
    }

    .top-logo img {
        width: 150px;
        margin-left: 10px;
        margin-right: 20px;
    }

    /* Header sizes */
    .h,
    .header {
        font-size: 24px;
        padding-top: 40px;
    }

    .h-white {
        font-size: 24px;
        padding-top: 40px;
    }

    /* Online store items */
    .online-store .item {
        margin-bottom: 20px;
    }

    .online-store .item img {
        width: 100%;
        float: none;
        margin-bottom: 15px;
    }

    .online-store .item-info {
        padding: 20px;
        margin-top: 0;
    }

    /* Why us section */
    .why-us .item {
        min-height: auto;
        margin-bottom: 20px;
    }

    /* Footer */
    footer {
        height: auto;
        padding: 30px 0;
    }

    .f-logo {
        padding-top: 20px;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-nav {
        margin: 20px 0;
        text-align: center;
    }

    .footer-nav a {
        display: inline-block;
        margin: 5px 10px;
    }

    footer .sb {
        text-align: center;
    }

    footer .copy,
    footer .dev {
        text-align: center;
    }

    /* Product grid */
    .product-cont {
        height: auto;
        margin-bottom: 30px;
    }

    .img-cont {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Catalog */
    .online-store-catalog .item {
        width: 50%;
    }

    /* Landing slider */
    .landing-slider .landing-header {
        width: 80%;
        left: 10%;
        margin-left: 0;
        top: 30px;
    }

    .landing-slider .landing-header h1 {
        font-size: 24px;
        line-height: 30px;
    }

    .landing-slider .landing-header h2 {
        font-size: 15px;
        line-height: 22px;
    }

    /* Slider headers */
    .slider-h1 {
        font-size: 28px !important;
        line-height: 34px !important;
    }

    .slider-h2 {
        font-size: 15px !important;
    }

    /* Contact form */
    .contact-form {
        padding-left: 0;
        margin-top: 30px;
    }

    /* News section */
    .news-cont .item {
        min-height: auto;
        margin-bottom: 30px;
    }

    /* Why ind section */
    .why-ind-cond .item {
        width: 100%;
        margin: 20px 0;
        float: none;
    }

    /* Sub categories */
    .sub-categories {
        width: 100%;
        margin: 10px 0 30px 0;
    }

    .sub-categories li {
        width: 100%;
        margin-right: 0 !important;
    }

    /* Motivate block */
    .motivate-block.sub-categories {
        margin: 30px 0 3px 0;
    }

    .motivate-block.sub-categories li {
        width: 100%;
    }

    .motivate-block.sub-categories li a {
        height: auto;
    }

    /* Main part layout - Hide sidebar on mobile */
    .main-part .col-xs-2 {
        display: none !important;
    }

    .main-part .col-xs-10 {
        width: 100% !important;
    }

    .main-part-right {
        padding-left: 0;
        margin-top: 0;
    }

    /* Product page */
    .main-photo {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }

    .small-image {
        width: 48%;
        height: auto;
        margin: 0 2% 10px 0;
    }

    .small-image:nth-child(2n) {
        margin-right: 0;
    }

    /* Consult sidebar - hide on tablets */
    .consult {
        display: none;
    }

    /* Photo copy */
    .photo-copy-cont {
        padding: 20px;
        background-position: 90% 15px;
        background-size: 100px;
    }

    /* Page 404 */
    .page-404 ul {
        width: 100%;
        padding: 0 20px;
    }

    /* Contact section */
    .contacts-cont p {
        padding: 20px 15px 20px 80px;
    }

    .contacts-cont p .fa {
        left: 15px;
        font-size: 24px;
    }

    .contacts-cont p span {
        left: 45px;
        font-size: 14px;
    }

    /* Product options */
    .param-cont div {
        width: 100%;
        margin-bottom: 10px;
    }

    .param-cont .options {
        width: 100%;
    }

    /* Online store side */
    .online-store-side .item .item-info {
        position: relative;
        top: auto;
        min-height: auto;
        background-color: #f5f5f5;
        color: #111;
    }

    .online-store-side .item .item-info a {
        color: #111;
        text-shadow: none;
    }

    .online-store-side .item img {
        -webkit-filter: none;
        filter: none;
    }
}

/* ============================================
   MOBILE (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    /* Body adjustments */
    body {
        font-size: 13px;
        padding-top: 50px;
    }

    .page-main-landing .news-cont,
    .page-main-index .news-cont{
        display:none;
    }

    .text img, .text-part img{
        display:block;
        float:none;
        width:100% !important;
        height: auto !important;
    }

    

    .product-page .my-container .img-cont, .catalog-page .my-container .img-cont{
         width:100%;
          
   
    }

    .sub-categories.motivate-block{
        padding-left:0;
    }

    .catalog-page, .product-page, .blog-page, .article-page, .text-page{
            padding: 0 15px;
    }

    .main-part-right{
        padding-right:0;
    }

    .product-page .my-container .product-cont, .catalog-page .my-container .product-cont{
        height:auto;
    }

    /* Navbar mobile */
    .navbar-default .navbar-brand {
        padding: 10px 15px;
    }

    .top-logo img {
        width: 175px;
        margin-left: 5px;
        margin-right: 10px;
    }

    .navbar-toggle {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    /* Make hamburger menu full height */
    .navbar-collapse.in,
    .navbar-collapse.collapsing {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #f5f5f5;
        overflow-y: auto;
        z-index: 1000;
    }

    .navbar-default .navbar-nav {
        margin: 0;
    }

    .navbar-default .navbar-nav > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .navbar-default .navbar-nav > li > .social {
        padding: 12px 15px;
    }

    /* Main slider - Hide on mobile */
    #slider-on-main-page,
    .main-slider {
        display: none !important;
    }

    body {
        padding-top: 60px !important;
    }

    /* Headers */
    .h,
    .header,
    .h-white {
        font-size: 20px;
        padding-top: 30px;
    }

    .sh {
        font-size: 32px;
        margin: 15px 0 10px 0;
    }

    .sub-desc {
        font-size: 14px;
    }

    /* Online store items - Force single column on mobile */
    .online-store .row {
        display: block !important;
    }

    .online-store .col-xs-6 {
        width: 100% !important;
        float: none !important;
    }

    .online-store .item {
        background-position: 90% 20px;
        background-size: 80px;
        margin-bottom: 20px;
    }

    .online-store .item-info {
        padding: 20px 15px;
    }

    .online-store .item-info .name {
        font-size: 20px;
    }

    .online-store .item-info .short-desc {
        font-size: 12px;
    }

    .online-store .item-info p {
        font-size: 12px;
    }

    /* Make catalog buttons full width */
    .online-store .item-info .btn-std {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Why us - Force single column on mobile */
    .why-us {
        padding: 10px 0 30px 0;
    }

    .why-us .row > div[class*="col-"],
    .why-us .col-xs-3 {
        width: 100% !important;
        float: none !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .why-us .item {
        margin-bottom: 20px;
    }

    .why-us .item .name {
        font-size: 18px;
    }

    .why-us .item>i {
        font-size: 40px;
    }

    /* Testimonials - Force single column on mobile */
    .testimonial .short-desc {
        padding-left: 20px;
        font-size: 14px;
    }

    .testimonial>i {
        display: none;
    }

    #testi-slider .row {
        margin-right: 15px;
        margin-left: 15px;
    }

    #testi-slider .row > div[class*="col-"] {
        width: 100% !important;
        float: none !important;
    }

    /* News - Force single column on mobile */
    .news-cont .h {
        padding-top: 40px;
        font-size: 20px;
    }

    .news-cont .row > div[class*="col-"] {
        width: 100% !important;
        float: none !important;
    }

    .news-cont .item {
        margin-bottom: 20px;
    }

    .news-cont .item-data {
        padding: 15px;
    }

    /* Make blog buttons full width */
    .news-cont .item .btn-std {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Blog page */
    .blog-page .news-cont .item .name {
        font-size: 22px;
    }

    .blog-page .news-cont .item .short-desc {
        font-size: 14px;
    }

    /* Footer - Stack columns vertically */
    footer .row > div[class*="col-"] {
        width: 100% !important;
        float: none !important;
    }

    footer {
        padding: 20px 0;
    }

    .footer-nav a {
        font-size: 11px;
        margin: 5px 8px;
    }

    footer .copy {
        font-size: 11px;
    }

    footer .sb {
        margin-top: 20px;
    }

    /* Contact form - Stack columns vertically on mobile */
    .contacts-plus-form .col-xs-6 {
        width: 100% !important;
        float: none !important;
    }

    .contact-form {
        margin-top: 20px;
    }

    .contact-form .header {
        font-size: 20px;
    }

    .contact-form p {
        font-size: 14px;
    }

    /* Make contact form submit button full width */
    .contact-form .btn-main,
    .contact-form button[type="submit"] {
        display: block;
        width: 100%;
    }

    /* Buttons */
    .btn-std {
        font-size: 13px;
        padding: 6px 14px;
    }

    .btn-main {
        font-size: 14px;
        padding: 12px 24px;
    }

    /* Contacts */
    .contacts-cont p {
        padding: 15px 10px 15px 60px;
        font-size: 14px;
        margin: 10px 5px;
    }

    .contacts-cont p .fa {
        left: 10px;
        font-size: 20px;
    }

    .contacts-cont p span {
        display: none;
    }

    /* Product grid - Force single column on mobile */
    .products-list-cont .row > div[class*="col-"] {
        width: 100% !important;
        float: none !important;
    }

    .product-cont {
        margin-top: 20px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-cont .name {
        font-size: 13px;
        margin-top: 15px;
    }

    .navbar-fixed-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse{
        max-height: 100%;
    }

    .product-cont .price {
        font-size: 20px;
    }

    .online-store-catalog .item {

        margin-bottom: 0px;
    }

    /* Catalog */
    .online-store-catalog .item {
        width: 50%;
        /*margin-bottom: -20px;*/
    }
    .dropdown.search-dropdown{
        display:none
    }
    .social.dropdown-toggle{
        text-align:left;
    }


    .online-store-catalog .item .item-info a {
        font-size: 28px;
        padding-bottom: 0px;
    }

    .online-store-catalog .item-desc {
        font-size: 18px;
        line-height: 24px;
        top: 5%;
    }

    .online-store-catalog .item .item-desc img {
        width: 50%;
        margin-bottom: 10px;
    }

    .online-store-catalog .item .item-desc p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    /* Landing slider */
    .landing-slider .landing-header {
        padding: 15px;
        top: 20px;
        width: 90%;
        left: 5%;
    }

    .landing-slider .landing-header h1 {
        font-size: 18px;
        line-height: 24px;
    }

    .landing-slider .landing-header h2 {
        font-size: 13px;
        line-height: 18px;
        padding-top: 5px;
    }

    .logo-slider {
        width: 200px !important;
    }

    /* Slider text */
    .slider-h1 {
        font-size: 22px !important;
        line-height: 28px !important;
    }

    .slider-h2 {
        font-size: 13px !important;
    }

    /* Why ind */
    .why-ind-cond .item .num {
        font-size: 60px;
        line-height: 60px;
        margin: 0 15px 15px 0;
        padding: 5px 15px;
    }

    .why-ind-cond .item .name {
        font-size: 20px;
        padding: 0 10px;
    }

    .why-ind-cond .item .desc {
        font-size: 14px;
    }

    .why-ind-cond .item::after {
        background-size: 40%;
    }

    /* Product page - Stack columns below photo block */
    .product-page .row > .col-xs-6 {
        width: 100% !important;
        float: none !important;
    }

    .product-page h1 {
        font-size: 24px;
        margin: 20px 0;
    }

    .price-product span {
        font-size: 36px;
    }

    .small-image {
        width: 48%;
    }

    .product-contacts-block .phones {
        width: 100%;
    }

    .product-contacts-block .phones a {
        font-size: 20px;
    }

    /* Arenda prices */
    .arenda-price-cont .pr {
        font-size: 20px;
    }

    /* Pagination */
    .pagination span,
    .pagination a {
        font-size: 18px;
        padding: 8px 12px;
        margin-right: 5px;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 14px;
    }

    /* Article page */
    .article-page .gallery_images {
        margin-top: 20px;
    }

    .small-image-blog-gallery {
        width: 100%;
        height: auto;
        margin: 0 0 20px 0;
    }

    /* Text content */
    .text,
    .text p,
    .text div {
        font-size: 14px !important;
    }

    /* Motivate block */
    .motivate-block-cont {
        margin-top: 20px !important;
        padding: 20px 0 !important;
        background-position: 95% 10px !important;
        background-size: 60px !important;
    }

    .motivate-block-cont .h {
        font-size: 20px;
    }

    .motivate-block-cont .sub-header {
        font-size: 18px;
        margin: 15px 0;
    }

    /* Photo copy */
    .photo-copy-cont {
        padding: 15px 15px 15px 60px;
        font-size: 14px;
        background-size: 60px;
        background-position: 95% 10px;
    }

    .photo-copy-cont img {
        width: 40px;
        left: 10px;
    }

    /* Search dropdown */
    .search-dropdown .dropdown-menu {
        width: 250px;
        right: 0;
        left: auto;
    }

    .search-dropdown .dropdown-menu .form-group input {
        width: 170px;
    }

    /* Arenda page */
    .arenda-page .block-h {
        font-size: 18px;
        padding: 8px 8px 8px 15px;
    }

    .arenda-page .block-h-data {
        padding: 0px 10px 10px 20px;
        font-size: 14px;
    }

    /* Page 404 */
    .page-404 h1 {
        font-size: 80px;
    }

    /* Contact form section */
    .contact-form-section .sub-desc {
        margin-bottom: 25px;
    }

    /* Products list button */
    .products-list-cont .btn-std {
        font-size: 16px;
        padding: 8px 12px;
    }

    /* Sort select */
    #id_sort {
        float: none;
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }

    .products-num-found {
        font-size: 14px;
        margin-bottom: 10px;
        display: block;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Even smaller adjustments for very small devices */
    .top-logo img {
        width: 175px;
    }

    .h,
    .header,
    .h-white {
        font-size: 18px;
        padding-top: 20px;
    }

    .sh {
        font-size: 26px;
    }

    /* Online store catalog - single column */
    .online-store-catalog .item {
        width: 100%;
        /*margin-bottom: -15px;*/
    }

    /* Footer */
    .footer-nav a {
        display: block;
        margin: 8px 0;
    }

    .f-logo img {
        width: 150px;
    }

    /* News items */
    .news-cont .name {
        font-size: 16px;
    }

    /* Landing header */
    .landing-slider .landing-header {
        width: 95%;
        left: 2.5%;
        padding: 10px;
    }

    .landing-slider .landing-header h1 {
        font-size: 16px;
        line-height: 20px;
    }

    .landing-slider .landing-header h2 {
        font-size: 12px;
        line-height: 16px;
    }

    /* Why ind item */
    .why-ind-cond .item .num {
        font-size: 50px;
        line-height: 50px;
        float: none;
        margin: 0 auto 15px auto;
        display: block;
        width: 80px;
    }

    .why-ind-cond .item .name {
        font-size: 18px;
        text-align: center;
        display: block;
    }

    /* Small images */
    .small-image {
        width: 100%;
        margin-right: 0;
    }

    /* Price product */
    .price-product span {
        font-size: 28px;
    }

    /* Blog name */
    .blog-page .news-cont .item .name {
        font-size: 18px;
    }

    /* Slider */
    .slider-h1 {
        font-size: 18px !important;
        line-height: 24px !important;
    }

    .logo-slider {
        width: 150px !important;
    }

    /* Consult - ensure it's hidden */
    .consult {
        display: none !important;
    }
    
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .consult,
    footer {
        display: none;
    }

    body {
        padding-top: 0;
    }

    .my-container {
        width: 100% !important;
    }
}
