/* Custom code goes here - paste your css code below in line 3 */

/* Poppins font - served locally */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Poppins-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Poppins-SemiBold.woff2') format('woff2');
}

/* Home categories - reserve space for images */
#home_categories .catimg_container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
#home_categories .catimg_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reserve height for home_categories section */
#home_categories ul.row {
    min-height: 280px;
}

.form-group.row.shipping_address_customer_type_invoice {
    display: none;
}

/* For Shipping Address */
.form-group.row.shipping_address_vat_number {
    display: none;
}

div.form-group.row label.col-md-12.form-control-label {
    width: initial;
}

/* Qty */
.bootstrap-touchspin {
    width: initial !important;
    }


#home_categories .homecat_title span {
    
    border-bottom: 3px solid #1b82d6;
    margin-bottom: -1px;
    margin-top: 30px;
    }

.products-section-title {
    margin-top: 30px;
    border-bottom: 5px solid black;
}

#angarbanners_home {
    margin-top: 40px;
}

button.btn.add-to-cart[data-button-action="add-to-cart"]:disabled {
    background: rgb(134, 148, 161);
    border-color: rgb(134, 148, 161);
}

div#angarinfo_block {
    border-top: 5px solid black;
}

label[for="use_another_address_for_invoice"] {
    /* Your styles here */
    font-size: 16px;
    font-weight: bold !important; 
}

.desc_block table td {
    padding: 20px;
    vertical-align: top;
}

.block-categories {
    width: 278px;
}

#_desktop_logo .logo {
    width: 100%;
    height: auto;
    max-width: 300px;
}

#angarbanners_left > ul > li > div {
    width: 270px;
    height: 190px;
}

/* Category tree - always open, no growers */
.block-categories li li ul {
    display: block !important;
}
.block-categories li span.grower {
    display: none !important;
}


/* Show wishlist heart on product listings only on hover */
.products .wishlist-button-add {
    opacity: 0;
    transition: opacity 0.2s;
}
.products .product-miniature:hover .wishlist-button-add {
    opacity: 1;
}


/* Inline product image zoom */
.product-cover {
    overflow: hidden;
    cursor: zoom-in;
}
.product-cover .js-qv-product-cover {
    transform-origin: center center;
    will-change: transform;
}

/* Fix subimage hover flicker on first load */
.products .product-miniature .thumbnail-container {
    position: relative;
}

/* ── Checkout: account type options — uses CSS vars from head.tpl ── */
ul.type-checkout-options {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 15px !important;
  list-style: none;
  margin: 0 0 18px !important;
}
ul.type-checkout-options li {
  display: block !important;
  margin: 0 !important;
}
ul.type-checkout-options li:nth-child(1),
ul.type-checkout-options li:nth-child(2) {
  flex: 1 1 calc(50% - 3px);
}
ul.type-checkout-options li:nth-child(3) {
  flex: 1 1 100%;
}
ul.type-checkout-options li label {
  display: block !important;
  text-align: center;
  padding: 10px 12px !important;
  margin: 0 !important;
  border: 2px solid var(--opc-color3) !important;
  border-radius: 0;
  background: #fff;
  color: var(--opc-color2) !important;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  line-height: 16px;
  position: relative;
}
ul.type-checkout-options li label:hover {
  background: #f0f7f8;
  border-color: var(--opc-color2) !important;
  color: var(--opc-color2) !important;
}
ul.type-checkout-options li label:has(input:checked),
ul.type-checkout-options li label.opc-tab-active {
  background: var(--opc-color2) !important;
  border-color: var(--opc-color2) !important;
  color: #fff !important;
}
ul.type-checkout-options li label span {
  color: inherit !important;
}
ul.type-checkout-options li label .opc-hint {
  display: block;
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .7;
  margin-top: 2px;
}
ul.type-checkout-options li label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Checkout: place order button larger */
#ets_onepagecheckout button[name="submitCompleteMyOrder"] {
  font-size: 16px;
  padding: 16px 40px;
  width: 100%;
  max-width: 400px;
  letter-spacing: .5px;
}

.products .product-miniature .thumbnail-container img.subimage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
 * Sameday EasyBox — checkout styling (locker picker + hint)
 * Scoped to the OPC shipping block to avoid bleeding elsewhere.
 * ========================================================= */
.block-onepagecheckout.block-shipping .carrier-extra-content {
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid #e6ecef;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    margin-top: -1px;
    text-align: center;
    overflow: hidden; /* contain any floated children from vendor template */
}
.block-onepagecheckout.block-shipping .carrier-extra-content:after {
    content: "";
    display: block;
    clear: both;
}
/* Vendor template uses Bootstrap grid (col-sm-2 label + col-sm-8 button).
 * Reset that layout to a clean centered stack. */
