/*
Theme Name: Oil Painting Website v3.1
Theme URI: -
Author: OilPaintingsForHome
Version: 3.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: oil-painting-website
*/

:root {
  --ink: #171717;
  --muted: #6f6b64;
  --line: #e7e0d7;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --soft: #f4efe8;
  --accent: #8b5a3c;
  --price: #b01918;
  --gold: #c8a24d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

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

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

.site-announcement {
  background: #111;
  color: #fff;
  padding: 10px 18px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.theme-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 42px 32px 72px;
}

.section-band {
  padding: clamp(44px, 7vw, 88px) 32px;
  border-bottom: 1px solid var(--line);
}

.section-inner {
  max-width: 1420px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.content-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 400;
}

.section-heading p,
.content-hero p,
.story-panel p,
.process-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero {
  min-height: 68vh;
  display: grid;
  align-items: end;
  padding: clamp(44px, 8vw, 96px);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 400;
}

.hero p {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero__actions,
.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.button--secondary {
  background: transparent;
  color: var(--ink);
}

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

.collection-card,
.product-card,
.story-panel,
.process-card,
.contact-card,
.cta-panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.collection-card__image,
.product-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #e7dfd3, #f8f4ed);
}

.collection-card__image img,
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.collection-card:hover img,
.product-card:hover img {
  transform: scale(1.035);
}

.collection-card__body,
.product-card__body,
.story-panel,
.process-card,
.contact-card {
  padding: 22px;
}

.product-card__price {
  color: var(--price);
  font-size: 20px;
  font-weight: 700;
}

.opwh-product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

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

.opwh-product-gallery__main {
  background: var(--soft);
  border: 1px solid var(--line);
}

.opwh-product-gallery__main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

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

.opwh-product-gallery__thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--soft);
}

.opwh-product-summary {
  padding-top: 12px;
}

.opwh-product-summary h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1;
  font-weight: 400;
}

.opwh-product-price {
  margin: 18px 0;
  color: var(--price);
  font-size: 28px;
  font-weight: 700;
}

.opwh-product-meta {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.opwh-product-meta div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.opwh-product-meta strong {
  color: var(--ink);
}

.opwh-product .cart {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.opwh-product .variations {
  width: 100%;
  border-collapse: collapse;
}

.opwh-product .variations tr {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.opwh-product .variations th,
.opwh-product .variations td {
  display: block;
  padding: 0;
  text-align: left;
}

.opwh-product .variations label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opwh-product select,
.opwh-product input.qty {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.opwh-product .single_add_to_cart_button {
  width: 100%;
}

.custom-order-box {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.opwh-product-experience {
  clear: both;
  max-width: 1420px;
  margin: 42px auto 0;
  padding: 0 32px 54px;
}

.opwh-artwork-story {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.opwh-artwork-story h2,
.opwh-product-details h2,
.opwh-trust h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 400;
}

.opwh-story-grid,
.opwh-detail-grid,
.opwh-trust-grid {
  display: grid;
  gap: 16px;
}

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

.opwh-detail-grid,
.opwh-trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.opwh-story-card,
.opwh-detail-card,
.opwh-trust-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.opwh-story-card h3,
.opwh-detail-card h3,
.opwh-trust-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.opwh-story-card p,
.opwh-detail-card p,
.opwh-trust-card p,
.opwh-product-description {
  color: var(--muted);
  line-height: 1.65;
}

.opwh-product-details,
.opwh-trust {
  margin-top: 42px;
}

.opwh-custom-artwork-cta {
  max-width: 720px;
}

.product-card .button {
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  font-size: 12px;
}

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

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

.content-hero {
  padding: clamp(54px, 8vw, 110px) 32px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.content-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-panel {
  padding: clamp(32px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.form-placeholder {
  padding: 24px;
  border: 1px dashed var(--line);
  background: var(--soft);
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f8f4ed;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 32px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-container {
    padding: 30px 18px 54px;
  }

  .site-header__inner {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-brand {
    font-size: 22px;
    line-height: 1.18;
  }

  .opwh-product-experience {
    padding: 0 18px 44px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .story-grid,
  .process-grid,
  .contact-grid,
  .opwh-story-grid,
  .opwh-detail-grid,
  .opwh-trust-grid,
  .opwh-product,
  .cta-panel {
    grid-template-columns: 1fr;
  }

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

/* Frontend Experience Upgrade v3 */
.site-nav {
  flex-wrap: wrap;
}

.site-nav a {
  padding: 4px 0;
  color: var(--muted);
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero--brand {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.64fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background:
    radial-gradient(circle at 78% 24%, rgba(200, 162, 77, 0.18), transparent 28%),
    linear-gradient(135deg, #f3ece2 0%, #fbfaf7 55%, #e9dfd0 100%);
}

.hero__content {
  max-width: 760px;
}

.hero__art-panel {
  position: relative;
  min-height: 460px;
}

.hero__art-card {
  position: absolute;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background:
    linear-gradient(145deg, rgba(139, 90, 60, 0.18), transparent 42%),
    linear-gradient(45deg, #d7c8b6, #f6efe5 48%, #bba48f);
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.12);
}

.hero__art-card--main {
  inset: 0 8% 10% 8%;
}

.hero__art-card--small {
  right: 0;
  bottom: 0;
  width: 38%;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, rgba(176, 25, 24, 0.16), transparent 48%),
    linear-gradient(45deg, #f4e8d7, #c8a24d);
}

.collection-card--featured {
  position: relative;
  overflow: hidden;
}

.collection-card--featured .collection-card__body span {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-band--split {
  background: #f8f4ed;
}

.trust-grid,
.quality-grid,
.cta-newsletter-grid {
  display: grid;
  gap: 22px;
}

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

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

.cta-newsletter-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
}

.trust-card,
.quality-card,
.newsletter-panel,
.collection-feature-card,
.style-note,
.recommended-products {
  border: 1px solid var(--line);
  background: var(--panel);
}

.trust-card,
.quality-card,
.newsletter-panel {
  padding: 24px;
}

.trust-card h3,
.quality-card h3,
.newsletter-panel h2 {
  margin-top: 0;
}

.trust-card p,
.quality-card p,
.newsletter-panel p,
.style-note span,
.recommended-products a {
  color: var(--muted);
  line-height: 1.65;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
}

.newsletter-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  font: inherit;
}

.collection-feature-grid {
  display: grid;
  gap: 24px;
}

.collection-feature-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  overflow: hidden;
}

.collection-feature-card__image {
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(139, 90, 60, 0.16), transparent 48%),
    linear-gradient(45deg, #e7dfd3, #fbfaf7);
  overflow: hidden;
}

.collection-feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.collection-feature-card:hover .collection-feature-card__image img {
  transform: scale(1.035);
}

.collection-feature-card__body {
  padding: clamp(24px, 4vw, 46px);
}

.collection-feature-card__body h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  font-weight: 400;
}

.style-note,
.recommended-products {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 16px;
}

.recommended-products a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .hero--brand,
  .trust-grid,
  .quality-grid,
  .cta-newsletter-grid,
  .collection-feature-card {
    grid-template-columns: 1fr;
  }

  .hero__art-panel {
    min-height: 280px;
  }

  .collection-feature-card__image {
    min-height: 240px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }
}
