/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* =========================================
   LITHOGRAPHIX CORE CSS
   ========================================= */

:root {
  --primary: #f37021;
  --dark: #111111;
  --white: #ffffff;
  --bg-light: #f5f5f5;
  --border: rgba(255,255,255,0.2);
  --text: #e5e5e5;
  --text-soft: rgba(229,229,229,0.75);

  --space-xs:  1.2rem;
  --space-s:   1.6rem;
  --space-m:   2.4rem;
  --space-l:   3.2rem;
  --space-xl:  4.8rem;
  --space-2xl: 7.2rem;

  --h-1: clamp(3.4rem, calc(0.027777777777777783 * (100vw - 36rem) + 3.4rem), 6.4rem);
  --h-2: clamp(2.8rem, calc(0.016666666666666666 * (100vw - 36rem) + 2.8rem), 4.6rem);
  --h-3: clamp(2.2rem, calc(0.022222222222222216 * (100vw - 36rem) + 2.2rem), 4.6rem);
  --h-4: clamp(1.8rem, calc(0.005555555555555554 * (100vw - 36rem) + 1.8rem), 2.4rem);

  --text-xl: clamp(2.2rem, calc(0.005555555555555552 * (100vw - 36rem) + 2.2rem), 2.8rem);
  --text-l:  clamp(1.8rem, calc(0.003703703703703705 * (100vw - 36rem) + 1.8rem), 2.2rem);
  --text-m:  clamp(1.6rem, calc(0.0018518518518518515 * (100vw - 36rem) + 1.6rem), 1.8rem);
  --text-s:  clamp(1.4rem, calc(0.0018518518518518534 * (100vw - 36rem) + 1.4rem), 1.6rem);
}

/* =========
   1. RESET
   ========= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: var(--text-m);
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe { max-width: 100%; }
figure { margin: 0; }
ul, ol { padding-left: 1.2em; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =========
   2. TYPOGRAPHY BASE
   ========= */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.6em;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--h-1); line-height: 1.1;  font-weight: 800; }
h2 { font-size: var(--h-2); line-height: 1.15; font-weight: 700; }
h3 { font-size: var(--h-3); line-height: 1.2;  font-weight: 700; }
h4 { font-size: var(--h-4); line-height: 1.25; font-weight: 700; }
h5, h6 { font-size: var(--text-l); line-height: 1.3; font-weight: 700; }

p { margin-top: 0; margin-bottom: 1em; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, transform 0.25s ease;
}
a:hover { color: var(--primary); }

strong, b { color: var(--text); font-weight: 700; }
small { font-size: var(--text-s); }

blockquote {
  margin: 0;
  padding-left: var(--space-m);
  border-left: 3px solid var(--primary);
  color: var(--text);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

/* =========
   3. TYPOGRAPHY UTILITIES
   ========= */
.lx-h1 { font-size: var(--h-1); line-height: 1.1;  font-weight: 800; }
.lx-h2 { font-size: var(--h-2); line-height: 1.15; font-weight: 700; }
.lx-h3 { font-size: var(--h-3); line-height: 1.2;  font-weight: 700; }
.lx-h4 { font-size: var(--h-4); line-height: 1.25; font-weight: 700; }

.lx-text-xl            { font-size: var(--text-xl); line-height: 1.4; }
.lx-text-lead, .lx-text-l  { font-size: var(--text-l);  line-height: 1.5; }
.lx-text-small, .lx-text-s { font-size: var(--text-s);  line-height: 1.5; }

.lx-text   { max-width: 65ch; }
.lx-muted  { color: var(--text-soft); }
.lx-center { text-align: center; }

.lx-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-xs);
  color: var(--primary);
  font-size: var(--text-s);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========
   4. LAYOUT
   ========= */
.lx-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.lx-section--light { background: var(--bg-light); }
.lx-section--dark  { background: var(--dark); color: var(--white); }

.lx-section--dark h1, .lx-section--dark h2, .lx-section--dark h3,
.lx-section--dark h4, .lx-section--dark h5, .lx-section--dark h6 { color: var(--white); }
.lx-section--dark p, .lx-section--dark .lx-muted { color: rgba(255,255,255,0.75); }

.lx-container {
  width: min(100% - 32px, 1360px);
  margin-inline: auto;
}
.lx-content { width: min(100%, 820px); }

.lx-stack > * + * { margin-top: 1rem; }

.lx-grid-2, .lx-grid-3, .lx-grid-4 { display: grid; gap: var(--space-m); }
.lx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lx-flex          { display: flex; }
.lx-flex-wrap     { flex-wrap: wrap; }
.lx-items-center  { align-items: center; }
.lx-justify-between { justify-content: space-between; }

