/* assets/css/theme.css */

/* ========== CSS VARIABLES / THEME ========== */
@import url("/assets/css/colors.css");

:root {
  --color-bg-body: #f7f7f9;
}

/* ========== RESET / BASE ========== */
html,
body {
  height: 100%;
}

.black-text-color{
  color: black!important;
}
.primary-text-color{
  color: var(--color-primary)!important;
}
.primary-bg-color{
  background-color: var(--color-primary)!important;
  color: white;
}



body.shop-body,
body.shop {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
}

/* Ensure Bootstrap container spacing feels airy */
.shop .container {
  max-width: 1200px;
}

/* ========== TYPOGRAPHY ========== */
.shop h1,
.shop h2,
.shop h3,
.shop h4,
.shop h5 {
  letter-spacing: -0.02em;
}

.shop .text-muted {
  color: var(--color-text-muted) !important;
}

/* ========== NAVBAR / HEADER ========== */

.shop-header {
  position: relative;
  z-index: 900;
  background-color: #f5f5f5;
}

/* TOP BAR */

.shop-header-top .container {
  column-gap: 1rem;
}

/* Burger */

.header-burger {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background-color: transparent;
}

.header-burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--color-ink);
  border-radius: 999px;
  margin: 3px auto;
}

/* Logo */

.shop-logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  /*background-color: var(--color-primary); !* orange-ish *!*/
  color: #fff;
  font-weight: 700;
  text-transform: lowercase;
}

.shop-logo .logo-text {
  display: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--color-primary);
}

/* Image failed (no logo uploaded yet) → hide the empty .logo-mark, show brand-name text */
.shop-logo.shop-logo--no-image .logo-mark { display: none; }
.shop-logo.shop-logo--no-image .logo-text { display: inline-flex; align-items: center; }

/* Search */

.header-search-form {
  background-color: #ffffff;
  border-radius: 999px;
  padding-left: 0.75rem;
  box-shadow: 0 0 0 1px var(--color-border);
}

.header-search-input {
  border-radius: 999px 0 0 999px;
  font-size: 0.9rem;
  padding-inline: 0;
}

.header-search-input:focus {
  box-shadow: none;
}

.header-search-btn {
  border: none;
  outline: none;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
}

/* Make room for close button */
.shop-header-mobile-search .header-search-form{
  gap: 8px;
}

/* nice round close button */
.header-search-close{
  border: 0;
  background: rgba(0,0,0,.06);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Mobile search row: animated open/close */
.shop-header-mobile-search{
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fff;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .28s ease, opacity .18s ease, transform .18s ease;
  will-change: max-height, opacity, transform;
}

.shop-header-mobile-search.is-open{
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
  overflow: visible;
}

.shop-header-mobile-search .header-search-form{
  transform: scaleX(.92);
  transform-origin: left center;
  transition: transform .22s ease;
}

.shop-header-mobile-search.is-open .header-search-form{
  transform: scaleX(1);
}
/* Icons */

.header-icons .header-icon-link {
  color: var(--color-ink);
  text-decoration: none;
  position: relative;
  font-size: 1.15rem;
}

.header-icons .header-icon-link:hover {
  color: var(--color-primary);
}

#header-profile-btn, #header-mobile-search-btn {
  background: none !important;
  border: none !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header-profile-btn:focus, #header-mobile-search-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

#header-mobile-search-btn{
  display: inline-flex !important;
}
#header-mobile-search-row{
  display: block; /* row exists; your .is-open can still control visibility inside */
}

/* DESKTOP: hide */
@media (min-width: 992px) {
  #header-mobile-search-btn{
    display: none !important;
  }
  #header-mobile-search-row{
    display: none !important;
  }
}

#header-cart-btn {
  background: none !important;
  border: none !important;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header-cart-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

.header-cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background-color: var(--color-ink);
  color: #fff;
  font-size: 0.65rem;
  line-height: 16px;
  text-align: center;
}

