/*
Theme Name: Webify Ember
Theme URI: https://webifymyshop.com
Author: WebifyMyShop
Author URI: https://webifymyshop.com
Description: A warm, modern ecommerce theme with broader shop layouts and built-in catalog search for gifting, home, and lifestyle shops.
Version: 1.0.0
Text Domain: webify-ember
*/

:root {
  --bg: #f6eee6;
  --bg-deep: #ead5c0;
  --paper: #fffaf5;
  --panel: rgba(255, 248, 240, 0.94);
  --panel-strong: #fffdf9;
  --line: rgba(119, 71, 43, 0.16);
  --line-strong: rgba(119, 71, 43, 0.3);
  --ink: #26160f;
  --ink-soft: #695446;
  --accent: #c86c3c;
  --accent-2: #efb065;
  --accent-3: #7c5a44;
  --accent-4: #768f62;
  --shadow: 0 24px 52px rgba(110, 71, 45, 0.12);
  --shadow-soft: 0 16px 34px rgba(110, 71, 45, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(520px 320px at -10% -10%, rgba(239, 176, 101, 0.24), transparent 58%),
    radial-gradient(640px 360px at 110% 0%, rgba(200, 108, 60, 0.18), transparent 64%),
    linear-gradient(180deg, #fffaf5 0%, var(--bg) 46%, var(--bg-deep) 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 48%),
    linear-gradient(rgba(119, 71, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 71, 43, 0.035) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 92%);
}

body.admin-bar {
  margin-top: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

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

.site-header,
.site-main,
.site-footer {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.site-header {
  margin-top: 18px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 251, 247, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.branding {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.branding-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  position: relative;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 20px rgba(200, 108, 60, 0.26);
  overflow: hidden;
}

.branding-mark::before,
.branding-mark::after {
  content: "";
  position: absolute;
}

.branding-mark::before {
  inset: 8px 10px 18px;
  border-radius: 999px 999px 14px 14px;
  background: rgba(255, 248, 240, 0.92);
}

.branding-mark::after {
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.92);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  padding: 0.52rem 0.92rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(200, 108, 60, 0.08);
}

.site-main {
  padding-bottom: 28px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(200, 108, 60, 0.1);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.eyebrow.muted {
  background: rgba(119, 71, 43, 0.08);
  color: var(--accent-3);
}

.primary-btn,
.secondary-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(145deg, var(--accent), #db8352);
  color: #fff7f0;
  box-shadow: 0 12px 24px rgba(200, 108, 60, 0.22);
}

.secondary-btn {
  background: rgba(255, 251, 247, 0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.primary-btn:focus-visible,
.secondary-btn:hover,
.secondary-btn:focus-visible,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-1px);
}

.studio-hero {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
}

.studio-copy,
.studio-aside,
.highlight-ribbon article,
.featured-shelf,
.page-content,
.content-card,
.catalog-intro,
.catalog-sidebar .sidebar-card,
.catalog-results,
.product-stage,
.trust-band article,
.commerce-shell,
.woocommerce div.product,
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce form.checkout,
.woocommerce-account .woocommerce,
.woocommerce-order,
.woocommerce table.shop_table,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce ul.products li.product {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.studio-copy {
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(180px 160px at 80% 12%, rgba(255, 246, 235, 0.56), transparent 76%),
    linear-gradient(145deg, rgba(255, 250, 246, 0.94), rgba(246, 232, 219, 0.96));
}

.studio-copy h1 {
  margin-top: 16px;
  max-width: 11ch;
  font-size: clamp(2.9rem, 5.3vw, 5.1rem);
}

.studio-copy p {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 1.04rem;
}

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

.hero-search {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.hero-search input,
.catalog-search-row input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce .quantity .qty {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  box-sizing: border-box;
}

.hero-search input::placeholder,
.catalog-search-row input::placeholder,
.woocommerce .quantity .qty::placeholder {
  color: rgba(105, 84, 70, 0.72);
}

.hero-search button,
.catalog-search-row button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: var(--accent-3);
  color: #fff8f3;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.studio-aside {
  padding: 26px;
  display: grid;
  gap: 18px;
}

.aside-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.aside-head h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  background: rgba(118, 143, 98, 0.16);
  color: #48613c;
  font-size: 0.8rem;
  font-weight: 800;
}

.aside-copy {
  max-width: 46ch;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.merch-note {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(119, 71, 43, 0.08);
}

.merch-note.accent {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(239, 176, 101, 0.18), rgba(200, 108, 60, 0.12));
}

.merch-note strong,
.highlight-ribbon strong,
.sidebar-card h2,
.trust-band strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-family: "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.merch-note p,
.highlight-ribbon p,
.sidebar-card p,
.trust-band p {
  margin-top: 8px;
}

.highlight-ribbon {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.highlight-ribbon article,
.trust-band article {
  padding: 18px;
}

.featured-shelf {
  margin-top: 22px;
  padding: 24px;
}

.section-head,
.catalog-intro,
.product-stage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 18px;
  align-items: end;
}

.section-head h2,
.catalog-intro h1,
.product-stage-head h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p,
.catalog-intro p,
.product-stage-head p {
  max-width: 48ch;
}

.catalog-stage {
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.catalog-intro {
  padding: 24px;
}

.catalog-intro.catalog-intro-single,
.product-stage-head.product-stage-head-single {
  grid-template-columns: 1fr;
}

.catalog-search-form {
  display: grid;
  gap: 10px;
}

.catalog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.catalog-clear,
.search-state,
.catalog-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
}

.catalog-clear,
.search-state {
  padding: 0.45rem 0.78rem;
  background: rgba(200, 108, 60, 0.08);
  color: var(--accent);
}

.catalog-frame {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.catalog-frame.catalog-frame-no-sidebar {
  grid-template-columns: 1fr;
}

.catalog-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 20px;
}

.sidebar-card {
  padding: 18px;
}

.accent-card {
  background: linear-gradient(145deg, rgba(239, 176, 101, 0.12), rgba(255, 251, 247, 0.92));
}

.catalog-chip-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-chip {
  padding: 0.54rem 0.9rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  color: var(--ink);
}

.catalog-results {
  padding: 22px;
}

.search-state {
  margin-bottom: 14px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.products-section .woocommerce-result-count,
.products-section .woocommerce-ordering {
  margin-bottom: 14px;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: stretch;
  justify-content: start;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce[class*="columns-"] ul.products li.product,
.woocommerce-page[class*="columns-"] ul.products li.product {
  float: none !important;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  clear: none !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
}

.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
  border-radius: 22px;
  background:
    radial-gradient(180px 120px at 20% 20%, rgba(239, 176, 101, 0.16), transparent 72%),
    rgba(255, 255, 255, 0.6);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  margin: 1rem 0 0.4rem;
  font-size: 1.24rem;
  line-height: 1.2;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--ink);
  font-weight: 800;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  margin-top: auto;
  width: 100%;
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
  top: 14px;
  right: 14px;
  left: auto;
  margin: 0;
  min-width: 0;
  min-height: auto;
  max-width: calc(100% - 28px);
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fff7ef;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  z-index: 4;
}

.product-stage {
  margin-top: 26px;
  padding: 24px;
}

.product-stage-shell {
  margin-top: 18px;
}

.single-product .woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 22px;
  padding: 24px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: auto;
  float: none;
  margin: 0;
}

.woocommerce div.product div.images {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(255, 244, 233, 0.86));
}

.woocommerce div.product div.summary {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 12px 4px 6px;
}

.single-product div.product .product_title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.woocommerce-product-details__short-description,
.woocommerce-product-details__short-description p,
.woocommerce-tabs,
.woocommerce .product_meta,
.woocommerce .woocommerce-breadcrumb,
.woocommerce .quantity .qty,
.woocommerce table.shop_table,
.woocommerce-account .woocommerce,
.woocommerce form .form-row label,
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink-soft);
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.woocommerce div.product form.cart div.quantity {
  margin: 0;
  float: none;
}

.woocommerce div.product form.cart .quantity {
  display: inline-flex;
  align-items: stretch;
}

.woocommerce div.product form.cart .quantity .qty {
  width: 92px;
  min-width: 92px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  appearance: textfield;
}

.woocommerce div.product form.cart .quantity .qty:focus,
.hero-search input:focus,
.catalog-search-row input:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 108, 60, 0.12);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  min-height: 52px;
  align-self: stretch;
}

