/* Shared CSS for E-commerce Product Pages (Shop, Search, Products) */
/* Standardized styling based on shop.php */

/* Import Quicksand font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Apply Quicksand font to all product pages */
.product-list-grid-view-area,
.carousel_slider_pro,
.box_shop_products,
.hover_card,
.hover_card .caption,
.hover_card h4,
.hover_card .old-price,
.hover_card .new-price {
    font-family: 'Quicksand', sans-serif;
}

.page-item.active .page-link{
  border-color: var(--site-main-color) !important;
}
.pagination > .active > a, .pagination > .active > a:hover{
  background-color: var(--site-main-color) !important;
  color: #fff !important;
}
.pagination > li > a,.pagination > li > a:hover{
  color: var(--site-main-color) !important;
}
  /* Borderless product card style - matching Latest Collection design */
  .hover_card {
      background: #fff;
      height: auto;
      min-height: auto;
      display: flex;
      flex-direction: column;
      border-radius: 0;
      overflow: hidden;
      border: none !important; /* No borders - clean borderless design */
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      transition: box-shadow 0.3s ease, transform 0.3s ease;
      padding: 0;
  }
  
  .hover_card:hover {
      box-shadow: 0 4px 16px rgba(0,0,0,0.12);
      transform: translateY(-2px);
  }
  
  /* Products Tabs Section */
  /* Ensure all sections use the same container width and padding */
  /* Match New Arrivals section exactly - override any conflicting styles */
  #new-arrivals-section,
  .products-tabs-section {
      width: 100% !important;
      margin: 40px 0 !important;
      padding: 30px 0 !important;
      box-sizing: border-box;
  }
  
  /* Ensure tab content sections don't add extra padding */
  .products-tabs-section .tab-content {
      margin: 0 !important;
      padding-top: 20px !important; /* Add spacing here instead of margin-bottom on nav */
      padding-left: 0 !important;
      padding-right: 0 !important;
      padding-bottom: 0 !important;
      overflow: visible !important;
  }
  
  /* Fix border clipping issue - ensure container doesn't clip borders */
  .products-tabs-section .container {
      overflow: visible !important;
      position: relative;
  }
  
  /* Ensure tabs section itself doesn't clip content */
  .products-tabs-section {
      overflow: visible !important;
  }
  
  /* Fix vertical border clipping at the top */
  /* If container has a border, ensure padding accounts for it */
  .products-tabs-section .container {
      padding-top: 1px; /* Add 1px top padding if border exists to prevent clipping */
      margin-top: -1px; /* Compensate for the padding to maintain alignment */
  }
  
  /* Ensure tab content area doesn't clip borders */
  .products-tabs-section .tab-content {
      position: relative;
      z-index: 1;
  }
  
  #new-arrivals-section .container,
  .products-tabs-section .container {
      width: 100%;
      max-width: 100%;
      padding-left: 15px;
      padding-right: 15px;
      margin-left: auto;
      margin-right: auto;
      overflow: visible !important;
      position: relative;
  }
  
  /* If there's a border on the container, ensure it's not clipped */
  .products-tabs-section .container::before,
  .products-tabs-section .container::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 1px;
      background: transparent;
      pointer-events: none;
  }
  
  /* Responsive container widths - match Bootstrap's container breakpoints exactly */
  @media (min-width: 576px) {
      #new-arrivals-section .container,
      .products-tabs-section .container {
          max-width: 540px;
      }
  }
  
  @media (min-width: 768px) {
      #new-arrivals-section .container,
      .products-tabs-section .container {
          max-width: 720px;
      }
  }
  
  @media (min-width: 992px) {
      #new-arrivals-section .container,
      .products-tabs-section .container {
          max-width: 960px;
      }
  }
  
  @media (min-width: 1200px) {
      #new-arrivals-section .container,
      .products-tabs-section .container {
          max-width: 1140px;
      }
  }
  
  @media (min-width: 1400px) {
      #new-arrivals-section .container,
      .products-tabs-section .container {
          max-width: 1320px;
      }
  }
  
  .products-tabs-nav {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-bottom: 0; /* Remove margin to connect borders */
      flex-wrap: wrap;
      border-bottom: 1px solid #e0e0e0; /* Match border width with carousel_slider_pro */
      padding-bottom: 0;
      position: relative;
      z-index: 2;
  }
  
  /* Ensure borders connect - remove any gap between tabs nav and content */
  .products-tabs-section .tab-content {
      margin-top: 0 !important; /* No margin to ensure borders connect */
      padding-top: 20px; /* Add spacing here instead of margin-bottom on nav */
  }
  
  /* Ensure carousel_slider_pro borders align with tabs nav border */
  .products-tabs-section .carousel_slider_pro {
      border-top: none; /* Remove top border if exists, tabs nav provides it */
      margin-top: 0; /* Ensure no gap */
      display: flex;
      flex-wrap: wrap;
      margin: 0 -15px;
      padding: 20px 15px;
      box-sizing: border-box;
  }
  
  /* Ensure products in tabs section show 3 per row */
  .products-tabs-section .box_shop_products {
      flex: 0 0 100%;
      width: 100%;
      min-width: 200px;
  }
  
  @media (min-width: 576px) {
      .products-tabs-section .box_shop_products {
          flex: 0 0 50%;
          width: 50%;
      }
  }
  
  @media (min-width: 768px) {
      .products-tabs-section .box_shop_products {
          flex: 0 0 33.333333%;
          width: 33.333333%;
          min-width: 0;
          max-width: 33.333333%;
      }
  }
  
  .tab-button {
      background: transparent;
      border: none;
      border-bottom: 3px solid transparent;
      padding: 15px 30px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      min-width: 200px;
  }
  
  .tab-button:hover {
      background-color: #f5f5f5;
  }
  
  .tab-button.active {
      border-bottom-color: var(--site-main-color);
      background-color: transparent;
  }
  
  .tab-button.active .tab-title {
      color: var(--site-main-color);
      font-weight: 600;
  }
  
  .tab-title {
      font-size: 20px;
      font-weight: 500;
      color: #333;
      margin-bottom: 5px;
      transition: all 0.3s ease;
  }
  
  .tab-subtitle {
      font-size: 14px;
      color: #666;
      font-weight: 400;
      transition: all 0.3s ease;
  }
  
  .tab-button.active .tab-subtitle {
      color: var(--site-main-color);
  }
  
  .tab-content {
      display: none !important;
      animation: fadeIn 0.4s ease-in;
  }
  
  .tab-content.active {
      display: block !important;
  }
  
  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(10px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }
  
  @media (max-width: 768px) {
      .products-tabs-nav {
          gap: 10px;
      }
      
      .tab-button {
          padding: 12px 20px;
          min-width: 150px;
      }
      
      .tab-title {
          font-size: 18px;
      }
      
      .tab-subtitle {
          font-size: 12px;
      }
  }
  
  /* Product grid container - Clean modern grid layout */
  .carousel_slider_pro {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 40px 30px;
      margin: 40px 0 0 0;
      padding: 0;
  }
  
  @media (max-width: 768px) {
      .carousel_slider_pro {
          grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
          gap: 30px 20px;
      }
  }
  
  @media (max-width: 480px) {
      .carousel_slider_pro {
          grid-template-columns: 1fr;
          gap: 30px;
      }
  }
  
  /* Ensure product-list-grid-view-area doesn't clip content */
  .product-list-grid-view-area {
      min-height: auto !important;
      height: auto !important;
      overflow: visible !important;
  }
  
  /* Ensure categories section is visible and has proper spacing */
  .gsm_shop_products {
      margin-bottom: 50px !important;
      padding-bottom: 30px !important;
  }
  
  /* Add border grid to New Arrivals section to match tabs section */
  #new-arrivals-section .section-header {
      border-bottom: 1px solid #e0e0e0; /* Match tabs nav border */
      margin-bottom: 0; /* Remove margin to connect borders */
      padding-bottom: 15px;
  }
  
  /* Ensure New Arrivals carousel has borders like tabs section */
  #new-arrivals-section .carousel_slider_pro {
      border: 1px solid #e0e0e0; /* Add border to match tabs section */
      border-top: none; /* Remove top border as section-header provides it */
      margin: 0 -15px; /* Keep negative margin for full-width products */
      padding: 20px 15px; /* Add padding inside border */
      box-sizing: border-box;
  }
  
  /* Product box container - Clean borderless design */
  .box_shop_products {
      margin-bottom: 0;
      display: flex;
      flex-direction: column;
      padding: 0;
      width: 100%;
      min-width: 200px;
      box-sizing: border-box;
      border: none; /* No border - clean borderless design */
      transition: transform 0.3s ease;
  }
  
  .box_shop_products:hover {
      transform: translateY(-5px);
  }
  
  /* Grid layout handles responsive sizing automatically - no need for flex-based media queries */
  
  .box_shop_products .hover_card {
      min-height: auto;
      height: auto;
      overflow: hidden; /* Clean edges */
      border: none !important; /* Ensure no borders */
  }
  
  /* Product image container - flexible aspect ratio to accommodate various image sizes */
  /* Use padding-bottom technique with responsive height constraint */
  .productimg {
      width: 100%;
      min-width: 200px; /* Minimum width to ensure buttons are not cut off */
      height: 0;
      padding-bottom: 100%; /* Default square aspect ratio - creates responsive container */
      overflow: hidden;
      background-color: #fff;
      position: relative;
      display: block;
      text-align: center;
  }
  
  /* Constrain container height on larger screens to prevent images from being too tall */
  /* Target height: 250px to match shop page rendering (around 234px with some buffer) */
  @media (min-width: 350px) {
      .box_shop_products .productimg,
      .productimg {
          /* Calculate: if width is W, height from padding-bottom is W
             We want max height of 250px to match shop page, so if W > 250, constrain it */
          max-height: 250px !important;
      }
      /* Override padding-bottom when it would create height > 250px */
      .box_shop_products[style*="width: 33"] .productimg,
      .box_shop_products[style*="width: 50"] .productimg,
      .box_shop_products .productimg[style*="height"],
      .productimg[style*="height"] {
          max-height: 250px !important;
      }
  }
  
  /* Force height constraint for all productimg containers - match shop page size */
  .box_shop_products .productimg,
  .productimg {
      max-height: 250px !important;
  }
  
  /* Additional constraint for search page and any page with productimg */
  .carousel_slider_pro .productimg,
  .product-list-grid-view-area .productimg,
  .product_slidersss .productimg,
  .box_shop_products .productimg.img,
  .productimg.img {
      max-height: 250px !important;
  }
  
  /* Ensure images inside productimg containers are also constrained */
  .productimg img,
  .productimg .Mobile_D_None,
  .productimg .hover_image_hide {
      max-height: 250px !important;
      max-width: 100% !important;
  }
  
  /* Ensure only one image shows at a time - desktop shows Mobile_D_None, mobile shows hover_image_hide */
  .productimg .hover_image_hide {
      display: none !important;
  }
  
  .productimg .Mobile_D_None {
      display: block !important;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 250px; /* Match container max-height to prevent overflow - consistent with shop page */
      object-fit: contain; /* Maintain aspect ratio without cropping */
      object-position: center center;
      transition: transform 0.3s ease;
      margin: 0;
      padding: 0;
      border: none;
  }
  
  @media (max-width: 768px) {
      .productimg .hover_image_hide {
          display: block !important;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: auto;
          height: auto;
          max-width: 100%;
          max-height: 250px; /* Match container max-height to prevent overflow - consistent with shop page */
          object-fit: contain; /* Maintain aspect ratio without cropping */
          object-position: center center;
          transition: transform 0.3s ease;
          margin: 0;
          padding: 0;
          border: none;
      }
      .productimg .Mobile_D_None {
          display: none !important;
      }
  }
  
  .productimg:hover .Mobile_D_None,
  .productimg:hover .hover_image_hide {
      transform: translate(-50%, -50%) scale(1.05); /* Maintain centering while scaling */
  }
  
  /* Card body - flexible to fill remaining space */
  .hover_card .caption.card-body {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      padding: 20px 15px 25px;
      justify-content: flex-start;
      gap: 12px;
      min-height: auto;
      overflow: visible;
      max-width: 100%;
      box-sizing: border-box;
      flex-grow: 1;
      border: none; /* No borders */
      text-align: center;
  }
  
  .hover_card .caption h4 {
      min-height: auto;
      margin-bottom: 5px;
      font-size: 16px;
      line-height: 1.4;
  }
  
  /* Price section - consistent height */
  .hover_card .old-price,
  .hover_card .new-price {
      min-height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 2px 0;
      flex-wrap: wrap;
      text-align: center;
      padding: 0;
  }
  
  .hover_card .old-price span,
  .hover_card .new-price span {
      display: block;
      width: 100%;
  }
  
  /* Action buttons section */
  .hover_card .single-product-quantity {
      margin-top: 8px;
      padding-top: 0;
      padding-bottom: 10px;
      min-width: 100%;
      flex-shrink: 0;
      max-width: 100%;
      box-sizing: border-box;
  }
  
  .hover_card .iconss {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: nowrap; /* Prevent buttons from wrapping */
      min-width: 90px; /* Minimum width for two 40px buttons + 10px gap */
  }
  
  .hover_card .iconss button {
      width: 40px;
      height: 40px;
      min-width: 40px; /* Prevent button from shrinking */
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      cursor: pointer;
  }
