/* PDFStore theme styles */
:root {
  --bg: #fef9ef;
  --bg-strong: #f7e9c6;
  --primary: #0b6b3b;
  --primary-dark: #08532d;
  --accent: #f2b705;
  --text: #2f2a23;
  --muted: #7b746b;
  --card: #ffffff;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.site-sidebar {
  padding: 32px 28px;
  background: var(--bg);
  border-right: 1px solid #f1e7cf;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0f7d44;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-menu,
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-menu a,
.sidebar-categories a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #857d72;
  font-size: 16px;
  transition: color 0.2s ease;
}

.sidebar-menu a:hover,
.sidebar-categories a:hover {
  color: var(--primary);
}

.sidebar-section h3 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b0a697;
}

.sidebar-categories .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4c9b4;
}

.site-main {
  padding: 24px 38px 48px;
}

.flash-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--flash-bg, #0b6b3b);
  color: var(--flash-color, #f6f2e5);
  box-shadow: var(--shadow);
  overflow: hidden;
  justify-content: space-between;
  flex-wrap: wrap;
}

.flash-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.flash-text {
  font-weight: 600;
  font-size: var(--flash-size, 15px);
  color: var(--flash-color, #f6f2e5);
  display: block;
  line-height: 1.4;
  white-space: normal;
}

.flash-banner.is-marquee .flash-text {
  display: inline-block;
  white-space: nowrap;
  animation: flashMarquee 18s linear infinite;
  min-width: 100%;
}

.flash-align-left {
  justify-content: flex-start;
  text-align: left;
}

.flash-align-center {
  justify-content: center;
  text-align: center;
}

.flash-align-right {
  justify-content: flex-end;
  text-align: right;
}

.news-block {
  margin: 18px 0 28px;
  padding: 18px 20px;
  background: #fffdfa;
  border: 1px solid #f1e7cf;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.news-title {
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--primary);
}

.news-text {
  margin: 0;
  color: #5f574c;
  line-height: 1.6;
}

@keyframes flashMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 12px 0 20px;
  border-bottom: 1px solid #f1e7cf;
  margin-bottom: 32px;
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0 0 16px;
  border-bottom: 1px solid #f1e7cf;
}

.category-bar-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b0a697;
  flex-shrink: 0;
}

.category-bar-list {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.category-bar-list li {
  flex: 0 0 auto;
}

.category-bar-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f8f1dc;
  color: #5f574c;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-bar-list a:hover {
  background: #e9e0c5;
  color: var(--primary);
  transform: translateY(-1px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}

.primary-menu {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  justify-content: center;
  color: #857d72;
}

.primary-menu a {
  font-weight: 500;
  transition: color 0.2s ease;
}

.primary-menu a:hover {
  color: var(--primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f1dc;
  color: var(--primary);
  font-weight: 600;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #0f7d44;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.btn {
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 25px rgba(11, 107, 59, 0.2);
}

.btn-primary.solid {
  border-color: #c68a00;
  background: #f2b705;
  color: #0b532b;
  box-shadow: 0 12px 25px rgba(242, 183, 5, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  border-color: #e4c98c;
  color: #6b624f;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: radial-gradient(120% 120% at 20% 15%, #f2ce6e 0%, #fef9ef 40%, #fffaf0 70%);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-content h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.05;
  margin: 18px 0;
}

.hero-content .underline {
  box-shadow: inset 0 -14px 0 #f6d978;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #d2edc9 0%, #e4f7df 100%);
  border-radius: 999px;
  color: #0f7d44;
  font-weight: 600;
  font-size: 14px;
}

.pill-icon {
  display: grid;
  place-items: center;
  background: #0f7d44;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
}

.lead {
  font-size: 18px;
  color: #6b624f;
  max-width: 640px;
}

.muted {
  color: #8d8477;
  margin: 4px 0 0;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 22px 0;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 18px;
}

.stat strong {
  display: block;
  font-size: 26px;
  color: var(--primary);
}

.stat span {
  color: #6b624f;
  font-size: 14px;
}

.home-categories {
  margin: 32px 0 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a907f;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-list li {
  flex: 0 0 auto;
}

.category-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #f7f0d8;
  color: #4f483f;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.category-list a:hover {
  background: #efe4c1;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
}

.featured-product {
  margin: 32px auto 8px;
  max-width: 1200px;
  width: 100%;
  padding: 0 12px;
  display: flex;
  justify-content: flex-start;
}

.product-card {
  width: 100%;
  max-width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 10% 14% auto auto;
  width: 70%;
  height: 18px;
  background: #f4e1a8;
  border-radius: 12px;
  filter: blur(18px);
  z-index: -1;
}

.product-head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-head h3 {
  margin: 0;
  font-size: 18px;
}

.product-lines {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.product-lines span {
  height: 6px;
  border-radius: 20px;
  background: linear-gradient(90deg, #f3e2a8, #f7d878);
}

.product-lines .short {
  width: 70%;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.price {
  font-size: 18px;
  color: #0d7a42;
  font-weight: 700;
}

.home-products {
  margin: 12px auto 16px;
  max-width: 1400px;
  width: 100%;
  padding: 0 12px;
}

.home-products .products {
  margin-top: 12px;
}

.content {
  background: #fffdf7;
  padding: 32px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.post-card {
  padding: 18px 0;
  border-bottom: 1px solid #efe3c7;
}

.site-footer {
  margin-top: 32px;
  color: #8d8477;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid #f1e7cf;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 700;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a8177;
  flex-wrap: wrap;
}

.dot-sep {
  color: #d2c7b4;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: #8a8177;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: var(--primary);
}

/* WooCommerce basics */
.woocommerce ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 18px;
  align-items: stretch;
  width: 100%;
}

/* Homepage: slightly smaller cards so the grid stays balanced with the sidebar. */
.home-products.woocommerce ul.products {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

/* Shop/category pages: keep cards wide enough for the excerpt. */
.woocommerce-shop .woocommerce ul.products,
.post-type-archive-product .woocommerce ul.products,
.tax-product_cat .woocommerce ul.products {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto !important;
  margin: 0;
  float: none !important;
  max-width: none !important;
  min-width: 0;
}

.woocommerce ul.products li.product a img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  margin: 6px 0 2px;
  color: #3c352b;
}

.woocommerce ul.products li.product .price {
  font-size: 18px;
  color: #0d7a42;
  font-weight: 700;
  margin: 2px 0 6px;
}

.woocommerce ul.products li.product .button {
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.woocommerce ul.products li.product .pdfstore-product-excerpt {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce div.product .summary .button {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  border: none;
}

/* WooCommerce cart/checkout primary actions */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.button.checkout-button,
.woocommerce a.button.checkout-button,
.woocommerce a.checkout-button,
.woocommerce #place_order,
.woocommerce button#place_order,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.button.checkout-button:hover,
.woocommerce a.button.checkout-button:hover,
.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover,
.woocommerce button#place_order:hover,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

@media (max-width: 840px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 540px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-main {
    padding: 16px;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .primary-menu {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}
