/* Base Theme Variables */
:root {
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Lobster', cursive;
  --bg-color: #faf8f6;
  --surface-color: #fff9f7;
  --text-primary: #2d2520;
  --text-secondary: #7a6b64;
  --border-color: #ede5e0;
  --primary: #ff6f61;
  --primary-dark: #e6564a;
  --primary-light: #ffb2a8;
  --accent-green: #25d366;
  --shadow-color: rgba(255, 111, 97, 0.08);
  --shadow-color-strong: rgba(255, 111, 97, 0.15);
  --gradient-start: #fff9f7;
  --gradient-end: #fdf1ec;
}

/* Dark Theme Variables */
body.dark {
  --bg-color: #2b2520;
  --surface-color: #3a3430;
  --text-primary: #f5f0ed;
  --text-secondary: #c9b8af;
  --border-color: #524a46;
  --primary: #ff8a76;
  --primary-dark: #ff7b6b;
  --primary-light: #ffb2a8;
  --shadow-color: rgba(255, 138, 118, 0.15);
  --shadow-color-strong: rgba(255, 138, 118, 0.25);
  --gradient-start: #3a3430;
  --gradient-end: #4a4038;
}

/* Atma Font Utilities for Bengali Text */
.atma-light {
  font-family: "Atma", system-ui;
  font-weight: 300;
  font-style: normal;
}

.atma-regular {
  font-family: "Atma", system-ui;
  font-weight: 400;
  font-style: normal;
}

.atma-medium {
  font-family: "Atma", system-ui;
  font-weight: 500;
  font-style: normal;
}

.atma-semibold {
  font-family: "Atma", system-ui;
  font-weight: 600;
  font-style: normal;
}

.atma-bold {
  font-family: "Atma", system-ui;
  font-weight: 700;
  font-style: normal;
}

/* Patrick Hand Font for English Text */
.patrick-hand-regular {
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
  font-style: normal;
}

/* Reset and Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr 340px;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.app-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(90deg, rgba(255, 111, 97, 0.03) 0%, transparent 100%);
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: '🍃';
  font-size: 1.8rem;
}

/* Controls and Buttons */
.top-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--surface-color);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-content: center;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 600;
}

.control-btn:hover {
  color: var(--primary);
  background-color: rgba(255, 111, 97, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px var(--shadow-color-strong);
}

.control-btn:active {
  transform: translateY(-1px);
}

/* Sidebar and Categories */
.sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
}

.sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.category-nav ul { 
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.category-nav a:hover {
  background-color: rgba(255, 111, 97, 0.08);
  color: var(--primary);
  border-color: rgba(255, 111, 97, 0.2);
}

.category-nav a.active {
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.15) 0%, rgba(255, 111, 97, 0.05) 100%);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}

.category-nav a.active i { 
  color: var(--primary);
}

.category-nav i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--text-secondary);
  transition: color 0.3s;
}

/* Product Grid Area */
.product-grid-area { min-width: 0; }

/* Vendor Section */
.vendor-section {
  margin-bottom: 35px;
}

.vendor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 15px;
}

.vendor-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.vendor-header h2 i {
  color: var(--primary);
  font-size: 1.4rem;
}

.clear-vendor-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.clear-vendor-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.clear-vendor-btn.hidden {
  display: none;
}

.vendor-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 0 15px;
  margin-bottom: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.vendor-carousel::-webkit-scrollbar {
  height: 6px;
}

.vendor-carousel::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 10px;
}

.vendor-carousel::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.vendor-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.vendor-card {
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 110px;
}

.vendor-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.08), rgba(230, 86, 74, 0.08));
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 50%;
  width: 74px;
  height: 74px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 2px 8px rgba(45,37,32,0.04);
  position: relative;
  overflow: hidden;
}

.vendor-card:hover {
  transform: translateY(-6px);
}

.vendor-card:hover .vendor-card-inner {
  border-color: rgba(255,111,97,0.18);
  box-shadow: 0 10px 24px rgba(230,86,74,0.12);
  transform: scale(1.03);
}

.vendor-card.active .vendor-card-inner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(230, 86, 74, 0.18);
  transform: scale(1.02);
}

/* Background icon inside circle (faint) */
.vendor-card-inner .bg-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 46px;
  color: rgba(255,255,255,0.12);
  pointer-events: none;
  transition: color 0.28s ease, transform 0.28s ease;
}

