/* ==========================================================================
   Vergiotis: product card + product page layout, rebuilt to match the
   client's reference (www.electrocrete.gr). Brand color #386dac,
   pill-shaped CTA buttons. Loaded via custom.css (@import at the top).
   ========================================================================== */
:root {
    --vg-brand: #386dac;
    --vg-brand-dark: #2b558a;
    --vg-border: #e6e6e6;
    --vg-text: #363a41;
    --vg-muted: #7a7a7a;
    --vg-green: #2e8b3d;
}

/* --- Shared pill CTA ------------------------------------------------------- */
.vg-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-radius: 50px;
    background-color: var(--vg-brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
}
.vg-cta-btn:hover,
.vg-cta-btn:focus {
    background-color: var(--vg-brand-dark);
    color: #fff;
    text-decoration: none;
}
.vg-cta-btn:active {
    transform: translateY(1px);
}
.vg-cta-btn .material-icons {
    font-size: 20px;
    color: #fff;
}
.vg-cta-btn span {
    color: #fff;
}
.vg-cta-btn.disabled,
.vg-cta-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* --- Product card ---------------------------------------------------------- */
.vg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--vg-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.vg-card .tvproduct-image {
    padding: 14px;
}
.vg-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.vg-card-info .product-description {
    padding: 0 16px 12px;
    flex: 1;
}
/* Theme clamps grid titles to a single line (.tvproduct-wrapper.grid
   .product-title h6) - the reference wraps them over 2-3 lines. */
.tvproduct-wrapper.grid.vg-card .product-title h6,
.vg-card-info .tvproduct-name h6 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--vg-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
    white-space: normal;
}
.vg-card-buy {
    padding: 12px 16px 10px;
    border-top: 1px solid var(--vg-border);
    background: #fbfbfb;
}
.vg-card-availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--vg-green);
    margin-bottom: 4px;
}
.vg-card-availability .material-icons {
    font-size: 16px;
}
.vg-card-availability.is-last {
    color: #d98d1c;
}
.vg-card-availability.is-unavailable {
    color: #c0392b;
}
/* Theme makes .product-price-and-shipping inline-block, which defeats
   text-align on the parent - force block so the price sits at the right. */
#products .vg-card .vg-card-price,
.featured-products .vg-card .vg-card-price,
.tvproduct-wrapper.grid.vg-card .vg-card-price,
.vg-card-price {
    display: block;
    width: 100%;
    text-align: right;
    margin-bottom: 10px;
    line-height: 1.1;
}
.vg-card-price .price {
    font-size: 22px;
    font-weight: 700;
    color: var(--vg-brand);
}
.vg-card-price .regular-price {
    font-size: 13px;
    color: var(--vg-muted);
    text-decoration: line-through;
    margin-right: 8px;
}
.vg-card-add-to-cart-form {
    margin: 0;
}
.vg-card-installments {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--vg-brand);
}
.vg-card-footer {
    padding: 8px 16px;
    border-top: 1px solid var(--vg-border);
}
/* The theme styles .tvcompare-wrapper as a hover-overlay icon (inline-block,
   translateY(-30px), slide-in on hover). Undo that for the footer copy. */
.tvproduct-wrapper.grid.vg-card .vg-card-footer .tvcompare-wrapper,
.tvproduct-wrapper.grid.vg-card:hover .vg-card-footer .tvcompare-wrapper,
.vg-card-footer .tvcompare-wrapper {
    display: block;
    margin: 0;
    transform: none;
    transition: none;
    background: none;
}
/* On listings the compare module renders
   <div class="tvproduct-compare tvcmsproduct-compare-btn tvproduct-compare-icon">
     <svg .add/> <svg .remove/> <span>Add To Compare</span>
   </div>
   and the theme styles .tvproduct-compare-icon as a 60x50 white hover
   box with white text. Reset that and render it as "(icon) ΣΥΓΚΡΙΣΗ". */
