/*
Theme Name: FoodMart
Theme URI: https://templatesjungle.com/
Author: TemplatesJungle
Author URI: https://templatesjungle.com/
Description: FoodMart is specially designed product packaged for eCommerce store websites.
Version: 1.1
*/

/*--------------------------------------------------------------
This is main CSS file that contains custom style rules used in this template
--------------------------------------------------------------*/

/*------------------------------------*\
    Table of contents
\*------------------------------------*/

/*------------------------------------------------

CSS STRUCTURE:

1. VARIABLES

2. GENERAL TYPOGRAPHY
  2.1 General Styles
  2.2 Floating & Alignment
  2.3 Forms
  2.4 Lists
  2.5 Code
  2.6 Tables
  2.7 Spacing
  2.8 Utilities
  2.9 Misc
    - Row Border
    - Zoom Effect
  2.10 Buttons
    - Button Sizes
    - Button Shapes
    - Button Color Scheme
    - Button Aligns
  2.11 Section
    - Hero Section
    - Section Title
    - Section Paddings
    - Section Margins
    - Section Bg Colors
    - Content Colors
    - Content Borders

3. EXTENDED TYPOGRAPHY
  3.1 Blockquote / Pullquote
  3.2 Text Highlights

4. CONTENT ELEMENTS
  4.1 Tabs
  4.2 Accordions
  4.3 Brand Carousel
  4.4 Category Carousel

5. BLOG STYLES
  5.1 Blog Single Post
  5.2 About Author
  5.3 Comments List
  5.4 Comments Form3

6. SITE STRUCTURE
  6.1 Header
    - Header Menu
    - Nav Sidebar
  6.2 Billboard
  6.3 About Us Section
  6.4 Video Section
  6.5 Selling Products Section
  6.6 Quotation Section
  6.7 Latest Blogs Section
  6.8 Newsletter Section
  6.9 Instagram Section
  6.10 Footer
    - Footer Top
    - Footer Bottom

7. OTHER PAGES
  7.1 Product detail
  7.2 Shop page


/*--------------------------------------------------------------
/** 1. VARIABLES
--------------------------------------------------------------*/
:root {
  /* widths for rows and containers
     */
  --header-height: 160px;
  --header-height-min: 80px;
}

/* on mobile devices below 600px
 */
@media screen and (max-width: 600px) {
  :root {
    --header-height: 100px;
    --header-height-min: 80px;
  }
}

/* Theme Colors */
:root {
  --accent-color: #FFC43F;
  --dark-color: #222222;
  --light-dark-color: #727272;
  --light-color: #fff;
  --grey-color: #a3a3a3;
  --light-grey-color: #fafafa;
  --primary-color: #6995B1;
  --light-primary-color: #eef1f3;
}

/* Fonts */
:root {
  --body-font: "Open Sans", sans-serif;
  --heading-font: "Nunito", sans-serif;
}

body {
  --bs-link-color: #333;
  --bs-link-hover-color: #333;

  --bs-link-color-rgb: 40, 40, 40;
  --bs-link-hover-color-rgb: 0, 0, 0;

  /* --bs-link-color: #FFC43F;
  --bs-link-hover-color: #FFC43F; */

  --bs-light-rgb: 248, 248, 248;

  --bs-font-sans-serif: "Open Sans", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 2;
  --bs-body-color: #747474;

  --bs-primary: #FFC43F;
  --bs-primary-rgb: 255, 196, 63;

  --bs-success: #a3be4c;
  --bs-success-rgb: 163, 190, 76;

  --bs-primary-bg-subtle: #FFF9EB;
  --bs-success-bg-subtle: #eef5e5;

  --bs-border-color: #F7F7F7;

  --bs-secondary-rgb: 230, 243, 251;
  /* --bs-success-rgb: 238, 245, 228; */
  --bs-danger-rgb: 249, 235, 231;
  --bs-warning-rgb: 255, 249, 235;
  --bs-info-rgb: 230, 243, 250;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #ffc43f;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #f7a422;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ffc43f;
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #d3d7dd;
  --bs-btn-disabled-border-color: transparent;
}

.btn-outline-primary {
  --bs-btn-color: #ffc43f;
  --bs-btn-border-color: #ffc43f;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ffc107;
  --bs-btn-hover-border-color: #ffc107;
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ffc107;
  --bs-btn-active-border-color: #ffc107;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff3cd;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #fff3cd;
  --bs-gradient: none;
}

.btn-outline-light {
  --bs-btn-color: #747474;
  --bs-btn-border-color: #EFEFEF;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #EFEFEF;
  --bs-btn-hover-border-color: #EFEFEF;
  --bs-btn-focus-shadow-rgb: 248, 249, 250;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #EFEFEF;
  --bs-btn-active-border-color: #EFEFEF;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #EFEFEF;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #EFEFEF;
  --bs-gradient: none;
}

.btn-warning {
  --bs-btn-color: #747474;
  --bs-btn-bg: #FCF7EB;
  --bs-btn-border-color: #FCF7EB;
  --bs-btn-hover-color: #747474;
  --bs-btn-hover-bg: #FFECBE;
  --bs-btn-hover-border-color: #FFECBE;
  --bs-btn-focus-shadow-rgb: 217, 164, 6;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #FFECBE;
  --bs-btn-active-border-color: #FFECBE;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #FCF7EB;
  --bs-btn-disabled-border-color: #FCF7EB;
}

.btn-success {
  --bs-btn-color: #222;
  --bs-btn-bg: #EEF5E4;
  --bs-btn-border-color: #EEF5E4;
  --bs-btn-hover-color: #222;
  --bs-btn-hover-bg: #9de3c2;
  --bs-btn-hover-border-color: #9de3c2;
  --bs-btn-focus-shadow-rgb: 60, 153, 110;
  --bs-btn-active-color: #222;
  --bs-btn-active-bg: #9de3c2;
  --bs-btn-active-border-color: #9de3c2;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #222;
  --bs-btn-disabled-bg: #EEF5E4;
  --bs-btn-disabled-border-color: #EEF5E4;
}

