/* WordPress / WooCommerce specific styles on top of the shared design */

.no-sticky .hdr-a { position: relative; }
.brand-h .brand-custom { height: 56px; width: auto; }
.hdr-a .nav { flex-wrap: wrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.card[hidden] { display: none !important; }

/* side cart content wrapper */
.cy-drawer-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cy-drawer-inner .drawer-body { flex: 1; overflow: auto; }
.drawer .line-info strong .woocommerce-Price-amount, .sum-row .woocommerce-Price-amount { font-weight: 800; }
.drawer .pdp-add-mini { height: 34px; padding: 0 12px; }
.drawer-foot .btn-outline { height: 46px; }

/* prices rendered by WooCommerce inside our markup */
.price .woocommerce-Price-amount, .pdp-price .woocommerce-Price-amount { font-weight: inherit; }
.price del .woocommerce-Price-amount { font-weight: 500; }

/* WooCommerce classic loops (shortcodes) use the same card grid */
ul.products { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; margin: 0 0 30px !important; padding: 0 !important; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; list-style: none; padding: 0 !important; }
ul.products li.product .card { height: 100%; }

/* pagination */
.cy-pagination { margin-top: 34px; display: flex; justify-content: center; }
.cy-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.cy-pagination a, .cy-pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--brown-900); }
.cy-pagination .current { background: var(--brown-800); border-color: var(--brown-800); color: #fff; }
.cy-pagination .ic { width: 18px; height: 18px; }

/* active filter chips are links here */
#active-chips a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--sand-100); font-size: 13px; font-weight: 600; color: var(--brown-900); }
#active-chips a .ic { width: 14px; height: 14px; }
#active-chips a.clear { background: none; border-color: transparent; text-decoration: underline; color: var(--muted); }
.shop-head .muted { margin: 6px 0 0; }

/* pages */
.page-main { padding-bottom: 20px; }
.page-head h1 { font-size: clamp(28px, 3vw, 40px); }
.entry { font-size: 16px; color: #4d4039; padding-bottom: 30px; }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3 { color: var(--brown-900); margin-top: 1.4em; }
.entry a { color: var(--brown-800); text-decoration: underline; }
.entry img { border-radius: var(--radius); height: auto; }
.entry ul, .entry ol { padding-inline-start: 1.4em; }
.entry-wide { max-width: none; }
.form-error { margin: 0; background: #fdecec; color: #a12d2d; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-item img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-item h2 { font-size: 20px; margin: 10px 0 6px; }
.nf { text-align: center; padding: 80px 0 60px; display: grid; justify-items: center; gap: 12px; }
.nf b { font-size: 110px; line-height: 1; color: var(--sand-300); font-weight: 800; }
.nf .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* product page details */
.pdp-desc p { margin: 0 0 8px; }
.pdp-details .entry { padding: 0; }
.pdp-wc-form .cart { display: grid; gap: 12px; }
.pdp-wc-form .single_add_to_cart_button { width: 100%; }

/* WooCommerce pages: buttons, inputs and notices in the theme style */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce-page .button {
  background: var(--brown-800) !important; color: #fff !important; border-radius: 12px !important; font-family: inherit; font-weight: 700; padding: 12px 20px; border: 0;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--brown-900) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .quantity .qty {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: inherit; background: #fff;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper > * { border-radius: 12px; border-top-color: var(--brown-800); font-family: inherit; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brown-800); }
.woocommerce table.shop_table { border-radius: 14px; overflow: hidden; border-color: var(--line); }
.wc-page .entry { color: var(--text); }

/* WooCommerce blocks (cart / checkout) */
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--brown-800) !important; color: #fff !important; border-radius: 12px !important; font-family: inherit !important; font-weight: 700 !important;
}
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select {
  border-radius: 10px !important; font-family: inherit !important;
}
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { font-family: inherit; }

@media (max-width: 1240px) { ul.products { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { ul.products, .post-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  ul.products, .post-list { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .nf b { font-size: 80px; }
}

/* cart / checkout / account load WooCommerce CSS, which sets img height:auto; keep theme image sizes */
.woocommerce-page .ft2-logo { height: 120px; width: auto; }
.woocommerce-page .brand-h img { height: 50px; width: auto; }
.woocommerce-page .mm-head img { height: 64px; width: auto; }
.woocommerce-page .drawer .line img { width: 72px; height: 72px; }
@media (max-width: 1024px) { .woocommerce-page .brand-h img { height: 40px; } }

/* language switcher */
.lang-switch { display: flex; align-items: center; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--brown-900); background: #fff; transition: .2s; }
.lang-switch a:hover { border-color: var(--brown-800); color: var(--brown-800); }
.lang-switch .ic { width: 18px; height: 18px; }
.mm-lang { margin-top: 14px; }
.mm-lang a { width: 100%; justify-content: center; }

.lang-switch .flag { width: 24px; height: 16px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; display: block; }