/* SECOND BAR: categories row */

.shop-header-nav {
  background-color: #ffffff;
}

.all-categories-trigger {
  border: none;
  background-color: transparent;
  padding: 0.6rem 0.9rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-right: 1px solid var(--color-border);
}

.all-categories-trigger:hover {
  background-color: var(--color-bg-soft);
}

.header-main-categories {
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 1rem;
  padding-block: 0.45rem;
}

.header-main-categories::-webkit-scrollbar {
  display: none;
}

.header-main-categories a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-ink);
  white-space: nowrap;
}

.header-main-categories a:hover {
  color: var(--color-primary);
}

/* highlighted links e.g. Akcija */
.header-main-categories a.is-highlight {
  color: var(--color-primary);
  font-weight: 600;
}

/* MEGA MENU */

.header-megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background-color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  max-height: 520px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mega-cat-item{
  display: block;
  color: black;
  text-decoration: none;
  padding: 0.25rem 0.6rem;
}

.mega-cat-item:hover{
  cursor: pointer;
  color: var(--color-primary);
}

.header-megamenu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* left column */

.mega-root {
  width: 240px;
  border-right: 1px solid var(--color-border);
  padding-block: 0.75rem;
  padding-right: 0.75rem;
  overflow-y: auto;
}

.mega-root-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-ink);
}

.mega-root-item:hover {
  background-color: var(--color-bg-soft);
}

.mega-root-item.is-active {
  background-color: var(--primary-a08);
  color: var(--color-primary);
}

.mega-root-item i {
  font-size: 0.85rem;
}

/* right panel */

.mega-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
  border-left: 1px solid var(--color-border);
}

.mega-content-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1.5rem;
}

.mega-column-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mega-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-link-list li a {
  display: block;
  font-size: 0.85rem;
  text-decoration: none;
  color: #374151;
  padding: 0.15rem 0;
}

.mega-link-list li a:hover {
  color: var(--color-primary);
}

/* subcategory grid rendered by header.js */
.mega-sub-cols {
  padding-block: 0.75rem;
  padding-left: 0.75rem;
}

.mega-sub-cols a {
  display: block;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-ink);
  padding: 0.25rem 0.6rem;
}

.mega-sub-cols a:hover {
  cursor: pointer;
  color: var(--color-primary);
}

/* MOBILE MENU */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  max-width: 80%;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.3);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.95rem;
}

.mobile-menu-close {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
}

.mobile-menu-search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-cats {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.mobile-menu-cats a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-ink);
}

.mobile-menu-cats a:hover {
  background-color: var(--color-bg-soft);
}

.mobile-cat {
  border-bottom: 1px solid var(--color-border);
}

.mobile-cat-toggle {
  width: 100%;
  padding: 0.45rem 1rem;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.mobile-cat-toggle i {
  font-size: 0.8rem;
}

.mobile-subcats {
  display: none;
  padding: 0 0 0.5rem 0.5rem;
}

.mobile-cat.open .mobile-subcats {
  display: block;
}

.mobile-subgroup {
  padding-left: 0.5rem;
  margin-top: 0.25rem;
}

.mobile-subgroup-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  margin: 0.15rem 0;
}

.mobile-subcat-link {
  display: block;
  padding: 0.2rem 1rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-ink);
}

.mobile-subcat-link:hover {
  background-color: var(--color-bg-soft);
}

.mobile-cat-toggle i {
  transition: transform 0.2s ease;
}

.mobile-cat.open .mobile-cat-toggle i {
  transform: rotate(90deg);
}

/* small screens tweaks */

@media (max-width: 767.98px) {
  .header-search {
    display: none !important;
  }
}

/* Hide burger on desktop */
@media (min-width: 992px) {
  #header-burger-btn {
    display: none;
  }
}

/* Hide second categories bar ("Sve kategorije" + strip) on mobile */
@media (max-width: 991.98px) {
  #header-allcats-btn {
    display: none !important;
  }
}