.btn-danger {
  --bs-btn-color: #222;
  --bs-btn-bg: #FFEADA;
  --bs-btn-border-color: #FFEADA;
  --bs-btn-hover-color: #222;
  --bs-btn-hover-bg: #ecc9af;
  --bs-btn-hover-border-color: #ecc9af;
  --bs-btn-focus-shadow-rgb: 60, 153, 110;
  --bs-btn-active-color: #222;
  --bs-btn-active-bg: #ecc9af;
  --bs-btn-active-border-color: #ecc9af;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #222;
  --bs-btn-disabled-bg: #FFEADA;
  --bs-btn-disabled-border-color: #FFEADA;
}

body {
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--dark-color);
  font-weight: 700;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
}

.breadcrumb.text-white {
  --bs-breadcrumb-divider-color: #fff;
  --bs-breadcrumb-item-active-color: var(--bs-primary);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--bs-primary);
}

.nav-pills .nav-link {
  --bs-nav-pills-link-active-color: #111;
  --bs-nav-pills-link-active-bg: #f1f1f1;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  --bs-gutter-x: 1rem;
}

/*----------------------------------------------*/
/* 6. SITE STRUCTURE */
/*----------------------------------------------*/
/* 6.1 Header
--------------------------------------------------------------*/
/* Preloader */
.preloader-wrapper {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 111;
  background: #fff;
}

.preloader-wrapper .preloader {
  margin: 20% auto 0;
  transform: translateZ(0);
}

.preloader:before,
.preloader:after {
  content: '';
  position: absolute;
  top: 0;
}

.preloader:before,
.preloader:after,
.preloader {
  border-radius: 50%;
  width: 2em;
  height: 2em;
  animation: animation 1.2s infinite ease-in-out;
}

.preloader {
  animation-delay: -0.16s;
}

.preloader:before {
  left: -3.5em;
  animation-delay: -0.32s;
}

.preloader:after {
  left: 3.5em;
}

@media screen and (max-width: 767px) {
  .preloader-wrapper .preloader {
    margin: 50% auto 0;
  }
}

@keyframes animation {

  0%,
  80%,
  100% {
    box-shadow: 0 2em 0 -1em var(--accent-color);
  }

  40% {
    box-shadow: 0 2em 0 0 var(--accent-color);
  }
}

/* *** Start editing below this line *** */
.container-fluid {
  max-width: 1600px;
}

.banner-blocks {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 2rem;
}

.block-1 {
  grid-area: 1 / 1 / 3 / 8;
}

.block-2 {
  grid-area: 1 / 8 / 2 / 13;
}

.block-3 {
  grid-area: 2 / 8 / 3 / 13;
}

@media screen and (max-width:1140px) {
  .banner-blocks {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }

  .block-1 {
    grid-area: 1 / 1 / 3 / 2;
  }

  .block-2 {
    grid-area: 3 / 1 / 4 / 2;
  }

  .block-3 {
    grid-area: 4 / 1 / 5 / 2;
  }

}

/* banner ad */
.banner-ad {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.banner-ad.blue {
  background: #e6f3fb;
}

.banner-ad .swiper-pagination {
  bottom: 40px;
  left: 0;
  right: 0;
}

.banner-ad .swiper-pagination .swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  margin: 4px;
  background: #FFF;
  opacity: 1;
  transition: background 0.3s ease-out;
}

.banner-ad .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #FFC43F;
}

.banner-ad .swiper-slide {
  min-height: 630px;
  display: flex;
}

/* .banner-ad .banner-content {
  padding: 52px;
}
.banner-ad.large .banner-content {
  padding: 90px;
} */
.banner-ad .banner-content .categories {
  font-size: 37px;
  text-transform: capitalize;
  color: var(--dark-color);
}

.banner-ad .banner-content .sale {
  position: relative;
  display: inline-block;
}

.banner-ad .banner-content .sale:before {
  content: '';
  width: 80px;
  border-bottom: 1px solid #111;
  position: absolute;
  bottom: 6px;
}

.banner-ad .banner-content .sale:after {
  content: 'SALE';
  font-family: var(--body-font);
  position: absolute;
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #252525;
  bottom: 0;
  right: 0;
}

.banner-ad .banner-content .banner-title {
  letter-spacing: 0.02em;
  font-size: 33px;
}

.banner-ad.large .banner-content .categories {
  color: var(--accent-color);
}

.banner-ad.large .banner-content .banner-title {
  font-size: 54px;
}

/* Swiper carousel */
.swiper-prev,
.swiper-next {
  width: 38px;
  height: 38px;
  line-height: 38px;
  background: #F1F1F1;
  color: #222222;
  padding: 0;
  text-align: center;
  border-radius: 10px;
  --bs-btn-border-color: transparent;
  --bs-btn-active-bg: #ec9b22;
  --bs-btn-active-border-color: transparent;
  --bs-btn-hover-bg: #FFC43F;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-disabled-color: #ccc;
  --bs-btn-disabled-bg: #eaeaea;
  --bs-btn-disabled-border-color: #eaeaea
}

.swiper-prev:hover,
.swiper-next:hover {
  background: #FFC43F;
}

.btn-link {
  margin-right: 30px;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  text-align: right;
  text-transform: capitalize;
  color: #787878;
}

/* category carousel */
.category-carousel .category-item {
  background: #FFFFFF;
  border: 1px solid #FBFBFB;
  box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  text-align: center;
  padding: 60px 20px;
  margin: 20px 0;
  transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}

.category-carousel .category-item:hover {
  transform: translate3d(0, -10px, 0);
  box-shadow: 0px 21px 44px rgba(0, 0, 0, 0.08);
}

.category-carousel .category-item .category-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 27px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #222222;
  margin-top: 20px;
}

/* brand carousel */
.brand-carousel .brand-item {
  background: #FFFFFF;
  border: 1px solid #FBFBFB;
  box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 16px;
}

.brand-carousel .brand-item img {
  width: 100%;
  border-radius: 12px;
}

.brand-carousel .brand-item .brand-details {
  margin-left: 15px;
}

.brand-carousel .brand-item .brand-title {
  margin: 0;
}

