/* ============================================================
   MASTERFER - RESPONSIVE.CSS
   Breakpoints:
   XL  : ≤1400px  (large laptops)
   LG  : ≤1199px  (laptops / small desktops)
   MD  : ≤991px   (tablets landscape)
   SM  : ≤768px   (tablets portrait)
   XS  : ≤575px   (phones)
   XXS : ≤380px   (small phones)
   ============================================================ */


/* ══════════════════════════════════════════════════════════
   XL — ≤1400px
   ══════════════════════════════════════════════════════════ */
@media only screen and (max-width: 1400px) {
  .container { padding: 0 20px; }
  .promotion-bar ul li { padding: 18px 20px; }
  .promotion-bar ul li .icon_text { font-size: 18px; }
}


/* ══════════════════════════════════════════════════════════
   LG — ≤1199px  (laptops)
   ══════════════════════════════════════════════════════════ */
@media only screen and (max-width: 1199px) {

  /* Nav */
  .main_menu nav a { font-size: 13px; }

  /* Product layout */
  .product_detail_page .full_width .container .col-md-7 { width: 52%; }
  .product_detail_page .full_width .container .col-md-5 {
    width: 48%;
    padding-left: 30px;
  }

  /* Promo bar */
  .promotion-bar ul li { padding: 15px 12px; }
  .promotion-bar ul li .icon_text { font-size: 16px; }

  /* Product info */
  .product-title { font-size: 24px; }
  .other_details ul.promotion_details li span { font-size: 16px; }

  /* Featured categories */
  .featured_categories .title h2 { font-size: 28px; }
  .featured_categories .container .flex_div .col-item a .caption_text h3 { font-size: 26px; }

  /* Brand slider logos */
  .logo-card { padding: 14px 10px; min-height: 88px; }

  /* Section titles */
  .reviews-title,
  .brand-title { font-size: 28px; }
}


/* ══════════════════════════════════════════════════════════
   MD — ≤991px  (tablets landscape)
   ══════════════════════════════════════════════════════════ */
@media only screen and (max-width: 991px) {

  /* Announcement bar */
  .tot-row p { font-size: 14px; }

  /* Top header */
  .top_header .right_section ul li { padding: 0 8px; }
  .top_header .right_section li a { font-size: 14px; }
  .top_header .right_section li a .text { font-size: 14px; }

  /* Nav */
  .main_menu nav a { font-size: 11px; line-height: 46px; }

  /* Product 2-col — stack at 991 */
  .product_detail_page .full_width .container .col-md-7,
  .product_detail_page .full_width .container .col-md-5 {
    width: 100%;
    float: none;
    padding-left: 0;
  }
  .full_width .container > .row { flex-direction: column; }
  .product_gallery_section { padding-left: 0; }

  /* Gallery thumbnails */
  .image-row .span2 { height: 100px; width: 100px; }
  .image-row .span2 a.fancybox img { max-height: 90px; }

  /* Product info */
  .gallery_right { margin-top: 30px; }
  .product-title { font-size: 26px; }
  .button_link_bar { margin-top: 30px; }

  /* Promo bar */
  .promotion-bar ul li { padding: 14px 10px; }
  .promotion-bar ul li .icon_text { font-size: 14px; }

  /* Payment */
  .payment-option .inner-content p { font-size: 14px; }

  /* Featured categories */
  .featured_categories .container .flex_div { gap: 10px; }
  .featured_categories .container .flex_div .col-item a .caption_text h3 { font-size: 22px; }

  /* Tabs */
  .tab_section { padding: 20px; gap: 10px; }
  .tab_section label { font-size: 16px; }

  /* Reviews & brand sliders */
  .reviews-title, .brand-title { font-size: 24px; }
  .slide { padding: 4px 20px; }
}


/* ══════════════════════════════════════════════════════════
   SM — ≤768px  (tablets portrait)
   ══════════════════════════════════════════════════════════ */