.Mobile_D_None_1 {  
      display:inline-block !important; 
  }
  .pera_line_break_word_2 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: auto;
    max-height: none;
  }


  .listing_dropdown {
    cursor: pointer !important;
  }

  .header_nav .filter_list li a {
    list-style: none !important;
    text-decoration: none !important;
    line-height: 25px;
    font-weight: 400;
    word-break: normal;
    color: #8c8c8c;
    font-family: 'Quicksand', sans-serif;
    ;
    font-size: 12px;
    padding: 4px 15px;
  }

  .sidebar .filter_list li,
  .sidebar .filter_list li a {
    list-style: none !important;
    text-decoration: none !important;
    line-height: 25px;
    font-weight: 400;
    word-break: break-all;
    color: #8c8c8c;
    font-family: 'Quicksand', sans-serif;
    ;
    font-size: 12px;
    padding: 4px 0px;
  }
  .sidebar .filter {
    box-shadow: #f0f0f0 0px 0px 0px 3px;
  }

  .faq-section h5 a[aria-expanded="true"]:before {
    content: "\f106";
    font-family: 'FontAwesome';
    font-weight: 600;
    color: #000 !important;
    float: right;
  }

  .faq-section h5 a[aria-expanded="false"]:after {
    content: "\f107";
    font-family: 'FontAwesome';
    font-weight: 600;
    color: #000 !important;
    float: right;
  }

  .filter a {
    display: block;
    position: relative;
    color: black;
    font-weight: 700 !important;
    text-transform: capitalize;
    font-size: 14px !important;
    font-family: 'Quicksand', sans-serif;
    line-height: 24px;
  }

  .faq-section .mb-0>a:hover {
    text-decoration: none !important;
  }

  .border_blue {
    border-top: 2px solid var(--site-main-color) !important;
    width: 25%;
    margin-top: 10px;
  }

  h2 {
    font-size: 1.6em !important;
  }

  .filter .card-header,
  .filter .card-body {
    padding: .75rem 1.25rem !important;
  }

  .filter_list li,
  .filter_list li a {
    list-style: none !important;
    text-decoration: none !important;
    line-height: 15px;
    font-weight: 400 !important;
    word-break: break-all;
    color: #8c8c8c;
    font-size: 12px;
    padding: 4px 0px;
  }

  .card-header,
  .card-body {
    padding-left: 0px !important;
  }

  .card-header {
    padding-top: 0px !important;
  }

  .price-range-slider {
    width: 100%;
    float: left;
    padding: 0;
  }

  .price-range-slider .range-value {
    margin: 0;
  }

  .price-range-slider .range-value input {
    background: none;
    color: #000;
    width: 75%;
    font-size: 16px;
    font-weight: initial;
    box-shadow: none;
    border: none;
    margin: 10px 0 10px 0;
  }

  .font-25 {
    font-size: 25px !important;
  }

  .price-range-slider .range-bar {
    border: none;
    background: #000;
    height: 3px;
    width: 100%;
    margin-left: 8px;
  }

  .price-range-slider .range-bar .ui-slider-range {
    background: #06b9c0;
  }

  .price-range-slider .range-bar .ui-slider-handle {
    border: none;
    border-radius: 50%;
    background: #06b9c0;
    border: 2px solid #06b9c0;
    height: 13px;
    width: 13px;
    top: -0.4em;
    cursor: pointer;
  }

  .price-range-slider .range-bar .ui-slider-handle:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  /*--- /.price-range-slider ---*/
  #heading-inner-1>a:after {
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    right: 21px;
    font-size: 14px;
    color: #000 !important;
    font-weight: 600;
  }

  #heading-inner-1>a[aria-expanded="true"]:after {
    content: "\f068";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    font-size: 14px;
    color: #000 !important;
  }

  .page-title{
    color: var(--site-main-color);
    text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25);
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 15px
  }
  .site-color{
    background-color: var(--site-main-color) !important;
    border-color: var(--site-main-color) !important;
  }
  .btn-outline-success:hover{
    color: #fff !important;
    background-color: var(--site-main-color) !important;
    border-color: var(--site-main-color) !important;
  }
  .btn-outline-success{
    color: var(--site-main-color) !important;
    border-color: var(--site-main-color) !important;
  }
