/*
Template Name: Shopingo - eCommerce HTML Template
Author: codervent
Email: codervent@gmail.com
File: style.css
*/

/*
Table of index
*/

/* 
- General
- Header
- Navigation
- Page content
- breadcrumb
- Footer
- Utilitis
- Back Button
 */



/* General */

body {
  color: #797979;
  letter-spacing: 0.5px;
  background-color: #ffffff;
  
  /* Force numbers to sit on the baseline (Lining Figures) */
  font-variant-numeric: lining-nums;
  -moz-font-feature-settings: "lnum";
  -webkit-font-feature-settings: "lnum";
  font-feature-settings: "lnum";
}

/* Ensure form controls (inputs, textareas) also inherit this */
input, 
textarea, 
select, 
button {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum";
}

a {
  text-decoration: none;
}

::placeholder {
  opacity: 0.5 !important;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #323232;
}


/* loader */

.loader-wrapper {
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background-color: #ffffff;
}



/* Header */

.top-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 78px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 0 1rem;
  z-index: 20;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.top-header .primary-menu .navbar-nav a.nav-link {
  color: #222121;
  font-size: 14px;
  font-weight: 600;
  /*text-transform: uppercase;*/
  height: auto;
  display: flex;
  align-items: center;
  padding-right: 1rem;
  padding-left: 1rem;
  border-bottom: 1px solid #e1e1e1;
}


.top-header .primary-menu .navbar-nav a.nav-link:hover,
.top-header .primary-menu .navbar-nav a.nav-link:focus,
.top-header .primary-menu .nav-link.active,
.top-header .primary-menu .show>.nav-link {
  background-color: #ffffff;
}

.top-header .primary-menu .dropdown-menu .dropdown-item.active,
.top-header .primary-menu .dropdown-menu .dropdown-item:active {
  color: #343434;
  text-decoration: none;
  background-color: #f1f0f0
}


.top-header .secondary-menu.navbar-nav a.nav-link {
  color: #222121;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  padding-right: 0.6rem;
  padding-left: 0.6rem
}


.top-header .navbar .dropdown-menu {
  border: 0;
  border-radius: 0;
  font-size: 14px;
  /*text-transform: uppercase;*/
}

.top-header .secondary-menu .cart-badge {
  position: absolute;
  top: 6px;
  right: 0px;
  color: #fff;
  width: 20px;
  height: 20px;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ff2c2c;
}


@-webkit-keyframes animdropdown {
  from {
    -webkit-transform: translate3d(0, 6px, 0);
    transform: translate3d(0, 6px, 0);
    opacity: 0
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1
  }
}

@keyframes animdropdown {
  from {
    -webkit-transform: translate3d(0, 6px, 0);
    transform: translate3d(0, 6px, 0);
    opacity: 0
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1
  }
}


/* Navigation */

.primary-menu {
  background-color: #ffffff;
}

.primary-menu.offcanvas-body {
  padding: 0;
}

/* Mobile offcanvas nav — full-width item borders (Myntra/Ajio style) */
@media (max-width: 1199px) {
  .primary-menu .navbar-nav {
    gap: 0 !important;
  }
  .primary-menu .navbar-nav > .nav-item {
    border: none;
    border-bottom: 1px solid #e1e1e1;
  }
  .primary-menu .navbar-nav > .nav-item > .d-flex > .nav-link,
  .primary-menu .navbar-nav > .nav-item > .nav-link {
    padding: 14px 16px;
    font-size: 15px;
  }
  .primary-menu .navbar-nav > .nav-item:last-child {
    border-bottom: none;
  }
}

.offcanvas-header {
  height: 78px;
  border-bottom: 1px solid #e1e1e1;
}

.offcanvas-start {
  width: 280px;
}

.top-header .primary-menu .dropdown-large-menu {
  width: auto;
  padding: 0.5rem;
}

.top-header .primary-menu .dropdown-large-menu .large-menu-title {
  font-size: 15px;
  font-weight: 600;
  padding: 0.25rem 1rem;
}

