/*
Theme Name: Pin Saver WooCommerce
Theme URI: https://pinsaver.com/
Author: Pin Saver
Description: A responsive WooCommerce storefront for The Original Pin Saver.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pin-saver
*/

:root {
  --ps-navy: #102b5c;
  --ps-blue: #72a7f7;
  --ps-pale-blue: #dce8f7;
  --ps-red: #d52b4b;
  --ps-ink: #152b4b;
  --ps-muted: #68778b;
  --ps-paper: #fff;
  --ps-line: #dce2ea;
  --ps-soft: #f4f7fb;
  --ps-radius: 12px;
  --ps-shadow: 0 18px 55px rgba(16, 43, 92, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ps-ink);
  background: var(--ps-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
.ps-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.ps-skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 9999;
  padding: 10px 14px; background: white; color: var(--ps-navy);
}
.ps-skip-link:focus { left: 8px; }

.ps-header { background: white; border-bottom: 1px solid var(--ps-line); }
.ps-header-inner {
  min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.ps-brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.ps-brand-kicker { color: var(--ps-red); font-weight: 800; font-style: italic; font-size: 17px; }
.ps-brand-name { color: var(--ps-navy); font-size: 29px; font-weight: 950; letter-spacing: -.07em; }
.ps-nav ul { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.ps-nav a { text-decoration: none; font-size: 14px; font-weight: 700; }
.ps-nav a:hover, .ps-nav a:focus-visible { color: var(--ps-red); }
.ps-header-actions { display: flex; align-items: center; gap: 18px; }
.ps-account-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.ps-cart-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ps-navy); font-weight: 800;
}
.ps-cart-count { min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--ps-red); color: white; font-size: 12px; }
.ps-mobile-nav { display: none; }