@media only screen and (max-width: 768px) {

  /* ── Announcement ── */
  .tot-row p { font-size: 13px; }

  /* ── Top Header ── */
  .top_header {
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    gap: 16px;
  }
  .top_header .left_section {
    width: 100%;
    text-align: center;
  }
  .top_header .left_section a {
    max-width: 200px;
    margin: 0 auto;
  }
  .top_header .right_section { width: 100%; }
  .top_header .right_section ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .top_header .right_section ul li { padding: 0 8px; }
  .top_header .right_section li a,
  .top_header .right_section li a .text { font-size: 13px; }

  /* ── Nav hamburger ── */
  .main_menu .toggle {
    display: block;
    cursor: pointer;
    padding: 14px 20px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .main_menu .toggle + a,
  .main_menu .menu { display: none; }
  .main_menu [id^=drop]:checked + ul { display: block; }

  ul.menu {
    flex-direction: column;
    overflow: visible;
  }
  .main_menu nav ul li {
    display: block;
    width: 100%;
    flex: none;
    float: none;
  }
  .main_menu nav a {
    font-size: 15px;
    line-height: 44px;
    text-align: left;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .main_menu nav ul ul {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.05);
    min-width: 0;
    width: 100%;
  }
  .main_menu nav ul li:hover > ul { display: none; }
  .main_menu nav ul ul li { min-width: 0; padding: 0; }
  .main_menu nav ul ul li a { padding-left: 36px; font-size: 14px; border-left: none; }

  /* ── Promotion bar ── */
  .promotion-bar ul {
    flex-wrap: wrap;
    padding: 10px 0px;
  }
  .promotion-bar ul li {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 8px;
    column-gap: 10px;
    row-gap: 0;
    width: 50%;
    flex: none;
  }
  .promotion-bar ul li:first-child { padding-left: 0; }
  .promotion-bar ul li:last-child { justify-content: flex-start; }
  .promotion-bar ul li::after { display: none; }
  .promotion-bar ul li .icon img { max-width: 36px; }
  .promotion-bar ul li .icon_text { font-size: 13px; }
  .promotion-bar ul li .icon_text br { display: none; }

  /* ── Product section ── */
  .product_detail_page .full_width { padding: 30px 0; }
  .gallery_right > h3 { font-size: 22px; text-align: center; }
  .gallery_right > p { font-size: 24px; text-align: center; margin: 16px 0 0; }
  .gallery_right > p b { font-size: 26px; }
  .product-title { font-size: 22px; text-align: center; }
  .brand-name p { text-align: center; }

  .other_details { padding-top: 24px; margin-top: 24px; }
  .other_details .specifiche { font-size: 15px; }
  .other_details .specifiche-list li { font-size: 15px; }
  .other_details ul.promotion_details li span { font-size: 15px; }
  .other_details ul.promotion_details li { padding: 16px; }

  .button_link_bar {
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 30px auto 0;
    gap: 10px;
  }
  .button_link_bar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .button_link_bar ul li { padding: 0; }
  .button_link_bar ul li a {
    font-size: 15px;
    padding: 12px 16px;
    justify-content: center;
  }
  .tick-text p { font-size: 14px; }

  /* ── Gallery thumbnails ── */
  .image-row .span2 { height: 80px; width: 80px; margin: 8px 8px 0 0 !important; }
  .image-row .span2 a.fancybox img { max-height: 70px; }
  .row.image-row.text-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px 10px;
    gap: 8px;
  }

  /* ── Lightbox ── */
  .lightbox img { max-width: 340px; max-height: 340px; top: 8%; }
  .lightbox .close-img { font-size: 50px; right: 5%; top: 6%; }

  /* ── Tabs ── */
  .tab_section {
    flex-direction: column;
    padding: 0;
    gap: 0;
    margin: 20px 0 0;
    border: 1px solid #ddd;
  }
  .tab_section label {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    height: auto;
    line-height: 22px;
    border-bottom: 1px solid #e5e5e5;
    border-left: 4px solid transparent;
    margin: 0 !important;
  }
  .tab_section input[type="radio"]:checked + label {
    border-bottom: 1px solid #e5e5e5;
    border-left: 4px solid #ffb81e;
    color: #000;
  }
  .tab_section .tab { padding: 16px; border-top: 1px solid #eee; }
  .tab_section .tab, .tab_section label { order: initial; }
  .tab_section .tab p { font-size: 14px; line-height: 24px; }

  /* ── Payment ── */
  .payment-option .inner-content { padding: 20px; }
  .payment-option .inner-content p { font-size: 13px; }

  /* ── Featured categories ── */
  .featured_categories .title { margin: 30px auto 20px; }
  .featured_categories .title h2 { font-size: 22px; }
  .featured_categories .container .flex_div {
    flex-wrap: wrap;
    gap: 12px;
  }
  .featured_categories .container .flex_div .col-item {
    width: calc(50% - 6px);
    flex: none;
  }
  .featured_categories .container .flex_div .col-item a .caption_text { bottom: 14px; }
  .featured_categories .container .flex_div .col-item a .caption_text h3 { font-size: 18px; padding: 6px 0; }

  /* ── Reviews slider ── */
  .reviews-section { padding: 24px 0 50px; }
  .reviews-title { font-size: 22px; margin-bottom: 20px; }
  .slide {
    flex-direction: column;
    padding: 4px 46px;
    gap: 12px;
  }
  .card { min-height: auto; }
  .arrow-prev { left: 4px; }
  .arrow-next { right: 4px; }

  /* ── Brand slider ── */
  .brand-section { padding: 0 0 50px; }
  .brand-title { font-size: 20px; margin-bottom: 18px; }
  .brand-section .slide {
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
    justify-content: center;
    width: 100%;
  }
  .brand-section .slider-track { width: 200%; }
  .logo-card {
    flex: 0 0 calc(33.33% - 7px);
    max-width: calc(33.33% - 7px);
    min-height: 70px;
    padding: 10px 8px;
  }
  .logo-card img { max-height: 36px; }

  /* ── Footer ── */
  .footer-top { padding: 28px 16px 24px; }
  .footer-top-title { font-size: 13px; }
  .footer-categories li a,
  .footer-nav li a { padding: 5px 10px; font-size: 12px; }

  .featured_categories .container .flex_div {
	justify-content: center;
}

.featured_categories .container .flex_div .col-item {
	width: 100%;
	flex: 0 0 calc(50% - 7.5px);
}

}


/* ══════════════════════════════════════════════════════════
   XS — ≤575px  (phones)
   ══════════════════════════════════════════════════════════ */
@media only screen and (max-width: 575px) {

  /* ── Header ── */
  .tot-row p { font-size: 12px; padding: 0 10px; }
  .top_header { padding: 16px 12px; gap: 12px; }
  .top_header .left_section a { max-width: 160px; }
  .top_header .right_section ul { flex-direction: column; align-items: center; gap: 10px; }
  .top_header .right_section li a,
  .top_header .right_section li a .text { font-size: 13px; }

  /* ── Nav ── */
  .main_menu nav a { font-size: 14px; line-height: 42px; padding: 0 14px; }
  .main_menu .toggle { font-size: 14px; padding: 12px 16px; }

  /* ── Promo bar ── */
  .promotion-bar ul li {
    width: 100%;
    flex: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .promotion-bar ul li:last-child { border-bottom: none; }
  .promotion-bar ul li .icon_text { font-size: 14px; }

  /* ── Product section ── */
  .product_detail_page .full_width { padding: 20px 0; }
  .product-title { font-size: 20px; }
  .gallery_right > h3 { font-size: 20px; }
  .gallery_right > p { font-size: 22px; }
  .gallery_right > p b { font-size: 22px; }

  .product_gallery_section .logo { max-width: 100%; }
  .image-row .span2 { height: 65px; width: 65px; }
  .image-row .span2 a.fancybox img { max-height: 55px; }
  .row.image-row.text-center { gap: 6px; padding: 12px 8px; }

  .button_link_bar { max-width: 100%; padding: 0 10px; }
  .button_link_bar ul li a { font-size: 13px; padding: 10px 14px; }

  .other_details .specifiche { font-size: 14px; }
  .other_details ul.promotion_details li { padding: 14px 12px; }
  .other_details ul.promotion_details li span { font-size: 14px; }
  .tick-text p { font-size: 13px; }

  /* ── Lightbox ── */
  .lightbox img { max-width: 300px; max-height: 300px; top: 6%; }
  .lightbox .close-img { font-size: 40px; right: 5%; top: 4%; }

  /* ── Tabs ── */
  .tab_section label { font-size: 14px; padding: 12px 14px; }
  .tab_section .tab { padding: 14px; }
  .tab_section .tab p { font-size: 14px; line-height: 22px; }

  /* ── Payment ── */
  .payment-option .inner-content { padding: 16px; }
  .payment-option .inner-content .inner-title { font-size: 18px; margin-bottom: 16px; }
  .payment-option .inner-content p { font-size: 13px; }

  /* ── Featured categories ── */
  .featured_categories .title h2 { font-size: 20px; }
  .featured_categories .container .flex_div .col-item {
    width: 100%;
    flex: 0 0 100%;
  }
  .featured_categories .container .flex_div { gap: 14px; margin-bottom: 20px; }
  .featured_categories .container .flex_div .col-item a .caption_text h3 { font-size: 20px; }

  /* ── Reviews slider ── */
  .reviews-title { font-size: 18px; letter-spacing: 0.5px; }
  .slide { padding: 4px 40px; }
  .reviewer-name { font-size: 14px; }
  .review-text { font-size: 13px; }
  .review-meta { font-size: 11px; }
  .star { width: 15px; height: 15px; }
  .card { padding: 16px 16px 14px; }

  /* ── Brand slider ── */
  .brand-title { font-size: 18px; }
  .logo-card {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    min-height: 60px;
    padding: 8px 6px;
  }
  .slider-shell .arrow { width: 30px; height: 30px; font-size: 16px; }

  /* ── Footer ── */
  .footer-top { padding: 24px 14px 20px; }
  .footer-categories,
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .footer-categories li + li::before,
  .footer-nav li + li::before { display: none; }
  .footer-categories li a,
  .footer-nav li a { padding: 6px 0; font-size: 13px; }
  .footer-bottom { padding: 16px; }
  .footer-bottom p { font-size: 11px; }
  .footer-bottom p span { margin: 0 6px; }


.featured_categories .container .flex_div {
	justify-content: center;
}

.featured_categories .container .flex_div .col-item {
	width: 100%;
	flex: 0 0 calc(50% - 7.5px);
}
}




/* ══════════════════════════════════════════════════════════
   XXS — ≤380px  (small phones)
   ══════════════════════════════════════════════════════════ */
@media only screen and (max-width: 380px) {

  /* ── Header ── */
  .tot-row p { font-size: 11px; }
  .top_header { padding: 14px 10px; gap: 10px; }
  .top_header .left_section a { max-width: 140px; }
  .top_header .right_section li a,
  .top_header .right_section li a .text { font-size: 12px; }

  /* ── Nav ── */
  .main_menu nav a { font-size: 13px; line-height: 40px; padding: 0 12px; }
  .main_menu .toggle { font-size: 13px; padding: 10px 14px; }

  /* ── Promo bar ── */
  .promotion-bar ul li .icon_text { font-size: 13px; }

  /* ── Product ── */
  .product-title { font-size: 18px; }
  .gallery_right > p { font-size: 20px; }
  .gallery_right > p b { font-size: 20px; }
  .other_details ul.promotion_details li span { font-size: 13px; }
  .button_link_bar ul li a { font-size: 12px; padding: 9px 12px; }
  .tick-text p { font-size: 12px; }

  /* ── Gallery thumbnails ── */
  .image-row .span2 { height: 56px; width: 56px; }
  .image-row .span2 a.fancybox img { max-height: 46px; }

  /* ── Lightbox ── */
  .lightbox img { max-width: 270px; max-height: 270px; }

  /* ── Tabs ── */
  .tab_section label { font-size: 13px; padding: 10px 12px; }

  /* ── Featured categories ── */
  .featured_categories .title h2 { font-size: 18px; }
  .featured_categories .container .flex_div .col-item a .caption_text h3 { font-size: 16px; }
  .featured_categories .container .flex_div .col-item a .caption_text { bottom: 10px; }

  /* ── Sliders ── */
  .reviews-title { font-size: 15px; }
  .brand-title   { font-size: 15px; }
  .logo-card {
    flex: 0 0 calc(50% - 4px);
    max-width: calc(50% - 4px);
    min-height: 54px;
    padding: 6px 4px;
  }
  .arrow { width: 28px; height: 28px; display: none !important; }
  .arrow svg { width: 14px; height: 14px; }
  .slide { padding: 4px 0px; }
  .reviewer-name { font-size: 13px; }
  .review-text { font-size: 12px; }
  .card { padding: 14px 12px; }

  /* ── Footer ── */
  .footer-top-title { font-size: 12px; letter-spacing: 1px; }
  .footer-categories li a,
  .footer-nav li a { font-size: 12px; }
  .footer-bottom p { font-size: 10px; }
  .footer-bottom p span { display: none; }
}
