/*
Theme Name: Ebukz Bookstore Child Theme
Theme URI: https://paperandbooks.com
Description: Custom Modern Bookstore Theme for Paper & Books inspired by Ebukz Index-3
Author: Paper & Books Team
Author URI: https://paperandbooks.com
Template: astra
Version: 3.1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   1. Design Tokens & Palette (Ebukz Index-3 Design System)
   ========================================================================== */
:root {
  --eb-primary: #1e3c72;
  --eb-primary-dark: #0f172a;
  --eb-secondary: #2a5298;
  --eb-accent-rose: #e11d48;
  --eb-accent-amber: #f59e0b;
  --eb-price-cyan: #0369a1;
  --eb-success-cod: #15803d;
  --eb-text-dark: #0f172a;
  --eb-text-muted: #64748b;
  --eb-bg-light: #f8fafc;
  --eb-card-bg: #ffffff;
  --eb-border-color: #e2e8f0;
  --eb-radius-lg: 16px;
  --eb-radius-md: 10px;
  --eb-radius-sm: 6px;
  --eb-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --eb-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --eb-shadow-hover: 0 20px 40px rgba(30, 60, 114, 0.14);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--eb-bg-light);
  color: var(--eb-text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .eb-heading {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--eb-text-dark);
  font-weight: 700;
  margin: 0 0 12px 0;
}

/* ==========================================================================
   2. Header & Announcement Bar
   ========================================================================== */
.eb-top-bar {
  background-color: var(--eb-primary-dark);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
}

.eb-top-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eb-top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.eb-top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eb-top-bar-right a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  margin-left: 16px;
  transition: color 0.2s ease;
}

.eb-top-bar-right a:hover {
  color: #ffffff;
}

/* Main Header Container */
.eb-main-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--eb-border-color);
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: var(--eb-shadow-sm);
}

.eb-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eb-logo-wrap img {
  max-height: 52px;
  width: auto;
  display: block;
}

.eb-search-wrap {
  flex: 1;
  max-width: 580px;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 50px;
  padding: 4px 6px 4px 16px;
  transition: all 0.3s ease;
}

.eb-search-wrap:focus-within {
  border-color: var(--eb-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
}

.eb-search-wrap input[type="text"],
.eb-search-wrap input[type="search"] {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  width: 100%;
  font-size: 14px;
  color: var(--eb-text-dark);
}

.eb-search-btn {
  background: linear-gradient(135deg, var(--eb-primary) 0%, var(--eb-secondary) 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.eb-search-btn:hover {
  transform: scale(1.03);
}

.eb-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.eb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--eb-text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  position: relative;
}

.eb-cart-count {
  background: var(--eb-accent-rose);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Primary Sticky Navigation Bar */
.eb-nav-bar {
  background: var(--eb-primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eb-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.eb-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.eb-nav-menu li a {
  display: block;
  padding: 14px 18px;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.eb-nav-menu li a:hover,
.eb-nav-menu li.active a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: var(--eb-accent-amber);
}

/* ==========================================================================
   3. Ebukz Index-3 Hero Spotlight Section
   ========================================================================== */
.eb-hero-spotlight {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 60, 114, 0.88) 100%), 
              url("file:///C:/Users/My%20PC/.gemini/antigravity-ide/brain/1a7c2d6f-3d2a-4c8b-8c1c-aa48d32b25f3/bookstore_banner_hero_1785229249597.png") center/cover no-repeat;
  padding: 80px 20px;
  border-radius: var(--eb-radius-lg);
  margin: 24px auto 40px auto;
  max-width: 1240px;
  color: #ffffff;
  box-shadow: var(--eb-shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .eb-hero-spotlight { grid-template-columns: 1fr; text-align: center; }
}

.eb-hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--eb-accent-amber);
  color: var(--eb-accent-amber);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.eb-hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 18px;
}

.eb-hero-desc {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 32px;
  line-height: 1.6;
}

.eb-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.eb-btn-primary {
  background: linear-gradient(135deg, var(--eb-primary) 0%, var(--eb-secondary) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eb-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(30, 60, 114, 0.6);
}

.eb-btn-cod {
  background: var(--eb-success-cod);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eb-btn-cod:hover {
  transform: translateY(-3px);
  background: #166534;
  box-shadow: 0 10px 28px rgba(21, 128, 61, 0.5);
}

/* ==========================================================================
   4. Category Cards Showcase
   ========================================================================== */
.eb-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.eb-section-title {
  text-align: center;
  margin-bottom: 32px;
}

.eb-section-title h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--eb-text-dark);
}

.eb-section-title p {
  color: var(--eb-text-muted);
  font-size: 16px;
  margin: 0;
}

.eb-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.eb-cat-card {
  background: #ffffff;
  border: 1px solid var(--eb-border-color);
  border-radius: var(--eb-radius-md);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--eb-shadow-sm);
  transition: all 0.3s ease;
}

.eb-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--eb-shadow-hover);
  border-color: var(--eb-primary);
}

