/*
Theme Name: G-Online Books Modern
Theme URI: https://gonlinebooks.com/
Author: G-Online Books
Description: Modern accessible claymorphic WooCommerce bookstore theme.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gonline-modern
*/

:root {
  --brand: #087d91;
  --brand-strong: #075f72;
  --accent: #ffb547;
  --accent-2: #ec6e5b;
  --ink: #172137;
  --muted: #667086;
  --surface: #edf4f5;
  --surface-strong: #fff;
  --line: rgba(24, 77, 91, .13);
  --shadow: 14px 14px 34px rgba(31, 71, 83, .13), -10px -10px 28px rgba(255,255,255,.92);
  --shadow-soft: 7px 7px 18px rgba(31, 71, 83, .12), -6px -6px 16px rgba(255,255,255,.9);
  --radius: 28px;
  --max: 1240px;
  color-scheme: light;
}
[data-theme="dark"] {
  --brand: #4bc3d3;
  --brand-strong: #73d6e3;
  --accent: #ffc96f;
  --accent-2: #ff8d78;
  --ink: #f2f8f9;
  --muted: #aebfc4;
  --surface: #101a20;
  --surface-strong: #17252d;
  --line: rgba(127,211,223,.14);
  --shadow: 14px 14px 32px rgba(0,0,0,.35), -8px -8px 22px rgba(66,119,132,.1);
  --shadow-soft: 7px 7px 18px rgba(0,0,0,.3), -5px -5px 14px rgba(66,119,132,.08);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; transition: background .25s, color .25s; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-strong); text-underline-offset: .17em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 16px; border-radius: 12px; background: var(--surface-strong); color: var(--ink); }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.site-header { position: absolute; z-index: 60; top: 0; left: 0; right: 0; padding-top: 22px; }