/* product tabs */
.product-tabs .nav-tabs {
  justify-content: flex-end;
  border: none;

  --bs-nav-link-hover-color: #111;
  --bs-nav-link-color: #555;
  --bs-nav-tabs-link-border-color: #fff;
  --bs-nav-tabs-link-hover-border-color: transparent;
  --bs-nav-tabs-link-active-border-color: #fff;
}

.product-tabs .nav-tabs .nav-link.active,
.product-tabs .nav-tabs .nav-item.show .nav-link {
  /* border: none; */
  border-bottom: 3px solid var(--accent-color);
}

/* product-grid */
/* .product-grid {
  gap: 25px;
} */
.product-item {
  position: relative;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #FBFBFB;
  box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease-out;
}

.product-item:hover {
  box-shadow: 0px 21px 44px rgba(0, 0, 0, 0.08);
}

.product-item h3 {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  text-transform: capitalize;
  color: #333333;
  margin: 0;
}

.product-item figure {
  background: #F9F9F9;
  border-radius: 12px;
  text-align: center;
}

.product-item figure img {
  max-height: 210px;
  height: auto;
}

.product-item .btn-wishlist {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d8d8d8;
  transition: all 0.3s ease-out;
}

.product-item .btn-wishlist:hover {
  background: rgb(240, 56, 56);
  color: #fff;
}

.product-item .qty {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9D9D9D;
}

.product-item .rating {
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  text-transform: capitalize;
  color: #222222;
}

.product-item .rating iconify-icon {
  color: #FFC43F;
}

.product-item .price {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
  text-transform: capitalize;
  color: #222222;
}

.product-item .product-qty {
  width: 85px;
}

.product-item .btn-link {
  text-decoration: none;
}

.product-item #quantity {
  height: auto;
  width: 28px;
  text-align: center;
  border: none;
  margin: 0;
  padding: 0;
}

.product-item .btn-number {
  width: 26px;
  height: 26px;
  line-height: 1;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  color: #222;
  padding: 0;
}

/* cart */
.cart .product-qty {
  min-width: 130px;
}

/* floating image */
.image-float {
  margin-top: -140px;
  margin-bottom: -140px;
}

@media screen and (max-width:991px) {
  .image-float {
    margin: 0;
  }
}

/* post item */
.post-item .post-meta {
  font-size: 0.8rem;
  line-height: 1;
}

.post-item .post-meta svg {
  margin-right: 5px;
}

@media screen and (max-width: 991px) {

  /* offcanvas menu */
  .offcanvas-body .nav-item {
    font-weight: 700;
    border-bottom: 1px solid #d1d1d1;
  }

  .offcanvas-body .filter-categories {
    width: 100%;
    margin-bottom: 20px !important;
    border: 1px solid #d1d1d1 !important;
    padding: 14px;
    border-radius: 8px;
  }

  /* dropdown-menu */
  .dropdown-menu {
    padding: 0;
    border: none;
    line-height: 1.4;
    font-size: 0.9em;
  }

  .dropdown-menu a {
    padding-left: 0;
  }

  .dropdown-toggle::after {
    position: absolute;
    right: 0;
    top: 21px;
  }
}

/* single product */
/* product-thumbnail-slider */
.product-thumbnail-slider {
  height: 740px;
}

@media screen and (max-width:992px) {
  .product-thumbnail-slider {
    margin-top: 20px;
    height: auto;
  }
}

@media screen and (min-width:992px) {
  .product-thumbnail-slider {
    height: 520px;
  }
}

@media screen and (min-width:1200px) {
  .product-thumbnail-slider {
    height: 740px;
  }
}

.section-title {
  position: relative;
}

/* section title with fading lines */
.section-title h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 28px;
  margin: 0;
  white-space: nowrap;
}

.title-line {
  width: 120px;
  height: 1px;
}

.title-line-left {
  background: linear-gradient(to right, transparent, #e5779b);
}

.title-line-right {
  background: linear-gradient(to left, transparent, #e5779b);
}

/* collection carousel */
.collection-carousel-wrapper {
  padding: 0 10px;
}

.collection-item figure {
  border-radius: 16px;
  overflow: hidden;
  background: #f9f9f9;
  margin: 0;
}

.collection-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.collection-caption {
  text-align: center;
  margin-top: 20px;
}

.collection-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark-color);
  margin: 0;
}

/* side arrows, vertically centered on the image */
.collection-carousel-wrapper .swiper-prev,
.collection-carousel-wrapper .swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.shop-collections-wrapper .swiper-prev,
.shop-collections-wrapper .swiper-next {
  top: 100px;
  /* half of .collection-item img's 200px height */
  transform: translateY(-50%);
}

.collection-carousel-wrapper .swiper-prev {
  left: -10px;
}

.collection-carousel-wrapper .swiper-next {
  right: -10px;
}

@media screen and (max-width: 767px) {
  .collection-carousel .collection-item img {
    height: 200px;
  }

  .collection-carousel-wrapper .swiper-prev,
  .collection-carousel-wrapper .swiper-next {
    top: 50%;
  }

  .shop-collections-wrapper .swiper-prev,
  .shop-collections-wrapper .swiper-next {
    top: 100px;
    /* half of .collection-item img's 200px height */
    transform: translateY(-50%);
  }
}

/* ------------------------------------
   6.x Video Section (Shop By Video)
------------------------------------- */
.video-carousel-wrapper {
  padding: 0;
}

.video-carousel .swiper-slide {
  width: auto;
}

.video-item {
  text-align: center;
}

.video-circle {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #A9628C;
  padding: 4px;
  background: #fff;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #f1f1f1;
  pointer-events: none;
}

/* side arrows, vertically centered on the circles */
.video-carousel-wrapper .swiper-prev,
.video-carousel-wrapper .swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.video-carousel-wrapper .swiper-prev {
  left: -10px;
}

.video-carousel-wrapper .swiper-next {
  right: -10px;
}

/* Responsive circle sizing */
@media screen and (max-width: 1140px) {
  .video-circle {
    width: 170px;
    height: 170px;
  }

  .video-carousel-wrapper .swiper-prev,
  .video-carousel-wrapper .swiper-next {
    top: 50%;
  }
}

@media screen and (max-width: 991px) {
  .video-circle {
    width: 150px;
    height: 150px;
  }

  .video-carousel-wrapper .swiper-prev,
  .video-carousel-wrapper .swiper-next {
    top: 50%;
  }
}