.block-onepagecheckout.block-shipping .carrier-extra-content .ets-opc-label,
.block-onepagecheckout.block-shipping .carrier-extra-content .ets-opc-button {
    float: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: center;
}
.block-onepagecheckout.block-shipping .carrier-extra-content .ets-opc-label {
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
}
/* Vendor template sets inline display:inline-block on the wrapper div
 * holding the hidden inputs and #showLockerDetails — break out to block
 * so #showLockerDetails appears under the button, not beside it. */
.block-onepagecheckout.block-shipping .carrier-extra-content .ets-opc-button > div {
    display: block !important;
}

.block-onepagecheckout.block-shipping #showLockerMap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1b82d6;
    color: #fff !important;
    border: 0;
    border-radius: 3px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.block-onepagecheckout.block-shipping #showLockerMap:hover {
    background: #1569b3;
    box-shadow: 0 2px 6px rgba(27, 130, 214, .35);
}
.block-onepagecheckout.block-shipping #showLockerMap:active {
    transform: translateY(1px);
}
.block-onepagecheckout.block-shipping #showLockerMap:before {
    content: "\f041"; /* fa-map-marker (FA4) */
    font-family: "FontAwesome";
    font-size: 15px;
    line-height: 1;
}

.block-onepagecheckout.block-shipping #showLockerDetails {
    margin-top: 10px;
    padding: 10px 12px 10px 38px;
    position: relative;
    background: #eaf6ee;
    border-left: 3px solid #2ecc71;
    border-radius: 3px;
    color: #1d6b3a;
    font-size: 13px;
    line-height: 1.5;
}
.block-onepagecheckout.block-shipping #showLockerDetails:before {
    content: "\f00c"; /* fa-check */
    font-family: "FontAwesome";
    position: absolute;
    left: 14px;
    top: 12px;
    color: #2ecc71;
    font-size: 14px;
    line-height: 1;
}
.block-onepagecheckout.block-shipping #showLockerDetails:empty {
    display: none !important;
}

#sameday-locker-required-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px !important;
    padding: 10px 14px;
    background: #fff8e6;
    border: 0;
    border-left: 3px solid #f0ad4e;
    border-radius: 3px;
    color: #7a5a1e;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}
#sameday-locker-required-hint:before {
    content: "\f071"; /* fa-exclamation-triangle */
    font-family: "FontAwesome";
    font-size: 18px;
    color: #f0ad4e;
    flex: 0 0 auto;
    line-height: 1;
}
#sameday-locker-required-hint.alert-danger {
    background: #fdecea;
    border-left-color: #d9534f;
    color: #8a201d;
    animation: samedayHintPulse .8s ease;
}
#sameday-locker-required-hint.alert-danger:before {
    color: #d9534f;
}
@keyframes samedayHintPulse {
    0%   { box-shadow: 0 0 0 0 rgba(217, 83, 79, .35); }
    70%  { box-shadow: 0 0 0 10px rgba(217, 83, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0); }
}

@media (max-width: 575px) {
    .block-onepagecheckout.block-shipping #showLockerMap {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
 * Terms & Conditions checkbox highlight (when user submits
 * without ticking it). Strong but not garish: red border,
 * soft red background, a short pulse to grab attention.
 * ========================================================= */
.opc-tc-highlight {
    background: #fdecea !important;
    border: 2px solid #d9534f !important;
    border-radius: 4px;
    padding: 10px 14px !important;
    margin: 6px 0 !important;
    box-shadow: 0 0 0 0 rgba(217, 83, 79, .45);
    animation: opcTcPulse 1.2s ease-in-out 2;
    position: relative;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.opc-tc-highlight:after { /* clear vendor float layout */
    content: "";
    display: block;
    clear: both;
    width: 0;
    height: 0;
}
.opc-tc-highlight .float-xs-left {
    float: none !important;
}
.opc-tc-highlight .condition-label {
    flex: 1 1 auto;
    min-width: 0;
}
.opc-tc-highlight label,
.opc-tc-highlight a {
    color: #8a201d !important;
}
.opc-tc-highlight .ets_checkbox {
    box-shadow: 0 0 0 3px rgba(217, 83, 79, .35);
}
/* Friendly explanation message appended inside the highlighted row. */
.opc-tc-highlight:before {
    content: "Aproape gata! Pentru a putea finaliza comanda, bifează căsuța de mai sus. Așa confirmi că ești de acord cu termenii și condițiile și putem începe pregătirea pachetului tău.";
    order: 99; /* push below the flex children */
    flex: 1 0 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(217, 83, 79, .35);
    color: #8a201d;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}
@keyframes opcTcPulse {
    0%   { box-shadow: 0 0 0 0 rgba(217, 83, 79, .55); }
    60%  { box-shadow: 0 0 0 14px rgba(217, 83, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 83, 79, 0); }
}
