/* ============================================
   Salpattica Creative Design Co. — Main Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Noto Sans";
  src: url('../fonts/NotoSans-Latin.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Noto Sans";
  src: url('../fonts/NotoSans-Latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Noto Sans";
  src: url('../fonts/NotoSans-Latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "bradley hand";
  src: url('../fonts/BRADHITC_0.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --color-white: #ffffff;
  --color-light-gray: #f2f3f5;
  --color-off-white: #f9f9fb;
  --color-gold: #eab741;
  --color-muted-gold: #eacc85;
  --color-green: #00674f;
  --color-light-green: #8ad19c;
  --color-magenta: #ff00ff;
  --color-yellow: #fff700;
  --color-dark: #434549;
  --color-darker: #212326;
  --color-darkest: #141617;
  --color-pink: #ffc6ff;
  --color-pale-yellow: #fffd8a;
  --font-body: "Noto Sans", sans-serif;
  --font-accent: "bradley hand", cursive;
  --max-width: 1248px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--color-darkest);
}

h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.2;
}

/* --- Global Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0px 5px 12px 5px rgba(0, 103, 79, 0.27);
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  width: 55px;
  height: auto;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.main-nav #main-menu > li {
  display: flex;
  align-items: center;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 1.2px;
  line-height: 1;
  transition: color 0.45s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-green);
}

/* --- Mega Menu --- */
.has-megamenu {
  position: relative;
}

.has-megamenu > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.has-megamenu > a::after {
  content: '+';
  font-size: 0.85em;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.has-megamenu:hover > a::after,
.has-megamenu.open > a::after {
  content: '\2212';
}

.megamenu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 420px;
  background: var(--color-white);
  border-top: 3px solid var(--color-green);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 6px 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.375s ease, visibility 0.375s ease, transform 0.375s ease;
  z-index: 200;
  padding: 24px 28px;
}

.megamenu-narrow {
  min-width: 210px;
}

.megamenu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 18px;
}

@media (min-width: 641px) {
  .has-megamenu:hover .megamenu,
  .has-megamenu.open .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.megamenu-inner {
  display: flex;
  gap: 32px;
}

.megamenu-col {
  flex: 1;
  min-width: 160px;
}

.megamenu-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-green);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-light-gray);
}

.megamenu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  align-items: flex-start;
}

.megamenu ul li a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.3px;
  color: var(--color-dark);
  text-shadow: 0 0 0 transparent;
  transition: color 0.45s ease, padding-left 0.45s ease, text-shadow 0.45s ease;
}

.megamenu ul li a:hover {
  color: var(--color-green);
  text-shadow: 0 0 0.4px currentColor;
  padding-left: 6px;
}

/* Mobile menu toggle — hamburger bars */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.hamburger-bar {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: transform 0.35s ease, opacity 0.25s ease, top 0.35s ease;
}

.hamburger-bar:nth-child(1) { top: 0; }
.hamburger-bar:nth-child(2) { top: 10px; }
.hamburger-bar:nth-child(3) { top: 20px; }

/* X morph when open */
.main-nav.open .hamburger-bar:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.main-nav.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.main-nav.open .hamburger-bar:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  padding: 35px 0;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.49) 0%, rgba(255,255,255,0) 100%),
    url('../images/paper-texture-copy.webp');
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  text-align: center;
}

.hero-logo {
  max-width: 200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin-top: 10px;
}

/* --- Category Cards --- */
.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 275px;
  width: 100%;
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 275px;
  text-decoration: none;
  color: var(--color-darker);
  transform: translateX(0) translateY(0);
  filter: brightness(100%);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.category-card:hover {
  transform: translateX(3px) translateY(-6px);
  filter: brightness(105%);
}

.category-card h2 {
  font-family: var(--font-accent);
  font-size: clamp(28px, 3.5vw, 45px);
}

