/*
Theme Name: Syed eBooks
Theme URI: https://syedebooks.store/
Author: Syed eBooks
Description: A lightweight, purpose-built WooCommerce theme for the Syed eBooks digital bookstore.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: syedebooks
*/

:root {
  --ink: #102638;
  --ink-2: #173a52;
  --orange: #f97316;
  --orange-dark: #d95708;
  --cream: #fbf7ef;
  --paper: #ffffff;
  --muted: #637381;
  --line: #e5e8e9;
  --sage: #dfe9dc;
  --shadow: 0 14px 34px rgba(16, 38, 56, .10);
  --radius: 18px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.65; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-main { min-height: 55vh; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.announcement { background: var(--ink); color: #fff; text-align: center; font-size: .79rem; letter-spacing: .04em; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(16,38,56,.08); backdrop-filter: blur(12px); }
.nav-shell { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; font-size: 1.2rem; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 2px solid var(--orange); border-radius: 9px 9px 13px 13px; color: var(--orange); font-family: var(--serif); font-size: 1.2rem; transform: rotate(-2deg); }
.brand span:last-child em { color: var(--orange); font-style: normal; }
.main-nav ul { display: flex; justify-content: center; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .92rem; font-weight: 700; color: #294253; transition: color .2s ease; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; position: relative; }
.cart-count { position: absolute; top: -4px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 20px; background: var(--orange); color: #fff; font-size: .67rem; font-weight: 800; }
.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

.hero { position: relative; overflow: hidden; background: linear-gradient(110deg, #124664 0 52%, #f5ead8 52% 100%); color: #fff; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 22% 30%, rgba(255,255,255,.12), transparent 28%), linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,.12) 50%, transparent 50.2%); pointer-events: none; }
.hero-grid { position: relative; min-height: 550px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 54px; padding-block: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #ffb27c; font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--orange); }
.hero h1 { margin: 14px 0 18px; max-width: 650px; color: #fff; font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 5.4rem); line-height: .96; letter-spacing: -.055em; }
.hero h1 em { color: #ff9d5a; font-style: italic; }
.hero-copy { max-width: 600px; color: #d9e6ec; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.btn, .button, button.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 22px !important; border: 0 !important; border-radius: 9px !important; background: var(--orange) !important; color: #fff !important; font-weight: 800 !important; line-height: 1 !important; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--orange-dark) !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(249,115,22,.24); }
.btn-outline { border: 1px solid rgba(255,255,255,.5) !important; color: #fff !important; background: transparent !important; }
.btn-outline:hover { background: rgba(255,255,255,.1) !important; }
.cover-stage { min-height: 420px; position: relative; }
.cover-stage::after { content: ''; position: absolute; left: 16%; right: 10%; bottom: 0; height: 42px; border-radius: 50%; background: rgba(16,38,56,.28); filter: blur(18px); }
.hero-cover { position: absolute; width: 210px; aspect-ratio: 2/3; object-fit: cover; border-radius: 5px 11px 11px 5px; box-shadow: 0 24px 48px rgba(16,38,56,.28); border-left: 5px solid rgba(0,0,0,.15); }
.hero-cover:nth-child(1) { z-index: 3; left: 28%; top: 2%; transform: rotate(-3deg); }
.hero-cover:nth-child(2) { z-index: 2; left: 3%; top: 20%; transform: rotate(-12deg) scale(.88); }
.hero-cover:nth-child(3) { z-index: 1; right: 1%; top: 18%; transform: rotate(11deg) scale(.9); }
.offer-badge { position: absolute; z-index: 5; right: 2%; top: 2%; width: 92px; height: 92px; display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; line-height: 1.05; transform: rotate(8deg); box-shadow: 0 12px 28px rgba(249,115,22,.34); }

.section { padding: 84px 0; }
.section-white { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.04em; }
.section-head p { max-width: 620px; margin: 10px 0 0; color: var(--muted); }
.text-link { color: var(--orange); font-weight: 800; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { min-height: 220px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius); overflow: hidden; position: relative; color: #fff; box-shadow: var(--shadow); transition: transform .2s ease; }
.category-card:hover { transform: translateY(-5px); }
.category-card::after { content: ''; position: absolute; width: 170px; height: 170px; border: 30px solid rgba(255,255,255,.1); border-radius: 50%; right: -55px; bottom: -75px; }
.category-card:nth-child(1) { background: #355d49; }
.category-card:nth-child(2) { background: #175b81; }
.category-card:nth-child(3) { background: #804a31; }
.category-card:nth-child(4) { background: #563b69; }
.category-icon { font-size: 2.2rem; }
.category-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.45rem; }
.category-card p { margin: 0; color: rgba(255,255,255,.76); font-size: .9rem; }

.product-showcase .products, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .product-card { width: auto !important; margin: 0 !important; float: none !important; padding: 0 0 20px !important; position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 7px 20px rgba(16,38,56,.06); transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover, .product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img, .product-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; margin: 0 0 17px !important; border-radius: 0 !important; background: #ece7de; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .product-card h3 { padding: 0 18px !important; margin: 0 0 7px !important; color: var(--ink); font-family: var(--serif); font-size: 1.13rem !important; line-height: 1.25; }
.woocommerce ul.products li.product .price, .product-card .price { padding: 0 18px; color: var(--orange) !important; font-weight: 900 !important; font-size: 1rem !important; }
.woocommerce ul.products li.product .button { margin: 12px 18px 0 !important; min-height: 40px; padding-inline: 16px !important; font-size: .82rem; }
.placeholder-pill { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 9px; border-radius: 99px; background: rgba(16,38,56,.88); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.woocommerce span.onsale { background: var(--orange) !important; min-width: 48px !important; min-height: 48px !important; line-height: 48px !important; }

.value-band { background: var(--ink); color: #fff; }
.value-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.value-item { padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.value-item:last-child { border: 0; }
.value-item strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 5px; }
.value-item span { color: #afc0ca; font-size: .87rem; }
.value-number { color: var(--orange); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }

.cta-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px; border-radius: 24px; background: #f2e8d8; overflow: hidden; position: relative; }
.cta-panel::after { content: 'S'; position: absolute; right: 4%; bottom: -34%; color: rgba(249,115,22,.11); font-family: var(--serif); font-size: 20rem; line-height: 1; font-weight: 900; }
.cta-panel h2 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.8rem); line-height: 1; letter-spacing: -.05em; }
.cta-panel p { margin: 0; max-width: 600px; color: #5f6b70; }
.cta-actions { position: relative; z-index: 2; text-align: right; }

.page-hero { padding: 82px 0 64px; background: var(--ink); color: #fff; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin: 12px 0 8px; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.7rem); line-height: 1; letter-spacing: -.05em; }
.page-hero p { max-width: 680px; margin: 0 auto; color: #c2d0d8; }
.content-shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.content-shell h2 { margin-top: 42px; font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
.content-shell h3 { margin-top: 30px; color: var(--ink-2); }
.content-shell p, .content-shell li { color: #445762; }
.content-shell a:not(.btn):not(.button) { color: var(--orange); text-decoration: underline; }
.prose-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin: 34px 0; }
.prose-card { padding: 28px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(16,38,56,.05); }
.prose-card h3 { margin-top: 0; font-family: var(--serif); }
.faq-list details { margin: 12px 0; padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-list summary { padding: 18px 0; cursor: pointer; font-weight: 800; }
.faq-list details p { margin-top: 0; }
.notice-box { padding: 17px 20px; border-left: 4px solid var(--orange); border-radius: 8px; background: #fff3e9; color: #694126; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 750; font-size: .88rem; }
.contact-form input, .contact-form textarea, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select { width: 100%; border: 1px solid #ccd4d8; border-radius: 9px; padding: 13px 14px; background: #fff; }
.contact-form textarea { min-height: 150px; resize: vertical; }

.shop-shell, .woocommerce-page .site-main > .container { padding-block: 66px 90px; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 28px; color: var(--muted); font-size: .84rem; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 30px; }
.woocommerce .quantity .qty { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce div.product { background: #fff; padding: 36px; border-radius: 18px; box-shadow: var(--shadow); }
.woocommerce div.product div.images img { border-radius: 9px; }
.woocommerce div.product .product_title { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.7rem); line-height: 1; letter-spacing: -.045em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--orange); font-weight: 900; font-size: 1.4rem; }
.product-placeholder-note { margin: 18px 0; padding: 13px 15px; border-radius: 9px; background: #fff3e9; color: #6b4329; font-size: .88rem; }
.woocommerce-tabs { margin-top: 54px; }
.woocommerce-tabs ul.tabs { padding: 0 !important; }
.woocommerce-tabs ul.tabs li { border: 0 !important; background: #edf0f1 !important; }
.woocommerce-tabs .panel h2, .related.products > h2 { font-family: var(--serif); font-size: 2rem; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--orange) !important; background: #fff !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--orange) !important; }
.woocommerce table.shop_table { border-collapse: collapse; background: #fff; border-color: var(--line); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-account .woocommerce-MyAccount-content { background: #fff; padding: 25px; border-radius: 14px; box-shadow: 0 8px 24px rgba(16,38,56,.06); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }

.site-footer { background: #0d2130; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 56px; padding: 70px 0 54px; }
.footer-grid .brand { margin-bottom: 15px; }
.footer-intro { color: #9fb1bc; max-width: 330px; font-size: .9rem; }
.footer-col h3 { margin: 0 0 17px; font-size: .83rem; letter-spacing: .1em; text-transform: uppercase; color: #ff9b55; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 9px 0; }
.footer-col a { color: #b9c7cf; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8da0ac; font-size: .8rem; }

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .main-nav { display: none; grid-column: 1/-1; padding-bottom: 20px; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: flex-start; flex-direction: column; gap: 12px; }
  .nav-actions { grid-column: 2; grid-row: 1; padding-right: 48px; }
  .menu-toggle { position: absolute; right: 18px; top: 17px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .category-grid, .woocommerce ul.products, .product-showcase .products { grid-template-columns: repeat(2,1fr) !important; }
  .value-grid { grid-template-columns: repeat(2,1fr); }
  .value-item:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 767px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(100% - 28px, 1180px); }
  .announcement { font-size: .7rem; }
  .nav-shell { min-height: 68px; }
  .nav-actions .account-link { display: none; }
  .hero { background: linear-gradient(165deg, #124664 0 64%, #f5ead8 64%); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 54px 0 44px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .hero-copy { font-size: .98rem; }
  .cover-stage { min-height: 350px; margin-top: 18px; }
  .hero-cover { width: 165px; }
  .hero-cover:nth-child(1) { left: calc(50% - 83px); }
  .hero-cover:nth-child(2) { left: 4%; }
  .hero-cover:nth-child(3) { right: 4%; }
  .offer-badge { width: 74px; height: 74px; font-size: .8rem; }
  .section { padding: 60px 0; }
  .section-head { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-card { min-height: 175px; padding: 20px; }
  .woocommerce ul.products, .product-showcase .products { gap: 14px !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .98rem !important; padding-inline: 12px !important; }
  .woocommerce ul.products li.product .price { padding-inline: 12px; }
  .woocommerce ul.products li.product .button { margin-inline: 12px !important; padding-inline: 12px !important; }
  .value-grid { grid-template-columns: 1fr; }
  .value-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .cta-panel { grid-template-columns: 1fr; padding: 35px 26px; }
  .cta-actions { text-align: left; }
  .prose-grid, .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .woocommerce div.product { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-top: 54px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 31px; height: 31px; }
  .icon-link { width: 36px; height: 36px; }
  .hero-actions .btn { width: 100%; }
  .cover-stage { min-height: 315px; }
  .hero-cover { width: 145px; }
  .hero-cover:nth-child(1) { left: calc(50% - 73px); }
  .category-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products, .product-showcase .products { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
