:root {
  --primary: #000000;
  --bg: #f8f9fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --emerald: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
}

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

html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 130px;
}

.cw-page {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================================================
   TOP BLACK HEADER BAND + NAVIGATION
   ========================================================= */
.cw-top-black {
  background: var(--primary);
  height: 204px;
  width: 100%;
  padding-top: 14px;
}

.cw-top-nav {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cw-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.cw-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cw-nav-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 500;
}

/* =========================================================
   MAIN CENTERED CONTAINER + FRAMED BANNER
   ========================================================= */
.cw-container {
  max-width: 1128px;
  width: 100%;
  margin: -136px auto 0;
  padding: 0 20px;
}

.cw-banner-frame {
  width: 100%;
  height: 256px;
  border-radius: 14px;
  border: 3px solid #ffffff;
  background: #1e293b;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cw-banner-img {
  width: 100%;
  height: 100%;
  background-image: url("assets/banner-alpizza.jpg");
  background-size: cover;
  background-position: center;
}

/* =========================================================
   TWO-COLUMN GRID BELOW BANNER
   ========================================================= */
.cw-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

.cw-left-col {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Store Identity (Overlapping Logo + Title + Schedule/City/MoreInfo) */
.cw-store-identity {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.cw-logo-box {
  width: 132px;
  height: 132px;
  border-radius: 14px;
  border: 3px solid #ffffff;
  background: #ff0000;
  margin-top: -56px;
  margin-left: 28px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.cw-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cw-store-title-area {
  padding-top: 16px;
  min-width: 0;
  flex: 1;
}

.cw-store-title {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cw-store-meta-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
}

.cw-status-schedule {
  color: #f59e0b;
  font-weight: 500;
}

.cw-status-schedule.open {
  color: #16a34a;
  font-weight: 600;
}

.cw-meta-dot {
  color: #1e293b;
  font-weight: 700;
}

.cw-meta-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #475569;
}

.cw-meta-location svg {
  color: #334155;
  flex-shrink: 0;
}

.cw-more-info-link {
  background: none;
  border: none;
  color: #334155;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
}

.cw-more-info-link:hover {
  text-decoration: underline;
}

/* Mobile-Only Quick Cards (Hidden on Desktop, Visible on Mobile/Tablet) */
.cw-mobile-quick-cards {
  display: none;
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.cw-mobile-delivery-btn {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
}

.cw-mobile-promo-strip {
  padding: 8px 12px;
  background: #f8fafc;
  font-size: 11.5px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  text-align: center;
}

/* Horizontal Category Pills on Mobile */
.cw-mobile-cat-pills {
  display: none;
  margin-top: 12px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cw-mobile-cat-pills::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   CONTROLS ROW (Lista de categorias + Busque por um produto)
   ========================================================= */
.cw-controls-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cw-cat-dropdown-wrap {
  position: relative;
}

.cw-cat-dropdown-btn {
  height: 40px;
  min-width: 186px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: #475569;
  cursor: pointer;
  transition: border-color 0.15s;
}

.cw-cat-dropdown-btn:hover {
  border-color: #cbd5e1;
}

.cw-cat-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  max-height: 360px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  z-index: 60;
  padding: 6px;
}

.cw-cat-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13.5px;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-cat-dropdown-item:hover {
  background: #f1f5f9;
}

.cw-cat-dropdown-item span.count {
  font-size: 11.5px;
  color: #94a3b8;
}

.cw-search-input-wrap {
  width: 256px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  transition: border-color 0.15s;
}

.cw-search-input-wrap:focus-within {
  border-color: #94a3b8;
}

.cw-search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1e293b;
}

.cw-search-input-wrap input::placeholder {
  color: #94a3b8;
}

.cw-clear-search {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

/* =========================================================
   DESTAQUES SECTION (3-COLUMN DESKTOP / CAROUSEL MOBILE)
   ========================================================= */
.cw-featured-section {
  margin-top: 26px;
  width: 100%;
  max-width: 100%;
}

.cw-section-heading {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
}

.cw-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.cw-featured-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cw-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.cw-featured-img-box {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  padding: 8px 8px 0;
  position: relative;
  overflow: hidden;
}

.cw-featured-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Green Diagonal "Novidade" Ribbon on top-right corner */
.cw-ribbon-novidade {
  position: absolute;
  top: 22px;
  right: -36px;
  width: 145px;
  background: #10b981;
  color: #ffffff;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 0;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 3;
  pointer-events: none;
}

.cw-featured-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 6px;
}

.cw-featured-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cw-featured-desc {
  font-size: 12.5px;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.38;
}

.cw-featured-price-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.cw-price-promo {
  color: #16a34a;
  font-weight: 700;
}

.cw-price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 400;
}

/* =========================================================
   CATEGORY SECTIONS & 2-COLUMN PRODUCT CARDS
   ========================================================= */
.cw-catalog-sections {
  margin-top: 28px;
  width: 100%;
}

.cw-cat-section {
  margin-bottom: 30px;
  scroll-margin-top: 72px;
}

.cw-cat-header {
  margin-bottom: 14px;
}

.cw-cat-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.cw-cat-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.cw-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.cw-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  min-height: 120px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cw-product-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.cw-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cw-product-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 5px;
  background: #f1f5f9;
  color: #334155;
}

.cw-product-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
  line-height: 1.3;
  word-break: break-word;
}

