/*
Theme Name: Getdocsly123 Pro
Theme URI: https://example.com/getdocsly123-pro
Author: Getdocsly123
Description: A premium WooCommerce theme for a European digital document marketplace. Professional Documents, Ready in Minutes.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: docsly123-pro
*/

/* =========================================================
   1. DESIGN TOKENS
========================================================= */
:root {
  --d-green: #28a745;
  --d-green-dark: #1f8738;
  --d-green-light: #eaf7ed;
  --d-ink: #17231d;
  --d-ink-soft: #313f36;
  --d-muted: #647067;
  --d-soft: #f4f8f5;
  --d-line: #dce8df;
  --d-white: #ffffff;
  --d-radius-sm: 10px;
  --d-radius: 18px;
  --d-radius-lg: 28px;
  --d-shadow-sm: 0 8px 24px rgba(23, 35, 29, .05);
  --d-shadow: 0 18px 50px rgba(23, 35, 29, .10);
  --d-shadow-lg: 0 30px 70px rgba(23, 35, 29, .16);
  --d-ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   2. RESET & BASE
========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--d-ink);
  background: var(--d-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-weight: 800; }
.container { width: min(1160px, calc(100% - 40px)); margin: auto; }

/* Focus states for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--d-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   3. NOTICE BANNER
========================================================= */
.notice-banner {
  background: var(--d-green-light);
  color: #236b34;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

/* =========================================================
   4. HEADER & NAVIGATION
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 232, 223, .8);
  transition: box-shadow .25s var(--d-ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(23, 35, 29, .06); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -.6px; }
.brand-mark {
  width: 42px; height: 48px; border: 3px solid var(--d-green); border-radius: 9px;
  position: relative; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px;
}
.brand-mark:before {
  content: ""; position: absolute; right: -3px; top: -3px; width: 14px; height: 14px;
  background: #fff; border-left: 3px solid var(--d-green); border-bottom: 3px solid var(--d-green); transform: skew(-1deg, -1deg);
}
.brand-line { height: 3px; border-radius: 3px; background: var(--d-green); }
.brand-name span { color: var(--d-green); }
.brand-tagline { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; color: #7d877f; margin-top: -4px; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 14px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a:hover { color: var(--d-green); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--d-ink); padding: 0;
}
.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s var(--d-ease); }
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius); box-shadow: var(--d-shadow-lg);
  padding: 12px; display: grid; grid-template-columns: repeat(2, 200px); gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--d-ease), transform .2s var(--d-ease);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-panel a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--d-radius-sm);
  font-size: 13px; font-weight: 600; color: var(--d-ink-soft);
}
.nav-dropdown-panel a:hover { background: var(--d-green-light); color: var(--d-green-dark); }
.nav-dropdown-icon { font-size: 16px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: transparent; border: 1px solid transparent; color: var(--d-ink-soft); cursor: pointer;
  transition: background .2s var(--d-ease), border-color .2s var(--d-ease);
  position: relative;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--d-soft); border-color: var(--d-line); color: var(--d-green-dark); }
.cart-icon { position: relative; }
.cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 17px; height: 17px; padding: 0 3px;
  background: var(--d-green); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

.button, .wp-element-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px;
  padding: 14px 22px; background: var(--d-green); color: #fff; font-weight: 750; font-size: 14.5px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 10px 24px rgba(31,135,56,.18);
  transition: background .2s var(--d-ease), transform .18s var(--d-ease), box-shadow .2s var(--d-ease);
}
.button svg { width: 16px; height: 16px; }
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce #respond input#submit:hover {
  background: var(--d-green-dark); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(31,135,56,.24);
}
.button.secondary, .woocommerce a.button.secondary {
  background: #fff; color: var(--d-ink); border: 1px solid var(--d-line); box-shadow: none;
}
.button.secondary:hover { background: var(--d-soft); border-color: #b9d8c0; }
.cta-header { padding: 12px 20px; }

.mobile-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; }
.mobile-toggle svg { width: 22px; height: 22px; }

/* Search panel */
.search-panel {
  max-height: 0; overflow: hidden; background: #fff; border-bottom: 1px solid var(--d-line);
  transition: max-height .3s var(--d-ease);
}
.search-panel.is-open { max-height: 110px; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.search-form svg { width: 20px; height: 20px; color: var(--d-muted); flex-shrink: 0; }
.search-form input[type="search"] {
  flex: 1; border: 0; font-size: 17px; font-weight: 500; outline: none; background: transparent; color: var(--d-ink);
}
.search-close { flex-shrink: 0; }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 78px 0 0 0; background: #fff; z-index: 90;
  padding: 24px; flex-direction: column; gap: 20px; overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { padding: 14px 6px; border-bottom: 1px solid var(--d-line); font-weight: 650; font-size: 16px; }
.mobile-menu .button { justify-content: center; margin-top: 10px; }

/* =========================================================
   5. HERO
========================================================= */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 78px;
  background: radial-gradient(circle at 80% 20%, rgba(40,167,69,.13), transparent 28%), linear-gradient(180deg, #fff 0%, #f7fbf8 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 999px;
  background: var(--d-green-light); color: var(--d-green-dark); font-size: 13px; font-weight: 750; margin-bottom: 22px;
}
.eyebrow:before { content: ""; width: 8px; height: 8px; background: var(--d-green); border-radius: 50%; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -3px; margin: 0 0 22px; }
.hero h1 span { color: var(--d-green); }
.hero p { font-size: 19px; color: var(--d-muted); max-width: 650px; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; color: #4f5e54; font-size: 13px; font-weight: 650; }
.trust-row span:before { content: "✓"; color: var(--d-green); font-weight: 900; margin-right: 7px; }

.hero-card { background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius-lg); padding: 22px; box-shadow: var(--d-shadow); transform: rotate(1.5deg); }
.mock-browser { border: 1px solid #dfe8e1; border-radius: 17px; overflow: hidden; }
.mock-top { height: 42px; background: #f2f6f3; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #c9d6cc; }
.mock-content { padding: 22px; }
.mock-search {
  height: 44px; border: 1px solid var(--d-line); border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #7d8a81; font-size: 13px;
}
.mock-search svg { width: 15px; height: 15px; }
.mock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mock-product { border: 1px solid var(--d-line); border-radius: 14px; padding: 14px; background: #fff; }
.doc-thumb {
  height: 92px; border-radius: 10px; background: linear-gradient(145deg, #e5f5e8, #f9fcfa);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.doc-icon { width: 38px; height: 48px; border: 2px solid var(--d-green); border-radius: 6px; position: relative; }
.doc-icon:after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; background: var(--d-green);
  box-shadow: 0 7px 0 var(--d-green), 0 14px 0 var(--d-green);
}
.mock-product strong { font-size: 12px; display: block; }
.mock-product small { color: var(--d-green); font-weight: 800; }

/* =========================================================
   6. SECTIONS (shared)
========================================================= */
.section { padding: 82px 0; }
.section.soft { background: var(--d-soft); }
.section-heading { max-width: 730px; margin: 0 auto 44px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -1.6px; margin: 0 0 14px; }
.section-heading p { margin: 0; color: var(--d-muted); font-size: 17px; }
.section-cta-row { text-align: center; margin-top: 36px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--d-ease), transform .6s var(--d-ease); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   7. GRIDS: STEPS / BENEFITS / CATEGORIES
========================================================= */
.steps, .benefits, .category-grid { display: grid; gap: 20px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step, .benefit, .category-card {
  background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 25px;
  box-shadow: var(--d-shadow-sm); transition: transform .2s var(--d-ease), box-shadow .2s var(--d-ease), border-color .2s var(--d-ease);
}
.step-number {
  width: 42px; height: 42px; border-radius: 12px; background: var(--d-green-light); color: var(--d-green-dark);
  font-weight: 900; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3, .benefit h3, .category-card h3 { margin: 0 0 8px; font-size: 19px; }
.step p, .benefit p, .category-card p { margin: 0; color: var(--d-muted); font-size: 14px; }

.category-grid { grid-template-columns: repeat(5, 1fr); }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--d-shadow); border-color: #b9d8c0; }
.category-icon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--d-green-light);
  display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 18px;
}

.benefits { grid-template-columns: repeat(4, 1fr); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--d-shadow); }
.benefit-icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: var(--d-green-light); color: var(--d-green-dark); border-radius: 12px;
}
.benefit-icon svg { width: 22px; height: 22px; }

/* =========================================================
   8. PRODUCT CARDS (WooCommerce loop override)
========================================================= */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, 1fr); }

.doc-product-card { list-style: none; }
.doc-card-inner {
  background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius); overflow: hidden;
  height: 100%; display: flex; flex-direction: column;
  box-shadow: var(--d-shadow-sm); transition: transform .25s var(--d-ease), box-shadow .25s var(--d-ease), border-color .25s var(--d-ease);
}
.doc-card-inner:hover { transform: translateY(-6px); box-shadow: var(--d-shadow-lg); border-color: #b9d8c0; }

.doc-card-media { position: relative; display: block; background: linear-gradient(135deg, #ecf8ef, #f9fcfa); }
.doc-card-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s var(--d-ease); }
.doc-card-inner:hover .doc-card-media img { transform: scale(1.04); }

.badge {
  position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 800; padding: 6px 10px;
  border-radius: 999px; background: var(--d-green-light); color: var(--d-green-dark); z-index: 2;
}
.badge-featured { background: var(--d-ink); color: #fff; }
.badge-sale { left: auto; right: 14px; background: var(--d-green); color: #fff; }

.doc-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.doc-card-cat { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--d-green-dark); }
.doc-card-title-link h2, .doc-card-title-link h3 {
  font-size: 17px; margin: 0; line-height: 1.35; color: var(--d-ink);
}
.doc-card-title-link:hover h2, .doc-card-title-link:hover h3 { color: var(--d-green-dark); }
.doc-card-excerpt { font-size: 13.5px; color: var(--d-muted); margin: 0; flex: 1; }

.doc-card-rating .star-rating { font-size: 13px; color: #f5b400; }
.woocommerce .star-rating { overflow: hidden; position: relative; height: 1em; line-height: 1; width: 5.4em; font-family: sans-serif; }
.woocommerce .star-rating::before { content: "★★★★★"; color: #dfe4e0; float: left; top: 0; left: 0; position: absolute; }
.woocommerce .star-rating span { overflow: hidden; float: left; top: 0; left: 0; position: absolute; padding-top: 1.4em; }
.woocommerce .star-rating span::before { content: "★★★★★"; top: 0; position: absolute; left: 0; color: #f5b400; }

.doc-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 10px; }
.doc-card-footer .price { font-size: 18px; font-weight: 850; color: var(--d-green-dark); }
.doc-card-footer .price ins { text-decoration: none; }
.doc-card-footer .price del { color: var(--d-muted); font-weight: 500; font-size: 14px; margin-right: 6px; }
.doc-card-footer a.button, .doc-card-footer a.add_to_cart_button {
  padding: 10px 16px; font-size: 13px;
}

/* =========================================================
   9. BUNDLES / FEATURED sections re-use product cards, no extra rules needed */

/* =========================================================
   10. REVIEWS
========================================================= */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: #fff; border: 1px solid var(--d-line); border-radius: var(--d-radius); padding: 26px;
  box-shadow: var(--d-shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.review-stars { display: flex; gap: 3px; }
.review-stars svg { width: 15px; height: 15px; }
.star-filled { color: #f5b400; }
.star-empty { color: #e2e8e4; }
.review-card p { margin: 0; font-size: 15px; color: var(--d-ink-soft); flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--d-green-light); color: var(--d-green-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
}
.review-author strong { display: block; font-size: 14px; }
.review-author small { color: var(--d-muted); font-size: 12.5px; }

/* =========================================================
   11. FAQ
========================================================= */
.faq { max-width: 850px; margin: auto; }
.faq details { border-bottom: 1px solid var(--d-line); padding: 20px 0; }
.faq summary {
  font-weight: 780; cursor: pointer; font-size: 17px; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; transition: transform .2s var(--d-ease); flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq p { color: var(--d-muted); margin: 12px 0 0; }

/* =========================================================
   12. CTA
========================================================= */
.cta {
  background: var(--d-ink); color: #fff; border-radius: var(--d-radius-lg); padding: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background-image: radial-gradient(circle at 85% 20%, rgba(40,167,69,.25), transparent 45%);
}
.cta h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 0 0 10px; }
.cta p { margin: 0; color: #c7d0ca; }

/* =========================================================
   13. FOOTER
========================================================= */
.site-footer { background: #101915; color: #dbe3dd; padding: 58px 0 26px; }
.footer-newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid #26332b;
}
.footer-newsletter h3 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.footer-newsletter p { margin: 0; color: #aebcb2; font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  border: 1px solid #2c3a32; background: #182119; color: #fff; border-radius: 11px; padding: 13px 16px;
  font-size: 14px; min-width: 240px;
}
.newsletter-form input::placeholder { color: #7b897f; }

.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.footer-brand p { color: #aebcb2; font-size: 14px; max-width: 300px; margin: 16px 0 20px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.site-footer .footer-col p, .site-footer .footer-col a, .footer-email { color: #aebcb2; font-size: 14px; }
.footer-col a { display: block; margin: 8px 0; }
.footer-col a:hover { color: var(--d-green); }
.footer-email { margin-top: 10px; }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2c3a32; display: flex; align-items: center;
  justify-content: center; color: #aebcb2; transition: background .2s var(--d-ease), color .2s var(--d-ease);
}
.social-icons svg { width: 17px; height: 17px; }
.social-icons a:hover { background: var(--d-green); color: #fff; border-color: var(--d-green); }

.footer-bottom {
  border-top: 1px solid #26332b; margin-top: 36px; padding-top: 22px; font-size: 13px; color: #89988e;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* =========================================================
   14. WOOCOMMERCE PAGES (shop, single, cart, checkout, account)
========================================================= */
.content-wrap { padding: 55px 0; min-height: 60vh; }
.entry-title { font-size: 42px; letter-spacing: -1px; margin: 0 0 30px; }
.container-narrow { max-width: 780px; }
.entry-content { font-size: 16.5px; color: var(--d-ink-soft); }
.entry-content h2, .entry-content h3 { letter-spacing: -.5px; margin-top: 34px; }
.entry-content p { line-height: 1.75; }
.archive-list { display: flex; flex-direction: column; gap: 26px; }
.archive-item { padding-bottom: 26px; border-bottom: 1px solid var(--d-line); }
.archive-item h2 { margin: 0 0 8px; font-size: 22px; }
.archive-item h2 a:hover { color: var(--d-green-dark); }

.docsly-breadcrumbs { padding: 22px 0 0; font-size: 13px; color: var(--d-muted); }
.docsly-breadcrumbs a { color: var(--d-muted); }
.docsly-breadcrumbs a:hover { color: var(--d-green-dark); }
.docsly-breadcrumbs span { margin: 0 8px; }

.woocommerce-breadcrumb { padding: 22px 0 0; font-size: 13px; color: var(--d-muted); }
.woocommerce-breadcrumb a { color: var(--d-muted); }
.woocommerce-breadcrumb a:hover { color: var(--d-green-dark); }

.woocommerce-result-count, .woocommerce-ordering { font-size: 13.5px; color: var(--d-muted); }
.woocommerce-ordering select {
  border: 1px solid var(--d-line); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; background: #fff;
}

/* Single product */
.woocommerce div.product .product_title { font-size: 34px; letter-spacing: -1px; margin-bottom: 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--d-green-dark); font-size: 26px; font-weight: 800; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--d-muted); font-size: 16px; }
.woocommerce #content div.product div.images, .woocommerce div.product div.images, .woocommerce-page #content div.product div.images {
  border-radius: var(--d-radius); overflow: hidden; border: 1px solid var(--d-line);
}
.woocommerce div.product form.cart { margin-top: 24px; }
.woocommerce table.shop_attributes { border: 1px solid var(--d-line); border-radius: var(--d-radius-sm); overflow: hidden; }
.woocommerce table.shop_attributes th { background: var(--d-soft); font-weight: 700; }
.woocommerce table.shop_attributes td, .woocommerce table.shop_attributes th { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--d-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--d-line); padding-left: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: none; padding: 0 22px 14px 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 700; color: var(--d-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--d-ink); }

/* Cart & Checkout */
.woocommerce table.shop_table { border: 1px solid var(--d-line); border-radius: var(--d-radius); overflow: hidden; border-collapse: separate; }
.woocommerce table.shop_table th { background: var(--d-soft); font-weight: 700; padding: 14px 16px; }
.woocommerce table.shop_table td { padding: 16px; border-top: 1px solid var(--d-line); }
.woocommerce #payment, .woocommerce-checkout-review-order { background: var(--d-soft); border-radius: var(--d-radius); padding: 24px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce-checkout #payment ul.payment_methods {
  border-radius: var(--d-radius-sm);
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea {
  border: 1px solid var(--d-line); padding: 12px 14px; border-radius: 10px;
}

/* My account */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a {
  display: block; padding: 12px 16px; border-radius: 10px; font-weight: 650; color: var(--d-ink-soft);
}
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--d-green-light); color: var(--d-green-dark); }

/* WC notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--d-green) !important; border-radius: var(--d-radius-sm);
}
.woocommerce span.onsale { background: var(--d-green); border-radius: 999px; }

/* =========================================================
   15. RESPONSIVE
========================================================= */
@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .steps, .benefits, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 70px; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 26px), 1160px); }
  .header-actions .cta-header { display: none; }
  .hero h1 { letter-spacing: -1.8px; }
  .steps, .category-grid, .benefits, .footer-grid, .reviews-grid { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .section { padding: 62px 0; }
  .cta { padding: 34px 25px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-card { display: none; }
  .nav-dropdown-panel { grid-template-columns: 1fr; }
}