.ps-hero { padding: 64px 0 72px; }
.ps-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.ps-product-gallery { min-width: 0; }
.ps-product-image {
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--ps-radius); background: var(--ps-pale-blue);
}
.ps-product-image img { display: block; width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; }
.ps-product-image .woocommerce-product-gallery { width: 100%; }
.ps-product-image .woocommerce-product-gallery__wrapper { margin: 0; }
.ps-product-image .woocommerce-product-gallery__image img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.ps-gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.ps-gallery-thumb { width: 88px; aspect-ratio: 1; border: 1px solid var(--ps-line); border-radius: 6px; object-fit: cover; background: var(--ps-soft); }
.ps-kickers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ps-pill { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--ps-pale-blue); color: var(--ps-navy); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.ps-pill--red { background: var(--ps-red); color: white; }
.ps-eyebrow { color: var(--ps-red); font-weight: 850; letter-spacing: .13em; text-transform: uppercase; font-size: 12px; }
.ps-hero h1 { margin: 0; color: var(--ps-navy); font-size: clamp(44px, 6vw, 74px); font-weight: 950; letter-spacing: -.065em; line-height: .98; text-transform: uppercase; }
.ps-hero h1 span { display: block; margin-top: 12px; color: #66768c; font-size: .54em; letter-spacing: -.05em; }
.ps-tagline { margin: 20px 0; padding-left: 17px; border-left: 4px solid var(--ps-red); color: var(--ps-navy); font-size: 23px; font-style: italic; font-weight: 650; }
.ps-product-price { display: inline-flex; align-items: baseline; gap: 9px; margin: 0 0 18px; color: var(--ps-navy); font-size: 30px; font-weight: 850; line-height: 1.2; }
.ps-product-price del { color: #8793a2; font-size: .68em; }
.ps-product-price ins { text-decoration: none; }
.ps-product-price .woocommerce-Price-currencySymbol { font-size: .76em; }
.ps-product-description { max-width: 570px; margin: 0 0 22px; color: var(--ps-muted); font-size: 17px; }
.ps-product-facts { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.ps-product-facts li { display: flex; gap: 11px; align-items: flex-start; font-weight: 650; }
.ps-check { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; margin-top: 2px; border-radius: 50%; background: var(--ps-pale-blue); color: var(--ps-navy); font-weight: 900; line-height: 1; }
.ps-purchase-row { display: flex; align-items: center; gap: 12px; }
.ps-purchase-row .quantity { display: flex; align-items: center; }
.ps-purchase-row .quantity input {
  width: 76px; min-height: 52px; border: 1px solid var(--ps-line); border-radius: 6px;
  padding: 10px; color: var(--ps-ink); text-align: center;
}
.ps-button, .ps-purchase-row button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  min-height: 52px; display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 24px; border: 0; border-radius: 6px; background: var(--ps-red);
  color: white; font-weight: 850; text-align: center; text-decoration: none; text-transform: uppercase;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.ps-button:hover, .ps-purchase-row button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  transform: translateY(-2px); background: #b91f3d; color: white; box-shadow: 0 8px 20px rgba(213, 43, 75, .2);
}
.ps-purchase-row .single_add_to_cart_button { flex: 1; }
.ps-purchase-row form.cart { display: flex; width: 100%; align-items: center; gap: 12px; margin: 0; }
.ps-purchase-row form.cart .variations { margin-bottom: 12px; }
.ps-purchase-row form.cart .reset_variations { margin-left: 10px; }
.ps-purchase-row form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: center; width: 100%; }
.ps-product-meta { margin-top: 17px; color: var(--ps-muted); font-size: 13px; }

.ps-benefits { padding: 42px 0; background: var(--ps-navy); color: white; }
.ps-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ps-benefit { padding: 6px 30px; text-align: center; }
.ps-benefit + .ps-benefit { border-left: 1px solid rgba(255,255,255,.2); }
.ps-benefit-mark { color: #bcd4f7; font-size: 25px; font-weight: 900; }
.ps-benefit h2 { margin: 8px 0 4px; font-size: 18px; line-height: 1.2; text-transform: uppercase; }
.ps-benefit p { margin: 0 auto; max-width: 290px; color: rgba(255,255,255,.72); font-size: 14px; }
.ps-how { padding: 76px 0; }
.ps-section-heading { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.ps-section-heading h2 { margin: 6px 0 10px; color: var(--ps-navy); font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -.05em; line-height: 1.05; }
.ps-section-heading p { margin: 0; color: var(--ps-muted); }
.ps-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ps-step { padding: 25px; border: 1px solid var(--ps-line); border-radius: 10px; background: white; }
.ps-step-num { color: var(--ps-red); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.ps-step h3 { margin: 7px 0; color: var(--ps-navy); font-size: 20px; }
.ps-step p { margin: 0; color: var(--ps-muted); font-size: 14px; }
.ps-more-products { padding: 72px 0; background: var(--ps-soft); }
.ps-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.ps-card { overflow: hidden; border: 1px solid var(--ps-line); border-radius: 10px; background: white; transition: transform .2s ease, box-shadow .2s ease; }
.ps-card:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); }
.ps-card-image { display: grid; place-items: center; aspect-ratio: 1.2; background: var(--ps-pale-blue); }
.ps-card-image img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.ps-card-body { padding: 18px; }
.ps-card h3 { margin: 0 0 7px; color: var(--ps-navy); font-size: 18px; }
.ps-card-price { margin-bottom: 12px; font-weight: 800; }
.ps-category-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.ps-category-links a { padding: 8px 14px; border: 1px solid var(--ps-line); border-radius: 999px; background: white; color: var(--ps-navy); font-size: 13px; font-weight: 750; text-decoration: none; }
.ps-category-links a:hover { border-color: var(--ps-red); color: var(--ps-red); }
.ps-footer { padding: 50px 0 24px; background: #0c2149; color: white; }
.ps-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.ps-footer h2, .ps-footer h3 { margin: 0 0 12px; }
.ps-footer p, .ps-footer a { color: rgba(255,255,255,.74); }
.ps-footer a:hover { color: white; }
.ps-footer ul { margin: 0; padding: 0; list-style: none; }
.ps-footer li + li { margin-top: 7px; }
.ps-footer-bottom { margin-top: 35px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.62); font-size: 13px; }
.ps-content { min-height: 45vh; padding-block: 48px; }
.ps-content h1, .ps-content h2 { color: var(--ps-navy); }
.woocommerce .woocommerce-breadcrumb { margin: 18px auto; color: var(--ps-muted); }
.woocommerce .products { margin-top: 20px; }
.woocommerce ul.products li.product { padding: 14px; border: 1px solid var(--ps-line); border-radius: 10px; background: white; }
.woocommerce ul.products li.product img { border-radius: 6px; background: var(--ps-pale-blue); mix-blend-mode: multiply; }
.woocommerce ul.products li.product .price { color: var(--ps-navy); font-weight: 800; }
.woocommerce div.product .product_title { color: var(--ps-navy); font-weight: 900; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ps-navy); font-size: 1.8em; font-weight: 850; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ps-navy); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ps-navy); }
.woocommerce-error { border-top-color: var(--ps-red); }
.woocommerce-error::before { color: var(--ps-red); }
.ps-woocommerce-content { padding-block: 38px 68px; }
.ps-woocommerce-content .woocommerce-products-header__title { color: var(--ps-navy); font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -.05em; }
.ps-woocommerce-content .woocommerce-result-count { color: var(--ps-muted); }
.ps-woocommerce-content .woocommerce-ordering select { min-height: 42px; padding: 6px 10px; border: 1px solid var(--ps-line); border-radius: 5px; background: white; }
.ps-cart-page, .ps-checkout-page { padding-block: 38px 70px; }
.ps-cart-page table.shop_table, .ps-checkout-page table.shop_table { border-color: var(--ps-line); border-radius: 8px; }