/*  notification css start*/
.box-notification {
  width: 100%;
  max-height: 370px;
  border-radius: 10px;
  transition: 0.5s;
  position: absolute;
/*  overflow-y: scroll;*/
  padding: 0px;
  top: 15px;
/*  right: 10px;*/

  margin-top: 25px;
  background-color: #F4F4F4;
  -webkit-box-shadow: 10px 10px 23px 0px rgb(0 0 0 / 20%);
  -moz-box-shadow: 10px 10px 23px 0px rgba(0,0,0,0.1);
  box-shadow: 10px 10px 23px 0px rgb(0 0 0 / 10%);
  cursor: context-menu;
  z-index: 70;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  overflow-y: scroll;
  padding-top: 20px;
}
.sec {
  padding: 10px 8px;
  background-color: #F4F4F4;
  transition: 0.5s;
}
.profCont {
  padding-left: 15px;
}
.profile {
  -webkit-clip-path: circle(50% at 50% 50%);
  clip-path: circle(50% at 50% 50%);
  width: 45px;
  float: left;
}
.to-make-coloumn {
  display: flex;
  flex-direction: column;
}
.sec a {
  display: flex;
  align-items: center;
}
.sec:hover a{
  color: var(--site-main-color);
  text-decoration: none;
}
.mynoti-msg-ad {
  color: black !important;
  padding: 1px 10px 0px 15px !important;
}
.sub {
  font-size: 14px;
  color: grey;
}
.txt {
  vertical-align: top;
  font-size: 14px;
  padding: 1px 10px 0px 15px;
  color: black;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  transition: 0.5s ease-in-out;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  text-align: left;
}
.d{
  list-style-type: none;
}

