/*
 Theme Name:   Shoptimizer Child
 Theme URI:    https://www.commercegurus.com/shoptimizer/
 Description:  Child theme for the Shoptimizer WooCommerce theme. Add your custom CSS and functions here so updates to the parent theme won't overwrite your changes.
 Author:       Cristi
 Author URI:   https://hueman.ro
 Template:     shoptimizer
 Version:      1.0.0
 Requires at least: 6.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  shoptimizer-child
*/

/* =========================================
   Add your custom CSS below this line.
   ========================================= */


/* Hide Shoptimizer's native header when using a custom Elementor header */
#masthead.site-header {
   display: none;
}

.elementor .buton-categorii .elementor-button .elementor-button-icon {
   transform: translateY(-0.08em);
}



/* ===== FORMULAR DE CONTACT (Contact Form 7) ===== */

/* Dark section wrapper */
.formular-contact {
   padding: 55px 20px 70px;
}

/* Optional: the title, if it's a heading just above the form.
      Adjust the selector/tag to match your actual heading. */
.formular-contact-titlu,
.formular-contact h2,
.formular-contact h3 {
   color: #ffffff;
   text-align: center;
   text-transform: uppercase;
   font-weight: 800;
   margin: 0 0 40px;
}

/* CF7 injects <p> and <br> everywhere — neutralize them */
.formular-contact p {
   margin: 0;
}

.formular-contact br {
   display: none;
}

/* The row that holds the two columns + the two full-width fields */
.formular-contact-campuri {
   display: flex;
   flex-wrap: wrap;
   gap: 22px 40px;
   /* row-gap  column-gap */
   margin: 0 auto;
   align-items: flex-start;
}

/* ONLY the two side columns are half-width */
.formular-contact-left,
.formular-contact-right {
   flex: 0 0 calc(50% - 20px);
   max-width: calc(50% - 20px);
   min-width: 250px;
}

/* The two bottom fields are <p> direct children -> force full width.
      (This is the fix: previously only <label> was targeted.) */
.formular-contact-campuri>p {
   flex: 0 0 100%;
   max-width: 100%;
   width: 100%;
}

/* Each field caption. All 3 fields per column sit in one <p>,
      so field spacing comes from margin, not flex gap. */
.formular-contact label {
   display: block;
   color: #d6d6d6;
   font-size: 13px;
   line-height: 1.2;
   margin-bottom: 22px;
   font-weight: 700;
}

.formular-contact.pagina-contact label {
   color: #072B31;
}

.formular-contact label:last-child {
   margin-bottom: 0;
   /* no trailing gap under the last field in a column */
}

/* CF7 wraps each control in this span — put the input under the caption */
.formular-contact .wpcf7-form-control-wrap {
   display: block;
   margin-top: 8px;
}

/* Inputs + textarea */
.formular-contact input[type="text"],
.formular-contact input[type="email"],
.formular-contact input[type="tel"],
.formular-contact textarea {
   display: block;
   width: 100%;
   box-sizing: border-box;
   padding: 12px 14px;
   background: #ffffff;
   border: none;
   font-size: 14px;
   color: #111;
   line-height: 1.3;
}

.formular-contact textarea {
   min-height: 46px;
   /* matches the single-line look; raise for a taller box */
   resize: none;
}

.formular-contact.pagina-contact textarea {
   min-height: 296px;
}

.formular-contact input:focus,
.formular-contact textarea:focus {
   outline: 2px solid #d4f500;
   outline-offset: 1px;
}

/* Submit button */
.formular-contact-trimite {
   text-align: center;
   margin-top: 32px;
}

.formular-contact input[type="submit"],
.formular-contact .wpcf7-submit {
   background-color: #d4f500;
   /* lime — set to your exact brand green */
   color: #000000;
   border: none;
   padding: 12px 34px;
   font-weight: 700;
   font-size: 14px;
   text-transform: uppercase;
   cursor: pointer;
   width: auto;
   transition: opacity .15s ease;
}

.formular-contact input[type="submit"]:hover,
.formular-contact .wpcf7-submit:hover {
   opacity: .85;
}

/* CF7 messages */
.formular-contact .wpcf7-response-output {
   flex: 1 1 100%;
   color: #fff;
   margin: 18px 0 0;
}

.formular-contact .wpcf7-not-valid-tip {
   color: #ff6b6b;
   font-size: 12px;
}

.woocommerce-page:not(.woocommerce-cart) .archive-header {
   background: #5F868C;
}
.woocommerce-page:not(.woocommerce-cart) .archive-header .col-full{
   background-color: #5F868C !important;
}
.woocommerce-breadcrumb a,
.woocommerce-breadcrumb a:hover{
   color: #DDE6E7;
   text-decoration-color: #DDE6E7;
}

.woocommerce-breadcrumb>a:first-child {
   display: inline-flex;
   align-items: center;
   font-size: 0;
   /* hides the "Prima pagină" text, keeps it for screen readers */
}

.woocommerce-breadcrumb>a:first-child::before {
   content: "";
   display: inline-block;
   width: 14px;
   height: 14px;
   color: #E6FF2B;
   background-color: currentColor;
   /* icon takes the link's color */
   -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M1.125 7.2084V2.89448L4 0.733398L6.88333 2.89173V7.2084H4.71667V4.61673H3.28333V7.2084H1.125Z"/></svg>') no-repeat center / contain;
   mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M1.125 7.2084V2.89448L4 0.733398L6.88333 2.89173V7.2084H4.71667V4.61673H3.28333V7.2084H1.125Z"/></svg>') no-repeat center / contain;
}

.woocommerce-breadcrumb .breadcrumb-separator {
   top: auto;
   padding: 0;
   opacity: 1;
   font-size: 0;
   /* hides the " / " character */
   margin: 0 0.4rem;
   /* spacing around the arrow — tweak to taste */
}

