:root{
  --bg: #F5E6DE;          /* bege rosé */
  --surface: #FBF7F4;     /* off-white */
  --ink: #223A43;         /* azul petróleo acinzentado */
  --muted: #5E6F76;
  --gold: #C8A96A;        /* dourado suave */
  --line: rgba(34,58,67,.12);

  --radius: 18px;
  --shadow: 0 14px 40px rgba(34,58,67,.10);
  --shadow-soft: 0 10px 26px rgba(34,58,67,.08);

  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ 
  height: 100%; 
  scroll-behavior: smooth;
}
body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(200,169,106,.10), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(34,58,67,.07), transparent 60%),
              var(--bg);
  height: 100%;
  /* Better text rendering on mobile */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, white 28%);
  border-bottom: 1px solid var(--line);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface) 70%, white 30%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.brand h1{
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  letter-spacing: .06em;
  font-weight: 600;
  line-height: 1.1;
}
.brand small{
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}

.menu{
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: color-mix(in srgb, var(--ink) 88%, black 12%);
}
.menu a{
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.menu a:hover{
  background: rgba(200,169,106,.14);
}
.menu a.active{
  background: rgba(34,58,67,.08);
}

.actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 65%, white 35%);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.icon-btn:hover{ transform: translateY(-1px); background: white; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  font-weight: 600;
  font-size: 14px;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, rgba(34,58,67,1), rgba(34,58,67,.88));
  color: white;
  box-shadow: 0 18px 40px rgba(34,58,67,.22);
}
.btn-primary:hover{ box-shadow: 0 24px 50px rgba(34,58,67,.26); }

.btn-ghost{
  background: rgba(255,255,255,.55);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover{ background: rgba(255,255,255,.8); }

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  color: var(--muted);
  font-size: 13px;
}

.hero{
  padding: 46px 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 26px;
  align-items: stretch;
}
.card{
  background: color-mix(in srgb, var(--surface) 72%, white 28%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy{
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.hero-copy:before{
  content:"";
  position:absolute;
  inset:-120px -160px auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, rgba(200,169,106,.30), transparent 60%);
  filter: blur(2px);
  opacity: .7;
  transform: rotate(12deg);
}
.hero h2{
  margin: 14px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4.2vw, 48px);
  letter-spacing: .02em;
  line-height: 1.08;
}
.hero p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 54ch;
}
.hero-actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.hero-media{
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}
.hero-media img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  min-height: 360px;
  filter: saturate(.96) contrast(.98);
  transform: scale(1.02);
}
.hero-media .overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(34,58,67,.00), rgba(34,58,67,.14));
}