.tvproduct-wrapper.vg-card .vg-card-footer .tvproduct-compare-icon,
.vg-card-footer .tvcmsproduct-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vg-text);
    cursor: pointer;
}
.vg-card-footer .tvcmsproduct-compare-btn > span {
    display: none;
}
.vg-card-footer .tvcmsproduct-compare-btn::after {
    content: "ΣΥΓΚΡΙΣΗ";
    color: var(--vg-text);
}
.tvproduct-wrapper.vg-card .vg-card-footer .tvproduct-compare-icon svg,
.vg-card-footer .tvcmsproduct-compare-btn svg {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 50%;
    background: #f1f1f1;
    box-sizing: border-box;
}
.vg-card-footer .tvcmsproduct-compare-btn svg.hide {
    display: none;
}
.vg-card-footer .tvcmsproduct-compare-btn svg path {
    fill: var(--vg-text);
}
/* The theme's own overlay/hover treatment for the cart icon isn't needed on
   this card any more - keep only the quick-view / wishlist icons there. */
.vg-card .tvproduct-hover-btn .tvproduct-cart-btn,
.vg-card .tvproduct-hover-btn .tvcompare-wrapper {
    display: none !important;
}

/* --- Product page (tv-product-4) ------------------------------------------- */
/* Brand logo above the title (the theme pins .tvproduct-brand absolutely
   to the right of the title as a 40px thumb). */
.vg-pdp-brand {
    margin-bottom: 10px;
}
.vg-pdp-brand a,
.vg-pdp-brand a.tvproduct-brand {
    position: static;
    display: inline-block;
    width: auto;
    right: auto;
    top: auto;
}
.vg-pdp-brand img {
    max-height: 48px;
    width: auto;
    height: auto;
}
.vg-pdp-brand-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vg-brand);
}
.tvproduct-title-brandimage {
    position: static;
}
.vg-pdp-title.h1 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--vg-text);
}
.vg-pdp-short-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}
.vg-pdp-reference {
    font-size: 13px;
    margin-bottom: 14px;
}
.vg-pdp-reference .label {
    font-weight: 700;
    color: var(--vg-text);
}
.vg-pdp-divider {
    border-top: 1px solid var(--vg-border);
    margin: 14px 0;
}
.vg-pdp-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.vg-pdp-actions-row .tvcmsproduct-compare-btn,
.vg-pdp-actions-row .tvproduct-print-page {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vg-text);
    background: none;
    border: 0;
    cursor: pointer;
}
.vg-pdp-actions-row .tvcmsproduct-compare-btn::after {
    content: "ΣΥΓΚΡΙΣΗ";
}
.vg-pdp-actions-row .tvcmsproduct-compare-wrapper-icon,
.vg-pdp-actions-row .tvproduct-print-page .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 18px;
}
.vg-pdp-actions-row .tvproduct-print-page span {
    color: var(--vg-text);
}
.vg-pdp-features {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
.vg-pdp-features td {
    padding: 5px 0;
    vertical-align: top;
}
.vg-pdp-features td:first-child {
    color: var(--vg-brand);
    width: 45%;
    padding-right: 10px;
}
.vg-pdp-features td:last-child {
    color: var(--vg-text);
}
.vg-pdp-side {
    border: 1px solid var(--vg-border);
    border-radius: 12px;
    background: #fff;
    padding: 18px 16px;
    position: sticky;
    top: 20px;
}
.vg-pdp-side-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--vg-muted);
    margin-bottom: 4px;
}
.vg-pdp-side-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.vg-pdp-side .product-prices {
    margin: 0;
}
.vg-pdp-side .product-prices .price,
.vg-pdp-side .product-prices .current-price,
.vg-pdp-side .product-prices .current-price span:first-child {
    font-size: 26px;
    font-weight: 700;
    color: var(--vg-brand);
    line-height: 1.1;
}
.vg-pdp-side .product-quantity {
    display: block;
    margin: 0;
}
.vg-pdp-side .product-quantity .control-label {
    display: none;
}
.vg-pdp-side .product-quantity .qty {
    margin: 0;
}
/* Quantity stepper as "− 1 +" on one line (the theme's TouchSpin stacks the
   two buttons vertically next to the input). display:contents lifts the two
   buttons out of their wrapper so they can sit on either side of the input. */
