/*
Theme Name: Theme Core Skin Basics
Theme URI: https://dapadzn.com/
Author: Dapadzn
Description: Customer fashion template with a neutral essentials layout.
Version: 1.0.3
Requires at least: 6.4
Tested up to: 6.6
Text Domain: theme-core
*/

:root {
  --sb-ink: #2b221b;
  --sb-paper: #ebe1d5;
  --sb-cream: #f8f3eb;
  --sb-taupe: #8a7666;
  --sb-line: rgba(43, 34, 27, 0.16);
}

* {
  box-sizing: border-box;
}

body.ct-body--skin {
  margin: 0;
  background: var(--sb-paper);
  color: var(--sb-ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

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

.sb-promo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  background: var(--sb-ink);
  color: var(--sb-cream);
  font-size: 12px;
  padding: 9px 14px;
}

.sb-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 28px;
  background: rgba(235, 225, 213, 0.9);
  border-bottom: 1px solid var(--sb-line);
  backdrop-filter: blur(14px);
}

.sb-header__brand {
  grid-column: 2;
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 800;
  text-transform: uppercase;
}

.sb-header__nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  font-size: 12px;
  text-transform: uppercase;
}

.sb-header__bag {
  justify-self: end;
  font-size: 12px;
  text-transform: uppercase;
}

.sb-hero {
  min-height: calc(100vh - 105px);
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 54px 28px 70px;
}

.sb-hero__copy {
  display: grid;
  gap: 20px;
  max-width: 520px;
}

.sb-hero__copy p,
.sb-section-title p {
  margin: 0;
  color: var(--sb-taupe);
  font-size: 12px;
  text-transform: uppercase;
}

.sb-hero__copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7vw, 118px);
  font-weight: 400;
  line-height: 0.92;
}

.sb-hero__copy span {
  color: var(--sb-taupe);
  line-height: 1.6;
}

.sb-hero__copy a {
  width: fit-content;
  border-radius: 999px;
  background: var(--sb-ink);
  color: var(--sb-cream);
  padding: 14px 22px;
  font-size: 12px;
  text-transform: uppercase;
}

.sb-hero__stack {
  min-height: 640px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 14px;
}

.sb-hero__stack img {
  width: 100%;
  height: 78%;
  object-fit: cover;
  background: var(--sb-cream);
}

.sb-hero__stack img:nth-child(2) {
  height: 100%;
}

.sb-hero__stack img:nth-child(3) {
  height: 88%;
}

.sb-solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--sb-line);
  border-bottom: 1px solid var(--sb-line);
}

.sb-solutions article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-right: 1px solid var(--sb-line);
  background: var(--sb-cream);
}

.sb-solutions h2 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 400;
  line-height: 1;
}

.sb-solutions p {
  color: var(--sb-taupe);
  line-height: 1.55;
}

.sb-shop-by,
.sb-products {
  padding: 58px 28px;
}

.sb-section-title {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.sb-section-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 82px);
  font-weight: 400;
  line-height: 1;
}

.sb-category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.sb-category-cards a {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--sb-cream);
  border: 1px solid var(--sb-line);
  border-radius: 4px;
}

.sb-category-cards span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1;
}

.sb-category-cards em {
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
}

.sb-product-grid,
.ct-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ct-product-card {
  background: var(--sb-cream);
  border: 1px solid var(--sb-line);
}

.ct-product-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  background: #d9cbbb;
  overflow: hidden;
}

.ct-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-product-card__copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  font-size: 13px;
}

.ct-product-card__copy span {
  color: var(--sb-taupe);
}

.sb-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 28px;
  background: var(--sb-ink);
  color: var(--sb-cream);
  font-size: 12px;
  text-transform: uppercase;
}

.sb-footer.ct-template-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(220px, 1fr);
  align-items: start;
  text-transform: none;
}

.ct-template-footer__brand,
.ct-template-footer__links,
.ct-template-footer__company {
  min-width: 0;
}

.ct-template-footer__brand strong,
.ct-template-footer__company strong {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.ct-template-footer__brand span,
.ct-template-footer__company span,
.ct-template-footer__company a {
  display: block;
  color: rgba(248, 243, 235, 0.76);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ct-template-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  text-transform: uppercase;
}

.ct-template-footer__company {
  margin: 0;
  font-style: normal;
}

.ct-archive,
.ct-page,
.ct-product-detail {
  padding: 112px 28px 58px;
}

.ct-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 42px;
}

