/* Common rules */
#product-addtocart-button.tocart {background-color: #136229; border-color: #136229;}
#product-addtocart-button.tocart:hover {background-color: #000; border-color:#000;}
button.green-button {background-color: #136229!important; border-color: #136229!important;}
.red-link {color:#e21e1f!important;}
.text-green {color:#4ab96d;}
.mt-25 {margin-top:25px;}
.mb-50 {margin-bottom:50px;}

/* Login */
#partners_login_links {display:flex; flex-direction: column; gap: 12px; -ms-flex-align: center;}
#partners_login_links button.partner-login {padding:20px;}

/* Promo Banner */
.romik-promo-banner {
    width: 100%;
    background-color: #ffffff;
    padding: 30px 0;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.romik-promo-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.romik-promo-main-image {
  width: 100%;
}

.romik-shortdesc-banner {
  margin-top: 20px;
}

.romik-shortdesc-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.romik-promo-grid {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.romik-promo-grid-item {
  flex: 0 0 calc(50% - 8px);
  background: #fff;
}

.romik-promo-truck-grid {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.romik-promo-truck-grid-item {
  background: #fff;
}

.romik-promo-truck-grid-item-full {
  flex: 0 0 100%;
}

.romik-promo-truck-grid-item-half {
  flex: 0 0 calc(50% - 8px);
}

@media (max-width: 991px) {
  .romik-promo-grid {
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .romik-promo-grid-item {
    flex-basis: 100%;
  }

  .romik-promo-truck-grid-item-full {
    flex-basis: 100%;
  }

  .romik-promo-truck-grid-item-half {
    flex-basis: 100%;
  }
}

/* Price */
.old-price, .old-price .price {color: #a1a1a1; font-size: 15px;}
.product-item .price-box .price-label, .special-price .price-label {position:relative; color:#e21e1f;}
.product-info-price .price-box .old-price .price-label 
{
	display: none!important;
}
.special-price .price-label {color: #28a745; font-weight:bold; font-size:23px; display: inline-block!important;}
.product-info-main .product-info-price .special-price .price-label::after {
  content: "";
}
.special-price .price {
	color: #e21e1f!important;
}
.price-save-message {
    width: auto;
    font-weight: bold;
    margin: 8px;
    display: inline-block;
    background-color: #28a745 !important;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    flex-basis: 100%;
}

/* Header */
.modal-popup h2 {font-size:30px!important;}
#finder-desktop-wrapper, #finder-sticky-wrapper {width:100%; margin-top:20px;}
#finder-mobile-wrapper {width:100%; margin:10px auto;}
#open-amfinder-popup, #open-amfinder-popup-sticky, #open-amfinder-popup-mobile {font-size:1.5em; background-color: #c8081b; color:#fff;}
#open-amfinder-popup, #open-amfinder-popup-sticky {transition: none !important;}
.amfinder-common-wrapper .amfinder-select {
	background-color: #fff;
	font-size: 20px;
	height: 50px;
}
.amfinder-vertical .dropdown-element {
	margin: 20px 0;
}

@media only screen and (min-width: 768px)
{
  .sticky-menu.js-sticky-menu #finder-desktop-wrapper {display:inline-block;}
  .sticky-menu.js-sticky-menu #finder-sticky-wrapper {display: none;}
  .sticky-menu.js-sticky-menu.active #finder-desktop-wrapper {display:none;}
  .sticky-menu.js-sticky-menu.active #finder-sticky-wrapper {display: inline-block;}

  .page-header .header-middle a.logo {left:160px;}
  .page-header .header-middle .header-panel-container {width:1600px;}
  .page-header .sticky-menu:not(.active) .header-bottom {
	  border-top: 4px solid #c8081b;
  }
}

/* Search bar */
.searchsuite-autocomplete  .special-price .price-label {font-size: inherit;}

/* Cms page */
.cms-custom-form .banner {margin: 0 0 30px 0;}
.wrapper-adv-style-05 a.item-title {
	background: #c8081b;
	color: #ffffff;
	border-radius: 0;
}
.wrapper-adv-style-05 .item:hover a.item-title 
{
	background: #000000;
	color: #ffffff;
}
.wrapper-adv-style-05 .item a.item-title:visited {
	color: #ffffff;
}

/* Product page */
.product-view-style-04 .product-info-main .box-tocart .actions .action.primary.tocart {text-align: center; width: 100% !important;}
.product-view-style-04 .product-info-main .product-info-stock-sku .stock.available::before {color: #4ab96d !important;}
.product-view-style-04 .product-info-main .price-box + .product-info-main-inner .product-reviews-summary {
    position:relative!important; top:0!important;
}
.product-view-style-04 .product-info-main .price-box {padding:0!important;}

/* Price box alignment */
.price-box.price-final_price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.price-box.price-final_price > * {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-wrapper .price-box.price-final_price {
  display: flex;
  align-items: center;
  gap: 12px;
  vertical-align: middle !important;
}
.product-main-wrapper .price-save-message {flex-basis: auto;}
@media (max-width: 767px) {
  .product-main-wrapper .price-box.price-final_price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
}
.payment-title {margin:10px auto;}
.trust-badges-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 30px;
    margin-top: 18px;
}
/* Specific por Partners, login button */
#header-top {
	display: flex;
	flex-flow: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
}
#header-top p {
	margin: 0!important;
}

.partners-home-content {background: #f6f6f6; padding:20px;}
.partners .b-title.h2.b-title-equal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 32px 24px;
    box-sizing: border-box;
    border-radius: 8px;
    font-weight: 600;
    color: #000;
}
@media (max-width: 767px) {
    .partners .b-title.h2.b-title-equal {
        min-height: 60px;
        padding: 16px 8px;
        font-size: 1em;
        line-height: 1.2;
        word-break: break-word;
    }
    .partners-home-content {
        padding: 20px 8px;
    }
}

/* Amasty checkout */
@media (min-width: 768px) {
  .amcheckout-main-container.-layout-3columns {display:flex;}
  .amcheckout-main-container.-layout-3columns div.amcheckout-column {width:33%; padding:10px;}
}

.row.amcheckout-method {width:100%!important;}
.amcheckout-step-container .amcheckout-summary-container .product-item .product {
	margin-bottom: 15px;
}
div.amcheckout-block.amcheckout-step-container.-summary {background: #fff;}
.amcheckout-step-container .amcheckout-additional-options {
  background: #fff;
	border: 1px solid #fff;
}
button.action.primary.checkout.amasty {margin:20px;}
.amcheckout-summary-container {background-color: #fff; border:none;}
.amsl-social-login .amsl-buttons {gap:10px;}
.amsl-socials-checkout .amsl-buttons > .amsl-button-wrapper {width:auto; height: auto;}
.amsl-socials-checkout .amsl-buttons {flex-direction: column; gap:10px; padding:50px!important;}
.amsl-socials-checkout .amsl-button {font-size:10px;}
.amcheckout-step-container .amcheckout-summary-container .minicart-items .product-image-container {width:77px!important;}
.minicart-items .product-image-wrapper {width:75px!important;}

.gpay-button.black.long.en, .gpay-button.black.buy.en {
	background-color: black;
	background-repeat: no-repeat;
	background-position: center;
}

#rootways_authorizecim_option_cc_cid {width:100px;}

/* Amasty reviews, fancybox */
.fancybox-slide .fancybox-image-wrap {background-color: #fff;}

/* Amasty Store locator - fix elongated logos */
.amlocator-store-desc .amlocator-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 150px !important;
  margin-right: 15px;
  min-width: 150px;
  width: 150px;
}

/* Cargo Availability Box */
.cargo-availability-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-align: center;
}

.cargo-availability-box .cargo-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}

.cargo-availability-box .cargo-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cargo-availability-box .cargo-label {
  font-size: 13px;
  font-weight: 600;
  color: #136229;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

@media (max-width: 767px) {
  .cargo-availability-box .cargo-image {
    width: 60px;
    height: 60px;
    margin-bottom: 6px;
  }
  
  .cargo-availability-box .cargo-label {
    font-size: 12px;
  }
}

/* Google Reviews Widget */
.google-reviews-title {
    position: relative;
}
.google-reviews-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
    border-radius: 2px;
}
.google-reviews-title .google-badge {
    opacity: 0.7;
}
.google-reviews-widget {
    position: relative;
    overflow: hidden;
    padding: 10px 0 20px;
    background: linear-gradient(to bottom, rgba(66,133,244,0.02) 0%, transparent 100%);
    border-radius: 8px;
}
.grw-loading {
    text-align: center;
    color: #888;
    padding: 30px 0;
}
.grw-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.grw-header-stars { color: #f5a623; font-size: 22px; letter-spacing: 2px; }
.grw-header-score { font-size: 2rem; font-weight: 700; line-height: 1; }
.grw-header-meta  { color: #666; font-size: 0.9rem; }
.grw-header-meta a { color: #4285F4; text-decoration: none; }
.grw-header-meta a:hover { text-decoration: underline; }
.grw-track-wrap {
    position: relative;
}
.grw-track {
    display: flex;
    transition: transform .4s ease;
    will-change: transform;
}
.grw-card {
    flex: 0 0 calc(33.333% - 16px);
    margin: 0 8px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 3px solid #4285F4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (max-width: 991px) {
    .grw-card { flex: 0 0 calc(50% - 16px); }
}
@media (max-width: 600px) {
    .grw-card { flex: 0 0 calc(100% - 16px); }
}
.grw-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.grw-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.grw-author { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.grw-date   { font-size: 0.78rem; color: #999; }
.grw-stars  { color: #f5a623; font-size: 16px; letter-spacing: 1px; }
.grw-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
    flex: 1;
}
.grw-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grw-google-logo {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}
.grw-google-logo svg { width: 60px; opacity: .5; }
.grw-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.grw-btn {
    background: none;
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 36px; height: 36px;
    cursor: pointer;
    font-size: 16px;
    transition: border-color .2s, color .2s;
    display: flex; align-items: center; justify-content: center;
}
.grw-btn:hover { border-color: #333; color: #333; }
.grw-error { color: #c00; font-size: 0.9rem; text-align: center; padding: 20px; }

/* Product reviews moved outside tabs */
.romik-reviews-wrapper,
.romik-reviews-wrapper .amreview-submit-form {
  background-color: #fff !important;
}

.romik-reviews-wrapper {
  padding: 24px;
  margin-bottom: 50px;
}

/* Product gallery thumbnails as grid (Fotorama) */
@media (min-width: 1024px) {
  .catalog-product-view .product.media .fotorama__nav-wrap--horizontal .fotorama__nav--thumbs {
    width: 100% !important;
    height: auto !important;
  }

  .catalog-product-view .product.media .fotorama__nav-wrap--horizontal .fotorama__nav__shaft {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    white-space: normal !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-product-view .product.media .fotorama__nav-wrap--horizontal .fotorama__nav__frame {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .catalog-product-view .product.media .fotorama__nav-wrap .fotorama__img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100% !important;
    transform: translate(-50%, -50%);
  }

  .catalog-product-view .product.media .fotorama__nav-wrap--horizontal .fotorama__thumb-border {
    display: none !important;
  }

  .catalog-product-view .product.media .fotorama__nav-wrap--horizontal .fotorama__thumb {
    border: 1px solid #d9d9d9;
    box-sizing: border-box;
  }

  .catalog-product-view .product.media .fotorama__nav-wrap--horizontal .fotorama__nav__frame.fotorama__active .fotorama__thumb {
    border: 2px solid #f06d2f;
  }

  .catalog-product-view .product.media .fotorama__nav-wrap--horizontal .fotorama__arr {
    display: none !important;
  }
}