.top-header .primary-menu .dropdown-large-menu ul li a {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}


@media all and (min-width: 1200px) {


  .top-header .primary-menu .dropdown-large-menu {
    width: 630px;
    padding: 0.5rem;
  }

  .top-header .primary-menu .navbar-nav a.nav-link {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
    height: 78px;
    border-bottom: 0px solid #e1e1e1;
  }


  .top-header .primary-menu .navbar-nav a.nav-link:hover,
  .top-header .primary-menu .navbar-nav a.nav-link:focus,
  .top-header .primary-menu .nav-link.active,
  .top-header .primary-menu .show>.nav-link {
    background-color: #f4f4f4;
  }

  .primary-menu {
    background-color: rgba(33, 37, 41, 0);
  }

  .primary-menu .navbar-nav .nav-item .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
    -webkit-animation: .6s cubic-bezier(.25, .8, .25, 1) 0s normal forwards 1 animdropdown;
    animation: .6s cubic-bezier(.25, .8, .25, 1) 0s normal forwards 1 animdropdown
  }

  .primary-menu .navbar-nav .nav-item:hover>.dropdown-menu {
    display: block;
  }


}


.footer-widget-6 .logo-img {
  width: 100px;
}

.top-header .logo-img {
  height: 70px;
  width: auto;
}

.dropdown-toggle-nocaret:after {
  display: none
}

.mobile-menu-btn,
.mobile-menu-btn:hover {
  color: #464444;
  font-size: 1.5rem;
}



/*Page content*/

.page-content {
  padding-top: 78px;
}

.product-tab-menu .nav-pills .nav-link {
  color: #292626;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: 1px solid #292626;
  margin: 0 10px;
  border-radius: 0;
  white-space: nowrap;
}

.product-tab-menu .nav-pills .nav-link.active,
.product-tab-menu .nav-pills .show>.nav-link {
  color: #ffffff;
  background-color: #212529;
}