/* ========== PROFILE RIGHT MENU ========== */
.profile-menu {
  position: fixed;
  inset: 0;
  z-index: 960;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.profile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

.profile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.profile-menu-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 280px;
  max-width: 80%;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.3);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.profile-menu.open .profile-menu-panel {
  transform: translateX(0);
}

.profile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.95rem;
}

.profile-menu-close {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
}

.profile-menu-body {
  padding: 0.5rem 0;
  flex: 1;
  overflow-y: auto;
}

.profile-menu-item {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-ink);
}

.profile-menu-item--primary {
  font-weight: 600;
}

.profile-menu-item:hover {
  background-color: var(--color-bg-soft);
}

.profile-menu hr {
  border-color: var(--color-border);
}
/* ========== BUTTONS ========== */
.shop .btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.shop .btn-primary:hover,
.shop .btn-primary:focus {
  filter: brightness(0.95);
}

.shop .btn-outline-secondary {
  border-radius: 999px;
}

/* ========== CARDS (PRODUCTS / CATEGORIES) ========== */
.product-card-body{
  padding: 16px 16px 16px 16px!important;
}
.product-card,
.category-card .card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  background-color: #fff;
}

.product-card:hover,
.category-card .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--primary-a25);
}

/* Compact variant */
.product-card--compact {
  border-radius: var(--radius-md);
}

/* Ensure images look good */
.product-card img,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback for object-fit utility */
.object-fit-cover {
  object-fit: cover;
}

/* Badge on product cards */
.product-card .badge {
  border-radius: 999px;
}

/* BADGE WRAPPER: single aligned column */
.product-badge-wrapper {
  position: absolute;
  left: 8px;
  top: 4px;  /* top of the wrapper */
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px; /* spacing between top & bottom rows */
  pointer-events: none;
  justify-content: space-between;
  height: 95%;
}

/* Rows (top = discount, bottom = new) */
.product-badge-top,
.product-badge-bottom {
  display: flex;
  flex-direction: column;
}

/* UNIVERSAL BADGE STYLE */
.product-badge {
  display: inline-block;
  min-width: 52px;        /* uniform, stable width */
  padding: 4px 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  border-radius: 999px;
  line-height: 1;
  text-align: center;
  pointer-events: auto;    /* clickable if needed */
  white-space: nowrap;
}

/* COLORS */
.badge-discount {
  background: #dc2626; /* red */
}

.badge-new {
  background: var(--color-primary-300);
}

.badge-package {
  background: #0d6efd;
  min-width: 0;            /* let "Paket" badge size to content */
  padding: 4px 10px;
}

/* ──────────────────────────────────────────────────────────────
   "What's inside" PDP block — package products. Default theme
   uses rounded corners (vs leon's square), so the panel + rows
   share an 8px radius for visual consistency with the rest of
   the theme.
   ────────────────────────────────────────────────────────────── */
.product-package {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  padding: 14px 16px;
}

.product-package > h2,
.product-package > h3,
.product-package > .h6 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 12px 0;
}

.product-package > h2::before,
.product-package > h3::before,
.product-package > .h6::before {
  content: "\F1B0";              /* bi-boxes glyph */
  font-family: "bootstrap-icons";
  font-size: 1.1rem;
  color: #0d6efd;
}

#product-package-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

#product-package-items > li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

#product-package-items > li:last-child {
  margin-bottom: 0;
}

#product-package-items > li .bi-check2 {
  color: #16a34a;
  font-size: 1rem;
}

#product-package-items > li .pkg-item-link {
  color: inherit;
  text-decoration: none;
}

#product-package-items > li .pkg-item-link:hover,
#product-package-items > li .pkg-item-link:focus {
  text-decoration: underline;
  color: #0d6efd;
}

#product-package-items > li .pkg-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#product-package-items > li .pkg-item-qty {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 28px;
  text-align: right;
}

