/*
 * PcRED theme — brand FO for PrestaShop Classic parent
 * Colors from pcred.pl: red #eb1d25 / hover #de1f26 / navy #152545 / accent #29abd2
 * Fonts: Barlow Condensed (display) + Source Sans 3 (body) — not Inter/Roboto
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --pcred-red: #eb1d25;
  --pcred-red-hover: #de1f26;
  --pcred-navy: #152545;
  --pcred-navy-deep: #0f1b36;
  --pcred-accent: #29abd2;
  --pcred-text: #3d3d3d;
  --pcred-muted: #6b7280;
  --pcred-surface: #f4f6f9;
  --pcred-font-display: "Barlow Condensed", "Segoe UI", sans-serif;
  --pcred-font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --pcred-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Base typography & atmosphere —— */
body,
.page-content {
  font-family: var(--pcred-font-body);
  color: var(--pcred-text);
  background:
    radial-gradient(1200px 480px at 8% -10%, rgba(235, 29, 37, 0.07), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(41, 171, 210, 0.08), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--pcred-surface) 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.product-title,
.page-header h1,
#products .h1,
.products-section-title,
.block-category .h1,
.cart-grid-body h1,
#checkout .h1 {
  font-family: var(--pcred-font-display);
  letter-spacing: 0.02em;
  color: var(--pcred-navy);
  font-weight: 600;
}

/* —— Links —— */
a {
  color: var(--pcred-red);
  transition: color 0.2s var(--pcred-ease);
}
a:hover,
#header a:hover,
#header .top-menu a[data-depth="0"]:hover,
.account-list a:hover,
.footer-container li a:hover {
  color: var(--pcred-navy);
}

/* —— Primary buttons —— */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--pcred-red);
  border-color: transparent;
  font-family: var(--pcred-font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--pcred-ease), transform 0.2s var(--pcred-ease);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--pcred-red-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: var(--pcred-red);
  opacity: 0.65;
  transform: none;
}

.btn-outline-primary {
  color: var(--pcred-red);
  background-image: none;
  background-color: transparent;
  border-color: var(--pcred-red);
  font-family: var(--pcred-font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  color: #fff;
  background-color: var(--pcred-red);
  border-color: var(--pcred-red);
}

.btn-link {
  color: var(--pcred-red);
}
.btn-link:hover {
  color: var(--pcred-navy);
}

/* —— Header / brand bar —— */
#header {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}
#header .header-nav {
  background: var(--pcred-navy);
  border-bottom: none;
  color: rgba(255, 255, 255, 0.85);
}
#header .header-nav a,
#header .header-nav .currency-selector,
#header .header-nav .language-selector,
#header .header-nav .user-info a,
#header .header-nav .cart-preview,
#header .header-nav .blockcart a {
  color: rgba(255, 255, 255, 0.9);
}
#header .header-nav a:hover,
#header .header-nav .blockcart a:hover {
  color: #fff;
}
#header .header-nav .cart-preview.active {
  color: #fff;
  background: transparent;
}
#header .header-top {
  border-bottom: 3px solid var(--pcred-red);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: #fff;
}
#header #_desktop_logo img,
#header .top-logo img {
  max-height: 58px;
  width: auto;
  transition: transform 0.35s var(--pcred-ease);
}
#header #_desktop_logo:hover img,
#header .top-logo:hover img {
  transform: scale(1.03);
}
#header .top-menu a[data-depth="0"] {
  font-family: var(--pcred-font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pcred-navy);
  font-size: 1.05rem;
}
#header .top-menu a[data-depth="0"].js-selected,
#header .top-menu a[data-depth="0"].current {
  color: var(--pcred-red);
}
#header .header-nav .material-icons,
#header .header-top .material-icons {
  vertical-align: middle;
}

/* —— Homepage atmosphere —— */
#index #content-wrapper,
#index .featured-products {
  position: relative;
}
#index .carousel,
#index .homeslider {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(21, 37, 69, 0.12);
}
#index .featured-products .products-section-title,
#index .products-section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
#index .featured-products .products-section-title::after,
#index .products-section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, var(--pcred-red), var(--pcred-accent));
}