.woocommerce-breadcrumb .breadcrumb-separator::before {
   content: "";
   display: inline-block;
   width: 12px;
   height: 12px;
   color: #072B31;
   background-color: currentColor;
   /* arrow color follows the breadcrumb text */
   -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M4.21641 3.99154L2.56641 2.34154L3.12474 1.7832L5.33307 3.99154L3.12474 6.19987L2.56641 5.64154L4.21641 3.99154Z"/></svg>') no-repeat center / contain;
   mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path d="M4.21641 3.99154L2.56641 2.34154L3.12474 1.7832L5.33307 3.99154L3.12474 6.19987L2.56641 5.64154L4.21641 3.99154Z"/></svg>') no-repeat center / contain;
}

.woocommerce-breadcrumb {
   font-size: 12px;
   color: #DDE6E7;
   display: flex;
   align-items: center;
   font-weight: 700;
}

.maistor-cat-hero {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 48px;
   margin-bottom: 2.5rem;
}

.maistor-cat-hero__text{
   padding: 56px 40px;
}

.maistor-cat-hero__title{
   color:  #072B31;
   font-family: "Archivo Expanded";
   font-size: 58px;
   font-weight: 900;
   line-height: 60px;
   letter-spacing: -1px;
   text-transform: uppercase;
}

.maistor-cat-hero__desc{
   color: #072B31;
   font-size: 16px;
   font-style: normal;
   font-weight: 500;
   line-height: 1.5;
}

.maistor-cat-hero__media img {
   width: 100%;
   height: auto;
   display: block;
}
.tax-product_cat h1.woocommerce-products-header__title { display: none; }

#secondary .widget .widget-title{
   color:  #072B31;
   font-family: "Archivo Expanded";
   font-size: 16px;
   font-weight: 800;
   line-height: 1.5;
   letter-spacing: -0.32px;
   text-transform: uppercase;
   padding: 16px 0;
   border-bottom: 1px solid #D3D2D0 !important;
   margin: 0;
}
#secondary .product-categories{
   padding: 16px 0;
}
#secondary .product-categories li{
   color: #072B31;
   font-size: 20px;
   font-weight: 700;
   line-height: 1.4;
}

#secondary .product-categories li a,
#secondary .product-categories li a:hover{
   color: #072B31 !important;
}

li.product:hover .woocommerce-image__wrapper{
   transform: none;
}
li.product .woocommerce-image__wrapper{
   border:1px solid #D3D2D0;
}
li.product p.product__categories{
   color: #686A6D;
   font-size: 12px;
   font-weight: 500;
   line-height: 14px;
}

ul.products li.product .woocommerce-LoopProduct-link{
   color: #072B31;
   font-size: 20px;
   font-style: normal;
   font-weight: 700;
   line-height: 1.4; 
}

ul.products li.product .price{
   color: #072B31;
   font-family: "Archivo Expanded";
   font-size: 28px;
   font-weight: 900;
   line-height: 32px;
   letter-spacing: -0.35px;
}
.woocommerce-card__header{
   padding-top:16px;
}
ul.products li.product .woocommerce-loop-product__title, ul.products li.product h2.woocommerce-loop-product__title{
   padding-top:12px;
   padding-bottom:20px;
}

ul.products li.product .button.maistor-view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 12px;
    background: #E6FF2B;          /* lime */
    color: #072B31;               /* dark teal — text + icon */
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0;             /* square corners as in the mockup */
    text-align: center;
    transition: background 0.15s ease;
    font-family: "Archivo Expanded";
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 14px;
}

ul.products li.product .button.maistor-view-product:hover {
    background: #E6FF2B;           /* slightly darker lime on hover */
    color: #072B31;
}
ul.products li.product .button.maistor-view-product svg {
    flex-shrink: 0;               /* keeps the icon circle from squashing */
}

.shoptimizer-sorting{
   margin-bottom:0;
}




/* Hide the original horizontal tab nav */
.summary ul.tabs.wc-tabs { display: none !important; }

/* Force panels visible (overrides WooCommerce's default hiding), then let JS toggle */
.summary .woocommerce-Tabs-panel { display: block !important; }
.summary .woocommerce-Tabs-panel.maistor-closed { display: none !important; }

/* Accordion header styling */
.summary .maistor-acc-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-top: 1px solid #686A6D;
    padding: 12px 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #072B31;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5; 
}

.summary .maistor-acc-header:last-of-type {
    border-bottom: 1px solid #686A6D;
}
.summary .maistor-acc-header::after {
    content: "";
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6.00078 7.7998L2.98828 4.7998H9.01328L6.00078 7.7998Z' fill='%23072B31'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.summary .maistor-acc-header[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
.summary .woocommerce-Tabs-panel { padding: 12px 8px 24px; }


.single-product #page div.product .summary {
    border-left: 1px solid #686A6D;
    padding: 32px;
  }
  #commercegurus-pdp-gallery-wrapper{
    padding: 32px 0;
  }

.maistor-product-ref{
   color: #072B31;
   font-size: 16px;
   font-style: normal;
   font-weight: 500;
   line-height: 1.5; 
}
.summary h1{
   color: #072B31;
   font-family: "Archivo Expanded";
   font-size: 28px;
   font-style: normal;
   font-weight: 900;
   line-height: 32px; 
   letter-spacing: -0.35px;
}

.maistor-accordion-heading,
.maistor-vardrop__heading{
   color: #072B31;
   font-family: "Archivo Expanded";
   font-size: 20px;
   font-style: normal;
   font-weight: 900;
   line-height: 24px;
   letter-spacing: -0.25px;
   text-transform: uppercase;
   padding-top: 48px;
   margin:0;
}

.product p.price,
.product .woocommerce-variation-price .price{
   font-family: "Archivo Expanded";
   font-size: 28px;
   font-style: normal;
   font-weight: 900;
   line-height: 32px;
   letter-spacing: -0.35px;
}
.woocommerce-variation-price .price .amount{
  font-size: 28px;
}

