/*
Theme Name: DEEPSTATE THEME
Theme URI: https://deepstate.ddns.net/
Author: OpenAI
Description: Minimal internet-culture WooCommerce theme for Deepstate.
Version: 1.2.0
License: GPL-2.0-or-later
Text Domain: deepstate-theme
*/

:root {
  --bg: #f1f1ee;
  --bg-alt: #dbdbd4;
  --menu-bg: #9fb7d8;
  --menu-ink: #111;
  --ink: #111;
  --muted: #555b63;
  --line: #111;
  --accent: #c21807;
  --link: #0000ee;
  --good: #008a3b;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.32), rgba(0,0,0,0.02));
  color: var(--ink);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: var(--link); text-decoration: underline; }
a:hover, a:focus { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.site-wrap {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
}

.site-header {
  border-top: 12px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.top-strip {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 12px;
  text-transform: uppercase;
}
.top-strip .site-wrap { padding: 6px 0; }
.top-strip marquee { width: 100%; }

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: 18px 0 12px;
}

.brand-mark {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-mark:hover, .brand-mark:focus { color: inherit; }

.brand-kicker,
.header-badge,
.hero-kicker,
.card-kicker,
.meta-chip,
.archive-pill,
.price-burst,
.onsale,
.stock,
.out-of-stock {
  display: inline-block;
  padding: 1px 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  text-transform: uppercase;
}
.brand-kicker,
.hero-kicker,
.price-burst,
.onsale { color: var(--accent); border-color: var(--accent); }
.stock.in-stock,
.archive-pill { color: var(--good); border-color: var(--good); }
.stock.out-of-stock,
.out-of-stock { color: var(--muted); border-color: var(--muted); }

.site-title {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.site-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
  text-transform: lowercase;
  white-space: nowrap;
  align-self: end;
}
.header-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  font-size: 12px;
}

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--menu-bg);
}
.main-nav .site-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}
.main-nav a,
.main-nav .menu-item > a {
  color: var(--menu-ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav .current-menu-item > a { color: var(--accent); }
.main-nav a.nav-current,
.main-nav a[aria-current="page"] {
  font-weight: 700;
}

.main-nav .site-wrap > a:last-child {
  margin-left: auto;
}

.site-main { padding: 18px 0 36px; }
.hero-grid > article,
.notes-grid > article,
.product-card,
.product-visual,
.product-meta,
.woocommerce-tabs,
.related.products,
.woocommerce-cart-form,
.woocommerce-cart .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-account .woocommerce,
.comment-respond,
.widget,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 12px;
}

.site-block {
  padding: 12px 0;
  margin-bottom: 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}
.hero-grid h2,
.page-title,
.archive-title,
.section-title,
.entry-title,
.product_title {
  margin: 0 0 10px;
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.94;
}
.hero-grid h2,
.page-title,
.archive-title,
.entry-title,
.product_title {
  font-size: clamp(1.9rem, 6vw, 4.2rem);
  color: #44403a;
}
.section-title { font-size: clamp(1.2rem, 3vw, 1.8rem); }
.hero-copy,
.text-muted,
.woocommerce-product-details__short-description,
.archive-description,
.term-description,
.entry-content { color: var(--muted); }

.cta-row,
.link-row,
.meta-row,
.product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.button,
button.button,
input.button,
#respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.button:hover,
button.button:hover,
input.button:hover,
#respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--ink);
  color: var(--bg);
}
.button.ghost { color: var(--link); }

.notes-grid,
.product-grid,
.footer-grid,
.ds-columns,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.woocommerce ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}
.product-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.product-card a {
  color: inherit;
  text-decoration: none;
}
.product-card .link-row {
  flex: 0 0 auto;
  margin-left: auto;
}
.product-card .button {
  padding: 4px 8px;
  white-space: nowrap;
}
.product-card .woocommerce-loop-product__title {
  flex: 1 1 auto;
}
.product-card .attachment-woocommerce_thumbnail,
.product-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #d9d4c9;
}
.product-card h2,
.product-card .woocommerce-loop-product__title {
  margin: 0;
  font-size: 1.05rem !important;
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.03em;
}
.product-card .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-Price-amount {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.woocommerce .woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.search-field,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
}

.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-shell .summary,
.woocommerce div.product div.summary,
.woocommerce div.product div.images {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
.product-meta .cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.product-meta .quantity input { width: 72px; text-align: center; }
.product-meta .product_meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  text-transform: uppercase;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  margin: 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 6px 10px;
  display: block;
  text-transform: uppercase;
}

.woocommerce-account .woocommerce {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: flex-start;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 220px;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1 1 auto;
  min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: grid;
  gap: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  border: 1px solid var(--line);
  padding: 8px 10px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  background: transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus {
  background: var(--ink);
  color: var(--bg);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--menu-bg);
  color: var(--ink);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error,
.woocommerce-account .woocommerce-form,
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
  border: 1px solid var(--line);
  background: transparent;
  padding: 14px;
}