@media screen and (max-width: 767px) {
  .video-circle {
    width: 120px;
    height: 120px;
  }

  .video-carousel-wrapper .swiper-prev,
  .video-carousel-wrapper .swiper-next {
    top: 50%;
  }

  .svg-nav-icon {
    width: 20px;
    height: 20px;
  }
}

/*------------------------------------------------
   6.x Collections Section (Summer in the Valley)
   -> Append this block to style.css, e.g. right
   after the "video-carousel" rules at the bottom.
--------------------------------------------------*/
.collections-section {
  padding: 5.5rem 0rem;
  background-color: #fffcf6 !important;
}

.collections-section-alt {
  background-color: #faf7f2;
  /* subtle off-white/cream, tweak to match your palette */
}

/* Heading — overrides the default h2 (Nunito/700/dark)
   with a serif, letter-spaced treatment for this section only */
.collections-section .section-title {
  margin-bottom: 40px;
}


/* Tile */
.collection-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  /* border: 1px solid #f0f0f0; */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: box-shadow 0.25s ease;
}

.collection-tile:hover {
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.10);
  /* transform: translateY(-3px); */
}

.collection-tile:hover .collection-tile-caption {
  color: var(--primary-color);
}

/* Image / fallback container — always 1:1 */
.collection-tile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
}

.collection-tile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease-out;
}

.collection-tile:hover .collection-tile-img {
  transform: scale(1.05);
}

/* Dark overlay is no longer needed — text lives below the image now */
.collection-tile-overlay {
  display: none;
}

/* Fallback fills the same 1:1 box as a real image would */
.collection-tile-fallback {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg,
      hsl(var(--tile-hue), 45%, 88%) 0%,
      hsl(var(--tile-hue), 35%, 78%) 100%);
}

.collection-tile-fallback::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.05) 0px,
      rgba(0, 0, 0, 0.05) 1px,
      transparent 1px,
      transparent 14px);
  pointer-events: none;
}

.collection-tile--category .collection-tile-img {
  object-fit: cover;
}

.collection-tile-info--centered {
  text-align: center;
}

.collection-tile-caption--wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.fallback-initial {
  position: relative;
  font-size: 2.75rem;
  font-weight: 700;
  color: hsl(var(--tile-hue), 30%, 40%);
  opacity: 0.45;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* Accessibility: visible keyboard focus */
.collection-tile:focus-visible {
  outline: 3px solid #2E6E6B;
  outline-offset: 3px;
}

/* Details block, below the image */
.collection-tile-info {
  padding: 0.85rem 1rem 1rem;
}

.collection-tile-caption {
  display: block;
  color: var(--dark-color);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.2s ease;
}

.collection-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.2rem;
}

.collection-tile-price {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Responsive */
@media screen and (max-width: 575px) {
  .collections-section .section-title h2 {
    font-size: 20px;
    gap: 10px;
  }

  .collection-tile-caption {
    font-size: 13px;
  }

  .fallback-initial {
    font-size: 2rem;
  }

  .collection-tile-info {
    padding: 0.65rem 0.75rem 0.8rem;
  }
}

/* Sold-out badge overlay on the tile image */
.collection-tile-soldout {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: var(--light-dark-color);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 10px;
}

/* Dim the image slightly when the item is sold out */
.collection-tile-media.is-sold-out .collection-tile-img,
.collection-tile-media.is-sold-out .collection-tile-fallback {
  opacity: 0.55;
}

.btn-sold-out {
  background: var(--grey-color) !important;
  color: var(--light-dark-color);
  cursor: not-allowed;
}

/*--------------------------------------------------------------
  Product Detail Page — extends the FoodMart theme tokens
  already defined in style.css (--accent-color, --dark-color,
  --heading-font, --body-font, etc.)
--------------------------------------------------------------*/

.product-detail-section {
  padding: 2.5rem 0 5rem;
}

.product-breadcrumb {
  margin-bottom: 28px;
}

.product-breadcrumb .breadcrumb-item,
.product-breadcrumb .breadcrumb-item a {
  font-size: 13px;
  text-transform: capitalize;
  color: var(--light-dark-color);
  text-decoration: none;
}

.product-breadcrumb .breadcrumb-item.active {
  color: var(--dark-color);
}

/* ---------- Gallery ---------- */
.product-gallery {
  display: flex;
  gap: 16px;
}

.product-thumbs {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 84px;
  flex-shrink: 0;
  gap: 12px;
  /* replaces the padding that was on .thumb-list */
}

.thumb-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--grey-color);
  background: #fff;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.thumb-nav:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.thumb-list {
  width: 100%;
  height: 340px;
  /* was 420px — now matches 5 slides + 4 gaps exactly */
  padding: 0;
  /* was 12px 0 — padding was stealing layout space from Swiper */
  overflow: hidden;
}

.thumb-item {
  height: 76px !important;
  width: 76px !important;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--light-grey-color);
  cursor: pointer;
  opacity: 0.65;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  display: block;
}

.swiper-slide-thumb-active .thumb-item {
  border-color: var(--accent-color);
  opacity: 1;
}

.product-main-image {
  position: relative;
  flex-grow: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--light-grey-color);
  border: 1px solid #FBFBFB;
}

.product-main-image .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  /* object-fit: contain; */
  padding: 16px;
}

.gallery-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  background: var(--dark-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}

.gallery-wishlist-fab {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--grey-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--light-dark-color);
  transition: all 0.2s ease-out;
}

.gallery-wishlist-fab:hover {
  background: rgb(240, 56, 56);
  border-color: rgb(240, 56, 56);
  color: #fff;
}

.product-main-image .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.7;
}

.product-main-image .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent-color);
}

@media screen and (max-width: 767px) {
  .product-thumbs {
    display: none;
  }

  .thumb-list {
    height: 428px;
  }
}

/* ---------- Info panel ---------- */
.product-info-panel {
  padding-left: 8px;
}

.product-brand {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 10px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-title {
  font-size: 28px;
  line-height: 1.3;
  margin: 0 0 14px;
}

.share-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--grey-color);
  background: #fff;
  color: var(--dark-color);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-out;
}