.woocommerce-tabs.wc-tabs-wrapper{
   padding: 24px 0;
   border:none;
}
.single-product .woocommerce-Tabs-panel{
   color: #072B31;
   font-size: 13px;
   font-style: normal;
   font-weight: 400;
   line-height: 1.5; 
}

/* --- Row: quantity + add to cart side by side --- */
.single-product form.cart,
.product .variations_button {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.single-product form.cart::before,
.single-product form.cart::after,
.product .variations_button::before,
.product .variations_button::after {
    display: none !important;
    content: none !important;
}

/* --- Quantity:  −  1  + --- */
.quantity.buttons_added {
    display: flex !important;
    align-items: stretch;
    width: max-content;
    margin: 0;
}
.quantity.buttons_added .quantity-nav { display: contents !important; }

table.cart .quantity{
  height: 42px;
  border-radius:0px;
  border:none;
  width: auto;
}
.quantity.buttons_added input.qty {
    order: 2;
    width: 42px !important;
    height: 42px !important;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #686A6D;
    border: 1px solid #686A6D;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.quantity.buttons_added input.qty::-webkit-outer-spin-button,
.quantity.buttons_added input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity.buttons_added .quantity-button {
    width: 42px !important;
    height: 42px !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    background: #fff;
    border: 1px solid #686A6D !important;
    border-radius: 0;
    color: #072B31;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.quantity.buttons_added .minus { order: 1; border-right: 0; }
.quantity.buttons_added .plus  { order: 3; border-left: 0; }

/* strip the theme's up/down chevrons, then add our − and + */
.quantity.buttons_added .quantity-button::before,
.quantity.buttons_added .quantity-button::after {
    content: none !important;
    border: 0 !important;
    background: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
}
.quantity.buttons_added .minus::before { content: "−" !important; font-size: 24px; color: #686A6D; font-weight: 400; }
.quantity.buttons_added .plus::before  { content: "+" !important; font-size: 24px; color: #686A6D; font-weight: 400; }

/* --- Add to cart button --- */
.single-product .single_add_to_cart_button {
    flex: 1 1 auto;
    min-width: 220px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #E6FF2B !important;   /* swap for your exact lime */
    color: #072B31 !important;
    border: 0;
    border-radius: 0px;
    letter-spacing: 0.05em;
    box-shadow: none;
    width: auto;
    margin-left: 0;
    
    font-family: "Archivo Expanded" !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 14px;
    text-transform: uppercase;
}
.single-product .single_add_to_cart_button:hover,
.single-product .single_add_to_cart_button:focus {
    background-color: #E6FF2B !important;
    color: #072B31 !important;
}
.single-product .single_add_to_cart_button::after {
    content: "" !important;
    position: initial !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    margin-left: 10px !important;
    margin-top: 0 !important;
    opacity: 1 !important;
    border:none !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8.39935 8.00039L6.23268 10.1671L7.26602 11.2337L10.4827 8.00039L7.26602 4.76706L6.23268 5.83372L8.39935 8.00039ZM7.99935 15.0837C7.02157 15.0837 6.0994 14.8999 5.23285 14.5324C4.3664 14.1647 3.61413 13.6591 2.97602 13.0154C2.3379 12.3717 1.83502 11.6202 1.46735 10.7609C1.09979 9.90145 0.916016 8.98206 0.916016 8.00272C0.916016 7.01228 1.09979 6.08656 1.46735 5.22556C1.83502 4.36467 2.33874 3.61483 2.97852 2.97606C3.61818 2.33739 4.37046 1.83178 5.23535 1.45922C6.10024 1.08667 7.02157 0.900391 7.99935 0.900391C8.97713 0.900391 9.89568 1.08622 10.755 1.45789C11.6142 1.82967 12.3665 2.33417 13.0118 2.97139C13.6572 3.60861 14.1664 4.35789 14.5395 5.21922C14.9127 6.08067 15.0993 7.00772 15.0993 8.00039C15.0993 8.98128 14.9131 9.90211 14.5405 10.7629C14.168 11.6237 13.6596 12.3752 13.0154 13.0176C12.371 13.6598 11.6184 14.1647 10.7575 14.5324C9.89652 14.8999 8.97713 15.0837 7.99935 15.0837Z' fill='%23072B31'/%3E%3C/svg%3E") no-repeat center / contain;
}

.related-wrapper .related.products h2{
  color:#072B31;
  font-family: "Archivo Expanded";
  font-size: 42px;
  font-weight: 900;
  line-height: 44px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.product .cart .quantity .input-text{
  border-radius: 0;
  border: 1px solid #686A6D;
  height: 50px;
}

.single-product .product-type-variable > .summary > p.price,
.single-product .product-type-variable p.price.price { display: none; }

.single-product .reset_variations{
  display: none !important;
}
.single-product .single_variation_wrap{
  width: 100%;
}

/* hide the native variations table + reset link */
.single-product form.cart .variations { display: none !important; }

.maistor-vardrop { position: relative; margin: 0 0 24px; width: 100%; }

.maistor-vardrop__current-label {
    display: block;
    margin-bottom: 8px;
    color: #072B31;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5; 
}

/* current option card */
.maistor-vardrop__toggle {
    width: 100%; display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; background: #fff;
    border: 1px solid #686A6D; border-radius: 8px;
    cursor: pointer; text-align: left;
}
.maistor-vardrop__media { flex: 0 0 auto; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.maistor-vardrop__media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.maistor-vardrop__text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; }
.maistor-vardrop__sku { font-size: 14px; color: #4d7379; }
.maistor-vardrop__name { font-size: 15px; color: #072B31; }
.maistor-vardrop__chevron {
    flex: 0 0 auto; width: 0; height: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid #072B31; transition: transform .2s ease;
}
.maistor-vardrop.is-open .maistor-vardrop__chevron { transform: rotate(180deg); }

/* dropdown panel */
.maistor-vardrop__panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    margin: 6px 0 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid #686A6D; border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    max-height: 320px; overflow-y: auto; display: none;
}
.maistor-vardrop.is-open .maistor-vardrop__panel { display: block; }
.maistor-vardrop__option {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 12px; border-radius: 6px; cursor: pointer;
}
.maistor-vardrop__option:hover { background: #f4f6f6; }
.maistor-vardrop__option.is-active { background: #eef7e0; }

.woocommerce a.added_to_cart.wc-forward,
.added_to_cart.wc-forward {
    display: none !important;
}

.elementor-menu-cart__toggle .maistor-cart-label{
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding-left:8px;
}

.woocommerce-account .entry-title {
  text-align: center;
  color: #072B31;
  font-family: "Archivo Expanded";
  font-size: 28px;
  font-style: normal;
  font-weight: 900;
  line-height: 32px;
  letter-spacing: -0.35px;
  padding-top:32px;
  padding-bottom: 32px;
  margin: 0;
}

.woocommerce-MyAccount-navigation {
  float: left;
  width: 21.647%;
  margin-right: 1.882%;
  background: #fff;
  padding: 30px;
}

.woocommerce-MyAccount-content {
  background: #ffffff;
  padding: 30px;
}

.woocommerce-account .content-area{
  background: #5F868C;
  padding: 56px 40px;
}

.woocommerce-Address-title h2 {
  margin: 0px;
}
.woocommerce-account h2 {
  font-size: 16px;
  font-weight: 600;
}

.addresses header.title a {
  font-size: 12px;
  letter-spacing: -0.2px;
}
address{
  font-size: 14px;
}

.content-area .col2-set button, .woocommerce-account .button {
  border-radius: 0px;
  background: #E6FF2B;
  color: #072B31;
  font-family: "Archivo Expanded";
  font-size: 12px;
  font-weight: 800;
  line-height: 50px;
  text-transform: uppercase;
  height: 50px;
  padding: 0 24px;
}

.content-area .col2-set button:hover, .woocommerce-account .button:hover {
  background: #E6FF2B;
  color: #072B31;
}

.woocommerce-cart .content-area,
.woocommerce-order-received .content-area,
.woocommerce-checkout:not(.woocommerce-order-received) .site-main{
  margin-top:56px;
  padding:0;
  background:transparent;
}

.maistor-cart-panel{
  padding:56px 40px;
  background:#5F868C;
  display:flow-root;      /* contains the floated form + collaterals */
}

.woocommerce-cart .site-main {
  padding-top: 0;
}

.woocommerce-cart .checkout-wrap,
.woocommerce-order-received .checkout-wrap {
  padding: 0px;
  margin: 12px 0 48px;
}

.checkout-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* the line, dead-centre, behind everything */
.checkout-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
  z-index: 0;
}

.checkout-bar li {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  text-align: center;
}

/* the chip: bg MUST equal the panel teal, and NOWRAP keeps it one line */
.checkout-bar li > span {
  display: inline-block;
  padding: 0 18px;
  background: #5F868C;            /* ← sample the EXACT teal with DevTools */
  color: #DDE6E7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  font-family: "Archivo Expanded";
  white-space: nowrap;           /* stops "LIVRARE…COMANDĂ" wrapping */
  position: relative;
}

.checkout-bar li a {
  color: inherit;
  text-decoration: none;
  font-family: "Archivo Expanded";
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3; 
  text-transform: uppercase;
}

/* active step */
.checkout-bar li.active > span,
.checkout-bar li.active > span a {
  color: #E6FF2B;
}

/* CHECKOUT page → step 1 done (green) + step 2 active (green) */
.woocommerce-checkout .checkout-bar li.first > span,
.woocommerce-checkout .checkout-bar li.first > span a,
.woocommerce-checkout .checkout-bar li.next > span,
.woocommerce-checkout .checkout-bar li.next > span a {
  color: #E6FF2B;
}

/* THANK-YOU page → steps 1, 2 done + step 3 active — all green */
.woocommerce-order-received .checkout-bar li > span,
.woocommerce-order-received .checkout-bar li > span a {
  color: #E6FF2B;
}

/* kill the theme's number circles */
.checkout-bar li > span::before,
.checkout-bar li::before,
.checkout-bar li > a::before {
  content: none !important;
  display: none !important;
}
.checkout-bar li.first::before,
.checkout-bar li.active::before {
  content: none !important;
  display: none !important;
}
ul.checkout-bar{
  width: 100%;
  margin:0;
}
ul.checkout-bar li{
  margin:0;
}
.checkout-bar li.active::after, .woocommerce-checkout .checkout-bar li.next::after{
  display: none;
}

/* GREEN FILL overlay — width grows per page */
.checkout-bar::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  height: 2px;
  background: #E6FF2B;
  transform: translateY(-50%);
  z-index: 0;
  width: 16.6%;        /* cart: fill to centre of step 1 */
  transition: width .3s ease;
}
.woocommerce-checkout .checkout-bar::after      { width: 50%;   } /* checkout: to step 2 */
.woocommerce-order-received .checkout-bar::after,
.woocommerce-thankyou .checkout-bar::after      { width: 100%; } /* confirmation: to step 3 */

.woocommerce-cart-form{
  background: #ffffff;
  padding: 32px;
  width: 65%;
}

.cart-totals-coupon-row td {
    padding: 15px 0 !important;
}
.cart-totals-coupon {
    display: flex;
    align-items: center;
    border: 1px solid #D3D2D0;
    padding: 4px 12px;
    font-size: 14px;
    gap:5px;
}
.cart-totals-coupon .coupon-remove-link{
  font-weight: 600;
  margin-left: auto;
  color:#072B31;
}
.cart-totals-coupon .input-text {
    border: none;
    flex: 1;
    background: transparent;
    padding: 0;
    color:#686A6D;
    box-shadow: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5; 
}
.cart-totals-coupon .input-text:focus{
  outline:none;
}
.cart-totals-coupon button.button,
.cart-totals-coupon button.button:hover{
  font-size: 14px;
  color: #072B31;
  padding: 5px 0px;
  background: transparent;
  height: auto !important;
}
.cart-totals-coupon .button {
    background: none;
    border: none;
    color: #c0392b;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.coupon-applied-text strong{
  text-transform: uppercase;
}

.coupon-ticket-icon svg {
    display: block;
    flex-shrink: 0;
}
.cart-collaterals .cart_totals small.includes_tax,
.woocommerce-checkout-review-order-table tfoot td small.includes_tax{
  display: none;
}
.cart_totals .shop_table{
  padding:32px;
}

.cart_totals .shop_table tr.cart-subtotal td, .cart_totals .shop_table tr.cart-subtotal th {
  border-bottom: 1px solid #D3D2D0;
}
.cart_totals .shop_table td, .cart_totals .shop_table th {
  padding: 16px;
}
.cart_totals .shop_table tr.cart-subtotal th, 
.cart_totals .shop_table tr.cart-subtotal td,
.cart_totals .shop_table tr.shipping th{
  color: #898A8D;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4; 
}

.cart_totals .shop_table tr.shipping td{
  padding: 8px 16px 16px;
}

.cart_totals .shop_table tr.shipping ul#shipping_method{
  margin:0;
}

.cart_totals .shop_table tr.shipping td ul#shipping_method li label,
.cart_totals .shop_table tr.shipping td ul#shipping_method li span.amount{
  color: #898A8D;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4; 
}
.cart_totals .shop_table tr.shipping td #shipping_method > li > input[type="radio"]:checked + label span, 
.cart_totals .shop_table tr.shipping td ul#shipping_method li:only-child span{
  font-weight: 700;
}
.cart_totals .shop_table tr.shipping td ul#shipping_method li label::before,
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping td ul#shipping_method li label::before,
#order_review #payment .payment_methods li.wc_payment_method > input[type="radio"]:first-child:checked + label::before{
  background-color: #898A8D;
}

.cart_totals .shop_table tr.order-total td, .cart_totals .shop_table tr.order-total th {
  border-bottom: none;
}

.cart_totals .shop_table tr.order-total th{
  color: #0B4650;
  font-family: "Archivo Expanded";
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: -0.25px;
  text-transform: uppercase;
}

.cart_totals .shop_table tr.order-total td{
  color: #0B4650;
  text-align: right;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4; 
}

.cart-collaterals p.woocommerce-shipping-destination{
  display: none;
}

.woocommerce-checkout .coupon-wrapper{
  display: none;
}

.woocommerce-checkout #customer_details,
 #customer_details + #wc_checkout_add_ons, 
 #order_review, 
 #order_review_heading {
  background: #fff;
  padding: 32px;
  padding-bottom: 0;
  margin:0;
}
.woocommerce-billing-fields h3,
#order_review_heading{
  color: #0B4650;
  font-family: "Archivo Expanded";
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: -0.25px;
  text-transform: uppercase;
}

/* Checkout: hide field labels, keep placeholders — but NOT the checkbox labels */
.woocommerce-checkout .woocommerce-billing-fields .form-row:not(.company-field-trigger) > label,
.woocommerce-checkout .woocommerce-shipping-fields .form-row:not(#ship-to-different-address) > label,
.woocommerce-checkout .woocommerce-additional-fields .form-row > label {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}



/* ---- Checkout order-review product table ---- */

/* hide the "produs / Subtotal" header */
.woocommerce-checkout-review-order-table thead { display: none; }

/* make the table itself full-width and block so rows can stretch */
.woocommerce-checkout-review-order-table { width: 100%; display: block; }
.woocommerce-checkout-review-order-table tbody { display: block; width: 100%; }

/* each item = a self-contained block row (leaves tfoot alone) */
.woocommerce-checkout-review-order-table tbody tr.cart_item {
  display: block;
  width: 100%;                       /* <-- fill the container */
  box-sizing: border-box;
  position: relative;                /* anchor for the quantity */
  padding: 16px 0;
  border-bottom: 1px solid #D3D2D0;
}

/* .woocommerce-checkout-review-order-table tbody tr.cart_item:last-of-type {
  border-bottom: none;
} */

.woocommerce-checkout-review-order-table tbody tr.cart_item td {
  display: block;
  padding: 0;
  border: 0;
}

/* name cell = thumb + text side by side, room reserved on the right for qty */
.woocommerce-checkout-review-order-table td.product-name {
  display: flex !important;
  align-items: flex-start;
  gap: 16px;
  padding-right: 50px;               /* space for the × N on the right */
}
.woocommerce-checkout-review-order-table .product-item-thumbnail {
  flex: 0 0 56px;
  width: auto;
  padding: 0;
}
.woocommerce-checkout-review-order-table .product-item-thumbnail img {
  width: 56px; height: 56px; object-fit: cover; display: block;
}
.woocommerce-checkout-review-order-table .cg-checkout-table-product-name {
  flex: 1 1 auto;
  min-width: 0;                      /* allow the name to wrap, not overflow */
}

/* price: its own <td>, now sitting BELOW — indent to align under the text */
.woocommerce-checkout-review-order-table td.product-total {
  margin-left: 72px;                 /* 56 thumb + 16 gap */
  margin-top: -14px;
  text-align: left;
  color: #686A6D;
  font-size: 16px;
  font-weight: 700;
}

/* quantity: lifted out to the far right, vertically centered on the row */
.woocommerce-checkout-review-order-table .cg-checkout-table-product-name .product-quantity {
  position: absolute;
  right: 0;
  top: 20px;
  margin: 0;
  color: #898A8D;
  font-weight: 700;
}

.woocommerce-checkout-review-order-table tfoot { display: table; width: 100%; }

#order_review .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; padding-top:32px;}
#order_review .woocommerce-checkout-review-order-table tfoot tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #D3D2D0;
}
#order_review .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
#order_review .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td,
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping th{
  color: #898A8D;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping td,
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping td #shipping_method > li > input[type="radio"]:checked + label span, 
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping td ul#shipping_method li:only-child span{
  color: #898A8D;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}
#order_review .woocommerce-checkout-review-order-table tfoot tr.order-total {
  border-bottom: 0;
}
/* shipping row stacks its heading above the curier line */
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping {
  flex-wrap: wrap;
}
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping th {
  flex: 0 0 100%;
}
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping td {
  flex: 1 1 100%;
}
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping td #shipping_method li label {
  width: 100%;
  display: inline;          /* let label sit right after the radio, not full-width */
  margin: 0;
}
#order_review #payment .payment_methods > .wc_payment_method > label, 
#order_review #payment .payment_methods > .woocommerce-PaymentMethod > label{
  color: #898A8D;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
