@import url('https://fonts.googleapis.com/css2?family=Marck+Script&family=Neucha&display=swap');

:root {
  --bg: #F5F5F0;
  --surface: #FFFFFF;
  --primary: #2C3E2C;
  --accent: #8B9D83;
  --accent2: #E8EBE7;
  --accent3: #F5F5F0;
  --text: #2C3E2C;
  --muted: #6B7B6B;
  --light-bg: #FAFAF7;
  --dark-green: #2C3E2C;
  --page-header-color: var(--primary);
  /* ─ Section-specific overrideable colors ─ */
  --top-header-bg: #000000;
  --top-header-text: #ffffff;
  --main-header-bg: #FFFFFF;
  --footer-bg: #2C3E2C;
  --footer-text: #f5f5f5;
  --banner-bg: #2C3E2C;
  --banner-text: #ffffff;
  --product-bg: #FFFFFF;
  --product-title-color: #1a1a1a;
  --product-price-color: #333333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Neucha', cursive;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 138px; /* 38px top-header + 90px header + 10px buffer */
}

/* ===== LAYOUT ===== */

.container {
  max-width: 1800px;
  margin: auto;
  padding: 40px 32px;
}

/* ===== TOP-HEADER ===== */

.top-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  background: var(--top-header-bg);
  border-bottom: 1px solid #333333;
  z-index: 2147483645 !important;
  height: 38px;
  color: var(--top-header-text);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.top-header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 30px;
  padding: 4px 32px;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.top-header-info {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--top-header-text);
  justify-content: center;
}

.top-header-info .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--top-header-text);
}

.top-header-info .info-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

