/* ============================================================
   Q-Mart — style.css
   ============================================================ */

/* CSS Variables */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-mid: #14b8a6;
  --teal-light: #ccfbf1;
  --teal-xlight: #f0fdfa;
  --dark: #0f2027;
  --mid: #475569;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.14);
}

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

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
}

img {
  display: block;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.header-top {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 0.75rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wrap img {
  height: 3.125rem;
  width: 3.125rem;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text .brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.brand-text .brand-tag {
  font-size: 0.625rem;
  color: var(--teal-dark);
  font-weight: 500;
  letter-spacing: 0.4px;
}

.header-search {
  flex: 1;
  max-width: 27.5rem;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}

.search-input:focus {
  border-color: var(--teal);
  background: white;
}

.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cart-btn {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.625rem 1.125rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.cart-btn:hover {
  background: var(--teal-dark);
}

.cart-count {
  background: white;
  color: var(--teal);
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
}

.cart-count.hidden {
  display: none;
}

.mobile-search {
  display: none;
  padding: 0.625rem 1rem 0.75rem;
  border-top: 1px solid var(--border);
}

.mobile-search .search-wrap {
  position: relative;
}

.mobile-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.mobile-search .search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  outline: none;
  background: var(--bg);
}

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

/* ============================================================
   BANNER
   ============================================================ */
.banner-section {
  width: 100%;
  background: var(--teal-xlight);
  line-height: 0;
}

.banner-section img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  padding: 1.75rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.15);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -3.125rem;
  left: -3.125rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.1);
}

.hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: #5eead4;
}

.hero p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.875rem;
  max-width: 37.5rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 6.25rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--teal-xlight);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.feature-text .ft {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark);
}

.feature-text .fs {
  font-size: 0.6875rem;
  color: var(--muted);
}

/* ============================================================
   PRODUCT FULL PAGE VIEW
   ============================================================ */
.pv-page {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 250;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pv-page.open {
  transform: translateX(0);
}

.pv-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.pv-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4375rem 0.875rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--dark);
  transition: background 0.2s;
}

.pv-back:hover {
  background: var(--bg);
}

.pv-header-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-inner {
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.pv-slider {
  position: relative;
}

.pv-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--teal-xlight);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.pv-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 1.625rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.pv-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}

.pv-prev { left: 0.75rem; }
.pv-next { right: 0.75rem; }

.pv-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pv-thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--teal-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.pv-thumb.active {
  border-color: var(--teal);
}

.pv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pv-category {
  font-size: 0.6875rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.pv-name {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.pv-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pv-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
}

.pv-price-unit {
  font-size: 0.875rem;
  color: var(--muted);
}

.pv-desc-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.pv-desc {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.pv-cod {
  background: var(--teal-xlight);
  border: 1.5px solid var(--teal-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.pv-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pv-qty-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mid);
}

.pv-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg);
  border-radius: 10px;
  padding: 0.25rem 0.5rem;
  border: 1.5px solid var(--border);
}

.pv-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pv-qty-val {
  font-size: 1rem;
  font-weight: 700;
  min-width: 1.75rem;
  text-align: center;
}

.pv-add-btn {
  width: 100%;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pv-add-btn:hover {
  background: var(--teal-dark);
}

.pv-add-btn.added {
  background: #059669;
}

/* ============================================================
   CATEGORY TABS & PRODUCTS SECTION
   ============================================================ */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.cat-tab {
  padding: 0.5rem 1.125rem;
  border-radius: 6.25rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-tab:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.cat-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
}

.section-sub {
  font-size: 0.875rem;
  color: var(--mid);
  margin-top: 0.25rem;
}

.divider {
  width: 2.75rem;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 0.625rem 0 2rem;
}

.no-results {
  text-align: center;
  padding: 3.75rem 1.25rem;
  color: var(--muted);
}

.no-results-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.25rem, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  height: 11.25rem;
  background: var(--teal-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.125rem;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: var(--teal);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.1875rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.625rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.75rem;
  color: var(--mid);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.875rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.product-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--mid);
}

.add-btn {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 0.5625rem 0.875rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.add-btn:hover {
  background: var(--teal-dark);
}

.add-btn:active {
  transform: scale(0.97);
}

.add-btn.added {
  background: #059669;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 25rem;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.close-btn {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--mid);
  transition: background 0.2s;
}

.close-btn:hover {
  background: var(--bg);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.875rem 1.25rem;
}

.cart-empty {
  text-align: center;
  padding: 3.75rem 1.25rem;
  color: var(--muted);
}

.cart-empty-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 10px;
  background: var(--teal-xlight);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.1875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.375rem;
}

