/*
 * Crama Beciu design rules (owner, 5 Dec 2026: "uniformizeaza butoane, tot. reguli de design standard").
 * Measured before: 25 button looks, radii 0/3/4/6/50%/999, four different blacks, green on the age gate.
 * Rule: three roles only.
 *   primary   = the one main action of a screen: black, white text
 *   secondary = other actions: white, thin black border; fills black on hover
 *   link      = a way out or a detail: underlined text, no box
 * Same shape for every box: radius 4px, 14px bold uppercase (13px for secondary), 48/44px tall.
 * "html body" raises specificity over Porto/Elementor rules; !important only where those use it or set inline values.
 */
:root{--cb-ink:#000;--cb-ink-hover:#333;--cb-radius:4px}

/* ---------- primary ---------- */
html body .single_add_to_cart_button.button,
html body .wc-proceed-to-checkout .checkout-button.button,
html body #place_order,
html body .woocommerce-form-login .login-btn,
html body .woocommerce-form-register .register-btn,
html body .woocommerce-MyAccount-content button[name=save_account_details],
html body .woocommerce-MyAccount-content button[name=save_address],
html body .woocommerce-ResetPassword button[type=submit],
html body #agl_form #agl_yes_button.agl_buttons,
html body #cb-cookie-banner .cb-cc-btn-primary,
html body .cb-404__btn,
html body #commentform .btn-primary,
html body .after-loading-success-message .viewcart{
  background:var(--cb-ink)!important;color:#fff!important;border:1px solid var(--cb-ink)!important;border-radius:var(--cb-radius)!important;
  font-size:14px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.03em;
  min-height:48px;padding:13px 24px!important;line-height:20px!important;box-shadow:none!important;text-shadow:none!important;text-decoration:none!important}
html body .single_add_to_cart_button.button:hover,
html body .wc-proceed-to-checkout .checkout-button.button:hover,
html body #place_order:hover,
html body .woocommerce-form-login .login-btn:hover,
html body .woocommerce-form-register .register-btn:hover,
html body .woocommerce-MyAccount-content button[name=save_account_details]:hover,
html body .woocommerce-MyAccount-content button[name=save_address]:hover,
html body .woocommerce-ResetPassword button[type=submit]:hover,
html body #agl_form #agl_yes_button.agl_buttons:hover,
html body #cb-cookie-banner .cb-cc-btn-primary:hover,
html body .cb-404__btn:hover,
html body #commentform .btn-primary:hover,
html body .after-loading-success-message .viewcart:hover{background:var(--cb-ink-hover)!important;border-color:var(--cb-ink-hover)!important;color:#fff!important}

/* ---------- secondary ---------- */
html body ul.products li.product .add_to_cart_button,
html body ul.products li.product .product_type_simple.button,
html body ul.products li.product .product_type_variable.button,
html body ul.products li.product .product_type_grouped.button,
html body ul.products li.product .product_type_external.button,
html body .woocommerce-cart-form button[name=update_cart],
html body button[name=apply_coupon],
html body input[type=submit][name=apply_coupon],
html body #cb-cookie-banner .cb-cc-btn-secondary,
html body .porto-product-filters-toggle,
html body .widget_price_filter .price_slider_amount .button,
html body .after-loading-success-message .continue_shopping,
html body article.post .btn-xs.btn-default{
  background:#fff!important;color:var(--cb-ink)!important;border:1px solid var(--cb-ink)!important;border-radius:var(--cb-radius)!important;
  font-size:13px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.03em;
  min-height:44px;padding:11px 16px!important;line-height:20px!important;box-shadow:none!important;text-decoration:none!important}
html body ul.products li.product .add_to_cart_button:hover,
html body ul.products li.product .product_type_simple.button:hover,
html body ul.products li.product .product_type_variable.button:hover,
html body ul.products li.product .product_type_grouped.button:hover,
html body ul.products li.product .product_type_external.button:hover,
html body .woocommerce-cart-form button[name=update_cart]:hover,
html body button[name=apply_coupon]:hover,
html body input[type=submit][name=apply_coupon]:hover,
html body #cb-cookie-banner .cb-cc-btn-secondary:hover,
html body .porto-product-filters-toggle:hover,
html body .widget_price_filter .price_slider_amount .button:hover,
html body .after-loading-success-message .continue_shopping:hover,
html body article.post .btn-xs.btn-default:hover{background:var(--cb-ink)!important;color:#fff!important}
html body .woocommerce-cart-form button[name=update_cart]:disabled{opacity:.45}

/* ---------- link ---------- */
html body #agl_form #agl_no_button.agl_buttons,
html body #cb-cookie-banner .cb-cc-btn-link{
  background:transparent!important;border:0!important;color:#333!important;font-weight:600!important;
  text-decoration:underline!important;text-underline-offset:3px;box-shadow:none!important}

/* ---------- keyboard focus, same for all three ---------- */
html body .button:focus-visible,html body button:focus-visible,html body .btn:focus-visible,
html body .agl_buttons:focus-visible,html body .cb-404__btn:focus-visible{outline:2px solid var(--cb-ink)!important;outline-offset:2px}

/* ---------- footer: text was 12.6-13px, links 17px tall (hard to hit with a finger) ---------- */
html body #footer ul.footer-links li{padding-top:0!important;padding-bottom:0!important}
html body #footer ul.footer-links li a{display:inline-block;font-size:15px;line-height:22px;padding:7px 0}
html body #footer ul.footer-links li a:hover{text-decoration:underline;text-underline-offset:3px}
html body #footer .elementor-element-625193d .elementor-heading-title{font-family:"Open Sans",sans-serif;font-size:15px;line-height:1.6}

/* ---------- cookie settings button: smaller, it floated over product names ---------- */
html body #cb-cookie-reopen{width:34px;height:34px;font-size:17px;left:10px;bottom:10px;opacity:.85}
html body #cb-cookie-reopen:hover,html body #cb-cookie-reopen:focus-visible{opacity:1}

/* ---------- phones ---------- */
@media (max-width:767px){
  /* iOS Safari zooms the whole page when a field under 16px gets focus (checkout had 16 such fields) */
  html body input[type=text],html body input[type=email],html body input[type=tel],html body input[type=password],
  html body input[type=search],html body input[type=number],html body input[type=url],html body select,html body textarea,
  html body .select2-container .select2-selection__rendered,html body .select2-search__field{font-size:16px!important}
  /* age gate: heading lines collided, buttons side by side were cramped */
  /* cb-a11y.js (loaded by 09-a11y.php) swaps the gate h2 for p.agl-title with inline font-size 1.5rem; both kept */
  html body #agl_form h2,html body #agl_form .agl-title{font-size:22px!important;line-height:1.35!important}
  html body #agl_form .agl_buttons_wrp{display:flex;flex-direction:column;gap:10px;align-items:stretch}
  html body #agl_form .agl_buttons{display:block;margin:0!important;text-align:center}
  /* product cards are ~165px wide in two columns: tighter letters so "CITESTE MAI MULT" fits on one line;
     if a label still wraps, the box grows instead of cutting the text */
  html body ul.products li.product .button{padding:11px 6px!important;font-size:12px!important;letter-spacing:0;height:auto!important;white-space:normal}
  /* narrowest phones (360px): drop the icon so the label stays on one line */
}
@media (max-width:400px){
  html body ul.products li.product .button::before,html body ul.products li.product .button > i{display:none!important}
}
@media (max-width:767px){
  /* the sort menu: 16px uppercase did not fit its box ("SORTARE IMPL...") */
  html body .woocommerce-ordering select{text-transform:none!important;width:auto!important;max-width:100%}
  /* the form itself was 7px wider than the toolbar at 360px; keep it inside */
  html body .shop-loop-before .woocommerce-ordering{max-width:100%!important;min-width:0}
  /* cookie bar: refusing must stay as easy and as visible as accepting -> the two buttons share one row, same size */
  html body #cb-cookie-banner .cb-cc-actions{display:flex!important;flex-wrap:wrap;gap:8px;align-items:center}
  html body #cb-cookie-banner .cb-cc-btn-primary,html body #cb-cookie-banner .cb-cc-btn-secondary{flex:1 1 40%;padding:11px 8px!important;font-size:13px!important;min-height:44px}
  html body #cb-cookie-banner .cb-cc-btn-link{flex:1 1 100%;order:3;text-align:center}
}
@media (max-width:575px){
  /* FILTRE and the sort menu on ONE row (owner screenshot 5 Dec). The theme kept the sort at 140px; 16px text plus
     width:auto above let it grow to its longest option (327px at 390) and it fell under FILTRE. Here it takes the
     rest of the row instead. Only up to 575px: above that the theme shows the "Sorteaza dupa" label next to it. */
  html body .shop-loop-before .woocommerce-ordering{flex:1 1 0;min-width:0}
  html body .shop-loop-before .porto-product-filters-toggle + .woocommerce-ordering{margin-left:10px}
  html body .shop-loop-before .woocommerce-ordering select{width:100%!important;max-width:100%!important}
}
@media (max-width:359px){
  /* 320px phones: "Sortare implicita" needs ~30px more than the shared row leaves; the filter icon and some button padding give it back
     (the word FILTRE stays, so the button still says what it does) */
  html body .shop-loop-before .porto-product-filters-toggle svg{display:none}
  html body .shop-loop-before .porto-product-filters-toggle{padding-left:12px!important;padding-right:12px!important}
}

/* ---------- phone header (batch 2): one contact line + one row (menu, logo, search, account, cart) ----------
 * The header is Porto header builder post 11 (Elementor): top bar section 0db11fc (email + social), main section
 * .header-main (column d3d6c9d = menu toggle + mobile logo, column 7fb4c08 = search, account, cart).
 * Measured before at 390px: 297px tall, email on 2 lines, menu button above the logo. Only <=767px, desktop untouched.
 * Rollback: delete this block. Nothing is hidden on phones; the search icon is NEW in the row (Porto theme option
 * hid it under 576px, the same search stays in the menu panel). */
@media (max-width:767px){
  /* contact bar: email left, social icons right, one line, 44px tall so the icons are easy to hit */
  html body #header section.elementor-element-0db11fc{padding:0}
  html body #header section.elementor-element-0db11fc > .elementor-container{flex-wrap:nowrap!important;align-items:center;justify-content:space-between;
    margin:0!important;width:100%;max-width:100%;box-sizing:border-box;padding:0 10px 0 12px;gap:6px;min-height:44px}
  html body #header section.elementor-element-0db11fc > .elementor-container > .elementor-column{width:auto!important;flex:0 1 auto;min-width:0}
  html body #header .elementor-element-bf3d24f{flex:1 1 auto!important}
  html body #header .elementor-element-c80d128{flex:0 0 auto!important}
  html body #header .elementor-element-bf3d24f > .elementor-widget-wrap,html body #header .elementor-element-c80d128 > .elementor-widget-wrap{padding:0}
  html body #header .elementor-element-43fcd7d{margin:0}
  html body #header .elementor-element-43fcd7d .elementor-heading-title{font-size:12px;line-height:20px;letter-spacing:0;white-space:nowrap}
  html body #header .elementor-element-ed0f499{margin:0!important}
  html body #header .elementor-element-ed0f499 .share-links{display:flex;align-items:center}
  html body #header .elementor-element-ed0f499 .share-links a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:44px;margin:0;border-radius:0}
  /* main row: menu button, logo, then search / account / cart pushed to the right; every icon is a 44x44 target */
  html body #header section.header-main{padding:0}
  html body #header section.header-main > .elementor-container{flex-wrap:nowrap!important;align-items:center;min-height:0;
    margin:0!important;width:100%;max-width:100%;box-sizing:border-box;padding:4px 10px 4px 8px}
  html body #header section.header-main > .elementor-container > .elementor-column{padding:0}
  html body #header section.header-main .elementor-element-d3d6c9d{flex:1 1 auto!important;width:auto!important;min-width:0}
  html body #header section.header-main .elementor-element-d3d6c9d > .elementor-widget-wrap{flex-wrap:nowrap!important;align-items:center;padding:0}
  html body #header section.header-main .elementor-element-7fb4c08{flex:0 0 auto!important;width:auto!important}
  html body #header section.header-main .elementor-element-7fb4c08 > .elementor-widget-wrap{flex-wrap:nowrap!important;align-items:center;padding:0}
  html body #header section.header-main .elementor-element-32ca762{width:auto}
  html body #header section.header-main .elementor-element-32ca762 > .elementor-widget-container{margin:0}
  html body #header .elementor-element-32ca762 .mobile-toggle{display:inline-flex!important;align-items:center;justify-content:center;
    min-width:44px;min-height:44px;padding:0!important;margin:0;border-radius:4px}
  html body #header section.header-main .elementor-element-a307064{width:auto;margin-left:10px}
  html body #header section.header-main .elementor-element-a307064 .logo img{max-height:48px;width:auto}
  html body #header .elementor-element-b017a2a,html body #header .elementor-element-c7f85b4{width:auto;margin:0!important}
  html body #header .elementor-element-c7f85b4 > .elementor-widget-container{margin:0}
  html body #header .elementor-element-b017a2a .my-account,html body #header .elementor-element-c7f85b4 #mini-cart .cart-head,
  html body #header .elementor-element-d4b32f5 .search-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;line-height:1}
  /* search icon: Elementor hides the widget on mobile and a Porto option hides the popup under 576px */
  html body #header .elementor-element-d4b32f5.elementor-hidden-mobile{display:block!important;width:auto;margin:0}
  html body #header .elementor-element-d4b32f5 > .elementor-widget-container{margin:0}
  html body #header .elementor-element-d4b32f5 .searchform-popup{display:inline-block}
  html body #header .elementor-element-d4b32f5 .search-toggle .search-text{display:none}
}
@media (max-width:359px){
  /* 320px phones: the email at 12px collided with the social icons, so text 11px and icon boxes 30px wide (nothing hidden) */
  html body #header section.elementor-element-0db11fc > .elementor-container{padding:0 6px 0 10px;gap:4px}
  html body #header .elementor-element-43fcd7d .elementor-heading-title{font-size:11px}
  html body #header .elementor-element-ed0f499 .share-links a{width:30px}
}