/* Shop name inside the circle */
.vendor-card-inner .vendor-name-in-circle {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 1.05;
}

/* When vendor active, make text white for contrast */
.vendor-card.active .vendor-name-in-circle {
  color: white;
}

/* Hide old vendor-info label that was below the circle */
.vendor-card .vendor-info.hidden-below { display: none; }

/* Slightly scale the background icon when hovered/active */
.vendor-card:hover .bg-icon { transform: translate(-50%, -50%) scale(1.04); }
.vendor-card.active .bg-icon { color: rgba(255,255,255,0.14); transform: translate(-50%, -50%) scale(1.02); }

.vendor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ff6f61, #e6564a);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

.vendor-card:hover .vendor-avatar {
  transform: scale(1.1);
}

.vendor-card.active .vendor-avatar {
  background: rgba(255, 255, 255, 0.2) !important;
}

.vendor-card.active .vendor-info h4 {
  color: white;
}

.vendor-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 6px 0 0;
  color: var(--text-primary);
  line-height: 1.15;
  text-align: center;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vendor-info .vendor-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.vendor-card.active .vendor-info .vendor-count {
  color: rgba(255, 255, 255, 0.85);
}

/* Search Bar */
.search-bar {
  max-width: 600px;
  margin: 0 auto 25px auto;
}

.search-container {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.search-container .fa-magnifying-glass {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  font-size: 1rem;
  opacity: 0.7;
}

input[type="search"] {
  width: 100%;
  padding: 13px 20px 13px 48px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  background-color: var(--surface-color);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-body);
  font-weight: 500;
}

input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 8px 20px var(--shadow-color-strong);
  transform: translateY(-2px);
}

input[type="search"]::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Product Grid */
#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Product Cards */
.product-card {
  background-color: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--shadow-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  border: 1px solid var(--border-color);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px var(--shadow-color-strong);
  border-color: rgba(255, 111, 97, 0.3);
}

/* Product Image Container */
.product-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.product-image-container:active { cursor: grabbing; }

/* Carousel */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease-out;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 248, 244, 0.5);
  backdrop-filter: blur(1px) grayscale(50%);
  display: grid;
  place-content: center;
  z-index: 10;
  pointer-events: none;
}

body.dark .out-of-stock-overlay {
  background-color: rgba(74, 59, 56, 0.5);
}

.out-of-stock-overlay .badge {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #d9534f;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: .80rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(-15deg);
  border: 5px solid white;
  box-shadow: 0 0 0 4px #d9534f;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Category Badge */
.category-icon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background-color: color-mix(in srgb, var(--primary) 85%, black 10%);
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  z-index: 5;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
  display: grid;
  place-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

.category-icon-badge:hover {
  transform: scale(1.1);
}

/* Product Info */
.product-card .info {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card .name {
  font-weight: 700;
  font-size: 1.1rem;
  flex-grow: 1;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-card .footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: auto;
  gap: 8px;
}

.product-card .price {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.action-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.share-btn-top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.share-btn-top:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Cart Buttons */
.add-to-cart-btn,
.view-options-btn,
.quantity-control {
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-body);
}

.add-to-cart-btn,
.view-options-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.25);
}

.add-to-cart-btn:hover,
.view-options-btn:hover {
  background: linear-gradient(135deg, #ff8a76 0%, #ff5a45 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.35);
}

.add-to-cart-btn:active,
.view-options-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 8px 10px;
}

.quantity-control button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 700;
}

.quantity-control button:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.quantity-control span {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 25px;
  text-align: center;
}

/* Variant Selector */
.variant-selector {
  width: 100%;
  padding: 10px 40px 10px 14px;
  margin-bottom: 14px;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  appearance: none;
  background-repeat: no-repeat, repeat;
  background-position: right 14px center, 0 0;
  background-size: 20px 20px, 100%;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  background-color: var(--surface-color);
  background-image: url("data:image/svg+xml,%3Csvg fill='%23757575' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.variant-selector:hover,
.variant-selector:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23ff6f61' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* Cart Area */
.cart-area {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.cart-wrapper {
  background-color: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--shadow-color-strong);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-bottom: 2px solid var(--border-color);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(90deg, rgba(255, 111, 97, 0.03) 0%, transparent 100%);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.cart-empty-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
  height: 100%;
  color: var(--text-secondary);
}

.cart-empty-msg i {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--border-color);
  opacity: 0.6;
}

.cart-empty-msg p {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cart-empty-msg span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Cart Items */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.cart-item:hover {
  background-color: rgba(255, 111, 97, 0.05);
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item .details {
  flex-grow: 1;
  font-size: 0.9rem;
}

.cart-footer {
  padding: 18px;
  border-top: 2px solid var(--border-color);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 111, 97, 0.02) 100%);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.cart-total span:last-child {
  color: var(--primary);
}

/* Cart Actions */
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
}

.whatsapp-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.25);
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #ff8a76 0%, #ff5a45 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.35);
}