.tabular-product .card,
.product-thumbs .card,
.product-grid .card {
  border: 0;
  border-radius: 0;
  overflow: visible;
  position: relative; /* needed for ribban absolute positioning */
  background-color: #ffffff;
  box-shadow: 0 2px 6px 0 rgb(218 218 253 / 55%), 0 2px 6px 0 rgb(206 206 238 / 44%);
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.product-zoom-images .img-thumb-container img {
  cursor: zoom-in;
}

.product-zoom-images img,
.tabular-product .card img,
.product-thumbs .card img,
.product-grid .card img,
.cartegory-box .card img {
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
  border-radius: 0;
}

.product-options {
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 300ms, opacity 300ms;
  z-index: 5;
  background-color: rgba(255, 255, 255, 0.65);
}

.tabular-product .card:hover .product-options,
.product-thumbs .card:hover .product-options,
.product-grid .card:hover .product-options {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s linear 0s, opacity 300ms;
}

.similar-products .card {
  cursor: pointer;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}


.similar-products .card:hover {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.product-short-title {
  color: #212529;
  font-size: 18px;
}

.product-short-name {
  color: #898989;
  font-size: 14px;
}

.product-count {
  color: #212529;
  font-weight: 600;
}

.product-options a {
  width: 35px;
  height: 35px;
  font-size: 16px;
  border-radius: 0;
  background-color: #212529;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.btn-ecomm {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 0;
  z-index: 6;

}

.btn-ecomm:focus {
  border: 1px solid #2f3338;
  box-shadow: 0 0 0 .25rem rgba(33, 37, 41, 0.25)
}



.separator {
  display: flex;
  align-items: center;
}

.separator .line {
  height: 1px;
  flex: 1;
  background-color: #dee2e6;
}

.separator h3 {
  padding: 0 1.5rem;
}

.address-info .form-check-input,
.filter-sidebar .form-check-input,
.filter-sidebar .form-check-label {
  cursor: pointer;
}

.filter-sidebar .product-number {
  color: #b7b7b7;
  margin-left: 7px;
}

.filter-sidebar .form-check-input[type=checkbox] {
  border-radius: 0;
}

.address-info .form-check-input:checked,
.filter-sidebar .form-check-input:checked {
  background-color: #212529;
  border-color: #212529;
}

.address-info .form-check-input:focus,
.filter-sidebar .form-check-input:focus {
  border-color: #212529;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(34, 38, 42, 0.0)
}


/* width */
.filter-sidebar ::-webkit-scrollbar {
  width: 7px;
}

/* Track */
.filter-sidebar ::-webkit-scrollbar-track {
  background: #e9e9e9;
}

/* Handle */
.filter-sidebar ::-webkit-scrollbar-thumb {
  background: #c1c1c1;
}

/* Handle on hover */
.filter-sidebar ::-webkit-scrollbar-thumb:hover {
  background: #555;
}


.filter-column .offcanvas-start {
  width: 320px;
}


.filter-column .offcanvas {
  z-index: 21;
}



@media (min-width: 1200px) {

  .filter-column .offcanvas {
    z-index: 19;
  }

}

.filter-column .offcanvas-backdrop {
  z-index: 20;
}

.btn-filter-mobile {
  position: fixed;
  top: 30%;
  left: 0;
  background-color: #212529;
  color: #fff;
  text-transform: uppercase;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
}


.view-type .grid-type-3 {
  background-color: #ffffff;
  padding: 4px;
  border: 1px solid #e1e2e3;
  cursor: pointer;
}

.view-type .grid-type-3 span {
  width: 7px;
  height: 16px;
  background-color: #cfcfcf;
}

.view-type .grid-type-3.active span {
  background-color: #3e3d3d;
}

.product-pagination .page-link {
  color: #4b5157;
}

.product-pagination .page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #212529;
  border-color: #212529;
}

.product-pagination .page-link:focus {
  color: #212529;
  box-shadow: 0 0 0 .25rem rgba(33, 37, 41, 0.25)
}

.product-pagination .page-item:first-child .page-link {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0
}

.product-pagination .page-item:last-child .page-link {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0
}

.form-control:focus {
  box-shadow: 0 0 0 .25rem rgba(33, 37, 41, 0.25)
}

.ribban {
  position: absolute;
  top: 16px;
  left: 0%;
  padding: 2px 7px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background-color: #f50a3b;
  cursor: pointer;
  z-index: 1;
}

.depth {
  box-shadow: 0 2px 6px 0 rgb(218 218 253 / 55%), 0 2px 6px 0 rgb(206 206 238 / 44%);
}

.brands .brand-box {
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

@media all and (min-width: 1024px) {

  .product-zoom-images img:hover,
  .tabular-product .card:hover img,
  .product-thumbs .card:hover img,
  .product-grid .card:hover img,
  .cartegory-box .card:hover img {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
  }

  .brands .brand-box:hover {
    -webkit-transform: scale(1.08);
    transform: scale(1.08);
  }

}



.blog-cards .card,
.cartegory-box .card {
  border-radius: 0;
  border: 0;
  box-shadow: 0 2px 6px 0 rgb(218 218 253 / 55%), 0 2px 6px 0 rgb(206 206 238 / 44%);
}


.subscribe-banner {
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.542), rgba(0, 0, 0, 0.73)),
    url('https://images.pexels.com/photos/5864245/pexels-photo-5864245.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}

.bubscribe-control {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.119);
  border: 1px solid rgb(255 255 255 / 62%);
}

.bubscribe-control:focus {
  color: #ffffff;
  background-color: rgb(255 255 255 / 0%);
  border-color: rgba(255, 255, 255, 0.71);
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(255, 255, 255, 0.25)
}

.bubscribe-control::placeholder {
  color: #ffffff !important;
}


.bubscribe-button {
  color: rgb(50, 46, 46);
  background-color: #ffffff;
  border-color: #ffffff;
}

.bubscribe-button:focus {
  border-color: rgba(255, 255, 255, 0.71);
  box-shadow: 0 0 0 .25rem rgba(255, 255, 255, 0.25)
}




/* breadcrumb */

.breadcrumb li a {
  color: #636363;
}

.breadcrumb li.active {
  color: #222121;
}


/* Footer */

.footer-section .widget-link li {
  margin-bottom: 0.3rem;
}

.footer-section .widget-link li a {
  color: #636363;
  font-size: 14px;
  text-decoration: none;
}


.footer-section .widget-link li a:hover {
  color: #262424;
  text-decoration: underline;
}


.footer-widget-6 {
  color: #636363;
  font-size: 14px;
  text-decoration: none;
}


.footer-widget-7 .widget-link li a {
  text-transform: capitalize;
}


.footer-widget-9 .social-link a {
  width: 40px;
  height: 40px;
  color: #212529;
  background-color: rgb(255 255 255 / 0%);
  border: 1px solid #212529;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
}

.footer-widget-9 .social-link a:hover {
  color: #ffffff;
  background-color: #212529;
}



/* Utilitis*/


.section-padding-cart {
   padding-top: 6rem !important;
   padding-bottom: 2rem !important;
}

/* PRODUCT HOVER ICONS */
.product-options {
  visibility: hidden;
  opacity: 0;
  bottom: -10px;
  z-index: 10;
  transition: all 0.3s ease;
}

/* SHOW ON CARD HOVER */
.card:hover .product-options {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

.product-options button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


.section-paddings {
   padding-top: 4rem !important;
   padding-bottom: 2rem !important;
}


.section-padding {
   padding-top: 2rem !important;
   padding-bottom: 2rem !important;
}

.bg-section-1 {
  background-color: #ffffff;
}

.bg-section-2 {
  background-color: #f9f9f9;
}

.bg-green {
  background-color: #21ad61 !important;
}

.bg-pink {
  background-color: #ed4264 !important;
}

.bg-skyblue {
  background-color: #2ea5c2 !important;
}

.bg-skyblue-light {
  background-color: #b8dde9 !important;
}

.bg-red-light {
  background-color: #fdd9de !important;
}

.bg-purple {
  background-color: #723da6 !important;
}

.bg-green-light {
  background-color: #9fffd1 !important;
}

.bg-purple-light {
  background-color: #e1c4ff !important;
}

.bg-yellow {
  background-color: #fdc200 !important;
}

.bg-yellow-light {
  background-color: #feffaa !important;
}

.bg-red {
  background-color: #ff2c2c !important;
}

.bg-twitter {
  background-color: #00acee !important;
}

.bg-facebook {
  background-color: #3b5998 !important;
}

.bg-linkden {
  background-color: #0072b1 !important;
}

.bg-youtube {
  background-color: #e2251f !important;
}

.bg-pinterest {
  background-color: #c8232c !important;
}

.text-purple {
  color: #723da6 !important;
}

.text-orange {
  color: #ff2c2c !important;
}

.text-brown {
  color: #ce5334 !important;
}

.text-cyane {
  color: #00FFFF !important;
}

.text-ten {
  color: #5eff00 !important;
}

.text-pink {
  color: #ff006f !important;
}

.ratings {
  font-size: 13px;
  ;
}

.width-content {
  width: fit-content
}

.rating-number {
  color: #212529;
}

.text-content {
  color: #212529;
}

.size-chart div button {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  color: #222121;
  font-weight: 600;
  background-color: #ffffff;
}

.size-chart div button:hover,
.size-chart div button:focus {
  color: #ef2424;
  border: 1px solid #ef2424;
}


.more-colors .color-box {
  width: 40px;
  height: 40px;
  font-size: 14px;
  border: 1px solid #dee2e6;
  border-radius: 0%;
  color: #222121;
  font-weight: 600;
  background-color: #ffffff;
  cursor: pointer;
}


.product-share .btn-social {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 0px solid #dee2e6;
  border-radius: 0%;
  color: #ffffff;
  font-weight: 600;
  background-color: #ffffff;
  cursor: pointer;
}

.height-1 {
  position: relative;
  scrollbar-width: thin;
  height: 260px;
  overflow-y: scroll;
  scrollbar-width: thin;
}

.wishlist-close {
  background-color: #ffffff;
  border-radius: 50%;
  padding: 10px;
  margin: 7px;
}

.wrap-modal-slider.open {
  opacity: 1;
}

.wrap-modal-slider .slider-for .slick-slide {
  margin: 0 0px
}

.wrap-modal-slider .slider-for .slick-list {

  margin: 0 0px
}

.wrap-modal-slider .slider-nav .slick-slide {
  margin: 0 10px
}

.wrap-modal-slider .slider-nav .slick-list {
  margin: 0 -10px
}

.modal-close-button {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 30px;
  height: 30px;
  background-color: #ffffff;
  border-radius: 0%;
  opacity: 1;
  z-index: 1;
  box-shadow: 0 0 24px 2px rgb(0 0 0 / 20%);
}


.payment-method .nav-link {
  color: #212529;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid #dedede;
  font-weight: 600;
}

.payment-method .nav-pills .nav-link.active,
.payment-method .nav-pills .show>.nav-link {
  color: #212529;
  background-color: #ffffff;
}

.account-menu .list-group-item {
  color: #212529;
}

.account-menu .list-group-item.active {
  color: #ffffff;
  background-color: #212529;
  border-color: #212529;
}

/*Back Button */

.back-to-top {
  display: none;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 22px;
  color: #fff;
  position: fixed;
  border-radius: 50%;
  bottom: 20px;
  right: 12px;
  background-color: #212529;
  z-index: 5;
}

.back-to-top:hover {
  color: #fff;
}

/* REMOVE HAND CURSOR FROM FANCYBOX */
[data-fancybox] {
  cursor: default !important;
}

/* ZOOM ICON OVERLAY */
.img-thumb-container::after {
  content: "\f52a";
  font-family: "bootstrap-icons";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  font-size: 22px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
}

.img-thumb-container:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fancybox__image {
  cursor: zoom-in;
}


/* ================= UNIVERSAL IMAGE SYSTEM ================= */

/* ── DETAIL PAGE ─────────────────────────────────────────────
   img-thumb-container is only used on product detail page.
   aspect-ratio 2:3 matches portrait photos (667x1000px).
───────────────────────────────────────────────────────────── */

.img-thumb-container {
  width: 100%;
  background: #ffffff;
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.product-images .img-thumb-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center top !important;
  display: block;
  background: #ffffff;
}

.product-images .img-thumb-container video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.img-thumb-container::after {
  pointer-events: none;
}

/* ── ALL PRODUCT CARDS (home, listing, wishlist, slider) ──────
   Based on original working CSS:
   .card-img-top { object-fit: cover; height: 320px; }
   
   cover fills box completely — no grey gaps, no blank space.
   top center anchors from top so head/face is always visible.
   320px fixed height = all cards identical height always.
───────────────────────────────────────────────────────────── */

/* Ensure Link anchor wrapping image doesn't collapse layout */
.product-thumbs .card a,
.latest-product-thumbs .card a {
  display: block;
  line-height: 0;
}

/* card-img-top: 2:3 box with contain — shows full outfit, no cropping.
   White background fills any letterbox gaps (invisible on white cards). */
.card-img-top {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #ffffff;
  border-radius: 0 !important;
}

/* ── SLIDER CARDS: Featured + Latest ─────────────────────── */

/* Slick equal height rows */
.product-thumbs .slick-track,
.latest-product-thumbs .slick-track {
  display: flex !important;
}

.product-thumbs .slick-slide,
.latest-product-thumbs .slick-slide {
  height: inherit !important;
}

.product-thumbs .slick-slide > div,
.latest-product-thumbs .slick-slide > div {
  height: 100%;
  display: flex;
}

/* Card fills full slide height */
.product-thumbs .card,
.latest-product-thumbs .card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  border-radius: 0;
  position: relative;
  width: 100%;
}

/* Image wrapper — aspect-ratio 2:3 matches 667x1000 Bagisto large images */
.product-thumbs .card .position-relative,
.latest-product-thumbs .card .position-relative {
  overflow: hidden !important;
  flex-shrink: 0;
  background: #ffffff;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
}

/* Anchor inside wrapper — must be block and full height */
.product-thumbs .card .position-relative > a.d-block,
.latest-product-thumbs .card .position-relative > a.d-block {
  display: block !important;
  height: 100% !important;
  width: 100%;
  line-height: 0;
}

/* Card body - tight, no stretching */
.product-thumbs .card .card-body,
.latest-product-thumbs .card .card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

/* Brand name — 1 line */
.product-thumbs .card .product-short-title,
.latest-product-thumbs .card .product-short-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.15rem;
  text-align: center;
  min-height: 1.3em;
  line-height: 1.3em;
}

