/*
Theme Name: Sock Widow Store
Template: storefront
Description: Parody single-sock shop — funny, professional, and slightly unhinged.
Version: 1.0.0
*/

:root {
  --sw-purple: #4a1942;
  --sw-coral: #ff6b6b;
  --sw-gold: #f4b942;
  --sw-cream: #fff8f0;
  --sw-ink: #2b1d2f;
}

body,
button,
input,
textarea,
select {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--sw-cream);
  color: var(--sw-ink);
}

.site-header {
  background: var(--sw-purple) !important;
  border-bottom: 4px solid var(--sw-coral);
}

.main-navigation ul li a,
.site-title a,
.site-header .site-search input {
  color: #fff !important;
}

.main-navigation ul li a:hover {
  color: var(--sw-gold) !important;
}

.storefront-primary-navigation {
  background: transparent !important;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link,
.added_to_cart {
  background: var(--sw-coral) !important;
  border-color: var(--sw-coral) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700;
}

button:hover,
.button:hover,
.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover {
  background: #e85555 !important;
  border-color: #e85555 !important;
}

.woocommerce span.onsale,
.onsale {
  background: var(--sw-gold) !important;
  color: var(--sw-ink) !important;
}

.site-footer {
  background: var(--sw-purple) !important;
  color: #fff !important;
}

.site-footer a {
  color: var(--sw-gold) !important;
}

.woocommerce-products-header__title,
.page-title,
.entry-title {
  color: var(--sw-purple);
  font-weight: 800;
}

.sw-hero {
  background: linear-gradient(135deg, var(--sw-purple) 0%, #6b2d62 55%, var(--sw-coral) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.75rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 30px rgba(74, 25, 66, 0.14);
}

.sw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 40%),
    radial-gradient(circle at bottom left, rgba(244, 185, 66, 0.14), transparent 35%);
  pointer-events: none;
}

.sw-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.sw-hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 220px;
}

.sw-hero-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.sw-hero-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sw-hero-brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sw-hero-motto {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sw-gold);
  max-width: 18ch;
}

.sw-hero h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.15;
  margin: 0 0 0.45rem;
  font-weight: 900;
  color: #fff;
}

.sw-hero h1 em {
  font-style: normal;
  color: var(--sw-gold);
}

.sw-hero-lead {
  font-size: 0.95rem;
  max-width: 52ch;
  margin: 0 0 0.65rem;
  opacity: 0.92;
}

.sw-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.sw-hero .button {
  background: #fff !important;
  color: var(--sw-purple) !important;
  border: none !important;
  padding: 0.65rem 1.1rem !important;
  font-size: 0.9rem !important;
  text-align: center;
  white-space: nowrap;
}

.sw-button-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.55) !important;
}

.sw-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sw-taglines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sw-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sw-purple);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  .sw-hero-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sw-hero-brand {
    min-width: 0;
  }

  .sw-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .sw-hero {
    padding: 1rem;
  }

  .sw-hero-logo {
    width: 56px;
    height: 56px;
  }
}
.sw-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.sw-feature {
  background: #fff;
  border: 2px solid #f0e4ef;
  border-radius: 16px;
  padding: 1.25rem;
}

.sw-feature h3 {
  margin: 0 0 0.5rem;
  color: var(--sw-purple);
  font-size: 1.05rem;
}

