@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables & Theme System */
:root {
  --primary: #0b5e3a;
  --primary-rgb: 11, 94, 58;
  --primary-hover: #07442a;
  --accent: #c6923c;
  --accent-hover: #a9782a;
  --bg-main: #faf9f6;
  --bg-card: #ffffff;
  --bg-input: #f1f3f0;
  --text-main: #1c2a22;
  --text-muted: #5a6e63;
  --border-color: #e2e8e5;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --border-radius: 12px;
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1280px;
}

[data-theme="dark"] {
  --bg-main: #0c120f;
  --bg-card: #141c18;
  --bg-input: #1b2621;
  --text-main: #ecf3ef;
  --text-muted: #8ea195;
  --border-color: #23322a;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 600;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* Sticky Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

[data-theme="dark"] header {
  background-color: rgba(12, 18, 15, 0.85);
}

.header-container {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-svg {
  width: 42px;
  height: 42px;
  fill: var(--primary);
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-svg {
  transform: rotate(-10deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 8px;
  position: relative;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background-color: var(--bg-input);
  transform: scale(1.05);
}

.cart-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

/* Theme Toggle Button Icon swap */
.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Footer styling */
footer {
  background-color: #111b15;
  color: #e2e8e5;
  padding: 64px 0 24px;
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-info p {
  color: #8ea195;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.footer-logo .logo-svg {
  fill: #ffffff;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #8ea195;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-input {
  flex-grow: 1;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.btn {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-header);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 94, 58, 0.2);
}

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

.btn-accent:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(198, 146, 60, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-input);
  box-shadow: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8ea195;
  font-size: 0.85rem;
}

/* Premium Home Page Hero */
.hero-section {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 180px);
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: rgba(20, 28, 24, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.hero-badge h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
}

.hero-badge p {
  font-size: 0.8rem;
  color: #8ea195;
}

/* Features Highlight Bar */
.features-bar {
  padding: 40px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 60px;
  box-shadow: var(--shadow-sm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: rgba(11, 94, 58, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Product Card Grid */
.section-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-title-wrapper h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

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

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-img-container {
  position: relative;
  padding-bottom: 100%; /* square ratio */
  background-color: var(--bg-input);
  overflow: hidden;
}

.product-img-primary,
.product-img-secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-img-secondary {
  opacity: 0;
}

.product-card:hover .product-img-secondary {
  opacity: 1;
}

.product-card:hover .product-img-primary {
  transform: scale(1.03);
}

.discount-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vendor-badge {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-info-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 6px 0 10px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}

.price-add-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.card-price {
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.card-price-starting {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  font-weight: 400;
}

.card-add-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-input);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: var(--text-main);
}

.card-add-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

/* Category Filters in Shop */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 40px;
}

.filters-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Search bar styling */
.search-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 480px;
}

.search-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px 12px 48px;
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.sort-select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

/* Dynamic Product Detail page */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 40px;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-viewport {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.main-image-viewport img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumbnail-btn {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--bg-card);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.thumbnail-btn.active {
  border-color: var(--primary);
}

.thumbnail-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info-pane h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.detail-price {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 24px;
}

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 24px 0;
}

.detail-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.variant-selector-group {
  margin-bottom: 24px;
}

.variant-selector-group h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.option-btn.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #ffffff;
}

.qty-add-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.2rem;
}

.qty-btn:hover {
  background-color: var(--bg-input);
}

.qty-input {
  width: 40px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background: none;
  color: var(--text-main);
}

/* Cart styling */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  margin-top: 40px;
}

.cart-table-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 2fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--bg-input);
}

.cart-item-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.cart-item-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cart-item-price {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-summary-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.cart-summary-total {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 800;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

/* E-Gift Card live styling */
.giftcard-creator-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  margin-top: 40px;
}

.giftcard-preview-pane {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.giftcard-visual {
  width: 100%;
  max-width: 440px;
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b5e3a 0%, #1e4d38 50%, #052618 100%);
  position: relative;
  padding: 24px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.giftcard-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
}

.giftcard-visual-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.giftcard-visual-logo .logo-svg {
  fill: #ffffff;
  width: 32px;
  height: 32px;
}

.giftcard-visual-value {
  font-family: var(--font-header);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
}

.giftcard-visual-details {
  font-size: 0.85rem;
  color: #c9ded3;
}

.giftcard-visual-msg {
  font-style: italic;
  font-size: 0.9rem;
  color: #e2f0e9;
  max-width: 80%;
  margin-top: 12px;
}

.giftcard-form-pane h1 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.preset-amounts {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.preset-btn {
  flex-grow: 1;
  padding: 12px;
  border: 2px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: 8px;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.preset-btn.active {
  border-color: var(--primary);
  background-color: rgba(11, 94, 58, 0.05);
  color: var(--primary);
}

.custom-amount-wrapper {
  position: relative;
  margin-bottom: 30px;
}

.custom-amount-input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px 12px 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

.custom-amount-input:focus {
  border-color: var(--primary);
}

.currency-symbol {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

/* Checkout Page styling */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  margin-top: 40px;
}

.checkout-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 24px;
}

.checkout-card h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stripe-elements-mock {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  background-color: var(--bg-card);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.stripe-row {
  display: flex;
  gap: 16px;
}

.stripe-input {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  width: 100%;
}

.card-number-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.cc-icon {
  width: 32px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}

.stripe-error-message {
  color: #e11d48;
  font-size: 0.8rem;
  margin-top: 8px;
  display: none;
}

.order-summary-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(11, 94, 58, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.2rem;
}

/* Simulated Email Popup */
.email-delivery-pop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #ffffff;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  max-width: 380px;
  z-index: 3000;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: none;
}

.email-delivery-pop.show {
  display: block;
  transform: translateY(0);
}

.email-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8e5;
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: #5a6e63;
}

.email-subject {
  font-weight: 700;
  color: #1c2a22;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.email-body {
  font-size: 0.85rem;
  color: #5a6e63;
}

.email-giftcard-embed {
  background: linear-gradient(135deg, #0b5e3a 0%, #052618 100%);
  color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 0;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-gallery {
    order: -1;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filters-sidebar {
    position: static;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cart-page-layout,
  .giftcard-creator-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .cart-summary-box,
  .giftcard-preview-pane,
  .order-summary-sidebar {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .search-sort-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-content h1 {
    font-size: 2.6rem;
  }
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .cart-item-price,
  .qty-selector,
  .cart-item > button {
    grid-column: 2;
  }
}