.share-btn:hover {
  background: var(--light-grey-color);
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rating-badge iconify-icon {
  color: var(--accent-color);
  font-size: 14px;
}

.rating-count {
  font-size: 13px;
  color: var(--light-dark-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.price-current {
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark-color);
}

.price-original {
  font-size: 16px;
  color: var(--light-dark-color);
  text-decoration: line-through;
}

.price-discount {
  font-size: 15px;
  font-weight: 600;
  color: #3c996e;
}

.tax-note {
  font-size: 13px;
  color: var(--light-dark-color);
  margin-bottom: 18px;
}

.offer-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--light-grey-color);
  border: 1px dashed var(--grey-color);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--dark-color);
}

.offer-banner strong {
  color: #b5495b;
}

.offer-banner iconify-icon {
  color: var(--light-dark-color);
}

/* ---------- CTA ---------- */
.cta-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 10px;
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  width: 128px;
  background: var(--light-grey-color);
  border-radius: 10px;
  padding: 0 4px;
}

.qty-btn {
  width: 38px;
  height: 100%;
  min-height: 54px;
  border: none;
  background: transparent;
  color: var(--dark-color);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease-out;
}

.qty-btn:hover {
  color: var(--primary-color);
}

.qty-input {
  width: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 16px;
  color: var(--dark-color);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-to-bag {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--dark-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.2s ease-out;
}

.btn-add-to-bag iconify-icon {
  font-size: 17px;
}

.btn-add-to-bag:hover {
  background: #000;
}

.btn-wishlist-square {
  width: 56px;
  flex-shrink: 0;
  border: 1px solid var(--grey-color);
  border-radius: 10px;
  background: #fff;
  font-size: 20px;
  color: var(--dark-color);
  transition: all 0.2s ease-out;
}

.btn-wishlist-square:hover {
  background: rgb(240, 56, 56);
  border-color: rgb(240, 56, 56);
  color: #fff;
}

.delivery-check-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--light-dark-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 26px;
}

.delivery-check-link iconify-icon {
  font-size: 14px;
}

@media screen and (max-width: 400px) {
  .cta-row {
    flex-wrap: wrap;
  }

  .qty-stepper {
    width: 30%;
    order: 1;
  }

  .btn-add-to-bag {
    order: 2;
    /* width: 100%; */
  }

  /* .btn-wishlist-square {
    order: 3;
    width: 100%;
  } */
}

@media screen and (min-width: 780px) {
  .btn-add-to-bag {
    flex-grow: 0;
    width: 400px;
  }
}

/* ---------- Size selector ---------- */
.size-selector {
  margin-bottom: 26px;
}

.selector-label {
  display: block;
  font-size: 14px;
  color: var(--light-dark-color);
  margin-bottom: 10px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-pill {
  min-width: 68px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--grey-color);
  background: #fff;
  color: var(--dark-color);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease-out;
}

.size-pill:hover:not(.disabled) {
  border-color: var(--dark-color);
}

.size-pill.active {
  background: var(--dark-color);
  border-color: var(--dark-color);
  color: #fff;
}

.size-pill.disabled {
  color: #c8c8c8;
  text-decoration: line-through;
  background: var(--light-grey-color);
  cursor: not-allowed;
}

/* ---------- Highlights / description ---------- */
.highlights-title,
.description-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.product-highlights {
  margin-bottom: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--light-grey-color);
}

.product-highlights ul {
  margin: 0;
  padding-left: 18px;
  color: var(--light-dark-color);
  font-size: 14px;
}

.product-highlights li {
  margin-bottom: 6px;
}

.product-description {
  padding-top: 22px;
  border-top: 1px solid var(--light-grey-color);
}

.product-description p {
  color: var(--light-dark-color);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

/* ---------- Mobile sticky buy bar ---------- */
.mobile-buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-buy-bar .price-current {
  font-size: 18px;
}

.mobile-buy-bar .price-original {
  font-size: 13px;
  margin-left: 6px;
}

.mobile-buy-bar .btn-add-to-bag {
  flex-grow: 0;
  padding: 12px 28px;
}

@media screen and (max-width: 991px) {
  .product-info-panel {
    padding-left: 8px;
    padding-top: 8px;
  }
}

.cart-product-image {
  height: 75px;
  width: 75px;
  border-radius: 4px;
}

.ec-page {
  background: var(--ec-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ec-ink);
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.ec-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ec-ink-faint);
}

.ec-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ec-ink);
  margin-bottom: 0;
}

.ec-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ec-ink-soft);
  text-decoration: none;
  transition: color .15s ease;
}

.ec-back-link:hover {
  color: var(--ec-accent);
}

.ec-back-link i {
  font-size: .7rem;
}

/* ---------- Cart panel ---------- */
.ec-panel {
  background: var(--ec-surface);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius);
  box-shadow: var(--ec-shadow);
}

.ec-panel-header {
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--ec-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ec-panel-header h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  color: var(--ec-ink);
}

.ec-count-pill {
  font-size: .75rem;
  font-weight: 600;
  color: var(--ec-ink-soft);
  background: var(--ec-border-soft);
  padding: .2rem .6rem;
  border-radius: 999px;
}

.ec-item-row {
  padding: 1.25rem 1.375rem;
  border-bottom: 1px solid var(--ec-border-soft);
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}

.ec-item-row:last-child {
  border-bottom: none;
}

.ec-item-thumb {
  height: 84px;
  width: 84px;
  min-width: 84px;
  object-fit: cover;
  border-radius: var(--ec-radius-sm);
  border: 1px solid var(--ec-border);
  background: var(--ec-bg);
}

.ec-item-body {
  flex: 1;
  min-width: 0;
}

.ec-item-name {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ec-ink);
  margin-bottom: .3rem;
  line-height: 1.35;
}

.ec-item-meta {
  font-size: .8125rem;
  color: var(--ec-ink-soft);
  margin-bottom: .6rem;
}

.ec-item-meta .ec-unit-price {
  font-weight: 600;
  color: var(--ec-ink);
}

.ec-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .1rem;
}

