/* =========================================================
   BENİM ÇARŞIM - RED THEME STYLESHEET
   Wholesale Kitchenware & Glassware E-Commerce
   ========================================================= */

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../webfonts/fa-solid-900.woff2") format("woff2"),
       url("./webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../webfonts/fa-regular-400.woff2") format("woff2"),
       url("./webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../webfonts/fa-brands-400.woff2") format("woff2"),
       url("./webfonts/fa-brands-400.woff2") format("woff2");
}

@font-face {
  font-family: 'bootstrap-icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./fonts/bootstrap-icons.woff2") format("woff2"),
       url("../fonts/bootstrap-icons.woff2") format("woff2"),
       url("./fonts/bootstrap-icons.woff") format("woff"),
       url("../fonts/bootstrap-icons.woff") format("woff");
}

/* Explicit font-family and font-weight rules to guarantee rendering */
.fa, .fa-solid, .fas {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 900 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
}

.fa-regular, .far {
  font-family: 'Font Awesome 6 Free' !important;
  font-weight: 400 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
}

.fa-brands, .fab {
  font-family: 'Font Awesome 6 Brands' !important;
  font-weight: 400 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
}

.bi, [class^="bi-"], [class*=" bi-"] {
  font-family: bootstrap-icons !important;
  font-style: normal !important;
  font-weight: normal !important;
  line-height: 1 !important;
  vertical-align: -.125em !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Cam Ürünleri Icon helper */
.fa-wine-glass::before,
.fa-martini-glass::before {
  content: "\f57b" !important;
}

:root {
  --theme-red: #d32f2f;
  --theme-red-dark: #b71c1c;
  --theme-red-light: #fef2f2;
  --theme-red-border: #fecaca;
  
  --theme-dark: #1a202c;
  --theme-text: #2d3748;
  --theme-muted: #718096;
  --theme-border: #e2e8f0;
  --theme-bg-light: #f8fafc;
  
  --theme-radius-sm: 6px;
  --theme-radius-md: 10px;
  --theme-radius-lg: 14px;
  --theme-transition: all 0.2s ease-in-out;
}

html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--theme-text);
  background-color: #ffffff;
  font-size: 0.925rem;
  overflow-x: clip;
  max-width: 100%;
}

/* Red Topbar */
.red-topbar {
  background-color: var(--theme-red);
  color: #ffffff;
  font-size: 0.82rem;
  padding: 6px 0;
  font-weight: 500;
  position: relative;
  z-index: 1050;
}

.red-topbar a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

.red-topbar a:hover {
  opacity: 0.85;
}

/* Topbar Dropdown */
.topbar-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topbar-dropdown .dropdown-toggle {
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
}

.topbar-dropdown .dropdown-toggle::after {
  display: inline-block;
  margin-left: 4px;
  vertical-align: 0.15em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.topbar-dropdown .dropdown-menu {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  min-width: 210px;
  margin-top: 0 !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  z-index: 1060;
  background-color: #ffffff;
}

/* Invisible hover bridge: prevents menu from closing when mouse moves from button to dropdown */
.topbar-dropdown .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  display: block;
}