/* Product name — 2 lines max with ellipsis, fixed height keeps prices aligned */
.product-thumbs .card .product-short-name,
.latest-product-thumbs .card .product-short-name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem !important;
  color: #898989;
  height: 2.8em;
  line-height: 1.4em !important;
  margin-bottom: 0.25rem;
  text-align: center;
}

/* Price — immediately after name, no extra gap */
.product-thumbs .card .product-price,
.latest-product-thumbs .card .product-price {
  margin-top: 0.25rem !important;
  padding-top: 0;
  text-align: center;
}

/* Hover overlay */
.product-thumbs .card .product-options,
.latest-product-thumbs .card .product-options {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.85);
}

.product-thumbs .card:hover .product-options,
.latest-product-thumbs .card:hover .product-options {
  visibility: visible;
  opacity: 1;
  bottom: 0;
}

.product-thumbs .card:hover,
.latest-product-thumbs .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15) !important;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Ribban tag */
.product-thumbs .card .ribban,
.latest-product-thumbs .card .ribban {
  position: absolute;
  top: 16px;
  left: 0;
  padding: 2px 7px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

/* ── PRODUCT LISTING GRID ─────────────────────────────────── */

.product-img-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #ffffff;
}

/* product-img: contain shows full image, 2:3 ratio = no side gaps */
.product-img-wrapper .product-img,
.product-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #ffffff !important;
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}

