@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

:root {
  --primary: #e60023;
  /* vivid red */
  --primary-dark: #810215;
  --accent: #111827;
  /* dark gray text */
  --muted: #6b7280;
  /* gray */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e5e7eb;
  --star: #f59e0b;
  /* blue */
  --blue: #34096e;
  --blue-dark: #1c043d;
  /* blue */
  --purple: #866afb;
  --purple-dark: #866afb;
  /* success */
  --green: #09722a;
  --green-dark: #043d16;
}

html,
body {
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--accent);
  background: var(--bg);
}

/* Header */
.site-topbar {
  background: var(--primary);
  font-size: .875rem;
  color: var(--bg);
}

.navbar-brand {
  padding: 0;
}

.navbar-brand .logo {
  height: 50px;
}

.navbar .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.navbar .btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* Smart navbar */
.smart-navbar {
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}

.smart-navbar .nav-link {
  font-weight: 500;
  color: var(--accent);
  position: relative;
  padding: .5rem .75rem;
}

.smart-navbar .nav-link i {
  color: var(--muted);
}

.smart-navbar .nav-link:hover,
.smart-navbar .nav-link:focus {
  color: var(--primary);
}

.smart-navbar .nav-link.active {
  color: var(--primary);
}

.smart-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .25rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.smart-navbar .nav-link:hover::after,
.smart-navbar .nav-link.active::after {
  transform: scaleX(1);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: #fff;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn-icon:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(230, 0, 35, .25);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  line-height: 1;
  padding: .25rem .35rem;
}

/* Drawer (mobile menu) */
.smart-drawer {
  width: 320px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-right: 1px solid var(--border);
}

.smart-drawer .offcanvas-header {
  border-bottom: 1px solid var(--border);
}

.smart-drawer .offcanvas-header .logo {
  height: 80px;
}

.smart-drawer .nav-link {
  color: var(--accent);
  font-weight: 600;
  border-radius: .5rem;
  padding-left: .75rem;
}

.smart-drawer .nav-link:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

/* Cart drawer */
.cart-drawer {
  width: 400px;
}

.cart-drawer .offcanvas-header {
  border-bottom: 1px solid var(--border);
}

.cart-item {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item .thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--border);
}

.cart-summary {
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Animated order button (scoped to product cards) */
.product-card .btn.btn-primary {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
}

.product-card .btn.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .35) 50%, transparent 100%);
  transform: translateX(-120%);
}

.product-card .btn.btn-primary:hover::after,
.product-card .btn.btn-primary:focus::after {
  animation: btn-shine .8s ease;
}


@keyframes btn-shine {
  to {
    transform: translateX(120%);
  }
}

.wide-card {
  background: #fe466c1a !important;
}

.wide-card .wide-card-img {
  width: 180px;
  border-radius: .70rem !important;
  margin: 5px;
}

.wide-card .free-shipping-tag {
  height: 45px;
  float: right;
}

.wide-card .free-shipping-tag {
  transition: transform 0.3s ease;
}

.wide-card:hover .free-shipping-tag {
  transform: scale(1.12);
}


/* Hero */
.hero .badge {
  background: var(--primary);
}

.hero .carousel-item .item {
  min-height: 350px;
}

.hero .carousel-item .item {
  min-height: 350px;
}

.hero .carousel-item .item .content {
  padding-left: 10%;
}

/* Use mix-blend-mode: difference for inverse color depending on background */
.hero .carousel-item .item .content h1 {
  font-size: 2.75rem;
  mix-blend-mode: difference;
}

.hero .carousel-item .item .content h4 {
  font-size: 1.5rem;
  mix-blend-mode: difference;
}

.hero .carousel-item .item .content a {
  border-radius: 50px;
}

/* Cards */
.product-card {
  border: 1px solid var(--border);
  border-radius: .75rem;
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}

.product-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-top-left-radius: .75rem;
  border-top-right-radius: .75rem;
}

.price {
  color: var(--primary);
  font-weight: 700;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.rating i {
  color: var(--star);
}

/* Badges */
.badge-soft {
  background: #fee2e2;
  color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--bg-soft)
}

.site-footer a {
  color: var(--bg-soft);
  text-decoration: none;
}

.site-footer .footer-logo img {
  height: 100px;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Utilities */
.section-title {
  font-weight: 700;
}

.category-pill .btn {
  border-color: var(--border);
}

.category-pill .btn.active,
.category-pill .btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Product detail */
.thumb-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: .5rem;
  cursor: pointer;
}

.thumb-img.active {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Forms */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .25rem rgba(230, 0, 35, .15);
}

