:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-primary: #2d4a3e;
  --color-primary-light: #3d6b58;
  --color-accent: #c4a574;
  --color-accent-hover: #b8945f;
  --color-border: #e8e6e3;
  --color-success: #2d6a4f;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
}

.logo-text {
  font-weight: 600;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.2s;
}

.cart-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 74, 62, 0.85) 0%, rgba(26, 26, 26, 0.7) 100%);
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 640px;
  padding: 4rem 0;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-actions .btn-outline:hover {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

/* Gallery Banner */
.gallery-banner {
  padding: 2.5rem 0 0;
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

/* Categories */
.categories {
  padding: 2rem 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pill {
  padding: 0.6rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Products */
.products {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--color-text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, opacity 0.3s;
  opacity: 0;
}

.product-image img.loaded {
  opacity: 1;
}

.img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.product-image img.loaded + .img-skeleton,
.product-image:has(img.loaded) .img-skeleton {
  display: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.75rem;
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
}

.product-info {
  padding: 1.25rem;
}

.product-category {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.product-actions .btn {
  flex: 1;
}

/* Features */
.features {
  padding: 4rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* About */
.about {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-md);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.about-card.accent {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.about-stat {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}

.about-label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: var(--color-surface);
}

.contact-grid {
  max-width: 500px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--color-primary);
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand .footer-logo {
  margin-bottom: 0.75rem;
  border-radius: 12px;
}

.footer-brand .logo-mark {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Cart Sidebar */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
  font-size: 1.25rem;
}

.close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: all 0.2s;
}

.close-btn:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 3rem 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--color-bg);
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.qty-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 0.35rem;
  padding: 0;
}

.cart-item-remove:hover {
  color: #c0392b;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Order Dialog */
.order-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2rem);
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}

.order-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 0;
}

.dialog-header h3 {
  font-size: 1.25rem;
}

.order-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.order-summary {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.order-summary h4 {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
}

.summary-line.total {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.order-success {
  padding: 1.5rem;
  text-align: center;
}

.order-receipt {
  text-align: left;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.25rem 0;
  max-height: 320px;
  overflow-y: auto;
}

.receipt-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.receipt-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.receipt-id {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.receipt-section {
  margin-bottom: 1rem;
}

.receipt-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.receipt-section p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.receipt-total {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  color: var(--color-primary);
}

.receipt-note {
  font-size: 0.85rem !important;
  color: var(--color-text-muted) !important;
  margin-top: 0.75rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.success-actions .btn {
  flex: 1;
  min-width: 140px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--color-success);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-success h3 {
  margin-bottom: 0.75rem;
}

.order-success p {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.order-id {
  margin: 1.25rem 0 !important;
  font-size: 0.95rem;
}

/* Privacy Policy Page */
.policy-page {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
}

.policy-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.policy-updated {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.policy-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-primary);
}

.policy-content p,
.policy-content li {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.policy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 0.85rem 1.5rem;
  background: var(--color-text);
  color: white;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  justify-content: space-around;
  align-items: stretch;
  gap: 0.25rem;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  min-height: 52px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.mobile-nav-item svg {
  flex-shrink: 0;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--color-primary);
  background: rgba(45, 74, 62, 0.08);
}

.mobile-nav-cart {
  position: relative;
}

.mobile-cart-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-accent);
  color: white;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mobile-cart-badge:empty,
.mobile-cart-badge[data-count="0"] {
  display: none;
}

/* Responsive — Tablet */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container {
    padding: 0 1rem;
  }

  main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav {
    display: flex;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .logo-text {
    font-size: 0.95rem;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions .cart-btn {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .gallery-banner {
    padding: 1.25rem 0 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery-card span {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .categories {
    padding: 1rem 0;
  }

  .category-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.25rem 0.5rem;
    margin: 0 -0.25rem;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .pill {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .products {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-info {
    padding: 0.85rem;
  }

  .product-info h3 {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .product-price {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
    padding: 0.55rem 0.5rem;
    font-size: 0.8rem;
  }

  .features {
    padding: 2.5rem 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .feature-card {
    padding: 1rem 0.5rem;
  }

  .feature-card h3 {
    font-size: 0.95rem;
  }

  .feature-card p {
    font-size: 0.8rem;
  }

  .about {
    padding: 2.5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-content h2 {
    font-size: 1.65rem;
  }

  .contact {
    padding: 2.5rem 0;
  }

  .footer {
    padding: 2rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .cart-sidebar {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    top: auto;
    bottom: 0;
    height: min(88vh, 640px);
    transform: translateY(100%);
  }

  .cart-sidebar.active {
    transform: translateY(0);
  }

  .order-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100%;
    margin: 0;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
  }

  .order-dialog[open] {
    display: flex;
    flex-direction: column;
  }

  .dialog-header {
    padding: 1rem 1rem 0;
    flex-shrink: 0;
  }

  .order-form,
  .order-success {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dialog-actions {
    flex-direction: column-reverse;
    position: sticky;
    bottom: 0;
    background: var(--color-surface);
    padding-top: 0.5rem;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .dialog-actions .btn {
    width: 100%;
  }

  .success-actions {
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .success-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .toast {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 2rem);
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn {
    min-height: 44px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
  }
}

/* Responsive — Small phones */
@media (max-width: 380px) {
  .logo-text {
    display: none;
  }

  .gallery-grid {
    gap: 0.5rem;
  }

  .product-grid {
    gap: 0.5rem;
  }

  .mobile-nav-item span {
    font-size: 0.6rem;
  }

  .policy-page {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2rem;
  }

  .policy-page h1 {
    font-size: 1.75rem;
  }

  .policy-content h2 {
    font-size: 1.15rem;
  }

  .header-actions .btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
}