.product-img-wrapper:hover .product-img,
.product-img-wrapper:hover img {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.product-hover-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex-direction: row;
  gap: 6px;
  opacity: 0;
  transition: all 0.3s ease;
}

.product-img-wrapper:hover .product-hover-actions {
  opacity: 1;
}

.product-hover-actions button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: #212529;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-hover-actions button:hover {
  background: #212529;
  color: #ffffff;
}

.product-stock-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 5;
}

.shop-grid-type-5 .card {
  border: 1px solid #dee2e6 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  position: relative;
  background-color: #ffffff;
  box-shadow: 0 2px 6px 0 rgb(218 218 253 / 55%), 0 2px 6px 0 rgb(206 206 238 / 44%);
  transition: 0.4s ease;
}

.shop-grid-type-5 .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
  transform: translateY(-2px);
}

.shop-grid-type-5 .card .card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.shop-grid-type-5 .card .product-short-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.15rem;
  text-align: center;
  min-height: 1.3em;
}

.shop-grid-type-5 .card .product-short-name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem !important;
  color: #898989;
  height: 2.8em;
  line-height: 1.4em !important;
  text-align: center;
  margin-bottom: 0.25rem;
}

.shop-grid-type-5 .card .product-price {
  margin-top: 0.25rem;
  text-align: center;
  font-size: 0.9rem;
}


