/* SendMySignal Shared Styles
   Plain CSS. No frameworks required.
*/

:root {
  --bg: #fbf7ef;
  --bg-soft: #f1eadf;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --text: #25221f;
  --text-soft: #6e665e;
  --muted: #8d8378;
  --border: #dfd3c5;
  --accent: #5f7152;
  --accent-dark: #3f5136;
  --accent-soft: #dfe8d7;
  --warning: #b89136;
  --danger: #a45a4f;
  --danger-soft: #f2ded9;
  --success: #5f7152;
  --success-soft: #dfe8d7;
  --shadow: 0 18px 45px rgba(37, 34, 31, 0.08);
  --shadow-soft: 0 10px 28px rgba(37, 34, 31, 0.06);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --max-width: 1180px;
  --header-height: 76px;
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  object-fit: cover;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

ul,
ol {
  padding-left: 1.2rem;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 42px 0;
}

.text-muted {
  color: var(--text-soft);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 42px; }

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(251, 247, 239, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 211, 197, 0.82);
}

.header-inner {
  width: min(100% - 32px, var(--max-width));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
  white-space: nowrap;
}

.nav,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a,
.nav-actions a,
.icon-link {
  font-size: 0.92rem;
  color: var(--text-soft);
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-actions a:hover,
.icon-link:hover {
  color: var(--text);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
}

/* Hero */

.hero,
.page-hero {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.hero-content,
.page-hero .hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  text-transform: uppercase;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.hero-title,
.page-hero h1,
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-subtitle,
.page-hero p,
.hero p {
  max-width: 700px;
  color: var(--text-soft);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Buttons */

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 750;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--surface);
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}

.btn-full {
  width: 100%;
}

/* Forms */

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 750;
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  min-height: 46px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-textarea,
textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(95, 113, 82, 0.14);
}

.status-message {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.status-message.success {
  color: var(--success);
}

.status-message.error {
  color: var(--danger);
}

/* Cards and product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.info-card,
.dashboard-card,
.wishlist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.info-card:hover,
.dashboard-card:hover,
.wishlist-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1.1;
  background: var(--bg-soft);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.045);
}

.wishlist-btn,
.card-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(223, 211, 197, 0.8);
  background: rgba(255, 250, 242, 0.9);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
}

.wishlist-btn:hover,
.card-heart:hover,
.wishlist-btn.active,
.card-heart.active {
  transform: scale(1.04);
  background: var(--danger-soft);
  color: var(--danger);
}

.product-card-body {
  padding: 18px;
}

.product-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.product-tagline {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.product-price,
.price {
  margin-top: 12px;
  font-weight: 850;
  font-size: 1.06rem;
}

.compare-price {
  margin-left: 8px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.swatch-row {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

/* Shop */

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 28px;
  align-items: start;
}

.filter-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

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

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

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.category-tab {
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-soft);
  padding: 9px 14px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.category-tab:hover,
.category-tab.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* Product detail */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 52px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 14px;
}

.main-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1.05;
}

.main-product-image {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.main-image-wrap.is-zooming .main-product-image {
  transform: scale(1.75);
}

.zoom-lens {
  position: absolute;
  pointer-events: none;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 242, 0.9);
  box-shadow: 0 10px 30px rgba(37, 34, 31, 0.16);
  background: rgba(255, 250, 242, 0.16);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.main-image-wrap.is-zooming .zoom-lens {
  opacity: 1;
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumbnail {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  padding: 0;
}

.thumbnail img {
  width: 100%;
  height: 100%;
}

.thumbnail.active {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(37, 34, 31, 0.08);
}

.product-info {
  background: rgba(255, 250, 242, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.product-info h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.product-rating,
.product-stock {
  color: var(--text-soft);
  font-size: 0.93rem;
  margin-top: 8px;
}

.variant-group {
  margin-top: 22px;
}

.variant-group label,
.variant-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
  font-size: 0.92rem;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.variant-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 10px 14px;
  min-height: 42px;
}

.variant-btn:hover,
.variant-btn.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.quantity-control,
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface);
}

.quantity-control button,
.quantity-stepper button {
  width: 38px;
  height: 40px;
  border: 0;
  background: transparent;
}

.quantity-control input,
.quantity-stepper input,
.quantity-stepper span {
  width: 48px;
  text-align: center;
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 0;
}

.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.accordion {
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.accordion-item summary {
  cursor: pointer;
  font-weight: 850;
}

/* Cart */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.cart-item-image {
  width: 112px;
  height: 128px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
}

.cart-item-info h3 {
  margin: 0;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.summary-row.total {
  border-bottom: 0;
  font-weight: 900;
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 72px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* Wishlist */

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wishlist-card {
  padding: 0 0 18px;
}

.wishlist-card .product-image-wrap {
  aspect-ratio: 1 / 1;
}

/* Account */

.account-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}

.account-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.account-sidebar a,
.account-sidebar button {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: left;
}

.account-sidebar a:hover,
.account-sidebar a.active,
.account-sidebar button:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.account-content {
  display: grid;
  gap: 22px;
}

.dashboard-card {
  padding: 22px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.85fr;
  gap: 34px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 22px;
}

.info-card h3 {
  margin: 0 0 8px;
}

.info-card p {
  margin: 0;
  color: var(--text-soft);
}

/* Search */

.search-panel {
  display: grid;
  gap: 18px;
}

.search-bar-large {
  display: flex;
  gap: 10px;
}

.search-bar-large input {
  flex: 1;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 54px 0 24px;
  margin-top: 72px;
}

.footer-grid {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 28px;
}

.footer-column h4 {
  margin: 0 0 12px;
}

.footer-column a {
  display: block;
  color: var(--text-soft);
  margin: 8px 0;
  font-size: 0.94rem;
}

.footer-bottom {
  width: min(100% - 32px, var(--max-width));
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Toast */

.sms-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sms-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sms-toast.success {
  background: var(--success);
}

.sms-toast.error {
  background: var(--danger);
}

.sms-toast.info {
  background: var(--text);
}

/* Responsive */

@media (max-width: 900px) {
  :root {
    --header-height: auto;
  }

  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
  }

  .nav-links.is-open,
  #mobile-nav.is-open {
    display: flex;
  }

  .nav-actions {
    gap: 10px;
  }

  .product-detail,
  .shop-layout,
  .cart-layout,
  .account-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar,
  .cart-summary {
    position: static;
  }

  .product-grid,
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-3,
  .wishlist-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-info {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }

  .hero,
  .page-hero {
    padding: 58px 0;
  }

  .product-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card-body {
    padding: 14px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn,
  .hero-actions .btn,
  .btn-full-mobile {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .cart-item {
    grid-template-columns: 86px 1fr;
  }

  .cart-item-image {
    width: 86px;
    height: 100px;
  }

  .cart-item > .cart-line-total {
    grid-column: 1 / -1;
  }

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

  .thumbnail {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }

  .mobile-sticky-atc {
    position: sticky;
    bottom: 0;
    z-index: 80;
    background: rgba(251, 247, 239, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
  }
}
