/* Shop theme – in the character of the former Boutique theme: a dark frame around a light column,
   Playfair Display headings and Lato text. Fonts are self-hosted (SIL Open Font License, see fonts/OFL-*.txt). */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lato-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/lato-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lato-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }

:root {
	--ink: #2b2b2b;
	--muted: #5f5f5f;
	--paper: #ffffff;
	--line: #e4e4e4;
	--orange: #7c7235;
	--frame: #303030;
	--bar: #212121;
	--soft: #f6f6f6;
	--accent: #7c7235;
	--accent-dark: #615929;
	--heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--text: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* Product module variables; html:root outranks the module's own :root, which is loaded after this file. */
html:root {
	--product-muted: #5f5f5f;
	--product-field: #b8b8b8;
	--product-tile: #f6f6f6;
	--product-soft: #f1f0ea;
	--product-sale: #7c7235;
	--product-radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--frame); color: var(--muted); font-family: var(--text); font-size: 16px; line-height: 1.618; -webkit-font-smoothing: subpixel-antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); font-weight: 400; color: var(--ink); letter-spacing: 0; line-height: 1.25; }
h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 .6em; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 1.6em 0 .5em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; left: 8px; z-index: 50; padding: 10px 14px; background: #fff; color: var(--ink); }
.skip:focus { top: 8px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Frame and column */
.col { width: min(1100px, calc(100% - 32px)); margin-inline: auto; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 18px; padding: 6px 16px; background: #111; color: #ccc; font-size: 13px; }
.admin-bar a, .admin-bar button { color: #fff; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.admin-bar a:hover, .admin-bar button:hover { text-decoration: underline; color: #fff; }
.admin-bar form { margin: 0; }

.site-header { color: #fff; padding-top: clamp(24px, 4vw, 60px); }
.site-header > .col:first-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 0 clamp(0px, 4vw, 64px) clamp(24px, 3.5vw, 52px); }
.site-title { font-family: var(--heading); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; color: #fff; text-decoration: none; }
.site-title:hover { color: #fff; }
.site-tagline { margin: 4px 0 0; font-size: 14px; color: #bdbdbd; letter-spacing: .02em; }
.site-search { position: relative; flex: 0 1 300px; }
.site-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #777; pointer-events: none; }
.site-search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 38px; border: 0; border-radius: 2px; background: #f2f2f2; color: var(--ink); font: inherit; font-size: 14px; }

.primary-navigation { display: flex; align-items: stretch; gap: 8px; padding: 0 clamp(8px, 4vw, 64px); background: var(--bar); border-radius: 5px 5px 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -8px rgba(0, 0, 0, .05); }
.primary-navigation nav { display: flex; flex-wrap: wrap; }
.primary-navigation nav a { display: block; padding: 22px 16px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.primary-navigation nav a:hover, .primary-navigation nav a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-toggle { display: none; align-items: center; gap: 8px; margin: 10px 0; padding: 8px 14px; border: 1px solid #555; border-radius: 3px; background: none; color: #fff; cursor: pointer; }
.header-cart { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 0 4px; color: #fff; text-decoration: none; white-space: nowrap; }
.header-cart:hover { color: #fff; }
.header-cart:hover .header-cart-total { text-decoration: underline; }
.header-cart-total { font-weight: 700; }
.header-cart-count { color: #bdbdbd; font-size: 13px; }

.site-content { flex: 1; background: var(--paper); padding: clamp(20px, 4vw, 48px) clamp(16px, 5vw, 64px); box-shadow: inset 0 0 0 8px var(--soft); }
.cart-notice { margin: 0 0 20px; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--accent); }

.site-footer { margin-bottom: 40px; padding: 28px clamp(16px, 5vw, 64px); background: var(--soft); font-size: 14px; border-radius: 0 0 5px 5px; }
.site-footer p { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--ink); }
.footer-copy { color: var(--muted); }

.handheld-bar { display: none; }

/* Buttons shared by the modules: primary in the accent colour, secondary light grey as in Boutique. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 3px; background: var(--accent); color: #fff; font-family: var(--text); font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-dark); color: #fff; }
.button-secondary { background: #eeeeee; color: var(--ink); }
.button-secondary:hover { background: #dedede; color: var(--ink); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.page-title { margin-top: 0; }
.section { padding-block: 0 24px; }
.wrap { width: 100%; }

/* Home */
.home-intro { text-align: center; max-width: 760px; margin: 0 auto 36px; padding-bottom: 28px; border-bottom: 4px double rgba(0, 0, 0, .1); }
.home-intro h1 { font-size: clamp(32px, 4.4vw, 46px); }
.home-intro p { font-size: 17px; }
.home-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: var(--ink); font-size: 14px !important; }
.home-points span::before { content: '✓'; margin-right: 6px; color: var(--accent); }
.home-products h2 { text-align: center; margin-top: 0; margin-bottom: 28px; }
.home-more { text-align: center; margin-top: 36px; }

/* Information and legal pages */
.page { max-width: 760px; }
.page h1 { padding-bottom: .5em; border-bottom: 4px double rgba(0, 0, 0, .1); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.note { font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page th, .page td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.page td:last-child { white-space: nowrap; text-align: right; }

/* Product module in the Boutique character: no filter column (one category, few products), framed images, olive sale prices.
   Module stylesheets load after this file, so these rules are scoped to #main to take precedence. */
#main .product-catalog, #main .product-detail, #main .product-admin { padding-block: 0 24px; }
#main .product-catalog .product-sidebar, #main .product-catalog .product-filter-toggle, #main .product-catalog .product-backdrop { display: none !important; }
#main .product-catalog-layout { grid-template-columns: minmax(0, 1fr); }
#main .product-catalog-title, #main .product-title { font-family: var(--heading); font-weight: 400; letter-spacing: 0; color: var(--ink); }
#main .product-catalog-header { border-bottom: 4px double rgba(0, 0, 0, .1); }
#main .product-breadcrumbs ol { text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
#main .product-breadcrumbs a { color: var(--muted); text-decoration: none; }
#main .product-card-media { border: 1px solid rgba(0, 0, 0, .1); background: #fff; }
#main .product-card-title { font-family: var(--text); font-weight: 400; font-size: 16px; color: var(--ink); }
#main .product-card-link { color: var(--ink); text-decoration: none; }
#main .product-price { font-weight: 700; color: var(--ink); }
#main .product-badge { border-radius: 2px; background: var(--accent); }
#main .product-gallery-track { background: #fff; border: 1px solid rgba(0, 0, 0, .1); }
#main .product-description h2, #main .product-related h2 { font-family: var(--heading); font-weight: 400; }
#main .product-prose { color: var(--muted); }
#main .cart-add { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
#main .cart-add label { display: grid; gap: 4px; font-size: 14px; }
#main .cart-add input { width: 80px; min-height: 44px; padding: 8px; font: inherit; border: 1px solid var(--product-field); border-radius: 3px; }

/* Cart, Payment and Order modules */
#main .cart-summary { background: var(--soft); }
#main .cart-item { border-bottom-color: var(--line); }
#main .cart-item h2 { font-family: var(--text); font-size: 18px; }
#main .cart-item h2 a { color: var(--ink); }
#main .payment-notice { border-left-color: var(--accent); background: var(--soft); }
#main .order-receipt { background: var(--soft); border: 0; }
#main .user-panel h1 { font-family: var(--heading); letter-spacing: 0; }
#main .user-button { background: var(--accent); border-color: var(--accent); border-radius: 3px; }
#main .user-button:hover { background: var(--accent-dark); }

/* Product pulls its gallery to the edge by 24px, more than this column's padding on small screens. */
@media (max-width: 900px) { #main .product-gallery { margin-inline: 0; } }
@media (max-width: 760px) {
	.site-header > .col:first-child { padding-inline: 0; }
	.site-search { flex-basis: 100%; }
	.primary-navigation { flex-wrap: wrap; border-radius: 0; }
	.menu-toggle { display: inline-flex; }
	.primary-navigation nav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 8px; order: 3; }
	.primary-navigation nav.open { display: flex; }
	.primary-navigation nav a { padding: 12px 8px; }
	.col { width: 100%; }
	.site-header > .col:first-child { width: calc(100% - 32px); }
	.site-content { box-shadow: none; }
	.site-footer { margin-bottom: 0; padding-bottom: 88px; border-radius: 0; }
	.handheld-bar { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bar); border-top: 1px solid #000; }
	.handheld-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; color: #fff; font-size: 12px; text-decoration: none; }
	.handheld-bar a:hover { color: #fff; background: #2b2b2b; }
	.handheld-count { position: absolute; margin: -4px 0 0 28px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); font-size: 11px; line-height: 18px; text-align: center; }
	.page td:last-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