.secondary-btn {
  background-color: var(--surface-color);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.secondary-btn:hover {
  border-color: var(--primary);
  background-color: rgba(255, 111, 97, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color-strong);
}

.action-btn[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}
.location-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.location-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

.location-btn.loading i {
  animation: fa-spin 1.5s infinite linear;
}

.location-btn.success {
  background-color: #25D366;
  border-color: #25D366;
  color: #fff;
  cursor: default;
}

.location-btn.error {
  border-color: #d9534f;
  color: #d9534f;
}

/* Status Messages */
.location-status-msg,
.pincode-status-msg {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.location-status-msg.idle {
  background-color: color-mix(in srgb, var(--primary) 20%, transparent);
  border: 1px solid var(--primary);
}

.location-status-msg.success,
.pincode-status-msg.success {
  background-color: color-mix(in srgb, #25D366 20%, transparent);
  border: 1px solid #25D366;
}

.location-status-msg.error,
.pincode-status-msg.error {
  background-color: color-mix(in srgb, #d9534f 20%, transparent);
  border: 1px solid #d9534f;
}

/* Utility Classes */
.action-btn[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.hidden {
  display: none !important;
}

#no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

#no-results h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* Simple Footer */
.simple-footer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 20px;
  border-top: 2px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 20px;
}

.simple-footer p {
  margin: 8px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface-color);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Media Queries */
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
    padding: 10px;
    padding-bottom: 100px;
  }
  
  .sidebar,
  .cart-area,
  .search-bar {
    display: none;
  }

  /* Vendor section mobile adjustments */
  .vendor-header {
    padding: 0 10px;
    margin-bottom: 15px;
  }

  .vendor-header h2 {
    font-size: 1.3rem;
  }

  .vendor-carousel {
    padding: 0 10px;
  }

  .vendor-card {
    width: auto;
  }

  .vendor-card-inner {
    width: 64px;
    height: 64px;
  }

  .vendor-avatar {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
  
  .vendor-info h4 {
    font-size: 0.78rem;
    max-width: 90px;
  }

  .vendor-info h4 {
    font-size: 0.85rem;
  }

  .vendor-info .vendor-count {
    font-size: 0.75rem;
  }
  
  .mobile-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.12);
    border: 2px solid transparent;
    border-radius: 50px;
    overflow: hidden;
    background-color: var(--surface-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
  }

  .mobile-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(255, 111, 97, 0.2);
  }

  .mobile-search-form::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f002";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
  }

  .mobile-search-form input {
    flex-grow: 1;
    padding: 13px 16px 13px 45px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
  }

  .mobile-search-form input::placeholder {
    color: var(--text-secondary);
  }

  .mobile-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
  }
  
  #category-filter-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 2px solid var(--border-color);
    background-color: var(--surface-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: grid;
    place-content: center;
    font-weight: 600;
    transition: all 0.3s;
  }

  #category-filter-btn:hover {
    background-color: rgba(255, 111, 97, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
  }
  
  #product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product-card .info {
    padding: 12px;
  }
  
  #mobile-cart-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 111, 97, 0.3);
    cursor: pointer;
    z-index: 1000;
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    font-weight: 600;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(100px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  #mobile-cart-modal {
    display: flex;
    align-items: flex-end;
    animation: slideUpModal 0.4s ease-out;
  }

  @keyframes slideUpModal {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 768px) {
  .app-header {
    padding: 12px 0;
  }

  .logo {
    font-size: 1.8rem;
  }

  #product-grid {
    grid-template-columns: 1fr;
  }

  .search-container .fa-magnifying-glass {
    left: 14px;
  }

  input[type="search"] {
    padding: 12px 16px 12px 42px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .app-layout {
    padding: 8px;
  }

  .app-header {
    padding: 10px 0;
  }

  .logo {
    font-size: 1.6rem;
  }

  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .logo::before {
    font-size: 1.4rem;
  }

  #mobile-cart-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .product-card .info {
    padding: 10px;
  }

  .product-card .name {
    font-size: 1rem;
  }

  .product-card .price {
    font-size: 1.3rem;
  }

  .add-to-cart-btn,
  .view-options-btn,
  .quantity-control {
    padding: 8px 10px;
    font-size: 0.8rem;
    min-width: 0;
    white-space: nowrap;
  }

  input[type="search"] {
    font-size: 16px;
    padding: 11px 14px 11px 40px;
  }

  .search-container .fa-magnifying-glass {
    left: 12px;
  }
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.modal.visible {
  opacity: 1;
  visibility: visible;
  display: flex;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface-color);
  padding: 28px 32px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border-color);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