/* Pagination */
.pagination .page-link {
  color: var(--accent);
  border-color: var(--border);
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Responsive tweaks */
@media (min-width: 992px) {
  .hero-copy {
    max-width: 560px;
  }
}

/* Hero slider enhancements */
.hero .glass {
  background: rgba(17, 24, 39, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .carousel-indicators {
  margin-bottom: 1rem;
}

.hero .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
}

.hero .carousel-indicators .active {
  background-color: var(--primary-dark);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: auto;
  opacity: 1;
}

.hero .carousel-control-prev {
  left: 1rem;
}

.hero .carousel-control-next {
  right: 1rem;
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  display: none;
}

.hero .ctrl-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.29);
  color: #111827;
  /* border: 1px solid rgba(255, 255, 255, .6); */
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.hero .ctrl-btn i {
  font-size: 1.125rem;
}

.hero .carousel-control-prev:hover .ctrl-btn,
.hero .carousel-control-next:hover .ctrl-btn {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

@media (min-width: 992px) {
  .hero .carousel-control-prev {
    left: 1.25rem;
  }

  .hero .carousel-control-next {
    right: 1.25rem;
  }
}

/* Category carousel */
#categoryCarousel {
  position: relative;
}

#categoryCarousel .carousel-inner {
  padding: 0;
}

#categoryCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}

.category-carousel-control {
  width: auto;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.category-carousel-control.carousel-control-prev {
  left: -1rem;
}

.category-carousel-control.carousel-control-next {
  right: -1rem;
}

.category-carousel-control .carousel-control-prev-icon,
.category-carousel-control .carousel-control-next-icon {
  display: none;
}

.category-carousel-control .ctrl-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.category-carousel-control .ctrl-btn i {
  font-size: 1rem;
}

.category-carousel-control:hover .ctrl-btn {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

/* Slick: category slider gutters */
.category-slider .slick-list {
  margin: 0 -8px;
}

.category-slider .slick-slide {
  padding: 8px;
}

/* Category hover zoom effect */
.category-slider .category-item {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
}

.category-slider .category-item img {
  transition: transform 0.4s cubic-bezier(.45, .08, .52, 1.04);
  will-change: transform;
}

.category-slider .category-item:hover img,
.category-slider .category-item:focus img {
  transform: scale(1.08);
}

/* Slick: category slider arrows (same design) */
.category-slider .slick-prev,
.category-slider .slick-next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 1;
}

.category-slider .slick-prev {
  left: 1rem;
}

.category-slider .slick-next {
  right: 2rem;
}

.category-slider .slick-prev:before,
.category-slider .slick-next:before {
  content: none;
}

.category-slider .ctrl-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.29);
  color: var(--accent);
  /* border: 1px solid var(--border); */
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.category-slider .ctrl-btn i {
  font-size: 1rem;
}

.category-slider .slick-prev:hover .ctrl-btn,
.category-slider .slick-next:hover .ctrl-btn {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}



/* Style the ribbon */
.ribbon {
  width: 100px;
  height: 100px;
  overflow: hidden;
  position: absolute;
  top: 0px;
  right: 0px;
}

.ribbon__content {
  left: -20px;
  top: 20px;
  transform: rotate(45deg);
  position: absolute;
  display: block;
  width: 170px;
  padding: 3px 0;
  background-color: var(--green);
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  text-align: center;
  border: 2px dotted #fff;
  font-size: 12px;
}


/* Search Modal design tweaks */
#searchModal .modal-content {
  border: none;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .13);
}

#searchModal .modal-header {
  background: #fff;
  border-bottom: 1px solid #f3f3f3;
  border-radius: 1.5rem 1.5rem 0 0;
}

#searchModal .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 0, 35, .15);
  border-color: var(--primary);
}

#searchModal .list-group-item {
  transition: background 0.12s;
}

#searchModal .list-group-item:hover {
  background: #faf3f3;
}

#searchModal .price {
  color: var(--primary);
  font-weight: bold;
}

#searchModal .old-price {
  color: var(--muted);
  text-decoration: line-through;
}

@media (max-width: 576px) {
  #searchModal .modal-body {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Image Loading Skeleton Styles */
@keyframes skeleton-loading {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

img.loaded {
  background: none;
  animation: none;
}

/* Category image skeleton */
.category-item img[loading="lazy"] {
  min-height: 180px;
}

/* Product image skeleton */
.product-img[loading="lazy"] {
  min-height: 150px;
}

/* Wide card image skeleton */
.wide-card-img[loading="lazy"] {
  min-height: 180px;
}

/* Thumbnail image skeleton */
.thumb-img[loading="lazy"] {
  min-height: 80px;
}

/* Cart item thumbnail skeleton */
.thumb[loading="lazy"] {
  min-height: 70px;
}

.product-title {
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.product-card a {
  text-decoration: none;
  color: var(--accent);
  width: min-content;
}

.product-card a:hover {
  color: var(--primary);
  text-decoration: none;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media screen and (max-width: 576px) {
  .wide-card .wide-card-img {
    width: 120px;
  }

  .wide-card .wide-card-img[loading="lazy"] {
    min-height: 120px;
  }

  .wide-card .free-shipping-tag {
    height: 20px;
    margin-top: 5px;
  }

  .wide-card .free-shipping-tag {
    font-size: 10px;
  }

  .wide-card .free-shipping-tag {
    padding: 0 5px;
  }

  .product-card .btn.btn-primary {
    font-size: 14px;
  }
}