/* ================================================
   FINAL OVERRIDES — appended last to win all conflicts
   ================================================ */

/* 1. Fix global product-short-name size bleeding into cards */
.product-thumbs .card .product-short-name,
.latest-product-thumbs .card .product-short-name,
.shop-grid-type-5 .card .product-short-name {
  font-size: 13px !important;
  line-height: 1.4 !important;
  height: calc(1.4em * 2) !important;
  max-height: calc(1.4em * 2) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  color: #898989 !important;
  text-align: center !important;
}

/* 2. Price immediately after name — no gap */
.product-thumbs .card .product-price,
.latest-product-thumbs .card .product-price,
.shop-grid-type-5 .card .product-price {
  margin-top: 0.3rem !important;
  padding-top: 0 !important;
  text-align: center !important;
}

/* 3. Card body — no flex stretching that creates gap */
.product-thumbs .card .card-body,
.latest-product-thumbs .card .card-body,
.shop-grid-type-5 .card .card-body {
  flex: 0 0 auto !important;
  padding: 0.6rem 0.75rem !important;
}

/* 4. Listing image — contain, no bottom crop */
.product-img-wrapper {
  aspect-ratio: 2 / 3 !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.product-img-wrapper .product-img,
.product-img-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #ffffff !important;
}

/* 5. Hover actions horizontal */
.product-hover-actions {
  flex-direction: row !important;
  top: 8px !important;
  right: 8px !important;
}