.qty-btn {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}

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

.qty-val {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 1.375rem;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.125rem;
  padding: 0.25rem;
  transition: color 0.15s;
  align-self: flex-start;
}

.remove-btn:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
}

.cart-total-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--mid);
}

.cart-total-amount {
  font-size: 1.375rem;
  font-weight: 800;
}

.checkout-btn {
  width: 100%;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 11px;
  padding: 0.875rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.checkout-btn:hover {
  background: var(--teal-dark);
}

.cod-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--mid);
}

.cod-badge::before {
  content: "✓";
  color: #059669;
  font-weight: 700;
}

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 31.25rem;
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.25s;
}

.modal-overlay.open .modal {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 1.375rem;
  font-weight: 800;
}

.modal-body {
  padding: 1.25rem 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 0.3125rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
  background: var(--white);
}

.form-input:focus {
  border-color: var(--teal);
}

.form-error {
  font-size: 0.6875rem;
  color: #ef4444;
  margin-top: 0.1875rem;
}

.payment-info {
  background: var(--teal-xlight);
  border: 1.5px solid var(--teal-light);
  border-radius: 10px;
  padding: 0.75rem 0.875rem;
  margin-bottom: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5625rem;
}

.payment-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.order-summary-mini {
  background: var(--bg);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1.125rem;
}

.order-summary-mini h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.1875rem 0;
}

.order-summary-total {
  border-top: 1px solid var(--border);
  margin-top: 0.375rem;
  padding-top: 0.375rem;
  font-weight: 700;
  font-size: 0.9375rem;
}

.place-order-btn {
  width: 100%;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 11px;
  padding: 0.875rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
}

.place-order-btn:hover {
  background: var(--teal-dark);
}

.place-order-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
}

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */
.success-screen {
  text-align: center;
  padding: 2.25rem 1.5rem;
}

.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.success-screen h2 {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 0.375rem;
}

.success-screen p {
  color: var(--mid);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.order-ref {
  font-size: 0.75rem;
  color: var(--mid);
}

.order-ref strong {
  font-size: 1.25rem;
  color: var(--dark);
  display: block;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  margin-top: 1.5rem;
}

.wa-btn {
  background: #25D366;
  color: white;
  border: none;
  border-radius: 11px;
  padding: 0.8125rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  text-decoration: none;
}

.continue-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 0.8125rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark);
  transition: background 0.2s;
}

.continue-btn:hover {
  background: var(--bg);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: white;
  padding: 2.75rem 1.25rem 1.75rem;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2rem;
}

.footer-brand .name {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.footer-brand .tagline {
  color: #5eead4;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  max-width: 16.25rem;
  line-height: 1.6;
}

.footer-contact h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.875rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  margin-bottom: 0.625rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 0.625rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f1f1f1;
  color: #333 !important;
  padding: 0.3125rem 0.9375rem;
  border-radius: 3.125rem;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: bold;
  transition: 0.3s;
}

.social-btn:hover {
  background-color: #ddd;
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 56.25rem) {
  .features-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 47.5rem) {
  .pv-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
  }

  .pv-name {
    font-size: 1.375rem;
  }

  .pv-price {
    font-size: 1.75rem;
  }

  .pv-thumb {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (max-width: 40rem) {
  .header-top {
    height: 3.75rem;
    padding: 0 0.75rem;
  }

  .brand-text .brand-name {
    font-size: 1.0625rem;
  }

  .logo-wrap img {
    height: 2.625rem;
    width: 2.625rem;
  }

  .header-search {
    display: none;
  }

  .mobile-search {
    display: block;
  }

  .cart-btn .cart-label {
    display: none;
  }

  .cart-btn {
    padding: 0.625rem 0.75rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .features-inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .feature-text .ft {
    font-size: 0.75rem;
  }

  .feature-text .fs {
    display: none;
  }

  .section {
    padding: 2rem 0.875rem;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .product-img {
    height: 8.75rem;
    font-size: 2.375rem;
  }

  .product-body {
    padding: 0.6875rem;
  }

  .product-name {
    font-size: 0.8125rem;
  }

  .product-desc {
    display: none;
  }

  .product-price {
    font-size: 1rem;
  }

  .add-btn {
    font-size: 0.6875rem;
    padding: 0.4375rem 0.625rem;
  }

  .cart-drawer {
    width: 100vw;
  }

  .modal {
    border-radius: 1rem 1rem 0 0;
    max-height: 95vh;
    align-self: flex-end;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 23.75rem) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