.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .addresses {
  display: grid;
  gap: 14px;
}

.woocommerce-account .woocommerce-Address,
.woocommerce-account .addresses .col-1,
.woocommerce-account .addresses .col-2 {
  float: none !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-Address-title.title,
.woocommerce-account .addresses .title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.woocommerce-account .addresses .title h2,
.woocommerce-account .addresses .title h3,
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
  margin: 0;
  color: #44403a;
}

.woocommerce-account .woocommerce-Address-title .edit,
.woocommerce-account .addresses .title .edit {
  display: inline-block;
  margin-top: 0;
  max-width: 100%;
  white-space: normal;
}

.woocommerce-account .woocommerce-Address address,
.woocommerce-account .addresses address {
  margin: 0;
  color: var(--muted);
}

.woocommerce-account .woocommerce-MyAccount-content > p {
  margin: 0 0 14px;
}

.woocommerce-account .woocommerce-MyAccount-content > h2 {
  margin: 0 0 8px;
  color: #44403a;
}

.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px !important;
}

.woocommerce-account .woocommerce-form-row,
.woocommerce-account .form-row {
  margin-bottom: 12px;
}

.woocommerce-account .woocommerce-form__label,
.woocommerce-account .form-row label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.woocommerce-account .woocommerce-Button,
.woocommerce-account .woocommerce-button,
.woocommerce-account .edit,
.woocommerce-account .view {
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  padding: 7px 10px !important;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .woocommerce-Button:focus,
.woocommerce-account .woocommerce-button:hover,
.woocommerce-account .woocommerce-button:focus,
.woocommerce-account .edit:hover,
.woocommerce-account .edit:focus,
.woocommerce-account .view:hover,
.woocommerce-account .view:focus {
  background: var(--ink) !important;
  color: var(--bg) !important;
}
.woocommerce table.shop_table {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tbody td,
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table tbody th,
.woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce table.shop_table_responsive tr td::before {
  border-color: var(--line) !important;
}

.woocommerce-checkout #payment,
.woocommerce-checkout #payment div.payment_box,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-cart .cart_totals,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  border-color: var(--line) !important;
}

.woocommerce-checkout #payment,
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment div.payment_box,
.woocommerce-checkout-review-order-table,
.woocommerce table.shop_table tbody tr,
.woocommerce table.shop_table tfoot tr {
  background: transparent;
}

.wc-block-components-sidebar,
.wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary-item,
.wc-block-components-panel,
.wc-block-components-panel__content,
.wc-block-components-checkout-step,
.wc-block-components-checkout-step__content,
.wc-block-components-product-metadata,
.wc-block-components-totals-item,
.wc-block-components-totals-coupon,
.wc-block-components-totals-footer-item {
  border-color: var(--line) !important;
}

.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-panel,
.wc-block-components-panel__content,
.wc-block-components-checkout-step,
.wc-block-components-checkout-step__content,
.wc-block-components-totals-item,
.wc-block-components-totals-coupon,
.wc-block-components-totals-footer-item {
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce :where(p, li, label, span, div, dd, dt, small, strong, em, th, td, legend),
.wc-block-components-text,
.wc-block-components-text-input label,
.wc-block-components-combobox-control label,
.wc-block-components-formatted-money-amount,
.wc-block-components-order-summary-item__description,
.wc-block-components-order-summary .wc-block-components-product-name,
.wc-block-components-express-payment-continue-rule,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
  color: var(--ink) !important;
}

.woocommerce :where(h2, h3, h4, h5, h6),
.wc-block-components-checkout-step__heading,
.wc-block-components-title,
.wc-block-components-order-summary__title,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: #44403a !important;
}

.woocommerce-pagination ul.page-numbers,
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.woocommerce-pagination .page-numbers,
.page-numbers {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  color: var(--ink);
  padding: 0 10px;
}

.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-error::before {
  display: none !important;
  content: none !important;
}
.woocommerce-pagination .current,
.page-numbers.current { color: var(--accent); border-color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
}
.footer-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  text-transform: uppercase;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid, .product-top, .notes-grid, .footer-grid, .ds-columns, .product-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .hero-grid, .product-top, .brand-row { grid-template-columns: 1fr; }
  .header-meta { justify-items: start; text-align: left; }
  .main-nav .site-wrap > a:last-child { margin-left: 0; }
}

@media (max-width: 720px) {
  .woocommerce-account .woocommerce {
    display: block;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 18px !important;
  }
}

@media (max-width: 640px) {
  .site-wrap { width: min(calc(100% - 16px), var(--max)); }
  .notes-grid, .footer-grid, .ds-columns, .product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .site-title { font-size: 2.8rem; }
  .hero-grid h2, .page-title, .archive-title, .entry-title, .product_title { font-size: 2.1rem; }
  .archive-toolbar { display: grid; }
  .product-top { display: flex; flex-direction: column; }
  .product-meta { order: -1; }
  body { font-size: 15px; }
}