#close-category-modal-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#close-category-modal-btn:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

/* Customer Info Modal */
#customer-info-modal label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  font-size: 0.95rem;
}

#customer-info-modal input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  font-size: 1rem;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  transition: all 0.3s;
}

#customer-info-modal input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(255, 111, 97, 0.1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.modal-actions button[type="submit"] {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.25);
}

.modal-actions button[type="submit"]:hover {
  background: linear-gradient(135deg, #ff8a76 0%, #ff5a45 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.35);
}

.modal-actions button[type="button"] {
  background-color: var(--bg-color);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.modal-actions button[type="button"]:hover {
  background-color: var(--border-color);
  border-color: var(--text-secondary);
}

/* Media Queries */
@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
    padding: 10px;
    padding-bottom: 100px;
  }
  
  .sidebar,
  .cart-area,
  .search-bar {
    display: none;
  }
  
  .mobile-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
  }
  
  #category-filter-btn {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid var(--border-color);
    background-color: var(--surface-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: grid;
    place-content: center;
  }
  
  #product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product-card .info {
    padding: 12px;
  }
  
  #mobile-cart-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background-color: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    animation: slide-in 0.5s forwards;
  }
  
  @keyframes slide-in {
    to { transform: translateY(0); }
  }
  
  #mobile-cart-modal {
    display: flex;
    align-items: flex-end;
  }
  
  #mobile-cart-modal.visible .cart-wrapper {
    transform: translateY(0);
  }
  
  #mobile-cart-modal .cart-wrapper {
    width: 100%;
    height: 85vh;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
  }
}

/* Mobile Category Modal */
#category-modal .modal-content {
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease-out;
}

#category-modal.visible .modal-content {
  transform: translateY(0);
  opacity: 1;
}

#category-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

#category-modal .modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

#close-category-modal-btn {
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0 5px;
  transition: color 0.2s;
}

#close-category-modal-btn:hover {
  color: var(--primary);
}

#category-modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#category-modal-list a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: background-color 0.2s;
}

#category-modal-list a:hover {
  background-color: var(--bg-color);
}

#category-modal-list a.active {
  background-color: var(--primary);
  color: #fff;
}

/* Footer Styles */
.simple-footer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.simple-footer p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.simple-footer .social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.simple-footer .social-links a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: color 0.2s, transform 0.2s;
}

.simple-footer .social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* === Product Details Modal === */
.product-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal.show {
    opacity: 1;
    visibility: visible;
}

.product-modal-content {
    background: var(--surface-color);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: row;
    max-height: 90vh;
}

