/*
Theme Name: Amptora
Theme URI: https://amptora.com
Author: Amptora
Description: Lightweight, fast WooCommerce theme for the Amptora store. No page builder, no jQuery on the front end beyond what WooCommerce needs.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: amptora
*/

:root {
  --bg: #F4F3EF;
  --bg-2: #ECEAE4;
  --card: #FFFFFF;
  --ink: #111214;
  --ink-2: #3A3C40;
  --muted: #55575C;
  --muted-2: #6B6D72;
  --line: #DEDCD5;
  --accent: #FF8A3D;
  --accent-ink: #C2410C;
  --dark: #111214;
  --dark-2: #1D1F23;
  --dark-line: #2A2C30;
  --dark-text: #B9BAB5;
  --ok-bg: #E4F2E7;
  --ok: #1E6B34;
  --radius: 22px;
  --radius-sm: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) { .wrap { padding-left: 18px; padding-right: 18px; } }

/* Buttons */
.btn, .button, button.button, input[type=submit], .wc-block-components-button, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff !important; font-weight: 600; cursor: pointer; line-height: 1;
  transition: background .15s, transform .1s;
}
.btn:hover, .button:hover, input[type=submit]:hover { background: #2a2c30; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--ink) !important; }
.btn--accent:hover { background: #ff9c5a; color: var(--ink); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink) !important; }
.btn--ghost:hover { background: var(--card); color: var(--ink); }
.btn--ghost-dark { background: transparent; border: 1px solid #45474C; color: #F4F3EF !important; }
.btn--ghost-dark:hover { background: var(--dark-2); }

/* Top bar + header */
.topbar { background: var(--dark); color: var(--bg); font-size: 13px; text-align: center; padding: 10px 16px; }
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.5px; color: var(--ink); }
.brand span { color: var(--accent); }
.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-primary li.hot > a { color: var(--accent-ink); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.search-pill { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 44px; width: 220px; }
.search-pill input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14px; }
.search-pill button { border: 0; background: none; padding: 0; display: flex; color: var(--muted); cursor: pointer; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.cart-btn { height: 44px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cart-btn:hover { color: #fff; background: #2a2c30; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-primary { display: none; width: 100%; order: 10; }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); }
  .nav-primary li a { display: block; padding: 10px 4px; }
  .search-pill { width: 160px; }
}
@media (max-width: 560px) { .search-pill { display: none; } }

/* Hero */
.hero { padding: 8px 0 48px; }
.hero__box { display: flex; flex-wrap: wrap; background: var(--dark); border-radius: 28px; overflow: hidden; }
.hero__text { flex: 1 1 480px; padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(40px, 5.5vw, 68px); line-height: 1.02; color: var(--bg); margin: 0; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--dark-text); max-width: 460px; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { flex: 1 1 420px; min-height: 420px; background: var(--dark-2); display: flex; align-items: center; justify-content: center; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder { color: #8A8C90; font-size: 14px; text-align: center; padding: 24px; }

/* Perks */
.perks { padding: 0 0 56px; }
.perks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.perk { background: var(--card); border-radius: 18px; padding: 20px 22px; display: flex; gap: 14px; align-items: center; }
.perk__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; }
.perk strong { display: block; font-size: 15px; }
.perk small { color: var(--muted); font-size: 13px; }

/* Section headers */
.section { padding: 0 0 72px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.section__head h2 { margin: 0; }
.section__head .eyebrow { color: var(--accent-ink); margin-bottom: 6px; }
.link-more { font-weight: 600; font-size: 15px; }

/* Category cards */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat { background: var(--card); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cat__img { height: 200px; border-radius: var(--radius-sm); background: var(--bg-2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 13px; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; }
.cat__row { display: flex; justify-content: space-between; align-items: center; }
.cat__name { font-family: var(--display); font-weight: 600; font-size: 20px; }
.cat__arrow { width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }

/* Product grid (WooCommerce loop) */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
ul.products li.product { background: var(--card); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; position: relative; margin: 0; width: auto; }
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; gap: 12px; }
ul.products li.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 16px; background: var(--bg-2); }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.35; padding: 0 6px; margin: 0; }
ul.products li.product .price { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); padding: 0 6px; }
ul.products li.product .price del { color: var(--muted-2); font-weight: 500; font-size: 15px; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button { margin: 4px 6px 6px; align-self: flex-start; min-height: 42px; padding: 0 18px; font-size: 14px; }
ul.products li.product .onsale, .single-product span.onsale { position: absolute; top: 24px; left: 24px; z-index: 2; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; line-height: 1; }
ul.products li.product .star-rating { margin: 0 6px; font-size: 12px; }
.added_to_cart { padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }

/* POD band */
.pod { padding: 0 0 72px; }
.pod__box { display: flex; flex-wrap: wrap; border-radius: 28px; overflow: hidden; background: var(--accent); color: var(--ink); }
.pod__text { flex: 1 1 460px; padding: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.pod__text .eyebrow { color: var(--ink); }
.pod__text h2 { font-size: clamp(32px, 4vw, 48px); margin: 0; }
.pod__text p { font-size: 17px; max-width: 440px; margin: 0; }
.pod__media { flex: 1 1 380px; min-height: 320px; background: #E8E4D8; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.pod__media img { width: 100%; height: 100%; object-fit: cover; }

/* Newsletter */
.newsletter { padding: 0 0 72px; }
.newsletter__box { background: var(--card); border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.newsletter__text { flex: 1 1 340px; }
.newsletter__text h2 { font-size: 30px; margin: 0; }
.newsletter__text p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.newsletter form { display: flex; gap: 10px; flex: 1 1 360px; flex-wrap: wrap; }
.newsletter input[type=email] { flex: 1 1 220px; height: 52px; border-radius: 999px; border: 1px solid var(--line); padding: 0 20px; background: var(--bg); }
.newsletter .notice { width: 100%; font-size: 14px; color: var(--ok); }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-text); margin-top: 24px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 56px 0 32px; font-size: 14px; line-height: 2; }
.site-footer .brand { color: var(--bg); font-size: 24px; }
.site-footer h4 { color: var(--bg); font-family: var(--font); font-size: 14px; font-weight: 600; margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a:hover { color: var(--bg); }
.site-footer .legal { border-top: 1px solid var(--dark-line); padding: 20px 0 32px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Generic content / shop pages */
.content { padding: 8px 0 64px; }
.page-title, .woocommerce-products-header__title { font-size: clamp(30px, 4vw, 44px); margin: 0 0 20px; }
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.woocommerce-breadcrumb a { color: var(--muted); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.woocommerce-result-count { margin: 0; color: var(--muted); font-size: 14px; }
.woocommerce-ordering select { height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 16px; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 32px 0 0; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 12px; }
.woocommerce-pagination span.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce-notices-wrapper .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-message { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 20px; list-style: none; }
.woocommerce-error { border-color: #e2a4a4; }
.woocommerce-message .button { float: right; min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Single product */
.single-product div.product { display: flex; flex-wrap: wrap; gap: 48px; }
.single-product div.product .woocommerce-product-gallery { flex: 1 1 520px; min-width: 0; }
.single-product div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product div.product .woocommerce-product-gallery__image img { border-radius: 26px; background: var(--card); }
.single-product div.product .flex-control-thumbs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 14px 0 0; }
.single-product div.product .flex-control-thumbs img { border-radius: 14px; border: 2px solid transparent; cursor: pointer; opacity: .8; }
.single-product div.product .flex-control-thumbs img.flex-active { border-color: var(--ink); opacity: 1; }
.single-product div.product .summary { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.single-product div.product .summary .product_title { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.single-product div.product .summary .price { font-family: var(--display); font-size: 34px; font-weight: 700; margin: 0; }
.single-product div.product .summary .price del { color: var(--muted-2); font-size: 18px; font-weight: 500; }
.single-product div.product .summary .price ins { text-decoration: none; }
.single-product div.product .summary .woocommerce-product-details__short-description { color: var(--ink-2); }
.single-product div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.single-product div.product form.cart .variations { width: 100%; }
.single-product div.product form.cart .quantity .qty { height: 56px; width: 84px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-align: center; }
.single-product div.product form.cart .single_add_to_cart_button { flex: 1 1 200px; min-height: 56px; font-size: 16px; }
.single-product div.product .product_meta { font-size: 13px; color: var(--muted); }
.single-product .ship-info { background: var(--card); border-radius: 20px; padding: 4px 22px; }
.single-product .ship-info div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--bg-2); font-size: 15px; }
.single-product .ship-info div:last-child { border-bottom: 0; }
.single-product .ship-info strong { font-weight: 600; }
.single-product .ship-info span { color: var(--ink-2); text-align: right; }
.single-product .woocommerce-tabs { width: 100%; margin-top: 24px; }
.single-product .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.single-product .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 0; color: var(--muted); border-bottom: 2px solid transparent; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-color: var(--ink); }
.single-product .woocommerce-tabs .panel { padding: 24px 0 0; max-width: 820px; }
.single-product .woocommerce-tabs .panel h2 { font-size: 22px; }
.single-product section.related, .single-product section.upsells { width: 100%; margin-top: 56px; }
.single-product section.related > h2, .single-product section.upsells > h2 { margin-bottom: 20px; }
.stock.in-stock { display: inline-block; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.stock.out-of-stock { display: inline-block; background: #FBE7E7; color: #9B2C2C; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
table.variations td { padding: 6px 0; }
table.variations select { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; min-width: 200px; }

/* Forms & account */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce-input-wrapper .input-text,
.woocommerce-EditAccountForm input, .woocommerce-form-login input, .woocommerce-form-register input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line); padding: 0 14px; background: var(--card); }
.woocommerce form .form-row textarea { height: auto; padding: 12px 14px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation li a { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: #fff; border-color: var(--ink); }
.woocommerce-account .woocommerce-MyAccount-content { margin-top: 24px; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 14px; border-bottom: 1px solid var(--bg-2); text-align: left; }

/* Block cart/checkout tweaks */
.wc-block-components-button, .wp-block-button__link { border-radius: 999px !important; }
.wc-block-cart, .wc-block-checkout { --wc-form-border-radius: 14px; }
.is-large.wc-block-cart .wc-block-cart-items { background: var(--card); border-radius: var(--radius-sm); }

/* Utility */
.muted { color: var(--muted); }
.cluster { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.error-404 { text-align: center; padding: 80px 0; }