.lx-gap-xs { gap: var(--space-xs); }
.lx-gap-s  { gap: var(--space-s);  }
.lx-gap-m  { gap: var(--space-m);  }
.lx-gap-l  { gap: var(--space-l);  }

/* =========
   5. BUTTONS
   ========= */
.brxe-button,
.button,
button:not(.bricks-mobile-menu-toggle),
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.25s ease;
}

.lx-btn-primary, .button.alt,
.single_add_to_cart_button, .wc-block-components-button {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.lx-btn-primary:hover, .button.alt:hover,
.single_add_to_cart_button:hover, .wc-block-components-button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.lx-btn-secondary       { background: var(--white); border-color: var(--border); color: var(--text); }
.lx-btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--white); }
.lx-btn-block           { width: 100%; }

/* =========
   6. FORMS
   ========= */
label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: var(--text-s);
  font-weight: 600;
}

select,
input[type="text"],  input[type="email"],
input[type="tel"],   input[type="number"],
input[type="password"], input[type="search"],
input[type="url"],   input[type="date"],
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

textarea { min-height: 140px; resize: vertical; }

select:focus, input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 124, 32, 0.12);
}

::placeholder { color: #8a8a8a; opacity: 1; }

.lx-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-m);
}

/* =========
   7. CARDS & SURFACES
   ========= */
.lx-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.lx-card__body, .lx-card-inner { padding: var(--space-m); }

.lx-card--interactive { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.lx-card--interactive:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.lx-card--compact .lx-card__body,
.lx-card--compact .lx-card-inner { padding: var(--space-s); }

.lx-panel {
  padding: var(--space-l);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.lx-info-box {
  padding: var(--space-m);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-light);
}

.lx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244,124,32,0.1);
  color: var(--primary);
  font-size: var(--text-s);
  font-weight: 700;
}

/* =========
   8. HEADER
   ========= */
.lx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.lx-header__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: var(--space-m);
  width: min(100% - 32px, 1360px);
  margin-inline: auto;
  min-height: 80px;
}

.lx-header__brand  { flex-shrink: 0; }
.lx-header__logo img { max-height: 52px; width: auto; }
.lx-header__nav    { flex: 1; }

.lx-header__menu ul {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin: 0; padding: 0;
  list-style: none;
}
.lx-header__menu ul li a {
  font-size: var(--text-m);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.lx-header__menu ul li a:hover { color: var(--primary); }

.lx-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-shrink: 0;
}

.lx-header__search,
.lx-header__cart,
.lx-header__account-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--text);
  transition: color 0.2s ease;
}
.lx-header__search:hover,
.lx-header__cart:hover,
.lx-header__account-icon:hover { color: var(--primary); }

#brx-header .bricks-mobile-menu-toggle { display: none !important; }
#brx-header .bricks-mobile-menu { flex-direction: column; }

/* =========
   9. WOOCOMMERCE
   ========= */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-m);
  margin: 0; padding: 0;
}