.ec-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ec-qty-chip {
  font-size: .75rem;
  font-weight: 600;
  color: var(--ec-ink-soft);
  background: var(--ec-bg);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-sm);
  padding: .25rem .65rem;
}

.ec-remove-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ec-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: color .15s ease;
}

.ec-remove-btn:hover {
  color: var(--ec-danger);
}

.ec-item-total {
  text-align: right;
  white-space: nowrap;
  margin-left: auto;
}

.ec-item-total .amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ec-ink);
  display: block;
}

/* ---------- Empty state ---------- */
.ec-empty {
  padding: 4.5rem 2rem;
  text-align: center;
}

.ec-empty-icon {
  height: 68px;
  width: 68px;
  border-radius: 50%;
  background: var(--ec-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ec-ink-faint);
  margin-bottom: 1.25rem;
}

.ec-empty h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.ec-empty p {
  font-size: .875rem;
  color: var(--ec-ink-soft);
  margin-bottom: 1.5rem;
}

/* ---------- Summary ---------- */
.ec-summary {
  position: sticky;
  top: 1.25rem;
}

.ec-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  padding: .5rem 0;
  color: var(--ec-ink-soft);
}

.ec-summary-row span:last-child {
  color: var(--ec-ink);
  font-weight: 600;
}

.ec-tax-line {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--ec-ink-faint);
  padding: .15rem 0;
}

.ec-summary-divider {
  border-top: 1px dashed var(--ec-border);
  margin: .75rem 0;
}

.ec-grand-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: .25rem;
}

.ec-grand-row .label {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--ec-ink);
}

.ec-grand-row .amount {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ec-ink);
}

.ec-cta {
  background: var(--ec-accent);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  border-radius: var(--ec-radius-sm);
  padding: .8rem 1rem;
  width: 100%;
  transition: filter .15s ease, transform .05s ease;
  box-shadow: var(--ec-shadow-raised);
}

.ec-cta:hover {
  filter: brightness(1.08);
  color: #fff;
}

.ec-cta:active {
  transform: translateY(1px);
}

.ec-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--ec-ink-faint);
  margin-top: .75rem;
}

/* ---------- Coupon ---------- */
.ec-coupon-input {
  border-radius: var(--ec-radius-sm) 0 0 var(--ec-radius-sm) !important;
  border-color: var(--ec-border) !important;
  font-size: .875rem;
}

.ec-coupon-btn {
  border-radius: 0 var(--ec-radius-sm) var(--ec-radius-sm) 0 !important;
  font-weight: 600;
  font-size: .875rem;
  border-color: var(--ec-border);
  color: var(--ec-ink);
  background: var(--ec-bg);
}

.ec-coupon-btn:hover {
  background: var(--ec-border-soft);
}

.ec-coupon-input,
.ec-coupon-btn {
  min-width: 0;
}

/* ---------- Modal ---------- */
#confirmOrder .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
}

#confirmOrder .modal-header {
  background: var(--ec-surface);
  border-bottom: 1px solid var(--ec-border-soft);
  padding: 1.25rem 1.5rem;
}

#confirmOrder .modal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ec-ink);
  display: flex;
  align-items: center;
  gap: .5rem;
}

#confirmOrder .modal-title i {
  color: var(--ec-accent);
}

#confirmOrder .modal-body {
  padding: 1.5rem;
  background: var(--ec-surface);
}

#confirmOrder .form-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ec-ink-soft);
}

#confirmOrder .form-control {
  border-color: var(--ec-border);
  font-size: .875rem;
  padding: .55rem .75rem;
}

#confirmOrder .form-control:focus {
  border-color: var(--ec-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ec-accent) 18%, transparent);
}

.ec-order-type-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--ec-border);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ec-ink);
  cursor: pointer;
}

.order-type-group .btn-check:checked+.ec-order-type-label {
  background: var(--ec-accent);
  border-color: var(--ec-accent);
  color: #fff;
}

.ec-advance-box {
  background: var(--ec-bg);
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-sm);
  padding: .9rem;
}

#confirmOrder .modal-footer {
  background: var(--ec-bg);
  border-top: 1px solid var(--ec-border-soft);
  padding: 1.25rem 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .ec-summary {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .ec-page {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .ec-page .container-fluid {
    padding-left: .875rem;
    padding-right: .875rem;
  }

  .ec-title {
    font-size: 1.25rem;
  }

  .ec-back-link span {
    display: none;
  }

  .ec-panel-header {
    padding: 1rem;
  }

  .ec-item-row {
    padding: .875rem 1rem;
    gap: .75rem;
  }

  .ec-item-thumb {
    height: 60px;
    width: 60px;
    min-width: 60px;
  }

  .ec-item-name {
    font-size: .875rem;
  }

  .ec-item-meta {
    font-size: .75rem;
    margin-bottom: .45rem;
  }

  .ec-item-footer {
    gap: .4rem .75rem;
  }

  .ec-item-actions {
    gap: .65rem;
  }

  .ec-qty-chip {
    font-size: .7rem;
    padding: .2rem .5rem;
  }

  .ec-remove-btn {
    font-size: .75rem;
  }

  .ec-item-total .amount {
    font-size: .9375rem;
  }

  .ec-empty {
    padding: 3rem 1.25rem;
  }

  .ec-grand-row .amount {
    font-size: 1.25rem;
  }

  #confirmOrder .modal-body {
    padding: 1.125rem;
  }

  #confirmOrder .modal-header,
  #confirmOrder .modal-footer {
    padding: 1rem 1.125rem;
  }

  .ec-advance-box .row.g-2>div {
    margin-bottom: .5rem;
  }
}

@media (max-width: 360px) {
  .ec-item-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .ec-item-total {
    margin-left: 0;
  }
}


.catalog-page {
  --cat-surface: #FFFFFF;
  --cat-surface-2: #F7F7F1;
  --cat-ink: #1B1E1B;
  --cat-ink-soft: #6A6D63;
  --cat-line: #DCDECF;
  --cat-accent: #2E4A3D;
}

.catalog-page * {
  box-sizing: border-box;
}

.catalog-page button,
.catalog-page input {
  font: inherit;
  color: inherit;
}

.catalog-page a {
  text-decoration: none;
}

.catalog-page :focus-visible {
  outline: 2px solid var(--cat-accent);
  outline-offset: -2px;
}