.category-card--notecards {
  background: linear-gradient(143deg, #eab741 0%, var(--color-light-gray) 22%);
  border-color: #eab741;
}

.category-card--stationery {
  background: linear-gradient(143deg, #00674f 0%, #f2f3f5 22%);
  border-color: #00674f;
}

.category-card--giftwrap {
  background: linear-gradient(143deg, #ff00ff 0%, var(--color-light-gray) 22%);
}

.category-card--fineart {
  background: linear-gradient(143deg, #fff700 0%, var(--color-light-gray) 22%);
}

/* --- Welcome Section --- */
.welcome {
  background: var(--color-white);
  padding: 0;
}

.welcome .container {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 0;
}

.welcome-text-inner {
  max-width: 80%;
  text-align: center;
}

.welcome-text h2 {
  font-size: clamp(28px, 3.5vw, 45px);
  margin-bottom: 20px;
}

.welcome-text p {
  margin-bottom: 1em;
}

.welcome-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 50px;
}

.welcome-images .img-cell {
  padding: 15px;
}

.welcome-images .img-cell--canvas {
  display: flex;
  justify-content: center;
}

.welcome-images .img-cell--canvas img {
  max-width: 215px;
}

/* --- Page Title --- */
.page-title-section {
  padding: 60px 0 60px;
  text-align: center;
}

.page-title-section .container {
  max-width: 100%;
}

.page-title-section h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 10px;
}

.page-tagline {
  font-size: 1rem;
  color: var(--color-dark);
}

/* --- Subpage Title (gradient) --- */

.subpage-title-section {
  padding: 60px 0 60px;
  text-align: center;
}

.subpage-title-box {
  max-width: calc(var(--max-width) * 0.75);
  margin: 0 auto;
  padding: 10px 30px 30px;
  background: linear-gradient(to bottom, var(--color-white) 0%, #8ad19c 100%);
}

.subpage-title-box.gradient-pink {
  background: linear-gradient(to bottom, var(--color-white) 0%, #ffc6ff 100%);
}

.subpage-title-box.gradient-yellow {
  background: linear-gradient(to bottom, var(--color-white) 0%, #fff700 100%);
}

.subpage-title-section h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.subpage-title-section .subpage-tagline {
  font-size: clamp(16px, 2vw, 20px);
  margin-top: 10px;
  color: var(--color-darkest);
}

/* --- Size Heading --- */

.size-heading {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.size-heading h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 45px);
  line-height: 1.2;
  color: var(--color-darkest);
  margin-bottom: 5px;
}

.size-heading p {
  font-size: 1.2em;
  color: var(--color-dark);
}

/* --- Section Divider --- */

.section-divider {
  max-width: var(--max-width);
  margin: 50px auto;
  padding: 35px 50px;
}

.section-divider--green {
  background: #8ad19c;
}

.section-divider--dark-green {
  background: var(--color-green);
}

.section-divider hr {
  border: none;
  border-top: 1px solid var(--color-light-gray);
}

/* --- Product Grid --- */
.product-grid {
  padding: 0 0 60px;
}

.product-grid .container {
  padding-left: 0;
  padding-right: 0;
}

.product-grid-items {
  display: grid;
  row-gap: 50px;
}

.product-grid-items.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid-items.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-grid-items.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 66%;
  margin: 0 auto;
}

.product-card {
  text-align: center;
  padding: 0 5.76%;
}

/* Featured product card — glow highlight */
.product-card--featured {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 103, 79, 0.3), 0 0 40px rgba(0, 103, 79, 0.15);
  padding-top: 20px;
  padding-bottom: 20px;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.product-card--featured:hover {
  box-shadow: 0 0 28px rgba(0, 103, 79, 0.45), 0 0 56px rgba(0, 103, 79, 0.2);
  transform: scale(1.02);
}

.featured-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--color-green);
}

.featured-card-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-dark);
  margin-top: 4px;
}

.product-card-image {
  position: relative;
  margin-bottom: 10px;
}

.image-with-border .product-card-image img {
  border: 1px solid #c1c1c1;
}

.image-with-border .product-card-image {
  box-shadow: 0 0 0 0 #00674f;
  transition: box-shadow 0.35s ease;
}

.image-with-border .product-card-link:hover .product-card-image {
  box-shadow: 0 0 0 2px #00674f;
}

.product-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-card h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
  letter-spacing: 1px;
  color: var(--color-darkest);
  margin-top: 5px;
}

/* --- Product Badge --- */
.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  line-height: 1;
  pointer-events: none;
}

/* --- Interactive Card Variants --- */
.product-card-variants {
  position: relative;
  display: grid;
}

.product-card-variants .variant-image {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-card-variants .variant-image.active {
  opacity: 1;
  pointer-events: auto;
}

.variant-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.variant-tab {
  background: var(--color-light-gray);
  border: 1px solid #c1c1c1;
  border-radius: 4px;
  padding: 5px 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

.variant-tab:hover {
  background: var(--color-muted-gold);
  border-color: var(--color-gold);
}

.variant-tab.active {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}

/* --- Info Section (hidden — product notes now on detail pages) --- */
.info-section {
  display: none;
  padding: 0 0 40px;
}

.info-section .container {
  padding-left: 2%;
  padding-right: 2%;
}

.info-bar {
  background: var(--color-gold);
  height: 6px;
  margin: 50px 0 100px;
}

.info-bar--green {
  background: var(--color-green);
}

.info-bar--yellow {
  background: #fff700;
}

.info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-col h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 45px);
  letter-spacing: 1px;
  color: var(--color-darkest);
  margin-bottom: 15px;
}