.cw-product-desc {
  font-size: 12.5px;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.cw-product-price {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cw-product-price .from {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.cw-product-thumb {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

/* =========================================================
   RIGHT SIDEBAR (Loyalty Card + Delivery & Cart Card)
   ========================================================= */
.cw-right-col {
  padding-top: 18px;
}

.cw-loyalty-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.cw-loyalty-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}

.cw-loyalty-header svg {
  color: #475569;
  flex-shrink: 0;
}

.cw-loyalty-text {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin-top: 8px;
}

.cw-loyalty-text strong {
  color: #1e293b;
  font-weight: 600;
}

.cw-sidebar-cart-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 70px;
}

.cw-calc-delivery-btn {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s;
}

.cw-calc-delivery-btn:hover {
  background: #f8fafc;
}

.cw-calc-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cw-calc-left span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-calc-left svg {
  color: #64748b;
  flex-shrink: 0;
}

.cw-free-delivery-strip {
  padding: 9px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: #475569;
  text-align: center;
}

.cw-free-green {
  color: #16a34a;
  font-weight: 600;
}

.cw-sidebar-cart-empty {
  padding: 44px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 15px;
}

.cw-sidebar-cart-filled {
  padding: 14px 16px;
}

.cw-sidebar-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}

.cw-link-clear {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.cw-sidebar-cart-items {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.cw-side-item {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  font-size: 12.5px;
}

.cw-side-item-top {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #1e293b;
  gap: 6px;
}

.cw-side-item-addons {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}

.cw-side-item-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-side-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 6px;
}

.cw-side-qty button {
  background: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
  color: #1e293b;
  padding: 0 4px;
}

.cw-sidebar-cart-summary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.cw-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}

.cw-sum-row.total {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.cw-sidebar-checkout-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #16a34a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.cw-sidebar-checkout-btn:hover {
  background: #15803d;
}

/* =========================================================
   STICKY CATEGORY BAR ON SCROLL
   ========================================================= */
.cw-sticky-catbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  z-index: 45;
}

.cw-sticky-catbar-inner {
  max-width: 1128px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cw-sticky-catbar-inner::-webkit-scrollbar {
  display: none;
}

.cw-tab-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

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

/* =========================================================
   MODALS (PRODUCT CUSTOMIZATION, CART, INFO, DELIVERY)
   ========================================================= */
.cw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cw-modal-backdrop[hidden] {
  display: none !important;
}

.cw-modal {
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: 90dvh;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.cw-modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cw-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.cw-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #334155;
  flex-shrink: 0;
}

.cw-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.cw-modal-product-top {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.cw-modal-img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cw-modal-product-info h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 5px;
}

.cw-modal-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.cw-modal-price {
  font-size: 16px;
  font-weight: 700;
  color: #16a34a;
}

/* Addon groups inside modal */
.cw-addon-group {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.cw-addon-group-header {
  background: #f8fafc;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.cw-addon-group-title {
  font-size: 14px;
  font-weight: 700;
}

.cw-addon-group-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.cw-addon-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  text-transform: uppercase;
  white-space: nowrap;
}

.cw-addon-badge.required {
  background: #1e293b;
  color: #ffffff;
}

.cw-addon-badge.done {
  background: #dcfce7;
  color: #15803d;
}

.cw-addon-search {
  padding: 8px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.cw-addon-search input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 16px;
}

.cw-addon-item {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #f1f5f9;
}

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

.cw-addon-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.cw-addon-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.cw-addon-name {
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
}

.cw-addon-price {
  font-size: 12.5px;
  font-weight: 600;
  color: #16a34a;
  margin-top: 2px;
}

.cw-addon-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cw-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cw-qty-btn.plus {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.cw-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cw-addon-qty-val {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
}

.cw-modal-obs label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cw-modal-obs textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  resize: vertical;
}

.cw-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  flex-shrink: 0;
}