#payment .payment_methods p{
  color: #898A8D;
  font-size: 16px;
}
.woocommerce-privacy-policy-text{
  color: #686A6D;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping td #shipping_method {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
#order_review .woocommerce-checkout-review-order-table tfoot tr.shipping td #shipping_method li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

#order_review .woocommerce-checkout-review-order-table tfoot th,
#order_review .woocommerce-checkout-review-order-table tfoot td {
  background: transparent;
  border: 0;
  padding: 12px 0;
}

#order_review .woocommerce-checkout-review-order-table tfoot .order-total th{
  color: #0B4650;
  font-family: "Archivo Expanded";
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: -0.25px;
  text-transform: uppercase;
}

#order_review .woocommerce-checkout-review-order-table tfoot td{
  color: #0B4650;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4; 
}
#order_review .woocommerce-checkout-review-order-table tfoot td strong{
  font-weight: 700;
}

#order_review .shop_table tr.shipping th{
  border:none;
}

#payment .payment_methods {
  border: 1px solid #D3D2D0;
  border-radius: 0;
}


/* ===== Checkout billing + shipping: arrange fields like the mockup ===== */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* gap handles spacing; kill theme margins + WooCommerce float widths */
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
  margin: 0;
  padding: 0;
  float: none;
  width: auto;
  max-width: none;
  box-sizing: border-box;
}