.top-header-info a {
  color: var(--top-header-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-header-info a:hover {
  color: var(--accent);
}

.special-offers {
  color: #ff3333;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.3px;
}

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

.header {
  position: fixed !important;
  top: 38px;
  left: 0;
  right: 0;
  background: var(--main-header-bg);
  z-index: 2147483646 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 110px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  min-height: 90px;
  gap: 12px;
  padding: 0 32px !important;
  max-width: 100% !important;
  width: 100%;
  position: relative;
}

/* ===== HAMBURGER MENU ===== */

.hamburger-menu {
  position: relative;
  flex-shrink: 0;
  z-index: 999999;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 45px;
  height: 45px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hamburger-btn:hover {
  background: var(--light-bg);
  border-color: var(--accent);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hamburger-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line {
  background: white;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== MEGA MENU ===== */

.mega-menu {
  position: fixed;
  top: 128px;
  left: 20px;
  background: white;
  min-width: 340px;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 2px solid var(--accent);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2147483645 !important;
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 12px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--accent);
}

.mega-menu::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 13px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid white;
}

.mega-menu-content {
  padding: 12px 0;
}

.mega-menu-section {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.mega-menu-section:last-child {
  border-bottom: none;
}

.mega-menu-section:hover {
  background: rgba(212, 175, 55, 0.02);
}

.mega-menu-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
  transition: all 0.3s ease;
  position: relative;
  background: linear-gradient(to right, transparent 0%, var(--light-bg) 0%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  user-select: none;
}

.mega-menu-parent.has-children {
  cursor: pointer;
}

.mega-menu-parent.no-children {
  cursor: pointer;
}

.mega-menu-parent.no-children:hover {
  color: var(--accent);
  background-size: 100% 100%;
  padding-left: 32px;
}

.mega-menu-parent:hover {
  color: var(--accent);
  background-size: 100% 100%;
  padding-left: 32px;
}

.mega-menu-section.expanded .mega-menu-parent {
  background: var(--light-bg);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.parent-title {
  flex: 1;
}

.mega-arrow {
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.mega-menu-section.expanded .mega-arrow {
  transform: rotate(180deg);
}

.mega-menu-children {
  display: none;
  background: var(--light-bg);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.mega-menu-section.expanded .mega-menu-children {
  display: block;
  max-height: 1000px;
  padding: 8px 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.mega-menu-child {
  display: block;
  padding: 12px 24px 12px 48px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.mega-menu-child.mega-parent-link {
  font-weight: 600;
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--accent);
  padding-left: 45px;
}

.mega-menu-child.mega-parent-link .all-link {
  color: var(--accent);
}

.mega-menu-child::before {
  content: "→";
  position: absolute;
  left: 32px;
  color: var(--accent);
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-10px);
}

.mega-menu-child.mega-parent-link::before {
  content: "⦿";
  opacity: 1;
  transform: translateX(0);
  left: 28px;
}

.mega-menu-child:hover {
  background: white;
  color: var(--accent);
  padding-left: 56px;
  border-left-color: var(--accent);
}

.mega-menu-child.mega-parent-link:hover {
  padding-left: 52px;
  background: rgba(212, 175, 55, 0.1);
}

.mega-menu-child:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===== SCROLLBAR FOR MEGA MENU ===== */

.mega-menu::-webkit-scrollbar {
  width: 6px;
}

.mega-menu::-webkit-scrollbar-track {
  background: transparent;
}

.mega-menu::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Smooth fade-in animation for menu items */
.mega-menu.active .mega-menu-section {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

.mega-menu.active .mega-menu-section:nth-child(1) { animation-delay: 0.05s; }
.mega-menu.active .mega-menu-section:nth-child(2) { animation-delay: 0.1s; }
.mega-menu.active .mega-menu-section:nth-child(3) { animation-delay: 0.15s; }
.mega-menu.active .mega-menu-section:nth-child(4) { animation-delay: 0.2s; }
.mega-menu.active .mega-menu-section:nth-child(5) { animation-delay: 0.25s; }
.mega-menu.active .mega-menu-section:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  font-family: 'Marck Script', cursive;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--primary);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-right: none;
  position: absolute;
  left: 50%;
  top: 10px;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

.logo a {
  pointer-events: auto;
}

.logo-text {
  font-family: 'Marck Script', cursive;
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  width: 100%;
}

/* Small logo image next to the burger button (desktop) */
.header-logo-small {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.header-logo-small img {
  height: 130px;
  width: auto;
  border-radius: 50%;
  display: block;
  margin: -24px 0;
  transform: scale(1.31);        /* bigger without affecting header bar size */
  transform-origin: left center;
}

/* Hide mobile logo image on desktop */
.logo-img-mobile {
  display: none;
  
}

.nav {
  display: none; /* Hidden - using hamburger menu instead */
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
  position: relative;
  transition: all 0.3s ease;
  border-right: 1px solid var(--accent2);
  letter-spacing: 0.3px;
}

.nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s ease;
}

.nav a:hover {
  color: var(--accent);
  background-color: var(--light-bg);
}

.nav a:hover::before {
  transform: scaleX(1);
}

.nav a:hover::after {
  width: 0;
}

.nav a.cart-link,
.cart-link {
  position: static !important;
  margin-left: auto;
  left: auto !important;
  transform: none !important;
  top: auto !important;
  background: #f8f8f8 !important;
  color: #333 !important;
  padding: 8px 16px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 25px !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  gap: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.nav a.cart-link:hover,
.cart-link:hover {
  background: #ffffff !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 8px rgba(212,175,55,0.15);
  transform: translateY(-1px) !important;
}

.nav a.cart-link:hover::before,
.cart-link:hover::before {
  transform: scaleX(0);
}

/* ===== DROPDOWN MENU ===== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 18px;
  position: relative;
  transition: all 0.3s ease;
  border-right: 1px solid var(--accent2);
  letter-spacing: 0.3px;
  cursor: pointer;
  gap: 6px;
}

.dropdown-toggle .arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.dropdown-toggle::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.dropdown-toggle:hover {
  color: var(--accent);
  background-color: var(--light-bg);
}

.dropdown-toggle:hover::before {
  transform: scaleX(1);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  border-top: 3px solid var(--accent);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--accent2);
  position: relative;
}

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

.dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--light-bg);
  color: var(--accent);
  padding-left: 24px;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

/* ===== HERO ===== */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
  position: relative;
  padding: 60px 0;
}

.hero h1 {
  font-family: 'Marck Script', cursive;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
}

.hero p {
  margin-top: 24px;
  font-size: 22px;
  color: var(--muted);
  max-width: 520px;
}

.hero .cta {
  margin-top: 40px;
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: background .2s ease;
}

.hero .cta:hover {
  background: var(--accent);
}

.hero-image {
  height: 500px;
  border-radius: 0;
  background: url("https://images.unsplash.com/photo-1526045612212-70caf35c14df") center/cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
}

/* ===== PRODUCTS ===== */

.section-title {
  margin-top: 80px;
  margin-bottom: 40px;
  font-family: 'Marck Script', cursive;
  font-size: 48px;
  color: #1a1a1a;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  width: 100%;
}

.product-card {
  background: var(--product-bg);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44, 62, 44, 0.08);
  transition: box-shadow .3s ease;
  border: 1px solid var(--accent2);
  position: relative;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(139, 157, 131, 0.2);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.product-content {
  padding: 24px;
}

.product-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--product-title-color);
  margin-bottom: 8px;
}

.product-content .price {
  margin: 8px 0 16px;
  font-weight: 600;
  font-size: 20px;
  color: var(--product-price-color);
}

.product-content button {
  width: 100%;
  padding: 12px;
  border-radius: 0;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-content button:hover {
  background: var(--accent);
}

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

.footer {
  margin-top: 100px;
  padding: 40px 0;
  background: var(--light-bg);
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  border-top: 1px solid var(--accent2);
  position: relative;
}

/* ===== PAGE HEADER ===== */

.page-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 40px;
}

.page-header h1 {
  font-family: 'Marck Script', cursive;
  font-size: 72px;
  font-weight: 700;
  color: var(--page-header-color);
  margin-bottom: 12px;
  line-height: 1.15;
}

.page-header p {
  font-size: 20px;
  color: #666666;
  max-width: 600px;
}

/* ===== CART PAGE ===== */

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #666666;
  font-size: 20px;
}

.cart-table {
  border: 1px solid #e0e0e0;
  margin-bottom: 40px;
}

.cart-header {
  display: grid;
  grid-template-columns: 100px 2fr 1fr 1fr 1fr 60px;
  gap: 16px;
  padding: 16px 24px;
  background: #f9f9f9;
  font-weight: 600;
  font-size: 18px;
  color: #333333;
  border-bottom: 1px solid #e0e0e0;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 2fr 1fr 1fr 1fr 60px;
  gap: 16px;
  padding: 20px 24px;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

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

.cart-item-image {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  display: block;
  justify-self: center;
}

.item-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 20px;
  line-height: 1.4;
}

.item-price {
  color: #666666;
}

.item-qty {
  width: 70px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  text-align: center;
  font-size: 18px;
}

.item-total {
  font-weight: 600;
  color: #333333;
}

.remove-btn {
  width: 32px;
  height: 32px;
  background: #ffebee;
  border: 2px solid #ef5350;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: #d32f2f;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.remove-btn:hover {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #fff;
  transform: rotate(90deg);
}

.cart-summary {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}

.summary-box {
  width: 100%;
  max-width: 400px;
  border: 1px solid #e0e0e0;
  padding: 24px;
  background: #f9f9f9;
}

.summary-box h3 {
  font-family: 'Marck Script', cursive;
  font-size: 28px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 18px;
  color: #666666;
}

.summary-row.total {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 20px;
  color: #1a1a1a;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  transition: background .3s ease;
}

.checkout-btn:hover {
  background: var(--accent);
}

.continue-shopping {
  display: block;
  text-align: center;
  padding: 12px;
  color: #333333;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  font-size: 18px;
  transition: all .3s ease;
}

/* ===== Global modal image: handled in base .modal-image rule below ===== */

/* ===== Static decorative background (site-wide) ===== */
/* Remove public site header padding on admin pages */
body.no-bg {
  padding-top: 0;
}

/* Applied only when body does NOT have the `no-bg` class (admin pages) */
body:not(.no-bg)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("../images/background/background.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.06; /* subtle */
}

/* Ensure main content sits above the decorative background */
.container, .footer {
  position: relative;
  z-index: 1;
}

/* Product preview modal — wide, compact, scrollable body on desktop */
.modal .modal-content {
  max-width: min(92vw, 1100px) !important;
  width: 92vw !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-shadow: 0 8px 36px rgba(0,0,0,0.35) !important;
}

.modal .modal-body {
  padding: 20px 24px !important;
}

/* On small screens — full-screen scrollable modal */
@media (max-width: 768px) {
  .modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .modal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    height: 100%;
    margin: 0 !important;
    border-radius: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 0;
  }

  .modal .modal-body {
    padding: 16px !important;
    padding-bottom: 80px !important;
    max-height: none;
    overflow: visible;
    flex-direction: column;
  }

  .modal-left, .modal-right {
    flex: none;
    max-width: 100%;
  }

  .modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 16px;
    border-radius: 0;
  }

  .modal-header h2 {
    font-size: 18px;
    flex: 1;
    padding-right: 10px;
  }

  .close-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
  }

  .modal-image {
    max-height: 45vh;
    width: 100%;
  }

  .modal-slide .modal-image {
    max-height: 45vh;
  }

  .modal-image-container {
    margin-bottom: 12px;
  }

  /* Mobile: show mobile-only elements, hide desktop-only */
  .modal-type.modal-type-mobile {
    display: inline-block !important;
    margin-bottom: 8px;
  }
  .modal-actions.modal-actions-mobile {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    margin: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #e0e0e0;
  }
  .modal-type.modal-type-desktop,
  .modal-actions.modal-actions-desktop {
    display: none !important;
  }

  .modal-price {
    font-size: 22px;
    margin: 8px 0;
  }

  /* Slider arrows always visible on mobile */
  .slider-arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .modal-gallery-thumb {
    width: 50px;
    height: 50px;
  }

  .modal-description {
    font-size: 14px;
    min-height: auto;
    margin-bottom: 12px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .modal-actions button {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }

  /* Preview modal */
  .preview-modal-content {
    max-height: none;
    overflow: visible;
    width: calc(100% - 20px);
    max-width: none;
  }

  .preview-modal-body {
    overflow: visible;
    max-height: none;
  }
}

.continue-shopping:hover {
  background: #f5f5f5;
}

/* ===== RESPONSIVE ===== */

/* Extra large desktops */
@media (min-width: 2000px) {
  .products-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Large desktops */
@media (min-width: 1600px) and (max-width: 1999px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1599px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Small desktop / Large tablet */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    padding: 32px 24px;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  
  .cart-header,
  .cart-item {
    grid-template-columns: 80px 1.5fr 1fr 1fr 1fr 50px;
    gap: 12px;
    padding: 16px 20px;
  }
  
  .cart-item-image {
    width: 70px !important;
    height: 70px !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    padding: 28px 20px;
  }
  
  .hero h1 {
    font-size: 60px;
  }
  
  .section-title {
    font-size: 40px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .cart-header,
  .cart-item {
    grid-template-columns: 70px 2fr 1fr 80px 1fr 45px;
    gap: 10px;
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .cart-item-image {
    width: 60px !important;
    height: 60px !important;
  }
  
  .item-name {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body {
    font-size: 16px;
    padding-top: 128px; /* mobile top-header ~38px + mobile header ~90px */
  }

  .header {
    top: 38px !important;
  }

  .container {
    padding: 16px 12px;
  }

  /* ---- Top Header: show only working hours on mobile ---- */
  .top-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 6px 12px;
    min-height: unset;
    overflow-x: hidden;
  }

  .top-header-info {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    font-size: 13px;
    width: auto;
    justify-content: center;
  }

  /* Hide all info items on mobile */
  .top-header-info .info-item {
    display: none;
  }

  /* Show only the working hours item on mobile */
  .top-header-info .info-item-hours {
    display: flex;
    flex-shrink: 0;
  }

  .special-offers {
    display: none;
  }

  /* ---- Header: keep as one row (hamburger | logo | cart) ---- */
  .header {
    min-height: 90px;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px !important;
    min-height: 90px;
    gap: 6px;
  }

  /* Hide the small logo next to burger on mobile */
  .header-logo-small {
    display: none;
  }

  .logo {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0;
    border-right: none;
    overflow: visible;
    min-width: 0;
    top: 0;   
  }

  .logo a {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
  }

  /* Show a bigger logo image centered on mobile */
  .logo-img-mobile {
    display: block !important;
    height: 98px !important;
    width: auto !important;
    border-radius: 50% !important;
    margin: -15px auto !important;
    transform: scale(1.34) !important;
    transform-origin: center center !important;
  }

  .logo-text {
    display: none;
  }

  /* ---- Mega menu: don't overflow screen ---- */
  .mega-menu {
    max-width: calc(100vw - 16px);
    min-width: 260px;
  }

  .cart-link {
    padding: 6px 10px !important;
  }

  /* ---- Hero ---- */
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
    margin-top: 16px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-image {
    height: 240px;
  }

  /* ---- Slider mobile ---- */
  .site-slider {
    max-height: 280px !important;
    min-height: 160px !important;
  }

  .site-slider .slide {
    background-size: cover !important;
    background-position: center !important;
  }

  /* ---- Products ---- */
  .section-title {
    font-size: 34px;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card img {
    height: 170px;
  }

  .product-content {
    padding: 12px;
  }

  .product-content h3 {
    font-size: 14px;
  }

  .product-content .price {
    font-size: 15px;
    margin: 6px 0 10px;
  }

  .product-content button {
    font-size: 13px;
    padding: 10px;
  }

  /* ---- Page Header ---- */
  .page-header {
    padding: 28px 0 18px;
    margin-bottom: 20px;
  }

  .page-header h1 {
    font-size: 48px;
  }

  .page-header p {
    font-size: 16px;
  }

  /* ---- Cart ---- */
  .cart-table {
    overflow-x: auto;
  }

  .cart-header {
    display: none;
  }

  .cart-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    margin-bottom: 12px;
    border-radius: 4px;
  }

  .cart-item-image {
    width: 100% !important;
    height: 200px !important;
    max-width: 300px;
    margin: 0 auto;
  }

  .item-name {
    font-size: 18px;
    text-align: center;
  }

  .item-price,
  .item-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .item-price::before {
    content: 'Цена: ';
    font-weight: 600;
  }

  .item-total::before {
    content: 'Общо: ';
    font-weight: 600;
  }

  .item-qty {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
  }

  .remove-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    border-radius: 6px;
    height: 40px;
  }

  .cart-summary {
    margin-top: 20px;
  }

  .summary-box {
    max-width: 100%;
  }

  /* ---- Footer ---- */
  .footer {
    margin-top: 48px;
    font-size: 14px;
    padding: 28px 0;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .logo-img-mobile {
    height: 77px !important;
    width: auto !important;
    margin: -15px auto !important;
    transform: scale(1.52) !important;
    transform-origin: center center !important; 
    /* */
  }

  .product-content h3 {
    font-size: 13px;
  }

  .product-content .price {
    font-size: 14px;
  }

  .product-content button {
    font-size: 12px;
    padding: 8px 4px;
  }
}

/* ===== PREVIEW MODAL ===== */

.preview-modal {
  display: none;
  position: fixed;
  z-index: 2147483647;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(4px);
}

.preview-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-modal-content {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  max-height: 85vh;
  overflow-y: visible;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.preview-modal-header {
  position: sticky;
  top: 0;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}

.preview-modal-header h2 {
  margin: 0;
  font-family: 'Marck Script', cursive;
  font-size: 28px;
  color: #1a1a1a;
}

.preview-modal-close {
  background: none;
  border: none;
  font-size: 36px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.preview-modal-close:hover {
  color: #333;
}

.preview-modal-body {
  padding: 24px;
}

.preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #999;
}

.preview-loading::after {
  content: '';
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border: 3px solid #f0f0f0;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.preview-error {
  padding: 20px;
  background: #ffebee;
  border-left: 4px solid #d32f2f;
  border-radius: 4px;
  color: #d32f2f;
}

.preview-button {
  padding: 10px 20px;
  background: #8B9D83;
  color: white;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

.preview-button:hover {
  background: #6B8B6B;
}

.preview-button-group {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

/* ===== PRODUCT MODAL ===== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal {
  display: none;
  position: fixed;
  z-index: 2147483647;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(2px);
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Hide site headers when modal is open */
body.modal-open {
  overflow: hidden;
}

body.modal-open .top-header,
body.modal-open .header {
  display: none !important;
}

.modal-content {
  background: #FFFFFF;
  margin: 0 auto;
  padding: 0;
  border-radius: 12px;
  max-width: min(92vw, 1100px);
  width: 92vw;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(44, 62, 44, 0.2);
  animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.modal-header {
  padding: 16px 24px;
  border-bottom: 2px solid #E8EBE7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F5F5F0;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
}

.close-btn {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  background: rgba(0,0,0,0.08);
  border: none;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  flex-shrink: 0;
}

.close-btn:hover {
  color: #8B9D83;
  background: rgba(139, 157, 131, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  align-items: flex-start;
}

.modal-left {
  flex: 0 0 55%;
  max-width: 95%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
}

.modal-actions {
  flex-shrink: 0;
  padding-top: 4px;
}

.modal-image-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #F5F5F0;
  box-shadow: 0 4px 20px rgba(44, 62, 44, 0.12);
  cursor: zoom-in;
}

/* ===== IMAGE SLIDER ===== */
.modal-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #F5F5F0;
  box-shadow: 0 4px 20px rgba(44, 62, 44, 0.12);
  cursor: zoom-in;
}

.modal-slider {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.modal-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.modal-slide .modal-image {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.modal-slider-wrapper:hover .zoom-hint {
  opacity: 1;
}

.modal-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(0,0,0,0.15);
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #2C3E2C;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.modal-slider-wrapper:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-left {
  left: 8px;
}

.slider-arrow-right {
  right: 8px;
}

/* Mobile/desktop visibility toggles moved after .modal-type/.modal-actions base rules */

.modal-image {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  display: block;
  transition: none;
}

.modal-image-container:hover .modal-image {
  transform: none;
}

.modal-slider-wrapper:hover .modal-slide .modal-image {
  transform: none;
}

.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(44, 62, 44, 0.85);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-image-container:hover .zoom-hint {
  opacity: 1;
}

.zoom-modal {
  display: none;
  position: fixed;
  z-index: 2147483646;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
  cursor: zoom-out;
}

.zoom-modal img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-price {
  font-size: 28px;
  font-weight: 700;
  color: #2C3E2C;
  margin: 4px 0;
  letter-spacing: 0.5px;
}

.modal-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
  min-height: 0;
  white-space: pre-wrap;
}

/* ===== PRODUCT IMAGE GALLERY ===== */
.modal-gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}

.modal-gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.modal-gallery-thumb.active,
.modal-gallery-thumb:hover {
  border-color: var(--primary);
}

/* ===== ADMIN EXTRA IMAGES ===== */
.extra-images-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.extra-image-item {
  position: relative;
  width: 80px;
}

.extra-image-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.extra-image-item .del-img-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  padding: 0;
}

.modal-type {
  display: inline-block;
  background: #E8EBE7;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 12px;
  color: #2C3E2C;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  align-self: flex-start;
  width: fit-content;
}

/* Desktop: hide mobile-only elements */
.modal-type.modal-type-mobile,
.modal-actions.modal-actions-mobile {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.add-to-cart-btn {
  background: #2C3E2C;
  color: white;
  box-shadow: 0 4px 15px rgba(44, 62, 44, 0.3);
}

.add-to-cart-btn:hover {
  background: #8B9D83;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 157, 131, 0.4);
}

/* ===== PRODUCT CARD ===== */

.product-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(139, 157, 131, 0.15);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 30px rgba(139, 157, 131, 0.25);
}

.product-card:hover::before {
  opacity: 1;
}

@media (max-width: 1024px) {
  .modal-body {
    flex-direction: column;
  }
  .modal-left, .modal-right {
    flex: none;
    max-width: 100%;
  }
}

/* ===== MEGA-MENU MOBILE POSITION ===== */
@media (max-width: 767px) {
  .mega-menu {
    top: 98px !important;
    left: 10px !important;
  }
}

/* ===== CART QTY CONTROLS ===== */
.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}
.qty-btn:hover {
  background: #e0e0e0;
}
.qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

/* ===== CART TOAST NOTIFICATION ===== */
.cart-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2C3E2C;
  color: white;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  z-index: 2147483647;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 260px;
  max-width: 340px;
}
.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cart-toast-text {
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-toast-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.cart-toast-bar {
  height: 100%;
  width: 100%;
  background: #d4af37;
  border-radius: 2px;
  transition: width 4s linear;
}
.cart-toast-actions {
  display: flex;
  justify-content: flex-end;
}
.cart-toast-link {
  color: #d4af37;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(212,175,55,0.4);
  transition: color 0.2s;
}
.cart-toast-link:hover {
  color: #f0cc5c;
}

/* ===== MOBILE MODAL: STICKY ADD TO CART ===== */
@media (max-width: 767px) {
  .modal {
    display: none;
    position: fixed;
    z-index: 2147483647 !important;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    overflow: hidden;
    padding-top: 0 !important;
  }
  .modal .modal-content {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: calc(100vh - 98px);
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
  }
  .modal .modal-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #F5F5F0;
    border-radius: 16px 16px 0 0;
    padding: 14px 16px;
  }
  .modal .modal-body {
    flex: 1;
    overflow-y: auto !important;
    padding: 14px 16px 80px 16px !important;
    display: block !important;
    grid-template-columns: unset !important;
    -webkit-overflow-scrolling: touch;
  }
  .modal .modal-actions {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.12);
    z-index: 6;
    flex-direction: row !important;
  }
  .modal .modal-image {
    max-height: 40vh;
    width: 100%;
    object-fit: contain;
    margin-bottom: 12px;
  }
  .modal .modal-type {
    margin-bottom: 10px;
  }
}

/* ===== FOOTER SOCIAL ROWS ===== */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0;
}
.footer-social-row .social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =+==== PRODUCT DESCRIPTION LINE BREAKS ====+= */
.product-desc-display {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
  color: #555;
}