.sw-quote {
  background: #fff;
  border-left: 6px solid var(--sw-coral);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.woocommerce ul.products li.product,
.wc-block-grid__product {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(74, 25, 66, 0.08);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-weight: 700;
  color: var(--sw-purple);
}

.site-branding .site-title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.site-branding .site-description {
  color: var(--sw-gold) !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sw-hero {
    padding: 2rem 1.25rem;
  }
}
.sw-backstory {
  background: #fff8f0;
  border: 2px solid #ead7e8;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
}

.sw-backstory h3 {
  margin: 0 0 0.75rem;
  color: var(--sw-purple);
  font-size: 1.1rem;
}

.sw-backstory p,
.sw-backstory ul {
  margin: 0 0 0.85rem;
}

.sw-backstory ul {
  padding-left: 1.2rem;
}

.sw-backstory em {
  color: #6b4a66;
}

.sw-pickle-section {
  background: linear-gradient(180deg, #f2ffe8 0%, #fff8f0 100%);
  border: 2px solid #b8d96b;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.sw-pickle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.sw-pickle-header h2 {
  margin: 0 0 0.5rem;
  color: #2f5d1e;
}

.sw-pickle-header p {
  margin: 0;
  max-width: 60ch;
}

.sw-pill-pickle {
  background: #dff5b2 !important;
  color: #2f5d1e !important;
  border-color: #9bc24d !important;
}

.sw-pickle-copy {
  background: #fff;
  border-left: 5px solid #7cb518;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.sw-backstory-pickle {
  border-color: #b8d96b;
  background: #f7ffe8;
}

.sw-history {
  margin: 1.5rem 0 2rem;
}

.sw-history-lead {
  font-size: 1.1rem;
  max-width: 65ch;
  margin-bottom: 1.5rem;
}

.sw-timeline {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sw-timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  background: #fff;
  border: 2px solid #f0e4ef;
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.sw-timeline-year {
  font-weight: 900;
  color: var(--sw-coral);
  font-size: 1rem;
  line-height: 1.2;
}

.sw-timeline-body h3 {
  margin: 0 0 0.45rem;
  color: var(--sw-purple);
  font-size: 1.05rem;
}

.sw-timeline-body p {
  margin: 0;
}

@media (max-width: 700px) {
  .sw-timeline-item {
    grid-template-columns: 1fr;
  }
}

.sw-origin-story {
  background: #fff;
  border-left: 6px solid var(--sw-purple);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sw-origin-opening {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sw-purple);
  margin: 0 0 1rem !important;
}

.sw-origin-story p {
  margin: 0 0 0.9rem;
  max-width: 68ch;
}

.sw-origin-story p:last-child {
  margin-bottom: 0;
}

.sw-testimonies {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.sw-testimony {
  background: #fff;
  border: 2px solid #f0e4ef;
  border-radius: 16px;
  padding: 1.2rem 1.35rem;
  box-shadow: 0 8px 20px rgba(74, 25, 66, 0.05);
}

.sw-testimony-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.sw-testimony-header strong {
  color: var(--sw-purple);
  font-size: 1.05rem;
}

.sw-testimony-header span {
  color: #6b4a66;
  font-size: 0.85rem;
}

.sw-testimony p {
  margin: 0 0 0.85rem;
}

.sw-testimony-tag {
  display: inline-block;
  background: #fff4df;
  color: #6a4b00;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Compact site header */
.site-header {
  padding: 0 !important;
  margin-bottom: 0.75rem !important;
}

.site-header .col-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  min-height: 0 !important;
}

.site-branding {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
}

.sw-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.custom-logo-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.sw-header-logo,
.site-header .custom-logo {
  display: block;
  height: 88px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  border: 0 !important;
  border-radius: 0;
}

.sw-header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sw-header-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sw-header-motto {
  color: var(--sw-gold);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 22ch;
}

.site-header .site-search {
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  max-width: 220px;
  flex: 0 1 220px;
}

.site-header .site-search .search-field {
  padding: 0.45rem 0.65rem !important;
  font-size: 0.85rem !important;
}

.site-header .site-search button {
  padding: 0.45rem 0.75rem !important;
  font-size: 0.8rem !important;
}

.storefront-primary-navigation {
  padding: 0 !important;
  margin: 0 !important;
}

.storefront-primary-navigation .col-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem !important;
  padding-bottom: 0.45rem !important;
  min-height: 0 !important;
}

.main-navigation {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.main-navigation ul.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  margin: 0 !important;
}

.main-navigation ul.menu > li > a {
  padding: 0.35rem 0 !important;
  font-size: 0.88rem !important;
  font-weight: 700;
}

.site-header-cart {
  margin: 0 !important;
}

.site-header-cart .cart-contents {
  font-size: 0.82rem !important;
  padding: 0.35rem 0 !important;
}

@media (max-width: 768px) {
  .site-header .col-full {
    flex-wrap: wrap;
  }

  .site-header .site-search {
    max-width: 100%;
    flex: 1 1 100%;
    order: 3;
  }

  .sw-header-motto {
    max-width: none;
  }
}


.site-header .col-full {
  justify-content: flex-start;
}

.site-header .site-search {
  margin-left: auto !important;
}

.sw-header-brand {
  justify-content: flex-start;
  text-align: left;
  flex: 0 1 auto;
}

@media (max-width: 768px) {
  .sw-header-logo,
  .site-header .custom-logo {
    height: 64px !important;
  }
}

/* Community sock listings */
.sw-community-hero,
.sw-community-home {
  background: linear-gradient(180deg, #fff8f0 0%, #f3ecff 100%);
  border: 2px solid #ead7e8;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.sw-community-hero h2,
.sw-community-home h2 {
  margin: 0.35rem 0 0.6rem;
  color: var(--sw-purple);
}

.sw-community-hero p,
.sw-community-home p {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.sw-listing-form {
  background: #fff;
  border: 2px solid #f0e4ef;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.sw-listing-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.sw-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--sw-purple);
}

.sw-field-full {
  margin-bottom: 1rem;
}

.sw-field input,
.sw-field select,
.sw-field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--sw-ink);
  border: 2px solid #ead7e8;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: #fff;
}

.sw-field textarea {
  resize: vertical;
  min-height: 140px;
}

.sw-listing-form-note {
  font-size: 0.88rem;
  color: #6b4a66;
  margin: 0 0 1rem;
}

.sw-listing-submit {
  font-weight: 800 !important;
}

.sw-listing-notice {
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
}

.sw-listing-notice-success {
  background: #edf9e8;
  border: 2px solid #9bc24d;
  color: #2f5d1e;
}

.sw-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.sw-community-card {
  background: #fff;
  border: 2px solid #f0e4ef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(74, 25, 66, 0.05);
  display: flex;
  flex-direction: column;
}

.sw-community-card-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sw-community-placeholder {
  height: 200px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: #f7f0fb;
}

.sw-community-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.sw-community-card-body h3 {
  margin: 0;
  color: var(--sw-purple);
  font-size: 1.05rem;
}

.sw-community-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: #6b4a66;
}

.sw-community-meta li + li {
  margin-top: 0.2rem;
}

.sw-community-excerpt {
  font-size: 0.92rem;
  flex: 1;
}

.sw-community-read {
  align-self: flex-start;
  font-size: 0.82rem !important;
  padding: 0.45rem 0.9rem !important;
}

.sw-community-empty {
  background: #fff;
  border: 2px dashed #ead7e8;
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1rem 0 2rem;
}

.sw-community-detail-meta {
  margin-bottom: 1.25rem;
}

.sw-community-detail-meta ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}