.menu-shop1 {
 
    width:160px;
    background-color:transparent;
    display:block;
    position:absolute;
    top:0;
    left:220px;
    z-index: 99;
}

.menu-shop1  ul li {
    padding:5px;
    text-align:start;
    width:150px;
}

.menu-shop1 ul li a{
    font-size:14px;
    font-weight:300 !important;
    color:#8c8c8c;
    text-decoration: none;
    padding: 0 15px;

}

.menu-shop1 ul li a:hover{
    color:green;
}
.modal-backdrop{
  display: none;
}
ul.c_menu{
    right:3.5rem;
    width: auto;
}
ul.c_menu li{
    overflow:hidden;
}
.bbc{
  display: none;
  background:var(--site-main-color);
  padding: 0px;
  width: 100%;
}

/* Menu bar styling */
.navbar {
  padding: 0.5rem 1rem;
}

.navbar .form-inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex: 1 1 auto;
  width: auto;
  margin: 0;
  gap: 0.5rem;
  max-width: 100%;
}

.navbar .form-inline .form-control {
  flex: 1 1 auto;
  width: auto;
  min-width: 200px;
  max-width: none;
  margin-right: 0 !important;
  display: inline-block !important;
  vertical-align: middle;
}

.navbar .form-inline .btn {
  display: inline-block !important;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
  margin: 0 !important;
}