#product-package-items > li .pkg-item-total {
  color: #111827;
  font-weight: 700;
  min-width: 80px;
  text-align: right;
  white-space: nowrap;
}

.product-package-savings {
  margin-top: 10px;
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* title: 2 lines max, consistent card heights */
.small-brand-name{
  font-size: 12px;
}
.home-product-card .prod-title{
  font-size: 0.95rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.2em * 2);
  margin-bottom: 0.5rem;
}
.cart-block {
  display: flex;
  flex-wrap: nowrap;          /* keep price + button on the same row */
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
}
.price-pill {
  flex: 1 1 0;
  min-width: 0;               /* let the price column shrink past its
                                 intrinsic content so the fixed-width
                                 button never gets pushed to a new line */
  border-radius: 999px;
  display: flex;
  align-items: center;
}
.cart-block .btn {
  flex-shrink: 0;             /* stay full-size even when prices are long;
                                 button keeps its circle, doesn't compress */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cart-block .btn i {
  font-size: 1.1rem;
}
.price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: calc(1.2em * 2 + 2px);
  line-height: 1.1;
}

.price-main {
  font-weight: 600;
  font-size: 18px;
  color: var(--color-ink); /* default black */
}

.product-price-main.is-discounted {
  color: var(--color-primary); /* blue if discounted */
}

.price-old {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: line-through;
}
.currency-symbol{
  font-size: 12px!important;
}

@media (max-width: 575.98px) {
  .cart-block .btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  /* .price-main / .price-old mobile sizes for home-product-card are now
     handled by clamp() in index.css. PDP / cart .price-main keeps the
     base 18px from the unscoped rule above; no !important needed. */
  .product-card-body{
    padding: 8px 8px 8px 8px!important;
  }
}

/* discounted price uses your primary color (bootstrap) */
.price-main.is-discounted{
  color: var(--color-primary);
}

.product-card-link{
  color: inherit;
  text-decoration: none;
  display: block;
}

.product-card-link:hover{
  color: inherit;
  text-decoration: none;
}

/* ========== HERO ========== */
.hero-section {
  border-radius: var(--radius-lg);
}

/* Placeholder hero image box */
.hero-image-placeholder {
  min-width: 240px;
  min-height: 160px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(15, 23, 42, 0.15);
}

/* ========== FOOTER ========== */

/* Outer wrapper – shows background image behind the rounded footer */
.footer-bg {
  /* Replace this gradient with a real image: url('/assets/img/footer-bg.jpg') center / cover no-repeat */
  background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-700));
  padding: 8rem 3rem 4rem;
}

/* The actual footer card – brand color, rounded, extra padding */
.site-footer {
  background-color: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2rem 0;
  color: #fff;
  max-width: 60%;
  margin: 0 auto;
}

.site-footer a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .footer-heading {
  color: #fff;
  margin-bottom: .5rem;
  font-size: 1.1rem;
}
/* ========== MISC UTILS ========== */
.rounded-4 {
  border-radius: var(--radius-lg) !important;
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.cursor-pointer {
  cursor: pointer;
}

/* Cart badge */
#cart-count-badge {
  font-size: 0.65rem;
  min-width: 1.2rem;
}

/* ========== HEADER CART MODAL ========== */
/* ============================
   CART PANEL – floating popup
   ============================ */

.cart-panel {
  position: fixed;
  z-index: 1080;
  /* approximate: just under header, right side (under cart icon) */
  top: 70px;          /* adjust if your header is taller/shorter */
  right: 1rem;

  width: 100%;
  max-width: 360px;   /* <= makes it "small", not full width */
  pointer-events: none; /* so only the inner card catches clicks */
}

/* little card itself */
.cart-panel-inner {
  pointer-events: auto;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-direction: column;
}

/* on mobile it's fine to keep same width (max-width already limits it) */
@media (max-width: 575.98px) {
  .cart-panel {
    right: 0.25rem;
    left: 0.75rem;
    max-width: none;
    width: 95%;
  }

  .cart-panel-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* MAIN CONTENT */

.cart-panel-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 100%;
}