/* --- visual order --- */
#is_company_field          { order: 1; }
#cui_field                 { order: 2; }
#nume_firma_field          { order: 3; }
#reg_field                 { order: 4; }
#billing_first_name_field,
#shipping_first_name_field { order: 10; }
#billing_last_name_field,
#shipping_last_name_field  { order: 11; }
#billing_country_field,
#shipping_country_field    { order: 20; }
#billing_city_field,
#shipping_city_field       { order: 21; }
#billing_state_field,
#shipping_state_field      { order: 22; }
#billing_address_1_field,
#shipping_address_1_field  { order: 30; }
#billing_postcode_field,
#shipping_postcode_field   { order: 31; }
#billing_email_field       { order: 40; }
#billing_phone_field,
#shipping_phone_field      { order: 41; }

/* --- widths --- */
/* full-width rows */
#is_company_field,
#cui_field,
#nume_firma_field,
#reg_field,
#billing_address_1_field,
#shipping_address_1_field,
#billing_postcode_field,
#shipping_postcode_field,
#shipping_phone_field {           /* shipping has no email → phone full-width */
  flex: 0 0 100%;
}
/* halves */
#billing_first_name_field,
#shipping_first_name_field,
#billing_last_name_field,
#shipping_last_name_field,
#billing_email_field,
#billing_phone_field {            /* billing email|phone pair */
  flex: 0 0 calc((100% - 16px) / 2);
}
/* thirds: Țară | Oraș | Județ */
#billing_country_field,
#shipping_country_field,
#billing_city_field,
#shipping_city_field,
#billing_state_field,
#shipping_state_field {
  flex: 0 0 calc((100% - 32px) / 3);
}