.cw-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.cw-qty-control button {
  width: 40px;
  height: 46px;
  border: none;
  background: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.cw-qty-control span {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
}

.cw-add-btn,
.cw-submit-order-btn {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  border: none;
  background: #16a34a;
  color: #ffffff;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cw-add-btn:disabled,
.cw-submit-order-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Checkout & Pickup vs Delivery Boxes */
.cw-cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cw-cart-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cw-cart-item-title {
  font-weight: 600;
  font-size: 14px;
}

.cw-cart-item-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.cw-cart-item-remove {
  color: #ef4444;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

.cw-checkout-form h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cw-order-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.cw-type-btn {
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
}

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

.cw-pickup-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.cw-pickup-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 4px;
}

.cw-pickup-addr {
  font-size: 12.5px;
  color: #166534;
  margin-bottom: 4px;
}

.cw-pickup-time {
  font-size: 11.5px;
  color: #15803d;
  font-weight: 500;
}

.cw-delivery-fields-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.cw-cep-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cw-cep-wrap input {
  width: 100%;
}

.cw-cep-status {
  position: absolute;
  right: 10px;
  font-size: 11px;
  color: #059669;
  font-weight: 600;
}

.cw-zone-selected-info {
  margin-top: 6px;
  padding: 8px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12.5px;
  color: #1e40af;
  font-weight: 500;
}

.cw-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cw-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
}

.cw-form-grid label.full {
  grid-column: 1 / -1;
}

.cw-form-grid input,
.cw-form-grid select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 16px; /* Prevents iOS auto-zoom on focus */
  width: 100%;
}

.cw-cart-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
}

.cw-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.cw-summary-row.total {
  font-size: 16px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  margin-bottom: 0;
}

.cw-info-desc {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 16px;
}

.cw-info-block {
  margin-bottom: 16px;
}

.cw-info-block h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cw-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.cw-payment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cw-pay-pill {
  background: #f1f5f9;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.cw-delivery-Zones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.cw-zone-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.cw-zone-item:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.cw-zone-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cw-zone-item span {
  font-size: 12px;
  color: #64748b;
}

/* My Orders Box */
.cw-my-orders-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

/* =========================================================
   MOBILE FLOATING CART BAR + FIXED BOTTOM NAVIGATION
   ========================================================= */
.cw-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 55;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cw-mnav-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.cw-mnav-item.active {
  color: #0f172a;
  font-weight: 700;
}

.cw-cart-bar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 10px 14px;
  z-index: 54;
  display: none;
}

.cw-cart-bar[hidden] {
  display: none !important;
}

.cw-cart-bar-btn {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.35);
}

.cw-cart-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-cart-badge {
  background: #ffffff;
  color: #16a34a;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.cw-toast {
  position: fixed;
  bottom: 128px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  z-index: 200;
  max-width: 92vw;
  text-align: center;
}

.cw-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================= */
@media (max-width: 960px) {
  .cw-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .cw-right-col {
    display: none;
  }
  .cw-mobile-quick-cards {
    display: block;
  }
  .cw-cart-bar {
    display: block;
  }
  .cw-mobile-bottom-nav {
    display: grid;
  }
}