.cart-panel-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

/* ONE ITEM PER ROW */
.cart-panel-items {
  display: flex;
  flex-direction: column;   /* important */
  gap: 0.45rem;
}

/* Row */
.cart-panel-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.75rem;
  background: var(--primary-a06);
}

/* Thumb */
.cart-panel-item-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.cart-panel-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text */
.cart-panel-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.cart-panel-item-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-ink);
}

.cart-panel-item-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* Actions (right side) */
.cart-panel-actions {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: flex-end;
}

@media (max-width: 575.98px) {
  .cart-panel-actions {
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
  }
}


/*OTHER*/
/* Wishlist heart on product card */
.product-card {
  position: relative;
}

.product-wishlist-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.product-wishlist-btn i {
  font-size: 1rem;
  color: var(--color-muted); /* gray */
}

.product-wishlist-btn.is-active {
  background: #fee2e2; /* light red */
}

.product-wishlist-btn.is-active i {
  color: var(--color-primary); /* red */
}


/* Remove browser default focus outline (including Safari) */
*:focus,
*:focus-visible,
*:focus-within {
  outline: none !important;
  outline-color: transparent !important;
  outline-style: none !important;
}

/* Remove focus outline/glow from all interactive elements */
input:focus,
select:focus,
textarea:focus,
button:focus,
.form-control:focus,
.form-select:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  box-shadow: none !important;
  outline: none !important;
  outline-color: transparent !important;
  -webkit-appearance: none;
  border-color: #dee2e6 !important;
}
.form-check-input:checked {
  background-color: var(--color-primary); /* change to your brand color */
  border-color: var(--primary-a06);
}

/*
PAGINATION
*/
.page-link{
  color: var(--color-primary)!important;
}
.active>.page-link, .page-link.active{
  background-color: var(--color-primary)!important;
  color: white!important;
}

/* ========== EMAIL COLLECTION POPUP ========== */
.email-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.email-popup-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.email-popup {
  position: fixed;
  z-index: 1101;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  padding: 2rem 1.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.email-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.email-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg-soft);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-muted);
  transition: background 0.15s ease;
}

.email-popup-close:hover {
  background: #e5e7eb;
}

.email-popup-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--color-primary-100);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.email-popup h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.email-popup p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
}

.email-popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.email-popup-form input[type="email"],
.email-popup-form input[type="tel"] {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.email-popup-form input[type="email"]:focus,
.email-popup-form input[type="tel"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--primary-a12);
}

.email-popup-form button {
  border: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease;
}

.email-popup-form button:hover {
  filter: brightness(0.92);
}

.email-popup-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-popup-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

.email-popup-msg.is-success {
  color: #16a34a;
}

.email-popup-msg.is-error {
  color: #dc2626;
}

@media (max-width: 480px) {
  .email-popup {
    padding: 1.5rem 1.25rem;
  }

  .email-popup-form {
    flex-direction: column;
  }

  .email-popup-form button {
    width: 100%;
  }
}

.email-popup-tab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1099;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.email-popup-tab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

/* ========== PROMO POPUP ========== */
/* Cancel Bootstrap's scrollbar-width padding so the dialog stays centered */
.shop-popup-modal {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.shop-popup-modal .shop-popup-dialog {
  max-width: min(480px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
}

.shop-popup-modal .shop-popup-content {
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 32px);
  border-radius: 1.25rem;
  border: none;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.shop-popup-modal .shop-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background-color: #fff;
  opacity: 0.95;
  border-radius: 999px;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.shop-popup-modal .shop-popup-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.shop-popup-modal .shop-popup-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
  padding: 1rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.cookie-consent-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cookie-consent-inner {
    flex-direction: row;
    align-items: center;
  }
}

.cookie-consent-text {
  flex: 1;
  min-width: 0;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