.info-col ul {
  list-style: disc;
  padding-left: 20px;
}

.info-col ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Product/info responsive — handled in global responsive block below */

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.667em 1.333em;
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 300;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.45s ease, color 0.45s ease;
}

.btn-default {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-default:hover {
  background: var(--color-darker);
}

.btn-green {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-green:hover {
  background: var(--color-muted-gold);
  color: var(--color-white);
}

/* --- Purchase CTA --- */
.purchase-cta {
  padding: 40px 0;
}

.purchase-cta-box {
  max-width: 66.67%;
  margin: 0 auto;
  border: 1px solid var(--color-dark);
  padding: 25px;
  text-align: center;
}

.purchase-cta-box h3 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  margin-bottom: 15px;
}

.purchase-cta-box p {
  margin-bottom: 20px;
}

/* --- Subscribe Section --- */
.subscribe {
  padding: 35px 0 8px;
  background-image: url('../images/paper-texture-copy.webp');
  background-size: cover;
}

.subscribe .container {
  text-align: center;
}

.subscribe-heading {
  font-family: var(--font-accent);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  max-width: 66.67%;
  margin: 0 auto;
  gap: 0;
}

.subscribe-form input[type="email"] {
  flex: 3;
  padding: 10px 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ccc;
  outline: none;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--color-green);
}

.subscribe-form button {
  flex: 1;
  padding: 10px 20px;
}

.subscribe-notices {
  margin-top: 27px;
  padding-bottom: 20px;
}