@media (max-width: 780px) {
  .ps-container { width: min(100% - 32px, 600px); }
  .ps-header-inner { min-height: 70px; gap: 12px; }
  .ps-brand-name { font-size: 24px; }
  .ps-nav, .ps-account-link { display: none; }
  .ps-mobile-nav { display: block; position: relative; }
  .ps-mobile-nav summary { cursor: pointer; list-style: none; padding: 8px; color: var(--ps-navy); font-size: 25px; line-height: 1; }
  .ps-mobile-nav summary::-webkit-details-marker { display: none; }
  .ps-mobile-nav .ps-mobile-menu { position: absolute; z-index: 10; top: 45px; right: 0; width: min(280px, 85vw); padding: 12px; border: 1px solid var(--ps-line); border-radius: 8px; background: white; box-shadow: var(--ps-shadow); }
  .ps-mobile-menu ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
  .ps-mobile-menu a { display: block; padding: 11px 10px; border-radius: 5px; color: var(--ps-navy); font-weight: 750; text-decoration: none; }
  .ps-mobile-menu a:hover { background: var(--ps-soft); }
  .ps-hero { padding: 30px 0 44px; }
  .ps-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .ps-hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .ps-tagline { font-size: 19px; }
  .ps-product-description { font-size: 16px; }
  .ps-benefit-grid, .ps-steps { grid-template-columns: 1fr; }
  .ps-benefit { padding: 18px 8px; }
  .ps-benefit + .ps-benefit { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .ps-how, .ps-more-products { padding: 52px 0; }
  .ps-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .ps-card-body { padding: 13px; }
  .ps-card h3 { font-size: 16px; }
  .ps-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .ps-footer-grid > :first-child { grid-column: 1 / -1; }
  .ps-purchase-row form.cart { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .ps-product-grid { grid-template-columns: 1fr; }
  .ps-purchase-row form.cart .single_add_to_cart_button { width: 100%; }
  .ps-footer-grid { grid-template-columns: 1fr; }
  .ps-footer-grid > :first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