.product-modal.show .product-modal-content {
    transform: translateY(0) scale(1);
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-primary, #333);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.product-modal-close:hover {
    background: white;
    color: var(--primary-coral, var(--primary, #ff6f61));
    transform: scale(1.1);
}

/* Image Column — Elegant Showcase */
.product-modal-image-col {
    width: 48%;
    background: linear-gradient(180deg, #f5eeeb 0%, #ece4df 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-modal-image-col::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.product-modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 520px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-modal-content:hover .product-modal-image-col img {
    transform: scale(1.04);
}

/* Info Column — Refined Layout */
.product-modal-info-col {
    width: 52%;
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

/* Decorative accent line */
.product-modal-info-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 3px;
    background: linear-gradient(90deg, #ff6f61, #ff9a76, transparent);
    border-radius: 2px;
    opacity: 0.5;
}

/* Category Badge — Elegant Pill */
.product-modal-category {
    font-size: 0.78rem;
    color: #c7603e;
    font-weight: 700;
    margin-bottom: 14px;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 154, 118, 0.12), rgba(255, 111, 97, 0.08));
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 111, 97, 0.15);
    width: fit-content;
}

.product-modal-category i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Title — Premium Typography */
.product-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #2d2520;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Price — Bold Statement */
.product-modal-price {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6f61, #e64a3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1;
    position: relative;
    display: inline-block;
}

/* Product Description — Icon Toggle */
.product-modal-description {
    font-size: 0.92rem;
    color: #5a4f47;
    line-height: 1.7;
    margin: 0 0 18px 0;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
    position: relative;
    word-wrap: break-word;
    box-shadow: none;
    font-family: 'Poppins', sans-serif;
}

.desc-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #fff5f2 0%, #ffeee8 100%);
    border: 1.5px solid rgba(255, 111, 97, 0.2);
    border-radius: 50%;
    color: #c7603e;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(255, 111, 97, 0.1);
    flex-shrink: 0;
    margin-top: 2px;
}

.desc-icon-btn i {
    transition: transform 0.3s ease;
}

.desc-icon-btn:hover {
    background: linear-gradient(135deg, #ffede8 0%, #ffddd4 100%);
    border-color: rgba(255, 111, 97, 0.35);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 111, 97, 0.2);
}

.desc-icon-btn.active {
    background: linear-gradient(135deg, #ff6f61 0%, #e64a3a 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 111, 97, 0.3);
}

.desc-full-text {
    margin-top: 14px;
    padding: 22px 26px;
    background: #ffffff;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 111, 97, 0.1);
    border-left: 5px solid #ff6f61;
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.03), 
        0 2px 8px rgba(255,111,97,0.04);
    animation: descReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top center;
    position: relative;
}

.desc-full-text::before {
    content: '\f10d'; /* FontAwesome Quote icon */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 24px;
    color: rgba(255, 111, 97, 0.08);
}

.desc-full-text p {
    margin: 0;
    color: #4a3f35;
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.2px;
}

@keyframes descReveal {
    0% { opacity: 0; transform: translateY(-8px) scaleY(0.96); }
    100% { opacity: 1; transform: translateY(0) scaleY(1); }
}



/* Variant Pills Showcase */
.variant-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.variant-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    background: #faf8f6;
    border: 2px solid #ede5e0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 100px;
    font-family: 'Poppins', sans-serif;
}

.variant-pill:hover {
    border-color: rgba(255, 111, 97, 0.4);
    background: #fffafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.08);
}

.variant-pill.active {
    background: linear-gradient(135deg, #fff5f2 0%, #ffeee8 100%);
    border-color: #ff6f61;
    box-shadow: 0 4px 14px rgba(255, 111, 97, 0.15);
}

.variant-weight {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a3f35;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.variant-pill.active .variant-weight {
    color: #c7603e;
}

.variant-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8c7e73;
    transition: color 0.2s;
}

.variant-pill.active .variant-price {
    color: #e64a3a;
}

/* Actions Section — Luxury Controls */
.product-modal-actions {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* In Cart Message — Success State */
.product-modal-actions .in-cart-msg {
    order: 2;
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f8ea, #d4efdf);
    color: #1a8c3a;
    font-weight: 700;
    font-size: 13px;
    height: 52px;
    border-radius: 16px;
    gap: 8px;
    margin: 0;
    letter-spacing: 0.3px;
    border: 1px solid rgba(40, 167, 69, 0.15);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.08);
}

.product-modal-actions .in-cart-msg i {
    font-size: 1rem;
}

/* Quantity Selector — Premium Stepper */
.product-modal-actions .qty-selector {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #faf8f6, #f3eeeb);
    border-radius: 16px;
    border: 1.5px solid rgba(0,0,0,0.06);
    overflow: hidden;
    height: 52px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 2px rgba(0,0,0,0.02);
}

.product-modal-actions .qty-btn {
    width: 48px;
    height: 100%;
    background: transparent;
    border: none;
    color: #c7603e;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-modal-actions .qty-btn:hover {
    background: rgba(255, 111, 97, 0.1);
    color: #e64a3a;
}

.product-modal-actions .qty-btn:active {
    background: rgba(255, 111, 97, 0.2);
    transform: scale(0.92);
}

.product-modal-actions .qty-value {
    width: 44px;
    text-align: center;
    font-weight: 800;
    font-size: 17px;
    color: #2d2520;
    letter-spacing: -0.5px;
    border-left: 1px solid rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
    line-height: 52px;
}

/* Add to Cart Button — Premium CTA */
.product-modal-actions .add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #ff6f61 0%, #e64a3a 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.4px;
    box-shadow:
        0 8px 24px rgba(255, 111, 97, 0.3),
        0 2px 6px rgba(255, 111, 97, 0.15);
    height: 52px;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.product-modal-actions .add-to-cart-btn i {
    font-size: 1.4rem;
}

.product-modal-actions .add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.product-modal-actions .add-to-cart-btn:hover::before {
    left: 100%;
}

.product-modal-actions .add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px rgba(255, 111, 97, 0.4),
        0 4px 12px rgba(255, 111, 97, 0.2);
}