/* --- Footer --- */
.site-footer {
  padding: 15px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer-copyright {
  flex: 2;
  font-size: 0.8em;
}

.footer-social {
  flex: 1;
  text-align: center;
}

.footer-social a {
  font-size: 26px;
  color: var(--color-dark);
  transition: color 0.45s ease;
}

.footer-social a:hover {
  color: var(--color-light-green);
}

.footer-legal {
  flex: 2;
  font-size: 0.8em;
  text-align: right;
}

.footer-legal a:hover {
  color: var(--color-green);
}

/* --- Stationery Category Cards --- */
.stationery-cards {
  width: 100%;
}

.stationery-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stationery-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 275px;
  text-decoration: none;
  transform: translateX(0) translateY(0);
  filter: brightness(100%);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.stationery-card:hover {
  transform: translateX(3px) translateY(-6px);
  filter: brightness(105%);
}

.stationery-card h2 {
  font-size: clamp(28px, 3.5vw, 45px);
}

.stationery-card--green {
  background: var(--color-green);
  color: var(--color-light-green);
}

.stationery-card--green h2 {
  color: var(--color-light-green);
}

.stationery-card--light {
  background: var(--color-light-green);
  color: var(--color-darker);
}

.stationery-card--light h2 {
  color: var(--color-darker);
}

.stationery-card--gold {
  background: var(--color-muted-gold);
  color: var(--color-darker);
}

.stationery-card--gold h2 {
  color: var(--color-darker);
}

.stationery-card--pink {
  background: var(--color-pink);
  color: var(--color-darker);
}

.stationery-card--pink h2 {
  color: var(--color-darker);
}

.stationery-card--pale-yellow {
  background: var(--color-pale-yellow);
  color: var(--color-darker);
}

.stationery-card--pale-yellow h2 {
  color: var(--color-darker);
}

/* --- Gift Wrap Category Cards --- */
.giftwrap-cards {
  width: 100%;
}

.giftwrap-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.giftwrap-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 275px;
  text-decoration: none;
  transform: translateX(0) translateY(0);
  filter: brightness(100%);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.giftwrap-card:hover {
  transform: translateX(3px) translateY(-6px);
  filter: brightness(105%);
}

.giftwrap-card h2 {
  font-size: clamp(28px, 3.5vw, 45px);
}

.giftwrap-card--magenta {
  background: var(--color-magenta);
  color: var(--color-white);
}

.giftwrap-card--magenta h2 {
  color: var(--color-white);
}

.giftwrap-card--pink {
  background: var(--color-pink);
  color: var(--color-darker);
}

.giftwrap-card--pink h2 {
  color: var(--color-darker);
}

/* --- Fine Art Category Cards --- */
.fineart-cards {
  width: 100%;
}

.fineart-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.fineart-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 275px;
  text-decoration: none;
  transform: translateX(0) translateY(0);
  filter: brightness(100%);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.fineart-card:hover {
  transform: translateX(3px) translateY(-6px);
  filter: brightness(105%);
}

.fineart-card h2 {
  font-size: clamp(28px, 3.5vw, 45px);
}

.fineart-card--yellow {
  background: var(--color-yellow);
  color: var(--color-darker);
}

.fineart-card--yellow h2 {
  color: var(--color-darker);
}

.fineart-card--pale {
  background: var(--color-pale-yellow);
  color: var(--color-darker);
}

.fineart-card--pale h2 {
  color: var(--color-darker);
}

/* --- About Page --- */
.about-section {
  padding: 60px 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 75% 1fr;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-main h1 {
  margin-bottom: 10px;
}

.about-main h2 {
  font-family: var(--font-accent);
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 20px;
}

.about-text {
  margin-bottom: 30px;
}

.about-text p {
  margin-bottom: 1em;
}

.about-img-left {
  float: left;
  margin: 0 20px 15px 0;
  max-width: 263px;
  height: auto;
}

.about-img-right {
  float: right;
  margin: 0 0 15px 20px;
  max-width: 147px;
  height: auto;
}

.about-separator {
  border: none;
  border-top: 1px solid var(--color-light-gray);
  margin: 30px 0;
}

.about-main blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 10px 20px;
  margin: 0 0 20px 0;
  font-style: italic;
  color: var(--color-dark);
}

.about-testimonial-with-image {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.about-testimonial-image img {
  width: 100%;
  height: auto;
}

.about-sidebar {
  position: sticky;
  top: 155px;
  align-self: start;
}

.about-sidebar img {
  width: 100%;
  height: auto;
}

/* --- Contact Page --- */

.contact-section {
  text-align: center;
  padding: 60px 0 30px;
}

.contact-section h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.contact-intro {
  max-width: 50%;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
}

.contact-form-section {
  padding: 40px 0 60px;
  background: linear-gradient(to bottom, var(--color-white), #8ad19c 30%, #8ad19c 70%, var(--color-white));
}

.contact-form {
  max-width: 50%;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-group .required {
  color: #c00;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(0, 103, 79, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn {
  margin-top: 10px;
}

.contact-notices {
  max-width: 50%;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.95rem;
}

.contact-notices .success {
  color: var(--color-green);
}

.contact-notices .error {
  color: #c00;
}

.contact-notices .error a {
  color: #c00;
  text-decoration: underline;
}

/* --- Inquiry Section --- */

.inquiry-section {
  padding: 60px 0;
  background: #fffd8a;
}

.inquiry-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.inquiry-section h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
  margin-bottom: 15px;
}

.inquiry-section p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Painting Grid --- */

.painting-grid {
  text-align: center;
}

.painting-grid .product-card h2 {
  font-size: clamp(22px, 3vw, 36px);
}

.painting-grid .painting-size {
  text-align: center;
  font-size: 0.95rem;
  margin-top: -5px;
}

/* --- Responsive --- */

/* Tablet: 641px–1153px */
/* ── Form Notices ── */
.form-notice {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
}

.form-notice--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-notice--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ── Legal Pages (Termageddon embeds) ── */
.legal-page {
  padding: 60px 0;
}

.legal-page h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 30px;
}

/* ── Justified Image Grid ── */
.jig-section {
  padding: 30px 0 40px;
}

.jig-gallery {
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
  font-size: 0;
  line-height: 0;
}

.jig-item {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  cursor: pointer;
}

.jig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jig-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.jig-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 10px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.jig-item:hover .jig-caption {
  opacity: 1;
}

/* ── Lightbox ── */
.jig-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.jig-lightbox.active {
  display: flex;
}

.jig-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.jig-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jig-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.jig-lightbox-close {
  position: fixed;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.jig-lightbox-prev,
.jig-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
}

.jig-lightbox-prev { left: 15px; }
.jig-lightbox-next { right: 15px; }

.jig-lightbox-title {
  color: #fff;
  font-size: 15px;
  margin-top: 10px;
  text-align: center;
}

.jig-lightbox-counter {
  color: #aaa;
  font-size: 13px;
  margin-top: 4px;
}

@media (max-width: 1153px) {
  .welcome .container {
    grid-template-columns: 60% 40%;
  }

  .purchase-cta-box {
    max-width: 80%;
  }

  .product-grid-items.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid-items.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid-items.cols-2 {
    max-width: 80%;
  }

  /* #1 — Category grids: 4-col → 2-col on tablet */
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stationery-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* #2 — Contact form wider on tablet */
  .contact-intro,
  .contact-form,
  .contact-notices {
    max-width: 75%;
  }

  /* #7 — Subscribe form wider on tablet */
  .subscribe-form {
    max-width: 85%;
  }

  /* #8 — Inquiry section stacks earlier */
  .inquiry-section .container {
    grid-template-columns: 1fr;
  }

  /* #9 — Section divider horizontal padding scales down */
  .section-divider {
    padding: 35px 30px;
  }
}

/* Mobile: 640px and below */
@media (max-width: 640px) {
  /* Nav — hamburger toggle */
  .menu-toggle {
    display: block;
  }

  .site-header .container {
    position: relative;
  }

  /* Mobile menu — slide down with animation */
  .main-nav > ul,
  .main-nav #main-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 0 20px;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0, 103, 79, 0.12);
    z-index: 200;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                padding 0.45s ease;
  }

  .main-nav.open > ul,
  .main-nav.open #main-menu {
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 1;
    padding: 12px 20px 20px;
  }

  /* Center all menu items — stack vertically */
  .main-nav #main-menu > li {
    display: block;
    text-align: center;
    border-bottom: 1px solid var(--color-light-gray);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .main-nav.open #main-menu > li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger the item animations */
  .main-nav.open #main-menu > li:nth-child(1) { transition-delay: 0.05s; }
  .main-nav.open #main-menu > li:nth-child(2) { transition-delay: 0.08s; }
  .main-nav.open #main-menu > li:nth-child(3) { transition-delay: 0.11s; }
  .main-nav.open #main-menu > li:nth-child(4) { transition-delay: 0.14s; }
  .main-nav.open #main-menu > li:nth-child(5) { transition-delay: 0.17s; }
  .main-nav.open #main-menu > li:nth-child(6) { transition-delay: 0.20s; }
  .main-nav.open #main-menu > li:nth-child(7) { transition-delay: 0.23s; }
  .main-nav.open #main-menu > li:nth-child(8) { transition-delay: 0.26s; }
  .main-nav.open #main-menu > li:nth-child(9) { transition-delay: 0.29s; }

  .main-nav #main-menu > li:last-child {
    border-bottom: none;
  }

  .main-nav #main-menu > li > a {
    display: block;
    padding: 14px 0;
  }

  /* Center the parent link + indicator */
  .has-megamenu > a {
    display: inline-flex;
    justify-content: center;
  }

  /* Mega menu accordion — centered */
  .megamenu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border-top: 1px solid var(--color-light-gray);
    border-left: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0.3s ease,
                padding 0.4s ease;
  }

  .megamenu::before {
    display: none;
  }

  .has-megamenu.open .megamenu {
    opacity: 1;
    visibility: visible;
    max-height: 800px;
    padding: 12px 0 6px;
    transform: none;
  }

  .megamenu-inner {
    display: block;
    text-align: center;
  }

  .megamenu-col {
    min-width: 0;
    margin-bottom: 10px;
  }

  .megamenu-col:last-child {
    margin-bottom: 0;
  }

  .megamenu-heading {
    text-align: center;
    cursor: pointer;
    position: relative;
    padding-bottom: 8px;
  }

  .megamenu-heading::after {
    content: '+';
    margin-left: 8px;
    font-size: 0.85em;
    font-weight: 300;
    transition: transform 0.3s ease;
    display: inline-block;
  }

  .megamenu-col.col-open .megamenu-heading::after {
    content: '\2212';
  }

  .megamenu-col > ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
  }

  .megamenu-col.col-open > ul {
    max-height: 500px;
    opacity: 1;
  }

  .megamenu ul {
    align-items: center;
  }

  .megamenu ul li a {
    padding: 8px 0;
  }

  .has-megamenu > a::after {
    font-size: 1em;
    transition: transform 0.35s ease;
  }

  .has-megamenu.open > a::after {
    transform: rotate(180deg);
  }

  /* Homepage */
  .category-cards {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 100px;
    padding: 50px 0;
  }

  .welcome .container {
    grid-template-columns: 1fr;
  }

  .welcome-text {
    padding: 46px 15px;
  }

  .welcome-images {
    padding: 15px;
  }

  .welcome-images .img-cell--canvas img {
    max-width: 100%;
  }

  /* Stationery cards */
  .stationery-cards-row {
    grid-template-columns: 1fr;
  }

  .stationery-card {
    min-height: 100px;
    padding: 50px 0;
  }

  /* Gift wrap cards */
  .giftwrap-cards-row {
    grid-template-columns: 1fr;
  }

  .giftwrap-card {
    min-height: 100px;
    padding: 50px 0;
  }

  /* Fine art cards */
  .fineart-cards-row {
    grid-template-columns: 1fr;
  }

  .fineart-card {
    min-height: 100px;
    padding: 50px 0;
  }

  /* About page */
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    position: static;
    display: none;
  }

  .about-testimonial-with-image {
    grid-template-columns: 1fr;
  }

  .about-img-left,
  .about-img-right {
    float: none;
    display: block;
    margin: 0 auto 15px;
  }

  /* Contact page */
  .contact-intro {
    max-width: 90%;
  }

  .contact-form {
    max-width: 90%;
  }

  .contact-notices {
    max-width: 90%;
  }

  /* Product grids */
  .product-grid-items.cols-3 {
    grid-template-columns: 1fr;
  }

  .product-grid-items.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid-items.cols-2 {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Info section */
  .info-columns {
    grid-template-columns: 1fr;
  }

  /* Inquiry section */
  .inquiry-section .container {
    grid-template-columns: 1fr;
  }

  /* Justified grid — stack on mobile */
  .jig-item {
    width: 100% !important;
    height: auto !important;
    margin-right: 0 !important;
    margin-bottom: 4px !important;
  }

  .jig-item img {
    height: auto;
  }

  .jig-caption {
    opacity: 1;
  }

  .jig-lightbox-prev,
  .jig-lightbox-next {
    font-size: 28px;
  }

  /* Purchase CTA */
  .purchase-cta-box {
    max-width: 100%;
  }

  /* Subscribe */
  .subscribe-form {
    max-width: 100%;
    flex-direction: column;
  }

  .subscribe-form button {
    margin-top: 10px;
  }

  /* Footer */
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-copyright,
  .footer-legal {
    text-align: center;
  }
}