.ct-product-detail__media img {
  width: 100%;
  height: auto;
}

.ct-product-detail__summary,
.ct-product-detail__description {
  min-width: 0;
}

.ct-product-detail__description {
  overflow-x: auto;
  line-height: 1.65;
}

.ct-product-detail__description table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.ct-product-detail__description td,
.ct-product-detail__description th {
  padding: 8px;
  border: 1px solid var(--sb-line);
}

.ct-product-detail__form table.variations,
.ct-product-detail__form .variations tbody,
.ct-product-detail__form .variations tr,
.ct-product-detail__form .variations th,
.ct-product-detail__form .variations td {
  display: block;
  width: 100%;
}

.ct-product-detail__form select,
.ct-product-detail__form input.qty {
  width: 100%;
  min-height: 44px;
}

.ct-product-detail h1,
.ct-archive h1,
.ct-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 400;
}

@media (max-width: 900px) {
  .sb-promo,
  .sb-header,
  .sb-hero,
  .sb-solutions,
  .sb-section-title,
  .ct-product-detail {
    grid-template-columns: 1fr;
  }

  .sb-header__brand,
  .sb-header__nav {
    grid-column: auto;
    grid-row: auto;
  }

  .sb-hero__stack,
  .sb-category-cards,
  .sb-product-grid,
  .ct-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .sb-promo {
    gap: 8px;
    text-align: left;
  }

  .sb-header {
    padding: 14px 16px;
  }

  .sb-header__brand {
    font-size: 30px;
  }

  .sb-header__nav {
    flex-wrap: wrap;
  }

  .sb-hero {
    padding: 36px 16px;
  }

  .sb-hero__copy h1,
  .sb-section-title h2,
  .ct-product-detail h1,
  .ct-archive h1,
  .ct-page h1 {
    font-size: 42px;
    line-height: 1;
  }

  .sb-hero__stack {
    min-height: 420px;
  }

  .sb-solutions,
  .sb-category-cards,
  .sb-product-grid,
  .ct-archive__grid {
    grid-template-columns: 1fr;
  }

  .sb-shop-by,
  .sb-products,
  .ct-archive,
  .ct-page,
  .ct-product-detail {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ct-template-footer__links {
    grid-template-columns: 1fr;
  }
}

/* Product detail QA: stack imported spec tables on mobile. */
body.ct-body--skin {
  overflow-x: clip;
}

.ct-product-detail,
.ct-product-detail__media,
.ct-product-detail__summary,
.ct-product-detail__form,
.ct-product-detail__description,
.ct-product-detail__description table,
.ct-product-detail__description tbody,
.ct-product-detail__description tr,
.ct-product-detail__description th,
.ct-product-detail__description td {
  max-width: 100%;
  min-width: 0;
}

.ct-product-detail h1,
.ct-product-detail__description,
.ct-product-detail__description * {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .ct-product-detail__description {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .ct-product-detail table,
  .ct-product-detail tbody,
  .ct-product-detail tr,
  .ct-product-detail th,
  .ct-product-detail td,
  .ct-product-detail__description table,
  .ct-product-detail__description tbody,
  .ct-product-detail__description tr,
  .ct-product-detail__description th,
  .ct-product-detail__description td {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ct-product-detail tr,
  .ct-product-detail__description tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--sb-line);
  }

  .ct-product-detail th,
  .ct-product-detail td,
  .ct-product-detail__description th,
  .ct-product-detail__description td {
    border: 0;
    padding: 4px 0;
    overflow-wrap: anywhere;
  }

  .ct-product-detail__description table:not(.variations) {
    display: table;
    width: max-content !important;
    min-width: 640px;
    max-width: none;
    table-layout: auto;
    border-collapse: collapse;
  }

  .ct-product-detail__description table:not(.variations) tbody {
    display: table-row-group;
    width: auto;
    max-width: none;
  }

  .ct-product-detail__description table:not(.variations) tr {
    display: table-row;
    width: auto;
    height: auto !important;
    border-bottom: 0;
    padding: 0;
  }

  .ct-product-detail__description table:not(.variations) th,
  .ct-product-detail__description table:not(.variations) td {
    display: table-cell;
    width: auto !important;
    min-width: 56px;
    max-width: none;
    height: auto !important;
    padding: 8px 10px;
    border: 1px solid var(--sb-line);
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