.product-modal-actions .add-to-cart-btn:active {
    transform: translateY(-1px);
}

/* Share Button Styling */
.product-modal-actions > .share-btn {
    order: 3;
    flex: 0 0 52px;
    height: 52px;
    background: linear-gradient(135deg, #faf8f6, #f3eeeb);
    border: 1.5px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    color: #c7603e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.product-modal-actions > .share-btn:hover {
    background: rgba(255, 111, 97, 0.1);
    color: #e64a3a;
    border-color: rgba(255, 111, 97, 0.2);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .product-modal {
        align-items: flex-end;
        padding: 0;
    }

    .product-modal-content {
        flex-direction: column;
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow: hidden;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        margin: 0;
        padding-bottom: 0;
        display: flex;
    }
    
    .product-modal.show .product-modal-content {
        transform: translateY(0);
    }
    
    .product-modal-close {
        top: 10px;
        right: 10px;
    }

    .product-modal-image-col {
        width: 100%;
        max-height: 40%;
        flex: 0 0 auto;
        border-radius: 0;
    }

    .product-modal-image-col img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: 260px;
    }
    
    .product-modal-info-col {
        width: 100%;
        padding: 20px 20px 24px;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }

    .product-modal-info-col::before {
        left: 20px;
        right: 20px;
    }
    
    .product-modal-title {
        font-size: 1.5rem;
    }

    .product-modal-actions {
        padding-bottom: 4px;
        padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        position: sticky;
        bottom: 0;
        background: var(--surface-color);
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    .product-modal-actions > .qty-selector {
        order: 1;
        flex: 0 0 auto;
    }
    .product-modal-actions > .share-btn {
        order: 3;
        margin-left: auto;
    }
    .product-modal-actions > .add-to-cart-btn,
    .product-modal-actions > .in-cart-msg {
        order: 2;
        flex: 1;
        min-width: 100px;
    }

    .product-modal-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* Very short screens (landscape, small phones) */
@media (max-width: 768px) and (max-height: 600px) {
    .product-modal-content {
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .product-modal-image-col {
        max-height: 35%;
    }

    .product-modal-image-col img {
        max-height: 180px;
    }

    .product-modal-info-col {
        padding: 14px 16px 20px;
    }

    .product-modal-category {
        margin-bottom: 8px;
        margin-top: 6px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .product-modal-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .product-modal-price {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .product-modal-actions {
        gap: 8px;
    }

    .product-modal-actions .qty-selector {
        height: 44px;
    }

    .product-modal-actions .add-to-cart-btn {
        height: 44px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .product-modal-actions .in-cart-msg {
        height: 44px;
    }

    .product-modal-actions > .share-btn {
        flex: 0 0 44px;
        height: 44px;
    }
}

/* =============================================
   Vendor Welcome Banner (QR Code Landing)
   ============================================= */
.vendor-welcome-banner {
    margin: 0 15px 20px;
    animation: vendorBannerSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vendor-welcome-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #d04a3e 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(255, 111, 97, 0.3);
    position: relative;
    overflow: hidden;
}

.vendor-welcome-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.vendor-welcome-inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.vendor-welcome-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.vendor-welcome-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1;
}

.vendor-welcome-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vendor-welcome-name {
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.vendor-welcome-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 1;
}

.vendor-welcome-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes vendorBannerSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vendorBannerSlideOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}