/*
Theme Name: Lebasino - Responsive Styles
Description: Responsive design styles for Lebasino theme
Author: Jamal
Version: 1.0.0
*/

/* ==========================================================================
   1440px+ Breakpoint - Large Desktop Optimizations
   ========================================================================== */
@media (min-width: 1440px) {
    
    /* Container adjustments */
    .container {
        max-width: var(--container-max-width);
    }
    
    /* Header enhancements */
    .main-navigation ul.menu > li.menu-item > a {
        font-size: 18px;
        padding: 10px 20px;
    }

  .woocommerce-cart-form__cart-item > div{
          justify-content: space-between;
  }
  .woocommerce-cart-form__cart-item div.product-name{
      width:100% !important;
  }
    /* Product grid optimizations */
    ul.products[data-columns="6"] {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
    
    ul.products[data-columns="7"] {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }
    
    ul.products[data-columns="8"] {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    }
    
    /* Blog grid enhancements */
    .posts-grid {
        gap: 30px;
    }
    
    /* Single product layout */
    .woocommerce div.product .product-main-content {
        gap: 20px;
    }
    
    /* Sidebar width adjustments */
    .shop-sidebar,
    .blog-sidebar {
        min-width: 320px;
    }
    .lbn-mini-cart-dropdown{
        right:-45px;
    }
    
    /* Account dashboard improvements */
    .woocommerce-account .lebasino-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
        .product-style-1 .product-card .product-card-middle{
        min-height:80px;
    }
}

/* ==========================================================================
   1024px Breakpoint - Desktop/Tablet Landscape
   ========================================================================== */
@media (max-width: 1024px) {
    
    /* Container adjustments */
    .container {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Header responsive */
    .main-navigation ul.menu {
        gap: 5px;
    }
    
    .main-navigation ul.menu > li.menu-item > a {
        font-size: 16px;
        padding: 10px 8px;
    }
    
    /* Product grid responsive */
        ul.products[data-columns-mobile="3"],
    ul.products[data-columns="4"],
    ul.products[data-columns="5"],
    ul.products[data-columns="6"] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    
    ul.products[data-columns-mobile="1"]{
               grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }   
    ul.products[data-columns-mobile="2"]{
               grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    } 

    
    /* Product card adjustments */
    .product-card {
        padding: 12px;
        box-shadow: 0 2px 8px 0 rgba(var(--border-color-rgb), 0.10);
    }
    

    .product-card .product-card-middle .product-name a {
        font-size: 16px;
    }
    
    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    /* Blog layout */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .posts-grid.posts-layout-list {
        grid-template-columns: 1fr !important;
    }
    
    /* Single product responsive */
    .woocommerce div.product .product-main-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .woocommerce div.product .product-images-summary,
    .woocommerce div.product div.summary {
        width: 100%;
        margin-bottom:10px;
    }
    
    .woocommerce div.product div.images.woocommerce-product-gallery {
        flex-direction: column;
    }
    
    .woocommerce div.product div.images .flex-control-thumbs {
        flex-direction: row;
        width: 100%;
        gap: 10px;
        order: 2;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .woocommerce div.product div.images .flex-control-thumbs li {
        min-width: 80px;
        flex-shrink: 0;
    }
    
    /* Account dashboard tablet */
    .woocommerce-account .account-container {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    /* Cart responsive */
    .woocommerce-cart .cart-collaterals {
        flex-direction: column;
        gap: 20px;
        margin-top:0;
    }
    
    .woocommerce-cart .cart_totals {
        width: 100% !important;
    }
    
    /* Header group responsive */
    .elementor-header-group-wrapper .header-group-action {
        gap: 5px;
    }
    
    .elementor-header-group-wrapper .header-group-action > div {
        padding-inline-end: 8px;
        padding-inline-start: 8px;
        margin-inline-end: 8px;
    }
    
    /* Special heading adjustments */
    .special-heading-container .special-heading-second-title {
        font-size: 48px;
    }
    
    /* Carousels responsive */
    .woocommerce-carousel .swiper .swiper-wrapper {
        padding:0 !important
    }
    
    /* Advanced filter mobile toggle */
    .mobile-filter-toggle {
        display: block;
    }
    
    .shop-sidebar {
        position: fixed;
        left: 50%;
        bottom: -100%;
        width: 90%;
        max-height: 60vh;
        transform: translateY(0);
        transform: translateX(-50%);
        transition: bottom 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 1002;
        padding: 0 20px;
        margin: 0 !important;
        background: #fff;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        border-radius: 16px 16px 0 0;
    }
    
    .shop-sidebar.show {
        bottom: 0;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
    }
    
    .filter-overlay.show {
        display: block;
    }
        .lebasino-advanced-filter-widget {
        padding: 10px 0;
    }
    .filter-sections .filter-section{
        box-shadow:none;
        border:1px solid rgba(var(--border-color-rgb),0.1);
    }
    .lebasino-advanced-filter-widget .filter-content.expanded{
        padding:8px !important;
    }
}

/* ==========================================================================
   768px Breakpoint - Tablet Portrait/Mobile Landscape
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Base spacing adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography responsive */
    .h1, h1 {
        font-size: 1.8rem;
    }
    
    .h2, h2 {
        font-size: 1.5rem;
    }
    
    .h3, h3 {
        font-size: 1.3rem;
    }
    
    /* Navigation mobile */
    .main-navigation {
        display: none;
    }
    
    /* Product grid mobile */
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 15px;
    }
    
    ul.products[data-columns="1"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Product card mobile */
    .product-card {
        padding: 10px;
        gap: 10px;
    }
    /* Recent Orders Section */
.woocommerce-account .recent-orders-section {
    margin-top: 35px;
}

    .recent-order-products   ul.products{
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.woocommerce-account .recent-orders-section  .lebasino-carousel {
    padding:0;
}
    .product-card .product-card-middle .product-name a {
        line-height: 1.4;
        white-space: normal;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-card .product-price {
        font-size: 16px !important;
    }
    
    /* Product card horizontal mobile */
    .product-card.product-card-horizontal {
        flex-direction: row;
        padding: 16px;
        gap: 8px;
    }
    .product-card.product-card-horizontal .product-card-middle{
        flex:1;
    }
    .product-card.product-card-horizontal .product-card-top .product-image {
        max-height: 80px;
        max-width: 80px;
        flex-shrink: 0;
    }
    
    .product-card.product-card-horizontal .product-card-middle .product-name a {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Product style variations mobile */
    .product-style-3 .product-card .product-variation-overlay {
        width: 100%;
        padding: 8px 10px;
        bottom: -5px;
    }
    
    .product-style-3 .product-variation-overlay .color-option,
    .product-style-3 .product-variation-overlay .size-variation-item {
        width: 20px;
        height: 20px;
    }
    .product-style-4 .product-card .product-price{
       margin-right:auto;
    }
    .product-style-4 .product-card .product-size-overlay {
        padding: 8px 10px;
        visibility: visible;
        opacity: 1;
    }
    
    .product-style-4 .size-variations-overlay .size-variation-item {
        min-width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    /* Shop layout mobile */
    .shop-header-section {
        padding: 20px 0;
        text-align: center;
    }
    
    .shop-title h1.page-title {
        font-size: 1.5rem;
    }
    
    .shop-ordering {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .woocommerce-ordering-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .woocommerce-ordering-horizontal .ordering-options {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .woocommerce-ordering-horizontal .ordering-option {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    /* Blog layout mobile */
    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .blog-header-section {
        padding: 20px 0;
        text-align: center;
    }
    
    .blog-sidebar {
        position: static;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    /* Single product mobile */
    .woocommerce div.product .single-product-content{
        flex-direction:column;
    }
    .woocommerce div.product .product-main-content {
        gap: 10px;
        width:100%;
    }
      .woocommerce div.product  .product-add-to-cart-section{
     margin-top:25px;   
     margin-bottom:25px;   
    }
    .single-product form.cart button.single_add_to_cart_button {
    width:100%;
    line-height:1.8;
}
.woocommerce div.product form.cart div.quantity{
    margin:0 0 0 15px;
}
    .lebasino-product-attributes-grid{
        gap: 20px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }
    .lebasino-attribute-box{
        justify-content:flex-start;
    }
    .lebasino-attribute-box{
            margin-left: 10px;
    }
    .product-shadow {
        padding: 20px;
        border-radius: 16px;
    }
    
    .woocommerce div.product .product_title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .woocommerce div.product .woocommerce-product-details__short-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .woocommerce div.product .price {
        font-size: 18px !important;
    }
    
    /* Attributes mobile */
    .lebasino-attr-rating-row {
        flex-direction: column;
        display:flex;
    }
    .lebasino-attributes-col{
                width:100%;
    }
    .woocommerce div.product form.cart{
        margin:1em 0;
    }
    .swatch-btn{
        min-height:28px;
        min-width:28px;
    }
    .lebasino-rating-col {
        flex: 100%;
        width:100%;
        flex-direction:row;
        padding:15px 10px;
            background: rgba(var(--border-color-rgb), 0.10);
    }
    .lebasino-rating-col .rating-item{
                grid-template-columns: 1fr 2fr;
                font-size: 13px;
    }
    .lebasino-rating-col .rating-item .fal ,  .lebasino-rating-col .rating-item .lebasino-wishlist-btn{
    padding-left: 0;
    border-left: 0;
    font-size: 15px;
}
.lebasino-rating-col .rating-item:not(::last-child){
    border-left: 1px dashed rgba(var(--border-color-rgb), 0.20);
}

    .lebasino-swatches {
        gap: 6px;
    }
    
    /* Tabs mobile */
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    /* Reviews mobile */
    .reviews-sidebar-section{
        display:none;
    }
    .reviews-main-section.with-sidebar{
        flex:100%;
    }
    .commentlist .comment-container {
        flex-direction: column;
        gap: 10px;
    }
    .product-star-rating-container{
    width: 100%;
    justify-content: flex-start;
    }
    .comment-meta {
        flex-wrap: wrap;
        gap: 8px;
        align-items:center;
    }
    
    .comment-meta-container {
        gap: 10px;
    }
    .comment-meta-container .comment-date:after{
        top:-3px;
    }
    .comment-meta-container > :not(:last-child) {
        padding-left: 8px;
    }
    
    .comment-text {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .logged-in-info{
        font-size:14px;
    }
    .review-form-grid {
    display: flex
;
    gap: 15px;
    flex-direction: column;
}
.form-fields-column{
    max-width:100%;
    min-width:100%;
    width:100%;
    order:2;
}
.comment-text-column{
    
    order:1;
}
    /* Review form mobile */
    .review-form-container , #review_form_wrapper{
        padding: 12px;
    }
    .form-group input, .form-group textarea, .form-group select{
        border-width:1px;
    }
    .form-fields-container,
    .comment-text-container {
        padding: 0;
    }
    
    .form-group.submit-container {
        flex-direction: column;
        gap: 10px;
    }
    .comment-author{
        line-height:1;
    }
    .woocommerce #reviews #comments ol.commentlist li img.avatar, .comment-avatar img{
        max-width:40px;
        max-height:40px;
    }
    .submit-review-btn {
        width: 100%;
        font-size:14px;
        line-height:1.8;
    }
    .woocommerce-cart .actions .button{
               line-height:1.8;
    }
    .post-navigation{
        margin-top:1rem;
        padding-top:1rem;
    }
    /* Account dashboard mobile */
    .woocommerce-account .account-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .woocommerce-account .lebasino-dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding:15px;
    }
    .woocommerce-account .form-group{
        width:100%;
    }
    .woocommerce-account .account-content{
    padding:5px;
    }
    .woocommerce-account .lebasino-stats-grid {
                grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .woocommerce-account .lebasino-stat-label .card-number {
    background: rgba(var(--primary-color-rgb), 1);
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    border-radius: 3px;
    width: 16px;
    height: 16px;
}

    .woocommerce-account .lebasino-user-welcome{
        width:100%;
        justify-content:space-between;
    }
    .woocommerce-account .lebasino-stat-card {
        padding: 15px 8px;
    }
    
    .woocommerce-account .lebasino-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        padding:5px;
    }
    
    .woocommerce-account .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .woocommerce-account .personal-info-section , .woocommerce-account .lebasino-dashboard-header{
        box-shadow: 0 4px 16px rgba(var(--border-color-rgb), 0.10);
        padding:14px 0;
    }
    /* Orders mobile */
    .my-account-wrapper .orders-header {
        display: none !important;
    }
    
    .my-account-wrapper .order-card {
        flex-direction: column !important;
        text-align: right;
        padding: 15px;
    }
    
    .my-account-wrapper .order-card .col {
        width: 100%;
        padding: 8px 0;
        text-align: right !important;
        position: relative;
        border-left: none !important;
    }
    
    .my-account-wrapper .order-card .col::before {
        content: attr(data-title);
        font-weight: var(--font-weight-bold);
        color: #777;
        display: inline-block;
        min-width: 100px;
        margin-right: 10px;
    }
    
    /* Cart mobile */
    .woocommerce-cart-form__cart-item {
        flex-direction: row;
        gap: 15px;
        text-align: center;
    }
    
    .woocommerce-cart-form__cart-item > div {
        width: 100%;
        border-left: none !important;
        justify-content: center;
    }
    
    .woocommerce-cart-form__cart-item div.product-name {
        flex-direction: column;
        gap: 10px;
        width:100%;
    }
    
    .woocommerce-cart .actions {
        justify-content: center;
    }
    
    .woocommerce-cart .coupon {
        flex-direction: column;
        gap: 10px;
    }
    
    .woocommerce-cart .coupon-group {
        width: 100%;
    }
    
    .woocommerce-shipping-destination {
        width: 100%;
        float: none;
    }
    
    .shipping-calculator-button {
        top: 50%;
        left:0
    }
    
    /* Header cart mobile */
    .lbn-mini-cart-dropdown {
        width: 320px;
        right: 0;
        transform: none;
    }
    
    .lbn-cart-item {
        padding: 12px 15px;
    }
    
    .lbn-item-thumbnail img {
        width: 50px;
    }
    
    .lbn-cart-actions {
        flex-direction: column;
        gap: 8px;
    }
    .woocommerce-cart-form__cart-item {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
  }

  .woocommerce-cart-form__cart-item .cart-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .woocommerce-cart-form__cart-item .cart-col-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
    /* Header group mobile */
    .elementor-header-group-wrapper .header-group-action {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .header-group-action .site-header-cart .cart-value {
        display: none;
    }
    
    .elementor-header-group-wrapper .header-group-action > div {
        border-inline-end: none;
        margin-inline-end: 0;
        padding-inline-end: 5px;
    }
    
    /* Widgets mobile */
    .blog-sidebar .widget,
    .shop-sidebar .widget {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .lebasino-social-media-widget-container {
        padding: 15px;
    }
    
    .social-media-list {
        gap: 8px;
    }
    
    /* Post cards mobile */
    .lebasino-post-card {
        padding: 12px;
    }
    
    .lebasino-card-media {
        aspect-ratio: 16 / 9;
    }
    
    .lebasino-card-title {
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    .lebasino-card-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .lebasino-card-horizontal {
        grid-template-columns: 1fr 2fr;
        min-height: auto;
    }
.lebasino-card-horizontal__image{
    border-radius:8px !important;
}
    .lebasino-card-horizontal__image img{
        border-radius:8px !important;
    }
    /* Pagination mobile */
    .blog-pagination .page-numbers,
    .shop-pagination .woocommerce-pagination .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .blog-pagination .page-numbers.prev,
    .blog-pagination .page-numbers.next {
        padding: 0 10px;
    }
    
    /* Login modal mobile */
    .lebasino-login-modal .modal-content {
        padding: 30px 20px 20px;
        max-width: 90% !important;
    }
    
    .lebasino-login-modal .modal-title {
        font-size: 16px;
    }
    
    /* Special heading mobile */
    .special-heading-container .special-heading-second-title {
        font-size: 32px;
    }
    
    .special-heading-container.elementor-mobile-align-center .special-heading-second-title {
        right: auto;
        left: 50%;
        transform: translate(-50%, -60%);
    }
    .product-style-1 .product-card .product-card-middle{
        min-height:100%;
    }
}

/* ==========================================================================
   480px Breakpoint - Mobile Portrait
   ========================================================================== */
@media (max-width: 480px) {

    .shop-main-content{
        padding:0;
    }
    /* Typography extra small */
    .h1, h1 {
        font-size: 1.5rem;
    }
    
    .h2, h2 {
        font-size: 1.3rem;
    }
    
    .h3, h3 {
        font-size: 1.1rem;
    }
    
    /* Product grid single column */
    ul.products {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .product-card .product-card-top .product-image img{
        aspect-ratio: 3 / 4;
    } 
   .product-style-1  .product-card .product-card-top .product-image img{
        max-width:260px;
    }
    .product-card .product-card-middle .product-name a {
        -webkit-line-clamp: 1;
    }
    
    .product-card .product-price {
        font-size: 14px !important;
    }
    .product-card .product-discount {
    border-radius: 8px;
}
   .product-style-1  .product-card .product-price{
    font-size: 1rem !important;
    flex-direction: column;
        align-items: end;
        margin-right: auto !important;
        line-height:1
}

    .product-card .product-discount span{
        font-size:14px;
        font-weight: 400;
    }
    /* Product variations extra small */
    .product-style-3 .product-variation-overlay .color-option,
    .product-style-3 .product-variation-overlay .size-variation-item {
        width: 18px;
        height: 18px;
    }
    
    
    .product-style-4 .size-variations-overlay .size-variation-item {
        min-width: 20px;
        height: 20px;
        font-size: 8px;
    }
    
    
     .product-style-3 .product-variation-overlay form.cart{
    margin:0 !important;
}
   .product-style-3 .product-card .product-variation-overlay  .variations{
        margin:0;
        
    }
    .product-style-3 .product-card .product-variation-overlay .variation-row {
    margin-bottom: 0;
    display: grid;
    align-items: end;
            gap: 10px;
    grid-template-columns: 1fr;
}
    /* Shop ordering extra small */
    .woocommerce-ordering-horizontal .ordering-label {
        display: none;
    }
    
    .woocommerce-ordering-horizontal .ordering-option {
        padding: 8px;
        font-size: 11px;
    }
    
    /* Single product extra small */
    .product-shadow.product-tabs {
        padding: 0;
        border-radius: 0;
        box-shadow:none;
    }
    
    .woocommerce div.product .woocommerce-product-details__short-description {
        font-size: 14px;
                margin-top: 0 !important;
                    padding-bottom: 15px;
    }
    
    .woocommerce div.product .price {
        font-size: 16px !important;
    }
    
    
    .swatch-text {
        font-size: 0.8rem;
    }
    
    /* Tabs extra small */
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    /* Reviews extra small */
    .comment-text {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .comment-rating,
    .comment-date {
        font-size: 11px;
    }
    
    .woocommerce-account .lebasino-stat-card {
        padding: 12px;
    }
    
    .woocommerce-account .lebasino-stat-icon {
        font-size: 20px;
    }
    
    .woocommerce-account .lebasino-stat-label {
        font-size: 12px;
        flex-direction:column;
    }
    
    /* Cart extra small */
    
    .woocommerce-cart-form__cart-item .product-thumbnail img {
        height: auto;
        max-height:100%;
    }
    
    .woocommerce-cart .cart_totals {
        padding: 15px;
    }
    
    /* Header cart extra small */
    .lbn-mini-cart-dropdown {
        width: 300px;
        left: 0;
        right: 0;
        margin: 0 10px;
    }
    
    .lbn-cart-item {
        padding: 10px 12px;
    }
    
    .lbn-item-thumbnail img {
        width: 45px;
    }
    
    .lbn-item-name {
        font-size: 12px;
    }
    
    .lbn-item-price {
        font-size: 11px;
    }
    
    /* Site header cart sidebar */
    .site-header-cart-side {
        width: 280px;
        transform: translate3d(-280px, 0, 0);
    }
    
    /* Blog extra small */
    .blog-title h1.page-title {
        font-size: 1.25rem;
    }
    
    .blog-sidebar {
        padding: 12px;
    }
    
    /* Post cards extra small */
    .lebasino-post-card {
        padding: 10px;
        border-radius: 12px;
    }
    
    .lebasino-card-title {
        font-size: 13px;
    }
    
    .lebasino-card-excerpt {
        font-size: 12px;
    }
    
    .lebasino-card-footer {
        font-size: 11px;
    }
    
    /* Pagination extra small */
    .blog-pagination .page-numbers,
    .shop-pagination .woocommerce-pagination .page-numbers {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    /* Login modal extra small */
    .lebasino-login-modal .modal-content {
        padding: 25px 15px 15px;
        margin: 0 15px;
    }
    
    .lebasino-login-modal .modal-title {
        font-size: 15px;
    }
    
    .lebasino-login-modal .form-control,
    .lebasino-login-modal .btn {
        font-size: 13px;
        padding: 10px 12px;
    }
    .shop_table.cart{
        box-shadow:none !important;
        padding:0;
    }
    .woocommerce-cart.woocommerce-page .qty-btn {
     background: transparent; 
}
    /* Widgets extra small */
    .blog-sidebar .widget,
    .shop-sidebar .widget,
    .blog-sidebar .widget.lebasino-sale-products-widget{
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .widget-title {
        font-size: 15px;
    }
    
    /* Buttons extra small */
    .btn-primary,
    .btn-outline-primary {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Form elements extra small */
    .form-control,
    .woocommerce form .form-row .input-text,
    .woocommerce form .form-row select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Shadow elements extra small */
    .shadow-around {
        padding: 16px;
        border-radius: 16px;
    }
    
    /* Breadcrumb extra small */
    .breadcrumb-section,
    .blog-breadcrumb-section {
        padding: 15px 0;
        margin:15px 0;
        
    }
    
    .woocommerce .woocommerce-breadcrumb,
    .blog-breadcrumb-section .breadcrumb {
        font-size: 12px;
    }
    
    /* Footer adjustments */
    .scroll-to-top {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
    
    .single-product .special-heading-container{
        padding-bottom:14px;
    }
    
    /* Account addresses extra small */
    .addresses .woocommerce-Address {
        gap: 15px;
        padding: 12px;
    }
    
    /* Wishlist extra small */
    .lebasino-wishlist-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .lebasino-wishlist-actions {
        margin-right: 0;
        justify-content: center;
    }
    
    /* Orders extra small */
    .my-account-wrapper .order-card .col::before {
        min-width: 80px;
        font-size: 12px;
    }
    
    /* Coupons extra small */
    .coupon-row > div::before {
        font-size: 12px;
                border-left: 1px dashed rgba(var(--border-color-rgb), 0.5);
        padding-left: 15px;
        margin-left: 15px;
        min-width: 80px;
    }
    
    /* Announcements extra small */
    .announcement-header {
        padding: 12px;
    }
    
    .announcement-title {
        font-size: 14px;
    }
    
    .announcement-date {
        font-size: 11px;
    }
    
    .announcement-content {
        padding: 0 15px;
    }
    div.product form.cart .single_add_to_cart_button.loading::after{
        transform: translateX(100%);
    }
    .woocommerce.single-product div.product form.cart button.single_add_to_cart_button::before, .woocommerce.single-product div.product form.cart a.button.add_to_cart_button::before{
        right:20%;
    }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    
    /* Disable animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .product-card:hover,
    .lebasino-post-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* ==========================================================================
   Dark Mode Support (Future Enhancement)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    
    /* Note: This is prepared for future dark mode implementation */
    /* Currently commented out to maintain theme design integrity */
    
    /*
    :root {
        --background-color: #1a202c;
        --text-color: #e2e8f0;
        --border-color: rgba(226, 232, 240, 0.3);
        --border-color-rgb: 226 232 240;
    }
    
    body {
        background-color: var(--background-color);
        color: var(--text-color);
    }
    
    .product-card,
    .lebasino-post-card,
    .shadow-around,
    .widget {
        background-color: #2d3748;
        border-color: var(--border-color);
    }
    */
}

/* ==========================================================================
   RTL Specific Responsive Adjustments
   ========================================================================== */
.dir-rtl {
    }
    
    /* RTL Cart sidebar */
    @media (max-width: 480px) {
        .site-header-cart-side {
            left: auto;
            right: 0;
            transform: translate3d(280px, 0, 0);
        }
    }
    
    @media (max-width: 768px) {
        .scroll-to-top {
            left: 20px;
        }
    }
    
    @media (max-width: 480px) {
        .scroll-to-top {
            left: 15px;
        }
    }
    
    /* RTL Navigation arrows */
    [dir='rtl'] .swiper-button-prev {
        right: 10px;
        left: auto;
    }
    
    [dir='rtl'] .swiper-button-next {
        left: 10px;
        right: auto;
    }
    
    
    /* RTL Tooltips */
    [dir='rtl'] .gz-tooltip-inside:hover:before,
    [dir='rtl'] .woocommerce .gz-tooltip-inside:hover:before {
        direction: rtl;
        text-align: center;
    }
    
    /* RTL Product sizes */
    [dir='rtl'] .product-sizes-label,
    [dir='rtl'] .woocommerce .product-sizes-label {
        margin-left: 0;
        margin-right: 6px;
    }
    
    @media (max-width: 768px) {
        [dir='rtl'] .product-sizes-label,
        [dir='rtl'] .woocommerce .product-sizes-label {
            margin-right: 4px;
        }
    }
    
    @media (max-width: 480px) {
        [dir='rtl'] .product-sizes-label,
        [dir='rtl'] .woocommerce .product-sizes-label {
            margin-right: 3px;
        }
    }
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */

/* GPU acceleration for smooth animations */
.product-card,
.lebasino-post-card,
.btn,
.modal,
.dropdown-menu {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize font loading */
@media (max-width: 768px) {
    body {
        font-display: swap;
    }
}

/* Reduce layout shifts */
.product-card .product-card-top .product-image,
.lebasino-card-media {
    aspect-ratio: attr(width) / attr(height);
}

/* Optimize images for mobile */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* ==========================================================================
   Cart Style Responsive (cart-style.css)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Cart page enhancements */
    .woocommerce-cart .cart-container {
        padding: 15px;
        margin: 0;
    }
    
    .woocommerce-cart .cart-header {
        text-align: center;
        margin-bottom: 20px;
        display:none;
    }
    
    .woocommerce-cart .cart-header h1 {
        font-size: 1.5rem;
    }
    
    /* Enhanced cart table for mobile */
    .woocommerce-cart-form {
        overflow: visible;
    }
    
    .woocommerce-cart-form__cart-item {
        display: flex;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow:var(--box-shadow);
        border-radius: 12px;
        border: none;
    }
    .woocommerce-cart-form__cart-item > div > div:not(:last-child){
        border:none !important;
    }
    .woocommerce-cart-form__cart-item .product-thumbnail {
        order: 1;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .woocommerce-cart-form__cart-item .product-thumbnail img {
        object-fit: cover;
        border-radius: 8px;
    }
    
    .woocommerce-cart-form__cart-item .product-name {
        order: 2;
        text-align: center;
        margin-bottom: 10px;
        font-weight: bold;
    }
    
    .woocommerce-cart-form__cart-item .product-price {
        order: 3;
        text-align: center;
        margin-bottom: 10px;
        font-size: 14px;
        color: var(--price-color);
        width:100%;
        justify-content:space-between;
    }
    
    .woocommerce-cart-form__cart-item .product-quantity {
        order: 4;
        text-align: center;
           width:100%;
        margin-bottom: 10px;
    }
    
    .woocommerce-cart-form__cart-item .product-subtotal {
        order: 5;
        text-align: center;
        margin-bottom: 10px;
        font-weight: bold;
           width:100%;
        font-size: 16px;
                justify-content:space-between;
    }
    
    .woocommerce-cart-form__cart-item .product-remove {
        order: 6;
        text-align: center;
           width:100%;
    }
    
    .woocommerce-cart-form__cart-item .product-remove a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        text-decoration: none;
        font-size: 14px;
    }
    
    /* Cart actions mobile */
    .woocommerce-cart .actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-right:8px;
    }
    
    .woocommerce-cart .coupon {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        position:relative;
    }
    
    
    .woocommerce-cart .coupon input[type="text"] {
        width: 100%;
        padding: 9px !important;
        border-radius: 8px;
        border: 1px solid #ddd;
    }
    
    .woocommerce-cart .coupon button {
        padding: 12px;
        border-radius: 8px;
            position: absolute;
    left: 3px;
    border-radius:8px 0 0 8px
    }
    
    .woocommerce-cart .button[name="update_cart"] {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    
    .woocommerce-cart .cart_totals {
        width: 100%;
           margin-top: 30px;
        background: #f9f9f9;
        padding: 20px;
        border-radius: 12px;
                gap: 10px;
    }
    
    .woocommerce-cart .cart_totals h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.25rem;
    }
    
    .woocommerce-cart .cart_totals table {
        width: 100%;
    }
    
    .woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        text-align: center;
        margin-top: 0;
        padding-top: 0;
    }
    
    .wc_payment_method .payment-method-container{
        border-radius:12px;
    }
    .woocommerce-thankyou-order-received{
   text-align:center;
}
    .quantity-value {
        position: relative;
        padding-right: 50px; 
                direction: ltr;
    }
    
    .quantity-value::before {
        content: attr(data-label); 
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        color: #666;
        padding: 2px 8px;
        border-radius: 4px;
        white-space: nowrap;
    }
    .woocommerce-cart .cart_totals .checkout-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border-radius: 8px;
        justify-content:center;
    }
    
    /* Empty cart mobile */
    .woocommerce-cart .cart-empty {
        text-align: center;
        padding: 40px 20px;
    }
    
    .woocommerce-cart .return-to-shop {
        text-align: center;
        margin-top: 20px;
    }
    
    .woocommerce-cart .return-to-shop .button {
        display: inline-block;
        padding: 12px 24px;
        border-radius: 8px;
    }
    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
        line-height:1.8;
    }
    .checkout-section-content{
        padding:0;
    }
}

@media (max-width: 480px) {
    .woocommerce-cart .cart-container {
        padding: 10px;
    }
    
    
    .woocommerce-cart .cart_totals {
        padding: 15px;
    }
}

/* ==========================================================================
   Checkout Style Responsive (checkout-style.css)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Checkout layout mobile */
    .woocommerce-checkout .checkout-container {
        padding: 15px;
    }
    
    .woocommerce-checkout .col2-set {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        width: 100%;
    }
    
    /* Billing form mobile */
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3 {
        font-size: 1.211rem;
        margin: 20px 0;

    }
    
    .woocommerce-billing-fields .form-row,
    .woocommerce-shipping-fields .form-row {
        margin-bottom: 15px;
    }
    
    .woocommerce .form-row-wide,
    .woocommerce .form-row-first,
    .woocommerce .form-row-last {
        width: 100% !important;
        float: none !important;
    }
    .checkout-shipping-section .notes textarea#order_comments{
        min-height:120px;
    }
    .woocommerce-additional-fields{
        margin-top:10px;
    }
    .woocommerce-checkout .form-row input[type="text"],
    .woocommerce-checkout .form-row input[type="email"],
    .woocommerce-checkout .form-row input[type="tel"],
    .woocommerce-checkout .form-row select,
    .woocommerce-checkout .form-row textarea {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        font-size: 14px;
    }
    
    .woocommerce-checkout .form-row label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    
    /* Shipping methods mobile */
    .woocommerce-shipping-methods {
        margin: 20px 0;
    }
    
    .woocommerce-shipping-methods li {
        margin-bottom: 10px;
    }
    
    .woocommerce-shipping-methods label {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
    }
    
    /* Payment methods mobile */
    .woocommerce-checkout #payment {
        background: #f9f9f9;
        padding: 20px;
        border-radius: 12px;
        margin-top: 20px;
    }
    .cart_totals .order-total{
        padding:12px !important;
    }
    .woocommerce-checkout #payment ul.payment_methods {
        padding: 0;
        margin: 0;
    }
    
    .woocommerce-checkout #payment .payment_method_bacs,
    .woocommerce-checkout #payment .payment_method_cheque,
    .woocommerce-checkout #payment .payment_method_cod {
        margin-bottom: 15px;
        padding: 15px;
        background: white;
        border-radius: 8px;
        border: 2px solid #eee;
    }
    
    .woocommerce-checkout #payment .payment_method_bacs.payment_method_selected,
    .woocommerce-checkout #payment .payment_method_cheque.payment_method_selected,
    .woocommerce-checkout #payment .payment_method_cod.payment_method_selected {
        border-color: var(--primary-color);
    }
    
    .woocommerce-checkout #payment .payment_methods label {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: bold;
    }
    
    .woocommerce-checkout #payment .payment_box {
        margin: 10px 0;
        padding: 15px;
        background: #f0f0f0;
        border-radius: 6px;
    }
    
    /* Order review mobile */
    .woocommerce-checkout-review-order {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .woocommerce-checkout-review-order h3 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.25rem;
    }
    
    .woocommerce-checkout-review-order-table {
        width: 100%;
    }
    
    .woocommerce-checkout-review-order-table .cart_item {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    .woocommerce-checkout-review-order-table .product-name {
        font-weight: bold;
        order: 1;
    }
    
    .woocommerce-checkout-review-order-table .product-total {
        font-weight: bold;
        color: var(--primary-color);
        order: 2;
    }
    
    /* Place order button */
    .woocommerce-checkout #place_order {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 8px;
        background: var(--primary-color);
        color: white;
        border: none;
        cursor: pointer;
        margin-top: 20px;
        line-height:1.8;
    }
    
    /* Terms and conditions */
    .woocommerce-terms-and-conditions-wrapper {
        margin: 20px 0;
        text-align: center;
    }
    
    .woocommerce-terms-and-conditions-checkbox-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Privacy policy */
    .woocommerce-privacy-policy-text {
        font-size: 13px;
        text-align: center;
        margin: 15px 0;
        color: #666;
    }
}

@media (max-width: 480px) {
    .woocommerce-checkout .checkout-container {
        padding: 10px;
    }
    
    .woocommerce-checkout-review-order,
    .woocommerce-checkout #payment {
        padding: 0;
    }
    
    .woocommerce-checkout #place_order {
        padding: 12px;
        font-size: 15px;
        margin:0;
    }
    .special-heading-title{
        font-size:24px;
    }
    .order-item > div:not(:last-child), .order-items-header > div:not(:last-child), .lebasino-coupons-header > div:not(:last-child), .lebasino-coupons-list .coupon-row > div:not(:last-child){
        border:0 !important
    }
    .mb-5{
        margin-bottom:1rem !important;
    }

    
}