.section{
  padding: 34px 0;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h3{
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  letter-spacing: .02em;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature{
  padding: 18px;
}
.feature .icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(200,169,106,.16);
  border: 1px solid rgba(200,169,106,.26);
  display:grid;
  place-items:center;
  margin-bottom: 12px;
}
.feature h4{ margin: 0 0 8px; font-size: 15px; letter-spacing: .01em; }
.feature p{ margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product{
  overflow:hidden;
}
.product .thumb{
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.55);
}
.product .thumb img{
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.product .body{
  padding: 16px;
  display:grid;
  gap: 10px;
}
.product .title{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.product h4{
  margin: 0;
  font-size: 15px;
  letter-spacing: .01em;
}
.price{
  color: var(--ink);
  font-weight: 700;
}
.muted{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(200,169,106,.28);
  background: rgba(200,169,106,.12);
  color: color-mix(in srgb, var(--ink) 84%, var(--gold) 16%);
  font-size: 12px;
  font-weight: 700;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.split .pad{ padding: 22px; }

.editorial h3{
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
}
.editorial p{ margin: 0; color: var(--muted); line-height: 1.7; }

.footer{
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}
.footer small{ color: var(--muted); line-height: 1.6; display:block; margin-top: 8px; }
.footer-links{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.footer-links a{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
}
.footer-links a:hover{ background: rgba(255,255,255,.7); }

.page{
  padding: 22px 0 10px;
}
.page h2{
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
}
.page p{ margin: 0; color: var(--muted); line-height: 1.7; }

.form{
  display:grid;
  gap: 12px;
  padding: 18px;
}
.field{
  display:grid;
  gap: 6px;
}
label{ font-size: 13px; color: var(--muted); }
input, textarea, select{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  outline: none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(200,169,106,.55);
  box-shadow: 0 0 0 4px rgba(200,169,106,.14);
  background: white;
}
textarea{ min-height: 120px; resize: vertical; }
.input--qty{ 
  width: 80px; 
  text-align: center; 
  padding: 10px 8px; 
  font-weight: 600;
}
.input{ 
  font-family: inherit; 
  font-size: 14px; 
  color: var(--ink);
}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi{
  padding: 16px;
}
.kpi strong{
  display:block;
  font-size: 18px;
  letter-spacing: .01em;
}
.kpi span{
  display:block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .products{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-links{ justify-content: flex-start; }
  .kpis{ grid-template-columns: repeat(2, 1fr); }
  
  /* Improve spacing for tablets */
  .section{ padding: 28px 0; }
  .hero{ padding: 36px 0 18px; }
  
  /* Better card padding */
  .card{ border-radius: 16px; }
  .hero-copy{ padding: 28px; }
  
  /* Admin responsive improvements */
  .table{ overflow-x: auto; }
  .section__head{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px){
  /* Better spacing for mobile tablets */
  .section{ padding: 24px 0; }
  .hero{ padding: 28px 0 14px; }
  .container{ width: calc(100% - 32px); }
  
  /* Improve typography */
  .hero h2{ font-size: clamp(26px, 5vw, 36px); }
  .section-head h3{ font-size: 22px; }
  
  /* Better touch targets */
  .btn{ min-height: 48px; padding: 14px 18px; font-size: 15px; }
  .icon-btn{ width: 44px; height: 44px; }
  
  /* Improve product cards */
  .products{ gap: 14px; }
  .product .thumb img{ height: 220px; }
  
  /* Better forms */
  .form{ padding: 16px; gap: 14px; }
  input, textarea, select{ 
    padding: 14px 16px; 
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Admin area responsive improvements */
  .admin-card{ padding: 14px; }
  .admin-title{ flex-direction: column; align-items: flex-start; }
  .admin-actions{ width: 100%; }
  .admin-actions .btn{ flex: 1; }
  
  /* Make admin tables scroll horizontally on mobile */
  .table__head, .table__row{ 
    min-width: 600px; 
  }
  
  /* Dashboard cards responsive */
  .admin-wrap .grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  /* Optimize for small mobile screens */
  .products{ grid-template-columns: 1fr; }
  .brand{ min-width: unset; }
  .menu{ display:none; }
  .kpis{ grid-template-columns: 1fr; }
  .nav{ padding: 10px 0; }
  .container{ width: calc(100% - 20px); }
  
  /* Improve hero section for mobile */
  .hero{ padding: 20px 0 10px; }
  .hero-copy{ padding: 20px; }
  .hero h2{ 
    font-size: clamp(24px, 6vw, 30px); 
    margin: 10px 0 8px;
  }
  .hero p{ font-size: 15px; line-height: 1.6; }
  .hero-media img{ min-height: 280px; }
  
  /* Better touch targets on mobile */
  .btn{ 
    width: 100%; 
    justify-content: center; 
    padding: 16px 20px;
    font-size: 16px;
  }
  .hero-actions{ 
    flex-direction: column; 
    gap: 10px;
    margin-top: 16px;
  }
  .hero-actions .btn{ width: 100%; }
  
  /* Improve spacing and typography */
  .section{ padding: 20px 0; }
  .section-head{ margin-bottom: 16px; }
  .section-head h3{ font-size: 20px; }
  .section-head p{ font-size: 14px; }
  
  /* Better card layout */
  .card{ border-radius: 14px; }
  .feature{ padding: 16px; }
  .feature h4{ font-size: 16px; }
  .feature p{ font-size: 13px; }
  
  /* Optimize product cards */
  .product .thumb img{ height: auto; min-height: 280px; }
  .product .body{ padding: 14px; }
  .product h4{ font-size: 16px; }
  
  /* Better forms on small screens */
  .form{ padding: 16px; gap: 12px; }
  input, textarea, select{ 
    padding: 14px; 
    font-size: 16px;
    border-radius: 12px;
  }
  .btn{ border-radius: 12px; }
  
  /* Improve footer */
  .footer{ padding: 24px 0 32px; }
  .footer-links{ gap: 8px; }
  .footer-links a{ 
    padding: 10px 14px; 
    font-size: 14px;
  }
  
  /* Better brand display */
  .brand-mark{ width: 34px; height: 34px; }
  .brand h1{ font-size: 16px; }
  .brand small{ font-size: 11px; }
  
  /* Optimize actions bar */
  .actions{ gap: 8px; }
  .icon-btn{ width: 40px; height: 40px; }
  .icon-btn svg{ width: 17px; height: 17px; }
  
  /* Improve pill display */
  .pill{ 
    padding: 8px 12px; 
    font-size: 12px; 
    flex-wrap: wrap;
  }
  
  /* Improve admin area on mobile */
  .admin-wrap{ padding: 18px 0 28px; }
  .section__head h2{ font-size: 24px; }
  .table__head, .table__row{ 
    padding: 10px; 
    font-size: 13px;
  }
  .mini__img{ width: 36px; height: 36px; }
  .admin-table th, .admin-table td{ padding: 8px; font-size: 13px; }
  
  /* Improve modal on mobile */
  .modal-content{ 
    max-width: 95%; 
    padding: 20px; 
    border-radius: 14px;
  }
  .modal-title{ font-size: 16px; }
  .modal-message{ font-size: 14px; }
  
  /* Better checkout on mobile */
  .checkout__form{ padding: 20px; }
  .checkout__form h3{ font-size: 18px; margin-bottom: 14px; }
  .checkout__summary{ padding: 18px; }
  
  /* Optimize video cards */
  .video-card-home__body{ padding: 14px; }
  .video-card-home__body h4{ font-size: 16px; }
  .video-card-home__body p{ font-size: 13px; }
}

/* --- Extensões (loja PHP + painel) mantendo o mesmo layout --- */
.alert{
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  color: var(--ink);
}
.alert--error{
  border-color: rgba(214, 67, 67, .35);
  background: rgba(214, 67, 67, .10);
}
.alert--success{
  border-color: rgba(38, 143, 79, .30);
  background: rgba(38, 143, 79, .10);
}

/* Botões auxiliares usados no admin (compatibilidade) */
.btn--sm{ padding: 10px 12px; font-size: 13px; border-radius: 14px; }
.btn--ghost{ background: transparent; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.btn--ghost:hover{ background: rgba(255,255,255,.8); }

/* Tabela e lista do painel (compatibilidade) */
.section__head{ display:flex; align-items:flex-end; justify-content:space-between; gap: 14px; margin-bottom: 14px; }
.section__head h2{ margin:0; font-family: "Playfair Display", Georgia, serif; }

.table{ border: 1px solid var(--line); border-radius: var(--radius); overflow:hidden; background: rgba(255,255,255,.65); box-shadow: var(--shadow-soft); }
.table__head, .table__row{ display:grid; gap: 10px; align-items:center; padding: 16px 18px; }
.table__head{ background: rgba(255,255,255,.85); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.table__row{ border-bottom: 1px solid var(--line); font-size: 14px; transition: background .2s ease; }
.table__row:hover{ background: rgba(255,255,255,.45); }
.table__row:last-child{ border-bottom: none; }
.table__foot{ padding: 16px 18px; background: rgba(255,255,255,.55); border-top: 1px solid var(--line); font-size: 15px; display: grid; gap: 10px; align-items: center; }
.row{ display:flex; gap: 10px; align-items:center; flex-wrap:wrap; }
.row--gap{ gap: 14px; margin-top: 20px; }
.mini{ display:flex; gap: 12px; align-items:center; }
.mini__img{ width: 64px; height: 64px; border-radius: 12px; background-size: cover; background-position:center; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.mini__title{ font-weight: 600; font-size: 15px; line-height: 1.3; }
.mini__muted{ color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Badges pequenos em ícones */
.icon-btn .badge{ padding: 5px 8px; font-size: 11px; }

/* Mobile menu toggle button */
.mobile-menu-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 65%, white 35%);
  place-items: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
  padding: 0;
}
.mobile-menu-toggle:hover{ transform: translateY(-1px); background: white; }
.mobile-menu-toggle:active{ transform: scale(0.95); }
.mobile-menu-toggle svg{ width: 22px; height: 22px; }

/* Mobile menu overlay */
.mobile-menu-overlay{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34, 58, 67, 0.5);
  z-index: 99;
  backdrop-filter: blur(4px);
}
.mobile-menu-overlay.active{ display: block; }

/* Mobile menu panel */
.mobile-menu-panel{
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: var(--surface);
  box-shadow: -4px 0 20px rgba(34, 58, 67, 0.15);
  z-index: 100;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.mobile-menu-panel.active{
  display: block;
  right: 0;
}

.mobile-menu-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.3);
  position: sticky;
  top: 0;
  z-index: 1;
}
.mobile-menu-header h3{
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .02em;
}
.mobile-menu-close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .2s ease;
}
.mobile-menu-close:active{ 
  transform: scale(0.95);
  background: white;
}

.mobile-menu-nav{
  padding: 16px 12px;
}
.mobile-menu-nav a{
  display: block;
  padding: 16px 14px;
  border-radius: 12px;
  margin-bottom: 6px;
  transition: background .2s ease;
  font-size: 15px;
  font-weight: 500;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a.active{
  background: rgba(200,169,106,.14);
}
.mobile-menu-nav a:active{
  background: rgba(200,169,106,.22);
}

@media (max-width: 560px){
  .mobile-menu-toggle{ display: grid; }
}

/* Video Grid Styles for Home Page */
.video-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .video-grid-home {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.video-card-home {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card-home:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.video-card-home__media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--surface);
  overflow: hidden;
}

.video-card-home__media iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail-home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.video-play-btn-home:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

.video-card-home__body {
  padding: 16px;
}

.video-card-home__body h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--ink);
  line-height: 1.3;
}

.video-card-home__body p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Cart and Checkout Styles */
.checkout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.checkout__form {
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.checkout__form h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  margin: 0 0 18px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout__form h3:not(:first-child) {
  margin-top: 28px;
}

.checkout__summary {
  position: sticky;
  top: 90px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.checkout__summary h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  margin: 0 0 16px 0;
}

.summary {
  display: grid;
  gap: 12px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}

.summary__row--total {
  border-top: 2px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.formgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.formgrid > div {
  display: grid;
  gap: 6px;
}

.formgrid .span2 {
  grid-column: span 2;
}

.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.radio {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.radio label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: all .2s ease;
  font-size: 14px;
  font-weight: 500;
}

.radio label:hover {
  background: rgba(255,255,255,.75);
  border-color: rgba(200,169,106,.35);
}

.radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.radio label:has(input:checked) {
  background: rgba(200,169,106,.12);
  border-color: rgba(200,169,106,.45);
  box-shadow: 0 0 0 3px rgba(200,169,106,.08);
}

.order__box {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}

.order__box h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.order {
  display: grid;
  gap: 20px;
}

.right {
  text-align: right;
}

.small {
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .checkout {
    grid-template-columns: 1fr;
  }
  
  .checkout__summary {
    position: static;
  }
  
  .formgrid {
    grid-template-columns: 1fr;
  }
  
  .formgrid .span2 {
    grid-column: span 1;
  }
}

/* --- Modal Messages --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 58, 67, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 90%;
  width: 450px;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
  border: 1px solid var(--line);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.modal-icon.error {
  background: rgba(214, 67, 67, 0.15);
  color: rgb(214, 67, 67);
}

.modal-icon.success {
  background: rgba(38, 143, 79, 0.15);
  color: rgb(38, 143, 79);
}

.modal-icon.info {
  background: rgba(200, 169, 106, 0.15);
  color: rgb(200, 169, 106);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.modal-message {
  color: var(--muted);
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 14px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.modal-btn-primary {
  background: var(--gold);
  color: white;
  box-shadow: var(--shadow-soft);
}

.modal-btn-primary:hover {
  background: color-mix(in srgb, var(--gold) 85%, black 15%);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

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

/* ========================================
   MOBILE-SPECIFIC ENHANCEMENTS
   Auto-detected based on screen size
   ======================================== */

/* Enhanced mobile experience for very small devices */
@media (max-width: 400px){
  /* Ultra compact layout */
  .container{ width: calc(100% - 16px); }
  
  /* Tighter spacing */
  .hero{ padding: 16px 0 8px; }
  .section{ padding: 16px 0; }
  .hero-copy{ padding: 16px; }
  
  /* Smaller typography */
  .hero h2{ font-size: 22px; }
  .section-head h3{ font-size: 18px; }
  
  /* Compact buttons */
  .btn{ padding: 14px 16px; font-size: 15px; }
  
  /* Smaller cards */
  .card{ border-radius: 12px; }
  .feature{ padding: 14px; }
  
  /* Compact forms */
  .form{ padding: 14px; }
  input, textarea, select{ padding: 12px; }
}

/* Improved touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
  /* Better touch targets - minimum 44x44px */
  .btn{ min-height: 48px; min-width: 48px; }
  .icon-btn{ min-width: 44px; min-height: 44px; }
  
  /* Remove hover effects on touch devices */
  .btn:hover{ transform: none; }
  .icon-btn:hover{ transform: none; }
  .card:hover{ transform: none; }
  
  /* Better tap highlights */
  a, button{ 
    -webkit-tap-highlight-color: rgba(200,169,106,.15);
  }
  
  /* Prevent text selection on UI elements */
  .btn, .icon-btn, .badge, .pill{ 
    -webkit-user-select: none;
    user-select: none;
  }
}

/* Dark mode support - optional feature for all devices */
@media (prefers-color-scheme: dark) {
  :root{
    --bg: #1a1a1a;
    --surface: #252525;
    --ink: #e8e8e8;
    --muted: #a0a0a0;
    --line: rgba(255,255,255,.1);
  }
  
  body{
    background: radial-gradient(1200px 600px at 20% -10%, rgba(200,169,106,.05), transparent 55%),
                radial-gradient(900px 500px at 80% 10%, rgba(34,58,67,.08), transparent 60%),
                var(--bg);
  }
  
  .card{
    background: color-mix(in srgb, var(--surface) 85%, white 15%);
  }
  
  input, textarea, select{
    background: rgba(255,255,255,.08);
    color: var(--ink);
  }
}

/* Landscape orientation optimizations for mobile devices up to tablet size */
@media (max-width: 980px) and (orientation: landscape) {
  .hero{ padding: 14px 0 8px; }
  .hero-copy{ padding: 18px; }
  .hero h2{ font-size: 20px; }
  .hero p{ font-size: 14px; }
  .hero-media img{ min-height: 220px; }
  .section{ padding: 16px 0; }
}

/* Print styles for mobile */
@media print {
  .topbar, .footer, .mobile-menu-toggle, .mobile-menu-panel, 
  .mobile-menu-overlay, .actions, .btn-primary{ 
    display: none !important; 
  }
  
  body{ 
    background: white; 
    color: black; 
  }
  
  .container{ 
    width: 100%; 
    max-width: none; 
  }
}