.woocommerce-product-gallery {
  margin-bottom: 10px;
}

.woocommerce-tabs ul.tabs {
  padding-left: 0;
}

.woocommerce-tabs ul.tabs li {
  border: 0;
  background: transparent;
}

.woocommerce-tabs ul.tabs li a {
  color: var(--ink-soft);
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--ink);
}

.trust-band {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.commerce-shell,
.page-content,
.content-card {
  margin-top: 26px;
  padding: 24px;
}

.woocommerce table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: rgba(119, 71, 43, 0.08);
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  padding: 16px 18px 16px 46px;
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
  color: var(--accent);
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
  margin: 0 6px;
}

.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li a {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.site-footer {
  margin: 22px auto 28px;
  padding-top: 18px;
  display: grid;
  gap: 10px;
  justify-items: center;
  border-top: 1px solid rgba(119, 71, 43, 0.12);
}

.footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footnote:last-child {
  color: var(--ink);
  font-weight: 800;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .studio-hero,
  .section-head,
  .catalog-intro,
  .product-stage-head,
  .catalog-frame,
  .single-product .woocommerce div.product,
  .trust-band,
  .highlight-ribbon {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header,
  .nav-links,
  .hero-actions,
  .catalog-search-row,
  .hero-search,
  .merch-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
  }

  .branding {
    justify-content: center;
  }

  .studio-copy h1,
  .catalog-intro h1,
  .product-stage-head h1 {
    max-width: none;
  }

  .hero-search,
  .catalog-search-row {
    display: grid;
  }
}