/* ============================================
   Breadcrumb Navigation
   ============================================ */

.breadcrumb-nav {
  padding: 26px 0 20px;
  font-size: 13px;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-light-gray);
  letter-spacing: 0.4px;
}

.breadcrumb-nav a {
  color: var(--color-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--color-gold);
  text-decoration: none;
}

.breadcrumb-sep {
  display: inline-block;
  margin: 0 10px;
  color: var(--color-muted-gold);
  font-size: 0;
  vertical-align: middle;
}

.breadcrumb-sep::before {
  content: '\25C6';
  font-size: 8px;
  opacity: 0.9;
}

.breadcrumb-current {
  display: none;
}

.breadcrumb-sep:has(+ .breadcrumb-current) {
  display: none;
}

@media (max-width: 640px) {
  .breadcrumb-nav {
    padding: 18px 0 14px;
    font-size: 12px;
    line-height: 1.8;
  }

  .breadcrumb-sep {
    margin: 0 6px;
  }

  .breadcrumb-current {
    font-size: 13px;
  }
}

/* ============================================
   Product Detail Page
   ============================================ */

.product-detail {
  padding: 80px 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #c1c1c1;
}

.product-detail-info h1 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--color-darkest);
  line-height: 1.1;
  margin-bottom: 6px;
}