/* ---------- Header ---------- */
.header-class {
  border-bottom: 1px solid var(--cat-line);
  padding: 20px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header-class h1 {
  font-weight: 600;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}

.header-class p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--cat-ink-soft);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cat-surface);
  border: 1px solid var(--cat-line);
  padding: 7px 12px;
  min-width: 220px;
  margin: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 100%;
  color: var(--cat-ink);
}

.search-box svg {
  flex-shrink: 0;
}

/* ---------- Layout ---------- */
.catalog-layout {
  display: flex;
  align-items: flex-start;
}

/* ---------- Sidebar tree ---------- */
nav.tree {
  width: 280px;
  flex-shrink: 0;
  min-height: calc(100vh - 77px);
  padding-top: 12px;
}

/* Collection accordion (native <details>, no JS) */
.collection {
  border: none;
}

.collection>summary {
  list-style: none;
  cursor: pointer;
}

.collection>summary::-webkit-details-marker,
.collection>summary::marker {
  display: none;
  content: "";
}

.collection>summary .chevron svg {
  transition: transform 0.15s ease;
}

.collection[open]>summary .chevron svg {
  transform: rotate(90deg);
}

/* Shared row styling — used by <summary> and <a> alike */
.leader-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 14px;
  border-left: 2px solid transparent;
  text-align: left;
}

.leader-row.depth-1 {
  padding-left: 30px;
}

.leader-row.active {
  background: var(--cat-surface-2);
  border-left: 2px solid var(--cat-accent);
}

.leader-row .chevron {
  width: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.leader-row .chevron svg {
  display: block;
}

.leader-row .label {
  font-weight: 400;
  font-size: 13.5px;
  color: var(--cat-ink-soft);
  white-space: nowrap;
}

.leader-row.depth-0 .label {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 14.5px;
}

.leader-row.active .label {
  color: var(--cat-ink);
}

.leader-row .dots {
  flex: 1;
  border-bottom: 1px dotted var(--cat-line);
  margin-bottom: 3px;
  min-width: 8px;
}

.leader-row .count {
  font-size: 11.5px;
  color: var(--cat-ink-soft);
  flex-shrink: 0;
}

/* ---------- Main content ---------- */
.catalog-main {
  flex: 1;
  padding: 28px 36px;
  border-left: 1px solid var(--cat-line);
}

.catalog-page .breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--cat-ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.catalog-page .breadcrumb svg {
  flex-shrink: 0;
}

.catalog-page .breadcrumb .current {
  color: var(--cat-ink);
}

.catalog-main h2 {
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 4px;
}

.result-count {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--cat-ink-soft);
}


/* ---------- Mobile tree toggle (checkbox hack, no JS) ---------- */
.tree-toggle-checkbox {
  display: none;
}

.tree-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--cat-line);
  background: var(--cat-surface);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

.tree-toggle .current-path {
  font-size: 11px;
  color: var(--template-color, var(--cat-accent));
  font-weight: 600;
}

/* ==================================================================
   RESPONSIVE — tablet
   ================================================================== */
@media (max-width: 900px) {
  .catalog-main {
    padding: 24px 24px;
  }

  nav.tree {
    width: 240px;
  }
}

/* ==================================================================
   RESPONSIVE — mobile
   ================================================================== */
@media (max-width: 640px) {
  .header-class {
    padding: 16px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header-class h1 {
    font-size: 20px;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .catalog-layout {
    flex-direction: column;
  }

  /* Sidebar becomes a collapsible panel above the content */
  nav.tree {
    width: 100%;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--cat-line);
    padding-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .tree-toggle-checkbox:checked~nav.tree {
    max-height: 70vh;
    overflow-y: auto;
    padding-top: 8px;
  }

  .tree-toggle {
    display: flex;
  }

  .catalog-main {
    padding: 20px 6px;
    border-left: none;
  }

  .catalog-main h2 {
    font-size: 21px;
  }

  .breadcrumb {
    font-size: 11px;
    flex-wrap: wrap;
    row-gap: 4px;
  }
}

/*------------------------------------------------
   9. Search Results — Empty State
--------------------------------------------------*/
.empty-state {
  border: 1px dashed var(--grey-color);
  padding: 56px 24px;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.empty-state .empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--light-grey-color);
  border: 1px solid var(--grey-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.empty-state .empty-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-color);
  opacity: 1;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: var(--light-dark-color);
  line-height: 1.6;
}

.empty-state .search-term {
  font-weight: 600;
  color: var(--dark-color);
  background: var(--light-grey-color);
  padding: 1px 8px;
  border: 1px solid var(--grey-color);
}

.empty-state .empty-tips {
  text-align: left;
  background: var(--light-grey-color);
  border: 1px solid var(--grey-color);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--light-dark-color);
}

.empty-state .empty-tips p {
  font-weight: 600;
  color: var(--dark-color);
  margin: 0 0 8px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-state .empty-tips ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

.empty-state .browse-all {
  display: inline-block;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  letter-spacing: 0.01em;
}

.empty-state .browse-all:hover {
  background: var(--accent-color);
  color: var(--light-color);
}

@media screen and (max-width: 640px) {
  .empty-state {
    padding: 40px 18px;
  }
}

@media (max-width: 767.98px) {
  .svg-nav-icon {
    width: 20px;
    height: 20px;
  }
}

.view-all-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 600;

  align-items: center;
  border: none;
  color: #b5495b;
  background: none;

  text-decoration: none;
  white-space: nowrap;
}

.view-all-link::after {
  content: "→";
  font-size: 0.8rem;
}

.view-all-link:hover {
  background: none;
  color: #8f3a48;
}

@media (max-width: 991.98px) {
  .view-all-link {
    position: static;
    display: inline-flex;
    align-items: center;
    margin-top: 22px;
  }
}

/* ---------- Gallery fallback (no product images) ---------- */
.product-gallery-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg,
      hsl(var(--tile-hue), 45%, 88%) 0%,
      hsl(var(--tile-hue), 35%, 78%) 100%);
}

.product-gallery-fallback::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.05) 0px,
      rgba(0, 0, 0, 0.05) 1px,
      transparent 1px,
      transparent 14px);
  pointer-events: none;
}