.navbar .collapse {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar .collapse .form-inline {
  justify-content: flex-end;
  padding: 0;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.bbc .collapse {
  flex-direction: column;
}

.bbc .collapse .form-inline {
  justify-content: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  margin-top: 0.5rem;
}

.navbar .navbar-nav {
  flex-direction: row;
  align-items: center;
  margin: 0;
}

.navbar .filter_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar .filter_list li {
  list-style: none;
  margin: 0;
}

.navbar .filter_list .nav-link {
  padding: 0.5rem 1rem;
  display: block;
  white-space: nowrap;
}

/* Responsive adjustments for product boxes */
@media screen and (max-width: 768px) {
    .box_shop_products .hover_card {
        min-height: 500px; /* Increased to accommodate taller images and buttons */
    }
    
    .box_shop_products .productimg,
    .productimg {
        height: 220px !important;
        max-height: 220px !important;
        padding-bottom: 0 !important;
    }
    
    .hover_card .caption h4 {
        min-height: auto;
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .box_shop_products .hover_card {
        min-height: 480px; /* Increased to accommodate taller images and buttons */
    }
    
    .productimg {
        height: 200px;
    }
}

@media screen and (max-width: 1200px) {
      .navbar.navbar-expand-lg.navbar-light{
        display: none;
      }
      .widget.widget-shop-categories.rounded{
        display: none;
      } 
      .bbc{
          display: block !important;
      }
      .box-notification-mob-menu{
          top: 5rem !important;
      }
      .mynoti-msg-name{
          font-size: 1.03rem !important;
      }
      .navbar .form-inline {
        flex-direction: row !important;
      }
      .navbar .form-inline .form-control {
        max-width: 100%;
      }
    }