/* select2 width safety */
#billing_country_field .select2-container,
#billing_state_field .select2-container,
#shipping_country_field .select2-container,
#shipping_state_field .select2-container {
  width: 100% !important;
}

.woocommerce-checkout #customer_details .form-row label,
#ship-to-different-address{
  color: #303336;
  font-size: 16px;
  font-weight: 500;
}

#ship-to-different-address{
  border:none;
  padding: 0;
}

input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], select, .select2-container--default .select2-selection--single{
  border-radius: 0;
  border: 1px solid #D3D2D0;
  box-shadow: none;
  color: #303336;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message, .woocommerce-noreviews, p.no-comments {
border-left: none;
border-radius: 0;
}

.checkout-inline-error-message{
  font-size: 12px;
  color: #e2401c;
}

.woocommerce-cart .cart-empty {
color: #082b31;
font-size: clamp(1.625rem, 0.8628rem + 2.439vw, 1.375rem);
}



/* thumbnail */
.cart_item .product-thumbnail img {
  width: 56px; height: 56px; object-fit: cover; margin: 0 auto;
  max-width: 100% !important;
}

table.cart tr td.product-name{
  width: 100%;
}

table.cart {
  margin-bottom: 0;
}

/* name + SKU */
.cart_item .product-name a,
.cg-checkout-table-product-name {
  font-weight: 700; text-transform: uppercase; color: #0B4650 !important;
  text-decoration: none; line-height: 1;

  font-size: 20px;
  font-style: normal;
}
.cart_item .product-name .cart-item-sku {
  display: block; margin-top: 3px;
  text-transform: none; color: #898A8D;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin-top:10px;
}

.cart_item .product-name .cart-item-attr {
  display: block;
  text-transform: none;
  color: #0B4650;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  padding-top:3px;
}
.cart_item .product-name .cart-item-attr .attr-label {
  font-weight: 400;
}