.eb-cat-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.eb-cat-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--eb-text-dark);
  margin-bottom: 4px;
}

.eb-cat-count {
  font-size: 13px;
  color: var(--eb-text-muted);
}

/* ==========================================================================
   5. Ebukz WooCommerce Product Cards (Global Grid Support)
   ========================================================================== */
ul.products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 24px !important;
  padding: 0 !important;
  margin-bottom: 50px !important;
  list-style: none !important;
}

ul.products li.product,
.woocommerce ul.products li.product {
  background: var(--eb-card-bg) !important;
  border-radius: var(--eb-radius-md) !important;
  padding: 16px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid var(--eb-border-color) !important;
  box-shadow: var(--eb-shadow-sm) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--eb-shadow-hover) !important;
  border-color: #cbd5e1 !important;
}

ul.products li.product span.onsale,
.woocommerce ul.products li.product span.onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: var(--eb-accent-rose) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  line-height: 1 !important;
  min-height: auto !important;
  z-index: 2 !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3) !important;
}

ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #f1f5f9;
  aspect-ratio: 3/4;
  height: 280px !important;
}

ul.products li.product img,
.woocommerce ul.products li.product img {
  border-radius: 8px !important;
  transition: transform 0.4s ease !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

ul.products li.product:hover img,
.woocommerce ul.products li.product:hover img {
  transform: scale(1.06) !important;
}

ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--eb-text-dark) !important;
  margin: 12px 0 6px 0 !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

ul.products li.product .price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
  color: var(--eb-price-cyan) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
}

ul.products li.product .price del,
.woocommerce ul.products li.product .price del,
.woocommerce div.product p.price del {
  color: var(--eb-text-muted) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  margin-right: 6px !important;
  text-decoration: line-through !important;
  opacity: 0.75;
}

ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins {
  color: var(--eb-price-cyan) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Touch Target Accessibility Button >= 48px */
.button, 
.ast-button, 
.single_add_to_cart_button, 
.checkout-button,
ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .add_to_cart_button {
  background: linear-gradient(135deg, var(--eb-primary) 0%, var(--eb-secondary) 100%) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  min-height: 48px !important;
  padding: 12px 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(30, 60, 114, 0.25) !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 14px !important;
  width: 100% !important;
}

.button:hover, 
.ast-button:hover, 
.single_add_to_cart_button:hover, 
.checkout-button:hover,
ul.products li.product .add_to_cart_button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(30, 60, 114, 0.4) !important;
  background: linear-gradient(135deg, var(--eb-secondary) 0%, var(--eb-primary-dark) 100%) !important;
}

/* ==========================================================================
   6. Trust Grid & Newsletter Footer Section
   ========================================================================== */
.eb-trust-section {
  background: #ffffff;
  border-top: 1px solid var(--eb-border-color);
  border-bottom: 1px solid var(--eb-border-color);
  padding: 40px 0;
  margin-bottom: 50px;
}

.eb-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.eb-trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eb-trust-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(30, 60, 114, 0.08);
  color: var(--eb-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.eb-trust-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.eb-trust-text p {
  font-size: 13px;
  color: var(--eb-text-muted);
  margin: 0;
}

.eb-footer {
  background: var(--eb-primary-dark);
  color: #94a3b8;
  padding: 60px 0 24px 0;
  font-size: 14px;
}

.eb-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.eb-footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.eb-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eb-footer-links li {
  margin-bottom: 10px;
}

.eb-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.eb-footer-links a:hover {
  color: #ffffff;
}

.eb-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