.product-gallery-fallback .fallback-initial {
  position: relative;
  max-width: 70%;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-transform: capitalize;
  color: hsl(var(--tile-hue), 30%, 40%);
  opacity: 0.45;
  letter-spacing: 0.01em;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .product-gallery-fallback {
    max-height: 420px;
  }

  .product-gallery-fallback .fallback-initial {
    font-size: 1.375rem;
    max-width: 80%;
  }
}

/*------------------------------------------------
   11. Hero Section
--------------------------------------------------*/
.hero-frame {
  --hero-ivory: #FAF6EE;
  --hero-panel: #FFFFFF;
  --hero-ink: #211D17;
  --hero-stone: #71675A;
  --hero-brass: #A8823F;
  --hero-brass-deep: #8C6B31;
  --hero-hairline: rgba(168, 130, 63, 0.30);

  position: relative;
  overflow: hidden;
  background-color: #fffcf6;
}

.hero-frame * {
  box-sizing: border-box;
}

.hero-frame .font-display {
  font-optical-sizing: auto;
}

.hero-frame a {
  text-decoration: none;
}

.hero-frame::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(59, 108, 255, .05);
  top: -180px;
  left: -150px;
}

.hero-frame::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(231, 162, 162, .08);
  right: -100px;
  bottom: -120px;
}

.hero-frame .headline {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.08;
  font-weight: 450;
  color: var(--hero-ink);
  letter-spacing: -0.01em;
}

.hero-frame .headline em {
  font-style: italic;
  color: var(--hero-theme-color, var(--hero-brass));
  font-weight: 450;
}

.hero-frame .lede {
  color: var(--hero-stone);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 32rem;
}

.hero-frame .btn-brass {
  background: var(--hero-brass);
  border: 1px solid var(--hero-brass);
  color: var(--hero-panel);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem;
  font-weight: 500;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.hero-frame .btn-brass:hover {
  background: var(--hero-brass-deep);
  border-color: var(--hero-brass-deep);
  color: var(--hero-panel);
  transform: translateY(-1px);
}

.hero-frame .btn-ghost {
  background: transparent;
  border: 1px solid var(--hero-ink);
  color: var(--hero-ink);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem;
  font-weight: 500;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.hero-frame .btn-ghost:hover {
  border-color: var(--hero-theme-color, var(--hero-brass));
  color: var(--hero-theme-color, var(--hero-brass));
  transform: translateY(-1px);
}

.hero-frame .trust-row {
  border-top: 1px solid var(--hero-hairline);
  padding-top: 1.1rem;
  margin-top: 2.6rem;
}

.hero-frame .trust-item {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--hero-stone);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-frame .trust-item svg {
  flex-shrink: 0;
  stroke: var(--hero-brass-deep);
}

.hero-frame .image-stage {
  position: relative;
}

.hero-frame .image-frame img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.hero-frame .image-frame::before,
.hero-frame .image-frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--hero-brass);
  opacity: 0.9;
}

.hero-frame .image-frame::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

.hero-frame .image-frame::after {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
}

.hero-frame .plaque {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  background: var(--hero-panel);
  border: 1px solid var(--hero-hairline);
  padding: 1.1rem 1.4rem;
  box-shadow: 0 20px 40px -20px rgba(33, 29, 23, 0.35);
  max-width: 230px;
}

.hero-frame .plaque .cap {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hero-brass-deep);
}

.hero-frame .plaque .item-name {
  font-size: 1.05rem;
  color: var(--hero-ink);
  margin-top: 0.25rem;
}

.hero-frame .anim-in {
  opacity: 0;
  animation: heroRiseIn .8s cubic-bezier(.22, .68, .32, 1) forwards;
}

.hero-frame .d-1 {
  animation-delay: .05s;
}

.hero-frame .d-2 {
  animation-delay: .18s;
}

.hero-frame .d-3 {
  animation-delay: .32s;
}

.hero-frame .d-4 {
  animation-delay: .46s;
}

.hero-frame .d-5 {
  animation-delay: .6s;
}

@keyframes heroRiseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame .anim-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.hero-frame a:focus-visible,
.hero-frame button:focus-visible {
  outline: 2px solid var(--hero-brass-deep);
  outline-offset: 3px;
}

.hero-frame .hero-carousel {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .12);
  position: relative;
}

.hero-frame .hero-carousel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 4;
  object-fit: cover;
}

.hero-frame .carousel-item {
  transition: transform .8s ease-in-out;
}

.hero-frame .carousel-indicators {
  margin-bottom: 18px;
}

.hero-frame .carousel-indicators .active {
  opacity: 1;
  background: var(--hero-theme-color, var(--hero-brass)) !important;
  width: 28px !important;
  border-radius: 20px;
}

.hero-frame .carousel-indicators button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50%;
  border: none !important;
  background: #fff !important;
  opacity: .5;
  margin: 0 5px !important;
}

@media (max-width: 991.98px) {
  .hero-frame .image-stage {
    margin-top: 0;
    margin-bottom: 2.25rem;
  }

  .hero-frame .image-frame img {
    height: 420px;
  }

  .hero-frame .plaque {
    left: 1rem;
    bottom: -1.25rem;
    max-width: 200px;
  }

  .hero-frame .lede {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-frame .headline,
  .hero-frame .lede {
    text-align: center;
  }

  .hero-frame .d-flex.gap-3 {
    justify-content: center;
  }

  .hero-frame .trust-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-frame .trust-row .col-4 {
    width: 100%;
    max-width: 200px;
    flex: 0 0 100%;
  }

  .hero-frame .trust-item {
    justify-content: flex-start;
  }

  .hero-frame .hero-carousel img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575.98px) {
  .hero-frame .headline {
    font-size: 1.9rem;
  }

  .hero-frame .image-frame img {
    height: 320px;
  }

  .hero-frame .plaque {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
  }

  .hero-frame {
    padding-top: 0 !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-frame .image-stage {
    margin-bottom: 1.75rem;
  }

  .hero-frame .trust-row {
    margin-top: 1.75rem;
  }

  .hero-frame .hero-carousel img {
    aspect-ratio: 16 / 11;
  }
}