/* delete -> trash icon instead of × */
.cart_item .product-remove a.remove {
  display: inline-block; width: 24px; height: 24px;
  color: transparent !important; text-indent: -9999px; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7H20' stroke='%23686A6D' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 7L6 19C6 19.5304 6.21071 20.0391 6.58579 20.4142C6.96086 20.7893 7.46957 21 8 21H16C16.5304 21 17.0391 20.7893 17.4142 20.4142C17.7893 20.0391 18 19.5304 18 19L19 7' stroke='%23686A6D' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 7V4C9 3.73478 9.10536 3.48043 9.29289 3.29289C9.48043 3.10536 9.73478 3 10 3H14C14.2652 3 14.5196 3.10536 14.7071 3.29289C14.8946 3.48043 15 3.73478 15 4V7' stroke='%23686A6D' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 12L14 16M14 12L10 16' stroke='%23686A6D' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px no-repeat;
}

.cart_item .product-remove a.remove::before{
  display: none;
}

/* ---- Actions row -> "Continuă cumpărăturile" ---- */
.woocommerce-cart-form td.actions { display: block; padding: 20px 4px 0; border: 0; }
.woocommerce-cart-form td.actions .coupon { display: none; }               /* coupon lives in totals card */
.woocommerce-cart-form td.actions button[name="update_cart"] { display: none; } /* see note below */
.woocommerce-cart-form td.actions .continue-shopping {
  background: none; padding: 0; 
  color: #898A8D;
  font-size: 15px;
  font-weight: 700;
  line-height: 1; 
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.woocommerce-cart-form td.actions .continue-shopping::before { content: "‹ "; font-size: 11px; font-weight: 400; padding-right:5px;}

/* ---- Totals card tweaks ---- */
.cart_totals > h2 { display: none; }         /* hide "Total coș" heading */

/* ---- Checkout button: green -> lime, full width ---- */
.wc-proceed-to-checkout a.checkout-button,
#place_order,
.woocommerce-cart p.return-to-shop .button,
.woocommerce-form-login .button {
  color: #072B31 !important;
  text-align: center;
  font-family: "Archivo Expanded" !important;
  font-size: 12px !important;
  font-style: normal;
  font-weight: 800;
  line-height: 14px;
  text-transform: uppercase;
  border-radius: 0 !important;
  background: #E6FF2B;
}
.wc-proceed-to-checkout a.checkout-button:hover,
#payment .place-order .button:hover,
.woocommerce-cart p.return-to-shop .button:hover,
.woocommerce-form-login .button:hover { background: #E6FF2B; color: #072B31; }
.wc-proceed-to-checkout a.checkout-button::before,
#payment .place-order .button::before { display: none; } /* drop the lock icon */

/* ---- Similar products ---- */
.cart-related-products { margin-top: 40px; }
.cart-related-products > h2 {
  font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px;
}

.woocommerce-checkout .form-row.create-account{
  margin-top: 1.618em;
}


/* Password wrapper becomes the positioning context */
.woocommerce-checkout .password-input {
  position: relative;
  display: block;
}

/* Room for the icon so text doesn't run under it */
.woocommerce-checkout #account_password {
  padding-right: 44px;
}

/* The toggle button: transparent, inside the input on the right */
.woocommerce-checkout .password-input .show-password-input {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none !important;
  box-shadow: none;
  color: #0B4650;
  cursor: pointer;
  opacity: 0.7;
}

.woocommerce-checkout .password-input .show-password-input:hover,
.woocommerce-checkout .password-input .show-password-input:focus-visible {
  opacity: 1;
}

/* Kill WooCommerce's default icon-font glyph */
.woocommerce-checkout .password-input .show-password-input::before {
  content: none;
}

/* Eye icon */
.woocommerce-checkout .password-input .show-password-input::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  font-family: inherit;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>") center / contain no-repeat;
}

/* Eye-off icon while the password is visible */
.woocommerce-checkout .password-input .show-password-input.display-password::after {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/><path d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/><path d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/><line x1='1' y1='1' x2='23' y2='23'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/><path d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/><path d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/><line x1='1' y1='1' x2='23' y2='23'/></svg>");
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
    color: #303336;
    background: #ffffff;
    border: none;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a {
    color: #303336;
    text-decoration: underline;
    font-weight: bold;
}

.woocommerce-checkout .woocommerce-form-login {
    width: 100%;
    border: none;
    background: #ffffff;
}

form.checkout{
  padding: 0;
}



/* ============ THANK YOU PAGE ============ */

/* Layout: full-width rows, then order (left) + addresses (right) */
.maistor-thankyou-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  column-gap: 32px;
  align-items: start;
}
.maistor-thankyou-panel > * {
  grid-column: 1 / -1;
}
.maistor-thankyou-panel > .woocommerce-order-details {
  grid-column: 1;
}
.maistor-thankyou-panel > .woocommerce-customer-details {
  grid-column: 2;
}

/* White cards, same look as checkout */
.maistor-thankyou-panel .woocommerce-notice--success,
.maistor-thankyou-panel .woocommerce-order-overview,
.maistor-thankyou-panel > p,
.maistor-thankyou-panel .woocommerce-order-details,
.maistor-thankyou-panel .woocommerce-customer-details {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 32px;
}

/* Kill Shoptimizer's "paper" corner on the order card */
.maistor-thankyou-panel .woocommerce-order-details::before,
.maistor-thankyou-panel .woocommerce-order-details::after {
  display: none;
}

/* Success notice → white bar like "Ești client care se întoarce?" */
.maistor-thankyou-panel .woocommerce-notice--success {
  padding: 18px 24px;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: #0B4650 !important;
}

/* "Plătește cu numerar la livrare." */
.maistor-thankyou-panel > p {
  padding: 16px 24px;
  font-size: 14px;
  color: #303336;
}