@media (max-width: 768px) {
  .cw-top-black {
    height: 118px;
    padding-top: 0;
  }
  .cw-top-nav {
    display: none; /* Replaced by native-style bottom navigation on mobile */
  }
  .cw-container {
    margin-top: -96px;
    padding: 0 12px;
  }
  .cw-banner-frame {
    height: 155px;
    border-radius: 12px;
    border-width: 2px;
  }
  .cw-store-identity {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
  }
  .cw-logo-box {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    margin-top: -32px;
    margin-left: 8px;
  }
  .cw-store-title-area {
    padding-top: 0;
  }
  .cw-store-title {
    font-size: 18px;
  }
  .cw-store-meta-row {
    font-size: 12px;
    gap: 5px;
    margin-top: 3px;
  }
  .cw-controls-row {
    margin-top: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cw-cat-dropdown-wrap {
    display: none; /* Mobile uses horizontal scrollable category pills */
  }
  .cw-search-input-wrap {
    width: 100%;
    height: 42px;
  }
  .cw-mobile-cat-pills {
    display: flex;
  }
  /* Destaques Horizontal Touch Carousel without overflowing page */
  .cw-featured-section {
    margin-top: 18px;
  }
  .cw-section-heading {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .cw-featured-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .cw-featured-grid::-webkit-scrollbar {
    display: none;
  }
  .cw-featured-card {
    flex: 0 0 215px;
    max-width: 215px;
    scroll-snap-align: start;
  }
  .cw-products-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .cw-product-card {
    padding: 12px;
    min-height: 108px;
  }
  .cw-product-thumb {
    width: 86px;
    height: 86px;
  }
  /* Bottom-sheet Modals on Mobile */
  .cw-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .cw-modal {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 18px 18px 0 0;
  }
  .cw-modal-body {
    padding: 14px 16px;
  }
  .cw-modal-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cw-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* =========================================================
   POP-UP AUTOMÁTICO DE PROMOÇÕES (HARMONIOSO & LIMPO)
   ========================================================= */
[hidden] {
  display: none !important;
}

.cw-promo-popup-modal {
  max-width: 460px;
  overflow: hidden;
  border-radius: 14px;
}

.cw-promo-popup-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cw-promo-popup-head-text {
  flex: 1;
  min-width: 0;
}

.cw-promo-popup-pill {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 3px;
}

.cw-promo-popup-header h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  margin: 0;
}

.cw-promo-popup-header p {
  font-size: 12px;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.3;
}

.cw-promo-popup-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cw-promo-popup-banner-wrap {
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.cw-promo-popup-banner {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  display: block;
}

.cw-promo-popup-body {
  padding: 12px 14px;
  background: #f8fafc;
}

.cw-promo-popup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-promo-popup-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cw-promo-popup-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.cw-promo-popup-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

.cw-promo-popup-info {
  flex: 1;
  min-width: 0;
}

.cw-promo-popup-badge {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.cw-promo-popup-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-promo-popup-desc {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-promo-popup-prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.cw-promo-popup-old {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.cw-promo-popup-price {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
}

.cw-promo-popup-cta {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  height: 30px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.cw-promo-popup-footer {
  padding: 10px 14px;
  display: flex;
  gap: 8px;
}

.cw-promo-popup-dismiss-btn {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.cw-promo-popup-all-btn {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   MENU "MINHA CONTA" & MODAIS DE PERFIL / SENHA / PONTOS
   ========================================================= */
.cw-nav-conta-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cw-nav-chevron {
  margin-left: 2px;
  transition: transform 0.18s ease;
}

.cw-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 215px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  z-index: 95;
  display: flex;
  flex-direction: column;
}

.cw-account-dropdown-item {
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 400;
  color: #475569;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  font-family: inherit;
}

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

.cw-account-dropdown-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Sidebar Loyalty Balance Row */
.cw-loyalty-balance-row {
  width: calc(100% + 32px);
  margin: 12px -16px -14px;
  padding: 11px 16px;
  border: none;
  border-top: 1px solid #e2e8f0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.cw-loyalty-balance-row:hover {
  background: #f8fafc;
}

.cw-loyalty-balance-row strong {
  color: #16a34a;
  font-weight: 700;
}

/* Account Dialog Card (Editar informações / Trocar senha / Programa de pontos) */
.cw-account-dialog {
  position: relative;
  max-width: 380px;
  width: 92vw;
  background: #ffffff;
  border-radius: 14px;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.cw-account-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.cw-account-close-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.cw-account-dialog-title {
  text-align: center;
  font-size: 17.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 4px 0 22px;
}

.cw-account-dialog-sub {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin: -12px 0 18px;
  line-height: 1.4;
}

.cw-account-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.cw-outlined-field {
  position: relative;
  width: 100%;
}

.cw-outlined-field label {
  position: absolute;
  top: -8px;
  left: 10px;
  background: #ffffff;
  padding: 0 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1;
  pointer-events: none;
}

.cw-outlined-field:focus-within label {
  color: #0f172a;
  font-weight: 600;
}

.cw-outlined-field input,
.cw-outlined-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-size: 14.5px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cw-outlined-field input::placeholder {
  color: #64748b;
}

.cw-outlined-field input:focus,
.cw-outlined-field select:focus {
  border-color: #0f172a;
  border-width: 1.5px;
}

.cw-account-black-btn {
  width: 100%;
  height: 46px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}

.cw-account-black-btn:hover {
  opacity: 0.9;
}

/* Programa de Pontos Summary & History */
.cw-points-summary-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #ffffff;
}

.cw-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  padding: 4px 0;
}

.cw-points-row.main {
  font-size: 14.5px;
  font-weight: 700;
  color: #334155;
  padding-bottom: 6px;
}

.cw-points-row.main strong {
  font-size: 16px;
  color: #334155;
}

.cw-points-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 8px -16px;
}

.cw-points-row.redeemed {
  padding-top: 4px;
}

.cw-points-row.redeemed strong {
  color: #334155;
  font-weight: 700;
}

.cw-points-history-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 12px;
}

.cw-points-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.cw-points-hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cw-points-hist-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cw-points-hist-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #dcfce7;
  background: #f0fdf4;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
}

.cw-points-hist-title {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  line-height: 1.25;
}

.cw-points-hist-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
}

.cw-points-hist-date {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cw-account-dialog {
    max-width: 94vw;
    margin: auto;
    border-radius: 14px;
  }
  #authModal,
  #editProfileModal,
  #changePasswordModal,
  #loyaltyPointsModal {
    align-items: center;
    padding: 16px;
  }
  .cw-account-dropdown {
    position: fixed;
    top: auto;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 28px);
    max-width: 360px;
    border-radius: 12px;
    box-shadow: 0 -6px 28px rgba(15, 23, 42, 0.25);
  }
}