.topbar-dropdown .dropdown-item {
  font-size: 0.82rem;
  padding: 8px 16px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.topbar-dropdown .dropdown-item:hover {
  background-color: #fef2f2;
  color: var(--theme-red);
}

.topbar-dropdown .dropdown-item i {
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .topbar-dropdown:hover .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Input group styling: breathable icon padding */
.input-group .form-control {
  padding-left: 0.85rem !important;
}

.input-group .input-group-text {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

/* Main Header */
.main-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--theme-border);
}

/* Brand Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo-box {
  display: inline-block;
  line-height: 1;
}

.logo-main-text {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--theme-red);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -1px;
}

.logo-sub-text {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  display: block;
  margin-top: 1px;
}

/* Search Bar */
.search-container {
  max-width: 620px;
  margin: 0 auto;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-group input {
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding-left: 16px;
  padding-right: 54px;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-group input:focus {
  border-color: var(--theme-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.search-input-group .btn-search {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 44px;
  background-color: var(--theme-red);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-input-group .btn-search:hover {
  background-color: var(--theme-red-dark);
}

/* Cart Button */
.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.header-cart-btn:hover {
  background-color: #fef2f2;
}

.header-cart-icon-wrap {
  position: relative;
  font-size: 1.4rem;
  color: var(--theme-red);
}

.cart-badge-pill {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--theme-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
}

/* Category Sidebar Navigation */
.category-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  overflow: hidden;
}

.category-sidebar-header {
  background-color: var(--theme-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-sidebar-list li {
  border-bottom: 1px solid #f1f5f9;
}

.category-sidebar-list li:last-child {
  border-bottom: none;
}

.category-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9.5px 16px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.category-sidebar-link:hover {
  background-color: #fef2f2;
  color: var(--theme-red);
  padding-left: 19px;
}

.category-sidebar-link i.cat-icon {
  font-size: 0.95rem;
  margin-right: 10px;
  color: #64748b;
  width: 18px;
  text-align: center;
}

.category-sidebar-link:hover i.cat-icon {
  color: var(--theme-red);
}

.category-sidebar-link i.bi-chevron-right {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Hero Banner */
.hero-slider-box {
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  min-height: 410px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hero-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}

.hero-slider-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  color: #ffffff;
}

.hero-tag-red {
  color: #f87171;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}

.hero-slider-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-slider-subtitle {
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-hero-action {
  background-color: var(--theme-red);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-hero-action:hover {
  background-color: var(--theme-red-dark);
  color: #ffffff;
  transform: translateX(3px);
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 40px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.active {
  width: 20px;
  border-radius: 50px;
  background: var(--theme-red);
}

/* Feature Strip */
.features-strip {
  background: #ffffff;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  padding: 18px 24px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-item i {
  font-size: 1.75rem;
  color: var(--theme-red);
  flex-shrink: 0;
}

.feature-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 2px;
}

.feature-item-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

/* Category Grid */
.category-card-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}

.category-card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: #fca5a5;
}

.category-card-img-wrap {
  background: #f8fafc;
  padding-top: 85%;
  position: relative;
  overflow: hidden;
}

.category-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card-box:hover .category-card-img-wrap img {
  transform: scale(1.05);
}

.category-card-footer {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
}

.category-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.category-card-footer i {
  font-size: 0.8rem;
  color: var(--theme-red);
  font-weight: bold;
}

/* Best Sellers / Çok Satan Ürünler Section */
.bestsellers-section {
  background-color: #fbfbfb;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 40px 0;
}

.section-header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.section-header-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-red);
  text-decoration: none;
}

.section-header-link:hover {
  text-decoration: underline;
}

/* Bestseller Product Card */
/* Bestseller Product Card */
.bs-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.bs-product-card:hover {
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  border-color: #cbd5e1;
  transform: translateY(-3px);
}

.bs-badge-stock {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--theme-red, #e50914);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(229, 9, 20, 0.25);
  z-index: 3;
  letter-spacing: 0.02em;
}

.bs-badge-preorder {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.25);
  z-index: 3;
}

.bs-btn-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
}

.bs-btn-wishlist:hover {
  background: #ffffff;
  color: var(--theme-red, #e50914);
  transform: scale(1.08);
}

.bs-img-wrap {
  width: 100%;
  padding-top: 68%;
  position: relative;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: #f8fafc;
  display: block;
}

.bs-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.35s ease;
}

.bs-product-card:hover .bs-img-wrap img {
  transform: scale(1.05);
}

.bs-card-body {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

/* Hero Carousel Controls & Indicators */
.hero-carousel-indicators {
  margin-bottom: 1.25rem !important;
  margin-left: 2.5rem !important;
  justify-content: flex-start !important;
  gap: 6px !important;
}

.hero-carousel-indicators [data-bs-target] {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
  border: none !important;
  opacity: 1 !important;
  transition: all 0.3s ease !important;
}

.hero-carousel-indicators .active {
  width: 22px !important;
  border-radius: 50px !important;
  background-color: var(--theme-red) !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 42px;
  height: 42px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.25s ease;
  margin: 0 16px;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
  opacity: 0.85;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--theme-red);
  opacity: 1;
}

.bs-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bs-title:hover {
  color: var(--theme-red, #e50914);
}

.bs-code {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bs-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}

.bs-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1;
}

.bs-currency {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.bs-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.bs-qty-picker {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  height: 38px;
  background: #ffffff;
}

.bs-qty-btn {
  background: #f8fafc;
  border: none;
  width: 28px;
  height: 100%;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s;
}

.bs-qty-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bs-qty-input {
  width: 32px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
  outline: none;
}

.btn-bs-cart {
  flex-grow: 1;
  background-color: var(--theme-red, #e50914);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  height: 38px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(229, 9, 20, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-bs-cart:hover {
  background-color: var(--theme-red-dark, #cc0812);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Footer */
.dark-footer {
  background-color: #1b222d;
  color: #94a3b8;
  padding-top: 48px;
  padding-bottom: 24px;
}

.footer-brand-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-right: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.footer-social-btn:hover {
  background: var(--theme-red);
  color: #ffffff;
}

.footer-col-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.newsletter-box {
  display: flex;
  width: 100%;
}

.newsletter-box input {
  height: 40px;
  border-radius: 6px 0 0 6px;
  font-size: 0.82rem;
  border: none;
  flex: 1 1 auto;
  min-width: 0;
}

.newsletter-box button {
  background-color: var(--theme-red);
  border: none;
  border-radius: 0 6px 6px 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0 18px;
  white-space: nowrap;
  flex: 0 0 auto;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newsletter-box button:hover {
  background-color: var(--theme-red-dark);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.78rem;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.8rem;
  margin-left: 18px;
}

.footer-trust-badge i {
  color: #94a3b8;
}

/* ==========================================================================
   Modern Cart Toast Notification
   ========================================================================== */
.cart-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10500;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.cart-toast {
  pointer-events: auto;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.cart-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.cart-toast-body {
  padding: 16px 18px 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cart-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cart-toast-content {
  flex-grow: 1;
  min-width: 0;
}

.cart-toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-toast-text {
  font-size: 0.82rem;
  color: #4b5563;
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: break-word;
}

.cart-toast-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-toast-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--theme-red);
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
  border: none;
}

.cart-toast-btn-primary:hover {
  background-color: var(--theme-red-dark);
  color: #ffffff;
}

.cart-toast-btn-secondary {
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.cart-toast-btn-secondary:hover {
  color: #111827;
  background-color: #f3f4f6;
}

.cart-toast-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-toast-close:hover {
  color: #111827;
}

.cart-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #059669);
  width: 100%;
  transform-origin: left;
  animation: toastProgress 3.5s linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Badge bounce effect */
@keyframes cartBadgeBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.badge-bounce {
  animation: cartBadgeBounce 0.4s ease-out !important;
}

/* ==========================================================================
   Dynamic Cart Page Styles
   ========================================================================== */
.cart-page-wrap {
  padding: 32px 0 60px 0;
  background-color: #f8fafc;
  min-height: 70vh;
}

.cart-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.cart-table thead th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.cart-table tbody tr {
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}

.cart-table tbody tr:hover {
  background-color: #fbfcfe;
}

.cart-item-row.removing {
  transform: translateX(30px);
  opacity: 0;
  transition: all 0.35s ease-out;
}

.cart-product-img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.cart-product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  transition: color 0.15s;
}

.cart-product-title:hover {
  color: var(--theme-red);
}

.cart-qty-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.cart-qty-btn {
  background: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cart-qty-btn:hover:not(:disabled) {
  background-color: #f1f5f9;
  color: var(--theme-red);
}

.cart-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-qty-input {
  width: 42px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  outline: none;
}

.cart-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 24px;
}

.free-shipping-card {
  background: linear-gradient(135deg, #fef2f2, #fff5f5);
  border: 1px dashed #fca5a5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.free-shipping-progress {
  height: 7px;
  border-radius: 10px;
  background-color: #e2e8f0;
  overflow: hidden;
  margin-top: 8px;
}

.free-shipping-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.4s ease;
}

.free-shipping-bar.under {
  background: linear-gradient(90deg, #f59e0b, var(--theme-red));
}

.coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.coupon-remove-btn {
  background: transparent;
  border: none;
  color: #065f46;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}

.coupon-remove-btn:hover {
  color: #b91c1c;
}

.coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.coupon-chip-btn {
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.coupon-chip-btn:hover {
  background: #fef2f2;
  border-color: var(--theme-red);
  color: var(--theme-red);
}

.empty-cart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 60px 24px;
  text-align: center;
}

.empty-cart-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #fef2f2;
  color: var(--theme-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

/* Universal Decimal Spacing Utilities */
.p-1\.5 { padding: 0.375rem !important; }
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }

.p-2\.5 { padding: 0.65rem !important; }
.px-2\.5 { padding-left: 0.65rem !important; padding-right: 0.65rem !important; }
.py-2\.5 { padding-top: 0.65rem !important; padding-bottom: 0.65rem !important; }

.p-3\.5 { padding: 1.15rem !important; }
.px-3\.5 { padding-left: 1.15rem !important; padding-right: 1.15rem !important; }
.py-3\.5 { padding-top: 1.15rem !important; padding-bottom: 1.15rem !important; }