/* Overview row: Număr comandă, Dată, Email, Total, Metodă */
.maistor-thankyou-panel .woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 32px;
  list-style: none;
  text-align: left;
}
.woocommerce-order .maistor-thankyou-panel ul.order_details li {
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #686A6D;
  font-family: "Archivo Expanded";
  font-weight: 900;
}
.woocommerce-order .maistor-thankyou-panel ul.order_details li strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #0B4650;
}

/* Card padding */
.maistor-thankyou-panel .woocommerce-order-details,
.maistor-thankyou-panel .woocommerce-customer-details {
  padding: 32px;
}

/* Card headings, like "DETALII PENTRU FACTURARE" / "COMANDA TA" */
.maistor-thankyou-panel .woocommerce-order-details__title,
.maistor-thankyou-panel .woocommerce-column__title {
  margin: 0 0 24px;
  color: #0B4650;
  font-family: "Archivo Expanded";
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: -0.25px;
  text-transform: uppercase;
}

/* ---- Order table ---- */
.maistor-thankyou-panel .order_details thead {
  display: none;
}
.maistor-thankyou-panel .order_details {
  border: 0;
  margin: 0;
}
.maistor-thankyou-panel .order_details tbody td {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #D3D2D0;
  vertical-align: top;
}
.maistor-thankyou-panel .order_details .product-name a {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #0B4650;
}
.maistor-thankyou-panel .order_details .product-quantity {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #686A6D;
}
.maistor-thankyou-panel .order_details .product-total {
  text-align: right;
  color: #0B4650;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

/* "Dimensiune: 160 mm" */
.maistor-thankyou-panel .wc-item-meta {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 13px;
  color: #0B4650;
}
.maistor-thankyou-panel .wc-item-meta-label {
  font-weight: 400;
}
.maistor-thankyou-panel .wc-item-meta p {
  display: inline;
  margin: 0;
  font-weight: 700;
}

/* ---- Totals ---- */
.maistor-thankyou-panel .order_details tfoot th,
.maistor-thankyou-panel .order_details tfoot td,
.maistor-thankyou-panel .order_details tfoot tr:last-child th,
.maistor-thankyou-panel .order_details tfoot tr:last-child td {
  padding: 8px 0;
  border: 0;
  vertical-align: top;
  color: #898A8D;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.maistor-thankyou-panel .order_details tfoot td {
  text-align: right;
}
.maistor-thankyou-panel .order_details tfoot tr:first-child th,
.maistor-thankyou-panel .order_details tfoot tr:first-child td {
  padding-top: 24px;
}
/* Total row */
.maistor-thankyou-panel .order_details tfoot tr:has(.includes_tax) th {
  padding-top: 16px;
  border-top: 1px solid #D3D2D0;
  color: #0B4650;
  font-family: "Archivo Expanded";
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: -0.25px;
  text-transform: uppercase;
}

.maistor-thankyou-panel .order_details tfoot tr:has(.includes_tax) td {
  padding-top: 16px;
  border-top: 1px solid #D3D2D0;
  color: #0B4650;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.maistor-thankyou-panel .order_details tfoot small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #686A6D;
}

.woocommerce-order-received .woocommerce-order-details table.woocommerce-table--order-details td .includes_tax{
  display: none;
}

/* ---- Addresses: stacked in the right card ---- */
.maistor-thankyou-panel .woocommerce-customer-details .col2-set {
  display: flex;
  flex-direction: column;
}
.maistor-thankyou-panel .woocommerce-customer-details .col2-set .col-1,
.maistor-thankyou-panel .woocommerce-customer-details .col2-set .col-2 {
  float: none;
  flex: none;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
  .maistor-thankyou-panel {
    grid-template-columns: 1fr;
  }
  .maistor-thankyou-panel > .woocommerce-order-details,
  .maistor-thankyou-panel > .woocommerce-customer-details {
    grid-column: 1;
  }
  .maistor-thankyou-panel .woocommerce-order-details,
  .maistor-thankyou-panel .woocommerce-customer-details {
    padding: 24px 20px;
  }
}

@media (min-width: 993px) {
   .col-full-nav {
      border: 0;
   }

   .woocommerce-breadcrumb {
      padding-top: 24px;
      padding-bottom: 24px;
   }
   ul.products li.product:not(.product-category)::before{
      box-shadow: none;
   }
   
   .woocommerce-checkout #customer_details{
     width: 65%;
     margin-right: 2%;
   }
   
   #customer_details + #wc_checkout_add_ons, #order_review, #order_review_heading {
     width: 33%;
   }
}

@media (max-width: 768px) {
   .maistor-cat-hero {
      grid-template-columns: 1fr;
   }
}

/* Stack to one column on small screens */
@media (max-width: 640px) {

   .formular-contact-left,
   .formular-contact-right {
      flex: 0 0 100%;
      max-width: 100%;
   }
   
   .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
   .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row {
     flex: 0 0 100% !important;
   }
}

/* ---- Cart items: table -> clean rows ---- */
@media (min-width: 600px) {
  .woocommerce-cart-form table.cart,
  .woocommerce-cart-form table.cart tbody { display: block; width: 100%; }

  .woocommerce-cart-form table.cart thead { display: none; }

  .woocommerce-cart-form table.cart tbody tr.cart_item {
    display: grid;
    grid-template-columns: 60px minmax(0,1fr) 130px 90px 30px;
    align-items: center;
    justify-items: end;
    column-gap: 20px;
    padding: 8px 0px;
  }
  .woocommerce-cart-form table.cart tbody tr.cart_item td {
    border: 0; padding: 0;
  }
  table.cart tr td.product-thumbnail{
    width: 60px;
  }

  /* reorder cells: thumb | name | qty | price | delete */
  .cart_item .product-thumbnail { order: 1; }
  .cart_item .product-name      { order: 2; }
  .cart_item .product-quantity  { order: 3; }
  .cart_item .product-subtotal  { order: 4; color: #0B4650;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;  }
  .cart_item .product-remove    { order: 5; text-align: right; }
  .cart_item .product-price     { display: none; } /* show line total only */
}