.product-detail-category {
  font-size: 14px;
  color: var(--color-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
}

.product-size-note {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-green);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--color-green);
  border-radius: 4px;
}

.product-size-note:empty {
  display: none;
}

.product-detail-notes {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.8;
}

.product-detail-notes li::before {
  content: '\2014\00a0';
  opacity: 0.4;
}

/* Shop controls on detail page — left-aligned, wider */
.product-detail-info .shop-controls {
  text-align: left;
  max-width: 340px;
}

.product-detail-info .shop-price {
  font-size: 22px;
  margin-bottom: 16px;
}

.product-detail-info .shop-price-amount {
  font-size: 22px;
}

.product-detail-info .shop-price-label {
  font-size: 15px;
}

.product-detail-info .shop-variants {
  flex-direction: row;
  width: 100%;
}

.product-detail-info .shop-variant-btn {
  padding: 10px 16px;
  font-size: 14px;
  width: 50%;
  flex: 1;
}

.product-detail-info .shop-cart-btn {
  padding: 14px 24px;
  font-size: 14px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-detail-info .shop-controls {
    max-width: 100%;
  }
}

/* ============================================
   Shop Controls — injected by shop.js
   ============================================ */

.shop-controls {
  margin-top: 12px;
  text-align: center;
}

.shop-price {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--color-dark);
  font-weight: 400;
}

.shop-price-amount {
  font-weight: 600;
  color: var(--color-darkest);
}

.shop-price-label {
  font-size: 13px;
  color: var(--color-dark);
}