/* Pattern strip under home modules */
#index #wrapper {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 246, 249, 0.95)),
    url("../img/categories-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* —— Product miniatures —— */
.product-miniature {
  transition: transform 0.3s var(--pcred-ease), box-shadow 0.3s var(--pcred-ease);
}
.product-miniature:hover {
  transform: translateY(-4px);
}
.product-miniature .thumbnail-container {
  border: 1px solid rgba(21, 37, 69, 0.08);
  background: #fff;
}
.product-miniature .product-title a {
  font-family: var(--pcred-font-display);
  color: var(--pcred-navy);
  font-weight: 600;
}
.product-miniature .product-title a:hover {
  color: var(--pcred-red);
}

/* —— Forms / focus —— */
.form-control:focus,
.search-widget form input[type=text]:focus,
.block_newsletter form input[type=text]:focus,
.block_newsletter form input[type=email]:focus,
.product-customization .product-message:focus,
.input-group.focus {
  outline: none;
  border-color: var(--pcred-navy);
  box-shadow: 0 0 0 0.15rem rgba(21, 37, 69, 0.15);
}
.custom-radio input[type=radio]:checked + span {
  background-color: var(--pcred-red);
}
.bootstrap-touchspin .group-span-filestyle .btn-touchspin,
.group-span-filestyle .btn-default {
  background-color: var(--pcred-navy);
  color: #fff;
}

/* —— Pagination / tabs / facets —— */
.page-item.active .page-link,
.page-item.active .page-link:focus,
.page-item.active .page-link:hover,
.pagination .current a {
  background-color: var(--pcred-navy);
  border-color: var(--pcred-navy);
  color: #fff;
}
.page-link {
  color: var(--pcred-navy);
}
.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link:hover {
  color: var(--pcred-red);
  border-bottom-color: var(--pcred-red);
}
.list-group-item.active,
.list-group-item.active:focus,
.list-group-item.active:hover,
.dropdown-item.active,
.dropdown-item.active:focus,
.dropdown-item.active:hover {
  background-color: var(--pcred-navy);
  border-color: var(--pcred-navy);
  color: #fff;
}
.dropdown-item:focus,
.dropdown-item:hover,
.brands-sort .select-list:hover,
.products-sort-order .select-list:hover,
.suppliers-sort .select-list:hover,
.facet-dropdown .select-list:hover {
  color: var(--pcred-red);
}
.facet-dropdown.open > .select-title {
  border-color: var(--pcred-navy);
}

/* —— Prices / product accents —— */
.product-price,
.current-price,
.product-price .current-price-value,
.product-miniature .product-price-and-shipping .price,
#products .product-miniature .price,
.featured-products .product-miniature .price {
  color: var(--pcred-navy);
  font-family: var(--pcred-font-display);
  font-weight: 700;
  font-size: 1.35em;
}
.product-discount .regular-price,
span.regular-price {
  color: #7a7a7a;
}
.product-flag.discount,
.product-flags li.product-flag.discount,
.product-flags li.product-flag.on-sale,
.product-flags li.product-flag.new {
  background: var(--pcred-red);
  color: #fff;
  font-family: var(--pcred-font-display);
  letter-spacing: 0.04em;
}
#blockcart-modal .product-name {
  color: var(--pcred-red);
}
.product-images > li.thumb-container .thumb.selected,
.product-images > li.thumb-container .thumb:hover,
#product-modal .modal-content .modal-body .product-images img:hover {
  border-color: var(--pcred-red);
}
.product-miniature .highlighted-informations .quick-view:hover {
  color: var(--pcred-red);
}
#subcategories ul li:hover .subcategory-image a {
  border-color: var(--pcred-red);
}

/* —— Product page layout: gallery top / buy / FULL-WIDTH description —— */
#product .product-container {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
#product .product-gallery-col {
  width: 100%;
  padding: 0 15px;
  margin-bottom: 1.5rem;
}
#product .product-buy-col {
  width: 100%;
  padding: 0 15px;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  #product .product-gallery-col {
    flex: 0 0 55%;
    max-width: 55%;
  }
  #product .product-buy-col {
    flex: 0 0 45%;
    max-width: 45%;
  }
}
#product .product-gallery-col .page-content {
  background: #fff;
  border: 1px solid rgba(21, 37, 69, 0.08);
  padding: 1rem;
}
#product .product-buy-col .h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
#product .product-full-below {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  padding: 0 15px;
  clear: both;
}
#product .product-full-description {
  background: #fff;
  border-top: 3px solid var(--pcred-red);
  padding: 2rem 1.5rem 2.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 8px 28px rgba(21, 37, 69, 0.06);
  width: 100%;
  max-width: none;
}
#product .product-full-description .pcred-section-title {
  font-family: var(--pcred-font-display);
  font-size: 1.75rem;
  color: var(--pcred-navy);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
#product .product-full-description .product-description,
#product .product-full-description .product-description p,
#product .product-full-description .product-description li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--pcred-text);
  max-width: none;
}
#product .product-full-description .tabs {
  margin-top: 1.5rem;
}
#product .product-information .product-description {
  font-size: 1rem;
  color: var(--pcred-muted);
}

/* —— Cart / checkout / account —— */
.cart-grid .card,
#checkout .card,
#customer-form .form-control,
body#checkout section.checkout-step {
  border-radius: 2px;
}
.block-promo .promo-input + button,
.block-promo .promo-code-button.cancel-promo {
  color: var(--pcred-red);
}
body#checkout section.checkout-step .address-item.selected {
  border-color: var(--pcred-red);
  background: rgba(235, 29, 37, 0.04);
}
body#checkout section.checkout-step.-current .step-title,
#checkout .step-title {
  font-family: var(--pcred-font-display);
  color: var(--pcred-navy);
}
#checkout .-reachable.-complete .step-title .step-number,
body#checkout section.checkout-step.-reachable.-complete h1 .step-number {
  background: var(--pcred-red);
}