/* ---------- lot 3 (owner phone review, 5 Dec 2026 evening) ----------
 * Rollback: delete this block. */
/* VAT note under the order total: the amount inherited the 22px total size and broke the line ("(include 3,99 lei" / "TVA)") */
html body .includes_tax .amount,html body .includes_tax .amount *{font-size:inherit!important;font-weight:inherit!important}
html body .order-total .includes_tax{display:block;white-space:nowrap}
@media (max-width:767px){
  /* product grid: price and button at the same height in a row, whatever the title length (2 vs 3 lines) */
  html body ul.products li.product-col .product-inner{height:100%;display:flex;flex-direction:column}
  html body ul.products li.product-col .product-content{flex:1 1 auto;display:flex;flex-direction:column}
  html body ul.products li.product-col .product-content .product-loop-title{margin-bottom:auto}
  /* a sale price (old + new) wraps to 2 lines at 360px; the button still sits at the bottom of the card */
  html body ul.products li.product-col .product-content .add-links-wrap{margin-top:auto}
  /* terms checkbox at checkout was the bare 13px browser box, smaller than the other checkboxes */
  html body #terms{width:20px!important;height:20px!important;vertical-align:-4px;margin-right:6px}
}
@media (max-width:374px){
  /* 360px cards: "Citeste mai mult" (out of stock) wrapped to 2 lines and stood 20px taller than "Adauga in cos" next to it */
  html body ul.products li.product-col .add-links .button{white-space:nowrap;padding-left:8px!important;padding-right:8px!important;letter-spacing:0!important}
}
@media (max-width:575px){
  /* cart/checkout steps: the third, not-yet-reachable step fell alone on a second line; hide it until it is current */
  html body ul.breadcrumb.text-center li.disable{display:none}
}