.shop-variants {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.shop-variant-btn {
  display: block;
  width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.shop-variant-btn:hover {
  border-color: var(--color-green);
}

.shop-variant-btn.active {
  border-color: var(--color-green);
  background: rgba(0, 103, 79, 0.06);
  font-weight: 400;
  box-shadow: 0 0 8px rgba(0, 103, 79, 0.35);
}

.shop-cart-btn {
  width: 100%;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.shop-cart-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.shop-cart-btn--added {
  background: var(--color-green);
}

/* Listing page — price under card name */
.shop-listing-price {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-darkest);
}

/* Listing card links — no underline, inherit color */
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-link:hover img:not(.variant-image),
.product-card-link:hover .variant-image.active {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}


@media (max-width: 640px) {
  .shop-variant-btn {
    padding: 10px 12px;
    font-size: 14px;
  }

  .shop-cart-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ============================================
   Header Cart Icon + Badge
   ============================================ */

.cart-toggle {
  display: flex;
  align-items: center;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--color-dark);
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.cart-toggle:hover {
  color: var(--color-green);
  transform: scale(1.12) rotate(-6deg);
}

.cart-toggle:active {
  transform: scale(0.95);
}

.cart-icon {
  display: block;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  padding: 0 4px;
}

/* ============================================
   Cart Drawer
   ============================================ */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--color-white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

/* Prevent body scroll when cart or mobile menu is open */
body.cart-open,
body.menu-open {
  overflow: hidden;
}

/* --- Drawer Header --- */

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-light-gray);
  flex-shrink: 0;
}

.cart-drawer-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--color-darkest);
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-dark);
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.cart-drawer-close:hover {
  color: var(--color-darkest);
}

/* --- Drawer Body --- */

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* Empty state */
.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--color-dark);
}

.cart-empty p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
}

.cart-empty-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-dark);
  opacity: 0.7;
}

/* Item list */
.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-light-gray);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-darkest);
  line-height: 1.3;
}

.cart-item-variant {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-dark);
  opacity: 0.8;
}

.cart-item-price {
  font-size: 12px;
  font-weight: 300;
  color: var(--color-dark);
  opacity: 0.7;
}

/* Controls column */
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

/* Quantity stepper */
.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  background: var(--color-off-white);
  border: none;
  font-size: 16px;
  line-height: 1;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cart-qty-btn:hover {
  background: var(--color-light-gray);
}

.cart-qty-value {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-darkest);
  border-left: 1px solid var(--color-light-gray);
  border-right: 1px solid var(--color-light-gray);
  line-height: 30px;
}

.cart-item-total {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-darkest);
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--color-dark);
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.cart-item-remove:hover {
  opacity: 1;
  color: #c0392b;
}

/* --- Drawer Footer --- */

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-light-gray);
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cart-subtotal-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-dark);
}

.cart-subtotal-amount {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-darkest);
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* --- Mobile cart adjustments --- */

@media (max-width: 640px) {
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .cart-toggle {
    order: 3;
  }
}

/* ============================================
   Box Builder — Custom Mix & Match
   ============================================ */

.box-builder-header {
  margin-bottom: 24px;
}

.box-builder-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.box-builder-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--color-off-white);
  border-radius: 6px;
  margin-bottom: 24px;
  position: sticky;
  top: 100px;
  z-index: 50;
}

.box-builder-count {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-dark);
}

.box-count-current {
  font-weight: 600;
  font-size: 18px;
  color: var(--color-darkest);
}

.box-complete .box-count-current {
  color: var(--color-green);
}

.box-builder-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-darkest);
}

.box-builder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.box-pick-card {
  border: 2px solid var(--color-light-gray);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.box-pick-card.selected {
  border-color: var(--color-green);
  box-shadow: 0 0 12px rgba(0, 103, 79, 0.2);
}

.box-pick-image {
  overflow: hidden;
}

.box-pick-image img {
  width: 100%;
  height: auto;
  display: block;
}

.box-pick-info {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.box-pick-name {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-darkest);
}

.box-pick-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-light-gray);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.box-pick-btn {
  width: 32px;
  height: 32px;
  background: var(--color-off-white);
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.box-pick-btn:hover:not(:disabled) {
  background: var(--color-light-gray);
}

.box-pick-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.box-pick-qty {
  width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-darkest);
  border-left: 1px solid var(--color-light-gray);
  border-right: 1px solid var(--color-light-gray);
  line-height: 32px;
}

.box-builder-footer {
  text-align: center;
}

.box-builder-add-btn {
  padding: 16px 40px;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.box-builder-add-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Cart: custom box selections sub-list */
.cart-item-selections {
  list-style: none;
  padding: 4px 0 0;
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  color: var(--color-dark);
  opacity: 0.8;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .box-builder-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .box-builder-grid {
    grid-template-columns: 1fr;
  }

  .box-pick-info {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
  }

  .box-pick-stepper {
    align-self: center;
  }
}

/* --- Size Tabs (stationery box builder) --- */

.box-size-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-light-gray);
}