.woocommerce ul.products li.product {
  width: 100% !important; margin: 0 !important;
  padding-bottom: var(--space-s);
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.woocommerce ul.products li.product img { margin: 0 0 var(--space-s) !important; background: var(--bg-light); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 var(--space-s); font-size: var(--text-l); color: var(--text); }
.woocommerce ul.products li.product .price  { padding: 0 var(--space-s); color: var(--primary) !important; font-weight: 700; }
.woocommerce ul.products li.product .button { margin: var(--space-xs) var(--space-s) 0; }

.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.single-product .woocommerce-product-gallery,
.single-product .summary { width: 100% !important; float: none !important; }
.single-product .summary {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.single-product .product_title { margin-bottom: var(--space-xs); }
.single-product .price { margin-bottom: var(--space-s); color: var(--primary) !important; font-size: var(--text-xl); font-weight: 800; }

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th { padding-bottom: 14px; }
.woocommerce div.product form.cart .variations select { min-width: 100%; }

.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce form.checkout {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.cart_totals, .woocommerce-checkout-review-order {
  padding: var(--space-m);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* WooCommerce Notices */
.woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-error {
  background: #fff0f0 !important; border: 1px solid #e8640a !important;
  border-left: 4px solid #e8640a !important; color: #1a1a1a !important;
  border-radius: 8px !important; padding: 14px 18px !important;
  list-style: none !important; margin: 0 0 16px !important;
}
.woocommerce-error li, .woocommerce-error::before { color: #1a1a1a !important; }
.woocommerce-error li::before { content: '⚠ ' !important; color: #e8640a !important; }

.woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-message {
  background: #f0fff4 !important; border: 1px solid #2e7d32 !important;
  border-left: 4px solid #2e7d32 !important; color: #1a1a1a !important;
  border-radius: 8px !important; padding: 14px 18px !important; margin: 0 0 16px !important;
}
.woocommerce-message::before { color: #2e7d32 !important; }

.woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-info {
  background: #f0f7ff !important; border: 1px solid #1a1a1a !important;
  border-left: 4px solid #1a1a1a !important; color: #1a1a1a !important;
  border-radius: 8px !important; padding: 14px 18px !important; margin: 0 0 16px !important;
}
.woocommerce-info::before { color: #1a1a1a !important; }

.woocommerce-error a, .woocommerce-message a, .woocommerce-info a {
  color: #e8640a !important; font-weight: 600 !important; text-decoration: underline !important;
}
.woocommerce-message .button, .woocommerce-info .button {
  background: #e8640a !important; color: #fff !important; border: none !important;
  border-radius: 6px !important; padding: 8px 18px !important; font-weight: 700 !important;
}

.lxu-wc-notice {
  background: #fff0f0 !important; border: 1px solid #e8640a !important;
  border-left: 4px solid #e8640a !important; border-radius: 8px !important;
  padding: 14px 18px !important; margin-bottom: 16px !important;
}
.lxu-wc-notice ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.lxu-wc-notice li { color: #1a1a1a !important; }

/* =========
   10. UTILITIES
   ========= */
.lx-hidden  { display: none !important; }
.lx-w-full  { width: 100%; }
.lx-mb-0    { margin-bottom: 0 !important; }
.lx-mt-0    { margin-top: 0 !important; }
.lx-p-s     { padding: var(--space-s); }
.lx-p-m     { padding: var(--space-m); }
.lx-p-l     { padding: var(--space-l); }

/* =========
   11. RESPONSIVE
   ========= */
@media (max-width: 991px) {
  .lx-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
  .lx-container { width: min(100% - 32px, 100%); }

  .lx-grid-3, .lx-grid-4,
  .woocommerce ul.products,
  .single-product div.product { grid-template-columns: 1fr 1fr; }

  .lx-header__inner { min-height: 68px; gap: var(--space-s); }
  .lx-header__logo img { max-height: 44px; }
  #brx-header .bricks-mobile-menu-toggle { display: block !important; }
  #brx-header .bricks-nav-menu-wrapper   { display: none  !important; }
}

@media (max-width: 767px) {
  .lx-container,
  .lx-header__inner { width: min(100% - 24px, 100%); }
  .lx-section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

  .lx-grid-2, .lx-grid-3, .lx-grid-4,
  .lx-form-grid,
  .woocommerce ul.products,
  .single-product div.product { grid-template-columns: 1fr; }

  .lx-panel,
  .single-product .summary { padding: var(--space-m); }

  .lx-header__brand img { max-height: 44px; }
  .lx-header__action    { min-width: 42px; min-height: 42px; padding: 0 12px; }
}
.lx-cat-code-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
root {
    display: block !important;
}

root .bricks-nav-menu {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

root .bricks-nav-menu > li {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

@media (max-width: 991px) { .lx-cat-code-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .lx-cat-code-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 478px) { .lx-cat-code-grid { grid-template-columns: 1fr; } }
.lx-cat-code-grid li { list-style: none; height: 100%; }
.lx-cat-code-card { display: flex; flex-direction: column; background: #fff; border: 0.1rem solid #e5e5e5; border-radius: 12px; overflow: hidden; height: 100%; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.lx-cat-code-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.lx-cat-code-img { aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #f5f5f5, #ebebeb); }
.lx-cat-code-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.lx-cat-code-card:hover .lx-cat-code-img img { transform: scale(1.05); }
.lx-cat-code-body { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.25rem; flex: 1; justify-content: space-between; }
.lx-cat-code-name { font-size: 1rem; font-weight: 700; line-height: 1.3; color: #1f1f1f; margin: 0; }
.lx-cat-code-btn { display: flex; align-items: center; justify-content: center; padding: 0.625rem 1.125rem; background: #f47c20; border-radius: 6px; color: #fff; font-size: 1.2rem; font-weight: 600; text-decoration: none; transition: background 0.2s ease; width: 100%; text-align: center; }
.lx-cat-code-btn:hover { background: #d96510; color: #fff; }

.lx-grid-6040 {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* 60 / 40 */
  gap: var(--space-l);
  align-items: start;
}

@media (max-width: 767px) {
  .lx-grid-6040 {
    grid-template-columns: 1fr;
  }
}