/* —— Footer —— */
.footer-container {
  background:
    linear-gradient(180deg, rgba(15, 27, 54, 0.92), rgba(21, 37, 69, 0.96)),
    url("../img/fact-counter-bg.jpg");
  background-size: cover;
  background-position: center;
  color: rgba(255, 255, 255, 0.88);
  border-top: 3px solid var(--pcred-red);
}
.footer-container a,
.footer-container .h3,
.footer-container .block-contact,
#footer .h3 {
  color: #fff;
}
.footer-container a:hover {
  color: var(--pcred-accent);
}
.footer-container li a {
  color: rgba(255, 255, 255, 0.8);
}
#footer .copyright,
.footer-container .copyright {
  color: rgba(255, 255, 255, 0.65);
}

/* —— Utilities —— */
.bg-primary {
  background-color: var(--pcred-red) !important;
}
.text-primary {
  color: var(--pcred-red) !important;
}
.card-primary,
.tag-primary {
  background-color: var(--pcred-red);
  border-color: var(--pcred-red);
  color: #fff;
}
.block-social ul li:hover,
.block_newsletter form button[type=submit] .search:hover,
.block_newsletter form input[type=text]:focus + button .search,
.search-widget form input[type=text]:focus + button .search,
.btn-unstyle:focus .expand-more {
  color: var(--pcred-red);
}

/* —— Motion: fade-in on product / listing —— */
@keyframes pcred-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
#product .product-gallery-col {
  animation: pcred-rise 0.5s var(--pcred-ease) both;
}
#product .product-buy-col {
  animation: pcred-rise 0.55s 0.08s var(--pcred-ease) both;
}
#product .product-full-below {
  animation: pcred-rise 0.6s 0.14s var(--pcred-ease) both;
}
.product-miniature {
  animation: pcred-rise 0.45s var(--pcred-ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— FO fix: navy topbar contrast (currency / lang / cart) —— */
#header .header-nav,
#header .header-nav a,
#header .header-nav .currency-selector,
#header .header-nav .language-selector-wrapper,
#header .header-nav .language-selector,
#header .header-nav .user-info,
#header .header-nav .account-list a,
#header .header-nav .blockcart a,
#header .header-nav .blockcart .header,
#header .header-nav .cart-preview,
#header .header-nav .cart-preview .shopping-cart,
#header .header-nav .cart-preview .cart-products-count,
#header .header-nav .cart-preview span,
#header .header-nav .expand-more,
#header .header-nav ._gray-darker,
#header .header-nav .material-icons,
#header .header-nav #contact-link,
#header .header-nav #contact-link a,
#header .header-nav .btn-unstyle {
  color: rgba(255, 255, 255, 0.95) !important;
}
#header .header-nav a:hover,
#header .header-nav .btn-unstyle:hover .expand-more,
#header .header-nav .blockcart a:hover {
  color: #ffffff !important;
}
#header .header-nav .blockcart,
#header .header-nav .blockcart.cart-preview,
#header .header-nav .cart-preview.inactive,
#header .header-nav .cart-preview.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}
#header .header-nav .cart-preview.active {
  background: var(--pcred-red);
}
#header .header-nav .cart-preview.inactive,
#header .header-nav .cart-preview.inactive .header,
#header .header-nav .cart-preview.inactive .shopping-cart,
#header .header-nav .cart-preview.inactive .cart-products-count {
  display: inline-block;
  visibility: visible;
  opacity: 1;
  color: #fff !important;
}
#header .header-nav .currency-selector .dropdown-menu a,
#header .header-nav .language-selector .dropdown-menu a {
  color: var(--pcred-navy) !important;
}

/* —— Hide Customer Reassurance policy placeholders —— */
.blockreassurance_product,
#block-reassurance,
.blockreassurance,
div[id^="blockreassurance"],
#footer .blockreassurance,
.footer-container .blockreassurance {
  display: none !important;
}

/* —— Extra: force light currency/language labels on navy —— */
#header .header-nav .currency-selector .expand-more,
#header .header-nav .currency-selector ._gray-darker,
#header .header-nav .currency-selector button,
#header .header-nav .currency-selector button span,
#header .header-nav #currency-selector-label,
#header .header-nav .language-selector .expand-more,
#header .header-nav .language-selector button,
#header .header-nav .language-selector button span,
#header .header-nav #language-selector-label,
#header .header-nav .dropdown .expand-more,
#header .header-nav .js-dropdown .expand-more,
#header .header-nav .js-dropdown ._gray-darker {
  color: #ffffff !important;
}