.box-size-tab {
  flex: 1;
  padding: 14px 16px;
  background: var(--color-off-white);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-dark);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  line-height: 1.4;
}

.box-size-tab + .box-size-tab {
  border-left: 1px solid var(--color-light-gray);
}

.box-size-tab:hover {
  background: var(--color-white);
}

.box-size-tab.active {
  background: var(--color-white);
  color: var(--color-green);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--color-green);
}

.box-size-dim {
  display: block;
  font-size: 12px;
  font-weight: 300;
  opacity: 0.7;
  margin-top: 2px;
}

.box-size-price {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}

.box-size-tab.active .box-size-price {
  color: var(--color-green);
}

/* Featured CTA banner (stationery landing page) */

.featured-cta {
  padding: 0 0 30px;
}

.featured-cta-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-green);
  box-shadow: 0 0 20px rgba(0, 103, 79, 0.3), 0 0 40px rgba(0, 103, 79, 0.15);
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.featured-cta-link:hover {
  box-shadow: 0 0 28px rgba(0, 103, 79, 0.45), 0 0 56px rgba(0, 103, 79, 0.2);
  transform: scale(1.01);
}

.featured-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-cta-text strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-darkest);
}

.featured-cta-text span {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-dark);
}

/* Category subheadings within box builder grid */

.box-builder-category-heading {
  grid-column: 1 / -1;
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-darkest);
  padding: 10px 0 4px;
  border-bottom: 1px solid var(--color-light-gray);
  margin: 0;
}

.box-builder-category-heading:first-child {
  padding-top: 0;
}

/* --- Checkout --- */

.checkout-section {
  padding: 40px 0 80px;
}

.checkout-section h1 {
  font-family: var(--font-accent);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  margin-bottom: 30px;
}

.checkout-empty {
  text-align: center;
  padding: 60px 0;
}

.checkout-empty p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
}

/* Fieldsets */

.checkout-fieldset {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.checkout-fieldset legend {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0 8px;
  color: var(--color-darkest);
}

.checkout-fieldset .optional {
  font-weight: 400;
  font-size: 0.85rem;
  color: #888;
}

/* Form row (side-by-side fields) */

.form-row {
  display: flex;
  gap: 16px;
}

.form-group--half {
  flex: 1;
}

.form-group--quarter {
  flex: 0 0 calc(25% - 8px);
}

.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--color-white);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.form-group select:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(0, 103, 79, 0.15);
}

/* Square card container */

#card-container {
  min-height: 44px;
}

/* Pay button */

.checkout-pay-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.checkout-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Notices */

.checkout-notices {
  margin-top: 12px;
}

.checkout-notice--error {
  color: #c00;
  font-size: 0.9rem;
}

.checkout-notice--success {
  color: var(--color-green);
  font-size: 0.9rem;
}

/* Order Summary sidebar */

.checkout-summary {
  background: var(--color-off-white);
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.checkout-summary h2 {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.checkout-items {
  list-style: none;
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}

.checkout-item-name {
  flex: 1;
  padding-right: 12px;
}

.checkout-item-qty {
  color: #888;
  margin-left: 4px;
}

.checkout-item-total {
  font-weight: 600;
  white-space: nowrap;
}

.checkout-item-selections {
  list-style: none;
  padding-left: 12px;
  font-size: 0.8rem;
  color: #666;
}

/* Totals */

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
}

.checkout-total-row--total {
  border-top: 2px solid var(--color-darkest);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    order: -1;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group--half,
  .form-group--quarter {
    flex: none;
    width: 100%;
  }
}

/* --- Order Confirmation --- */

.order-loading {
  text-align: center;
  padding: 80px 0;
  color: #888;
}

.order-error {
  text-align: center;
  padding: 60px 0;
}

.order-error h1 {
  font-family: var(--font-accent);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  margin-bottom: 12px;
}

.order-error p {
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: var(--color-dark);
}

.order-confirmed-header {
  text-align: center;
  margin-bottom: 40px;
}

.order-confirmed-icon {
  font-size: 56px;
  color: var(--color-green);
  margin-bottom: 16px;
}

.order-confirmed-header h1 {
  margin-bottom: 8px;
}

.order-confirmed-subtitle {
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.order-confirmed-id {
  font-size: 0.9rem;
  color: #888;
  word-break: break-all;
}

.order-confirmed-email {
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-top: 4px;
}

.order-details {
  padding-top: 8px;
}

.order-detail-block {
  margin-bottom: 28px;
}

.order-detail-block h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-darkest);
}

.order-detail-block p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.order-gift-block p {
  font-style: italic;
  color: var(--color-dark);
}

.order-confirmed-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}