.vg-pdp-side .product-quantity .bootstrap-touchspin {
    display: flex;
    align-items: stretch;
    width: 110px;
    border: 1px solid var(--vg-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.vg-pdp-side .product-quantity .bootstrap-touchspin .input-group-btn-vertical {
    display: contents;
}
.vg-pdp-side .product-quantity .bootstrap-touchspin .bootstrap-touchspin-prefix,
.vg-pdp-side .product-quantity .bootstrap-touchspin .bootstrap-touchspin-postfix {
    display: none !important;
}
.vg-pdp-side .product-quantity .bootstrap-touchspin #quantity_wanted {
    order: 2;
    flex: 1;
    width: 36px;
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 0;
    background: none;
    text-align: center;
    font-weight: 700;
    color: var(--vg-text);
    box-shadow: none;
}
.vg-pdp-side .product-quantity .bootstrap-touchspin .btn-touchspin {
    height: 38px;
    width: 34px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--vg-text);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vg-pdp-side .product-quantity .bootstrap-touchspin .bootstrap-touchspin-down {
    order: 1;
}
.vg-pdp-side .product-quantity .bootstrap-touchspin .bootstrap-touchspin-up {
    order: 3;
}
.vg-pdp-side .product-quantity .bootstrap-touchspin .btn-touchspin i {
    font-size: 18px;
    line-height: 1;
}
.vg-pdp-side .product-add-to-cart .add-to-cart {
    margin-top: 14px;
}
/* Availability as plain green text (theme's #product-availability is a
   grey pill with white text - the ID selector needs matching). */
#product-availability.vg-pdp-side-availability,
.vg-pdp-side-availability {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 14px;
    padding: 0;
    background: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--vg-green);
}
#product-availability.vg-pdp-side-availability .material-icons {
    display: inline-flex;
    font-size: 16px;
    line-height: 1;
    color: inherit;
}
.vg-pdp-side .vg-pdp-add-to-cart {
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: 12px;
    white-space: nowrap;
}
/* Theme draws its own dashed separator above the actions block; we already
   have .vg-pdp-divider lines around it. */
.vg-pdp-main .tv-product-page-content .tvproduct-special-desc,
.vg-pdp-main .tvproduct-special-desc {
    border-top: 0;
    padding-top: 0;
}
.vg-pdp-main .product-actions:empty,
.vg-pdp-main .tvproduct-special-desc:empty {
    display: none;
}
#product-availability.vg-pdp-side-availability.is-unavailable {
    color: #c0392b;
}
#product-availability.vg-pdp-side-availability.is-last {
    color: #d98d1c;
}
/* Price block inside the buy box */
.vg-pdp-side .product-prices .tvproduct-tax-label {
    font-size: 11px;
    color: var(--vg-muted);
    text-transform: uppercase;
    margin-top: 2px;
}
.vg-pdp-side .product-prices .tax-shipping-delivery-label {
    font-size: 11px;
    color: var(--vg-muted);
    margin-top: 4px;
}
.vg-pdp-side .product-prices .product-discount .regular-price {
    font-size: 13px;
    color: var(--vg-muted);
    text-decoration: line-through;
}
.vg-pdp-side .product-prices .discount {
    font-size: 11px;
    font-weight: 700;
    color: #c0392b;
}
/* Sticky add-to-cart bar (an_stickyaddtocart) - same brand pill as the
   other CTAs; on mobile this is the only buy button on the page. */
.an_stickyAddToCart .js-an_stickyAddToCart-add-to-cart,
.an_stickyAddToCart .js-an_stickyAddToCart-add-to-cart.btn-primary {
    background-color: var(--vg-brand);
    border-color: var(--vg-brand);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.an_stickyAddToCart .js-an_stickyAddToCart-add-to-cart:hover,
.an_stickyAddToCart .js-an_stickyAddToCart-add-to-cart:focus {
    background-color: var(--vg-brand-dark);
    border-color: var(--vg-brand-dark);
    color: #fff;
}
.an_stickyAddToCart .js-an_stickyAddToCart-add-to-cart[disabled] {
    opacity: .5;
}

/* The sidebar is desktop only. On smaller screens the sticky add-to-cart bar
   (an_stickyaddtocart) takes over the buy action, and the payment box is
   shown under the combinations instead (.vg-pdp-payment-mobile). */
.vg-pdp-payment-mobile {
    display: none;
}
@media (max-width: 991px) {
    .vg-pdp-side {
        display: none;
    }
    .vg-pdp-payment-mobile {
        display: block;
    }
}