.admin-bar .site-header { top: 32px; }
.nav-shell { display: flex; align-items: center; gap: 20px; min-height: 88px; padding: 13px 17px 13px 24px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.91); color: #172137; box-shadow: 0 18px 58px rgba(5,35,44,.2); backdrop-filter: blur(18px); }
[data-theme="dark"] .nav-shell { background: rgba(19,33,40,.92); color: #f2f8f9; border-color: rgba(255,255,255,.12); }
.site-brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.site-brand img { width: auto; max-width: 205px; height: 55px; object-fit: contain; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: block; padding: 12px 13px; border-radius: 999px; color: inherit; font-size: .8rem; font-weight: 850; letter-spacing: .02em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item a { background: #dff2f4; color: #075f72; }
[data-theme="dark"] .primary-nav a:hover { background: #183d46; color: #85dce7; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.icon-button, .menu-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #dff2f4; color: #075f72; box-shadow: inset 2px 2px 5px rgba(8,90,106,.11), inset -2px -2px 5px rgba(255,255,255,.8); text-decoration: none; cursor: pointer; }
.cart-button { width: auto; min-width: 46px; padding: 0 14px; border-radius: 999px; gap: 7px; }
.menu-toggle { display: none; }
.hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; background: #101f2c url('https://gonlinebooks.com/wp-content/uploads/2021/02/RFBACKGROUND2.jpg') center/cover; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 35%, rgba(48,191,205,.25), transparent 31%), linear-gradient(100deg, rgba(10,26,38,.97) 0%, rgba(13,40,51,.87) 50%, rgba(13,40,51,.48) 100%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 55px; align-items: center; padding-top: 140px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: #c5f3f7; }
.eyebrow::before { content: ""; width: 38px; height: 3px; border-radius: 99px; background: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(3.1rem, 7vw, 6.7rem); line-height: .92; letter-spacing: -.065em; text-wrap: balance; }
.hero-copy > p { max-width: 650px; margin: 24px 0 30px; color: rgba(255,255,255,.82); font-size: 1.1rem; }
.book-stack { position: relative; min-height: 520px; }
.book-stack::before, .book-stack::after { content: ""; position: absolute; border-radius: 40px; transform: rotate(-7deg); }
.book-stack::before { inset: 55px 30px 20px 55px; background: rgba(255,181,71,.94); box-shadow: 18px 18px 40px rgba(0,0,0,.27); }
.book-stack::after { inset: 88px 5px 5px 85px; background: rgba(8,125,145,.82); transform: rotate(8deg); }
.book-stack img { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 38px rgba(0,0,0,.35)); }
.search-form, .woocommerce-product-search { display: flex; max-width: 650px; padding: 7px; border-radius: 999px; background: rgba(255,255,255,.97); box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.search-field { flex: 1; min-width: 0; padding: 12px 17px; border: 0; border-radius: 999px; background: transparent; color: #172137; }
.search-submit, .woocommerce-product-search button, .button, button.button, input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border: 0; border-radius: 999px !important; background: var(--brand) !important; color: #fff !important; font-weight: 850 !important; text-decoration: none; box-shadow: 0 10px 24px rgba(7,95,114,.26); cursor: pointer; }
.section { padding: clamp(70px, 9vw, 118px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head h2, .page-title, .entry-title { margin: 0; font-size: clamp(2.1rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.section-head p { max-width: 620px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 25px; }
.category-card { position: relative; min-height: 320px; display: flex; align-items: end; padding: 34px; border-radius: 34px; overflow: hidden; background: #075f72; color: #fff; box-shadow: var(--shadow); text-decoration: none; }
.category-card:nth-child(2) { background: #c85f4e; }
.category-card::before { content: ""; position: absolute; width: 250px; height: 250px; top: -95px; right: -70px; border-radius: 50%; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 25px rgba(255,255,255,.07); }
.category-card h3 { position: relative; margin: 0; color: #fff; font-size: clamp(2rem,4vw,3.7rem); line-height: 1; letter-spacing: -.05em; }
.category-card span { position: absolute; top: 28px; left: 32px; color: rgba(255,255,255,.76); font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.product-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; margin: 0 !important; }
.product-card, .woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 18px !important; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.product-card-image, .woocommerce ul.products li.product a img { display: block; aspect-ratio: 4 / 5; width: 100%; height: auto; margin: 0 0 18px !important; border-radius: 20px; background: var(--surface-strong); object-fit: cover; }
.product-card h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0 0 10px !important; color: var(--ink); font-size: 1.02rem !important; line-height: 1.3; }
.product-card a { text-decoration: none; }
.price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brand-strong) !important; font-weight: 900 !important; }
.woocommerce ul.products li.product .button { margin-top: 12px !important; width: 100%; }
.benefits { background: #122732; color: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: rgba(255,255,255,.06); }
.benefit strong { display: block; margin-bottom: 7px; font-size: 1.15rem; }
.benefit p { margin: 0; color: rgba(255,255,255,.7); }
.page-hero { padding: 180px 0 72px; background: linear-gradient(145deg, rgba(8,125,145,.18), var(--surface)); border-bottom: 1px solid var(--line); }
.content-card, .woocommerce .woocommerce-notices-wrapper + *, .woocommerce-cart-form, .cart_totals, .woocommerce-checkout, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { padding: clamp(24px,4vw,48px); border-radius: var(--radius); background: var(--surface-strong); box-shadow: var(--shadow-soft); }
.entry-content h2, .entry-content h3 { line-height: 1.15; letter-spacing: -.03em; }
.entry-content input:not([type=submit]), .entry-content textarea, .entry-content select, .woocommerce input.input-text, .woocommerce textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 45px; }
.site-footer { margin-top: 80px; padding: 62px 0 25px; background: #0d1b24; color: #d8e3e6; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 42px; }
.footer-brand img { max-width: 210px; max-height: 62px; object-fit: contain; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: #d8e3e6; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11); color: #93a6ab; font-size: .86rem; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 46px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--brand) !important; background: var(--surface-strong); color: var(--ink); border-radius: 16px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-grid; }
  .primary-nav { display: none; position: absolute; top: 102px; left: 16px; right: 16px; padding: 14px; border-radius: 26px; background: var(--surface-strong); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { color: var(--ink); }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .admin-bar .site-header { top: 46px; }
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .site-header { padding-top: 12px; }
  .nav-shell { min-height: 70px; padding: 9px 10px 9px 15px; gap: 7px; }
  .site-brand img { max-width: 130px; height: 42px; }
  .icon-button, .menu-toggle { width: 40px; height: 40px; }
  .cart-button { min-width: 40px; padding: 0 10px; }
  .hero { min-height: 760px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 150px; }
  .hero h1 { font-size: clamp(3rem,15vw,5rem); }
  .book-stack { min-height: 280px; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .category-grid, .benefit-grid, .footer-grid, .content-grid, .woocommerce div.product { grid-template-columns: 1fr; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .product-card, .woocommerce ul.products li.product { padding: 12px !important; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 430px) { .product-grid, .woocommerce ul.products { grid-template-columns: 1fr; } .cart-button span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