/* Remove gap between image and card body in listing grid */
.shop-grid-type-5 .card .position-relative {
  line-height: 0;
  font-size: 0;
}

/* Restore font-size for product-options inside */
.shop-grid-type-5 .card .position-relative .product-options {
  font-size: 14px;
  line-height: 1.5;
}

/* Override Bootstrap mb-1 on product-short-name in listing grid */
.shop-grid-type-5 .card .product-short-name.mb-1 {
  margin-bottom: 0 !important;
}

/* Override Bootstrap mb-1 on product-short-name in sliders */
.product-thumbs .card .product-short-name.mb-1,
.latest-product-thumbs .card .product-short-name.mb-1 {
  margin-bottom: 0 !important;
}


/* ── LISTING GRID CARD SPACING FINAL FIX ── */

/* Remove ALL padding/margin from card itself */
.shop-grid-type-5 .card {
  padding: 0 !important;
}

/* Image wrapper must touch card edges — no gap */
.shop-grid-type-5 .card .position-relative {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* Image fills wrapper edge to edge */
.shop-grid-type-5 .card .position-relative .d-block {
  display: block !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.shop-grid-type-5 .card .card-img-top {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  vertical-align: top !important;
}

/* card-body padding tight */
.shop-grid-type-5 .card .card-body {
  padding: 0.6rem 0.75rem !important;
  margin: 0 !important;
}

/* Remove gap between name and price */
.shop-grid-type-5 .card .product-info .product-short-name {
  margin-bottom: 0 !important;
}

.shop-grid-type-5 .card .product-info .product-price {
  margin-top: 0.2rem !important;
}

/* Remove border that shows as gap at top of card — use shadow only */
.shop-grid-type-5 .card {
  border: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
}


/* ── LISTING GRID: mirror latest-product-thumbs card style exactly ── */
.product-listing-grid .card {
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 6px 0 rgb(218 218 253 / 55%), 0 2px 6px 0 rgb(206 206 238 / 44%) !important;
  transition: 0.4s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.product-listing-grid .card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
  transform: translateY(-2px) !important;
}

.product-listing-grid .card .position-relative {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 0 !important;
}

.product-listing-grid .card .card-img-top {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  background: #ffffff !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
}

.product-listing-grid .card .card-body {
  padding: 0.75rem !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
}

.product-listing-grid .card .product-short-name {
  font-size: 13px !important;
  line-height: 1.4 !important;
  height: calc(1.4em * 2) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: #898989 !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}

.product-listing-grid .card .product-price {
  margin-top: 0.25rem !important;
  text-align: center !important;
}

.product-listing-grid .card .product-options {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  font-size: 14px;
}

.product-listing-grid .card:hover .product-options {
  visibility: visible;
  opacity: 1;
  bottom: 0;
}


/* Fix top gap in listing grid — col padding + card needs overflow hidden */
.latest-product-thumbs.card {
  overflow: hidden !important;
  border-radius: 0 !important;
}


/* ProductGrid: card IS latest-product-thumbs (not descendant) so re-apply rules */
.card.latest-product-thumbs {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  position: relative !important;
  width: 100% !important;
  border: 0 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 6px 0 rgb(218 218 253 / 55%), 0 2px 6px 0 rgb(206 206 238 / 44%) !important;
}

.card.latest-product-thumbs:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
  transform: translateY(-2px) !important;
}

.card.latest-product-thumbs .position-relative {
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.card.latest-product-thumbs .card-img-top {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  background: #ffffff !important;
  border-radius: 0 !important;
  aspect-ratio: unset !important;
  vertical-align: top !important;
}

/* Only image wrapper anchor gets line-height:0, not card-body anchor */
.card.latest-product-thumbs .position-relative a {
  display: block !important;
  line-height: 0 !important;
}

.card.latest-product-thumbs > a {
  display: block !important;
  line-height: normal !important;
}

.card.latest-product-thumbs .card-body {
  padding: 0.75rem !important;
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.5 !important;
}

.card.latest-product-thumbs .product-short-name {
  font-size: 13px !important;
  line-height: 1.4 !important;
  height: calc(1.4em * 2) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  color: #898989 !important;
}

.card.latest-product-thumbs .product-price {
  margin-top: 0.25rem !important;
  text-align: center !important;
}

.card.latest-product-thumbs .product-options {
  position: absolute !important;
  bottom: -60px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  background-color: rgba(255,255,255,0.85) !important;
  line-height: 1.5 !important;
  font-size: 14px !important;
}

.card.latest-product-thumbs:hover .product-options {
  visibility: visible !important;
  opacity: 1 !important;
  bottom: 0 !important;
}


/* ── DEFINITIVE FIX: listing grid hover overlay ── */

/* Hide by default — override ALL previous rules */
.card.latest-product-thumbs .product-options,
.card.latest-product-thumbs .position-relative .product-options {
  position: absolute !important;
  bottom: -60px !important;
  left: 0 !important;
  right: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  background: rgba(255,255,255,0.85) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px !important;
}

/* Show on hover */
.card.latest-product-thumbs:hover .product-options,
.card.latest-product-thumbs:hover .position-relative .product-options {
  bottom: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Override global .card:hover .product-options rule which fires too early */
.card.latest-product-thumbs .product-options {
  bottom: -60px !important;
  opacity: 0 !important;
  visibility: hidden !important;
}


/* Override global .card:hover .product-options { bottom: 15px } 
   which pushes overlay outside the image area */
.card.latest-product-thumbs:hover .product-options {
  bottom: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.card.latest-product-thumbs .product-options {
  bottom: -60px !important;
  opacity: 0 !important;
  visibility: hidden !important;
}


/* ── WISHLIST PAGE IMAGE ──────────────────────────────────── */
.wishlist-card {
  overflow: hidden !important;
  border-radius: 0 !important;
}

.wishlist-img-wrapper {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #ffffff;
  line-height: 0;
}

.wishlist-img-wrapper .d-block {
  display: block !important;
  height: 100%;
  line-height: 0;
}

.wishlist-img-wrapper .wishlist-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  background: #ffffff !important;
}


/* ── WISHLIST CARD GAP FIX ── */
.wishlist-card {
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Remove all spacing between image wrapper and card body */
.wishlist-img-wrapper {
  width: 100% !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  line-height: 0 !important;
  font-size: 0 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wishlist-img-wrapper .d-block {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wishlist-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  background: #ffffff !important;
  vertical-align: top !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ── WISHLIST IMAGE FINAL FIX ──
   Use cover to fill box completely — no white gaps ever.
   top center keeps face/head visible even if bottom gets trimmed.
───────────────────────────────── */
.wishlist-img-wrapper {
  width: 100% !important;
  aspect-ratio: 3 / 4 !important;
  overflow: hidden !important;
  background: #f8f8f8 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.wishlist-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  vertical-align: top !important;
}