/* Magical Printables - first-pass look for default OpenCart 3.0.x theme
   Values taken from the old Journal2 2.4.8 source and screenshots:
   green #718B09, Oswald headings, grey (#777) menu/footer, white product cards.
   Load AFTER stylesheet.css (see instructions). */

/* Oswald is loaded from header.twig */

:root {
  --mp-green: #718B09;
  --mp-green-dark: #5d7307;
  --mp-grey: #777777;
  --mp-slate: #5b6475;
  --mp-pink: #e8173d;
}

/* ---------- Base ---------- */
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #444;
  background: #ebebeb;
  /* Once you have the paper texture from the old site:
     background: #ebebeb url(../image/bg-paper.jpg) repeat-x top; */
}
a { color: var(--mp-green); }
a:hover, a:focus { color: var(--mp-green-dark); }

/* Boxed layout, about 1024px like the old site */
.container { max-width: 1024px; width: 100%; }

/* ---------- Headings (green bars, white Oswald caps) ---------- */
h1, h2, #content > h3, #content > .box-heading, .box-heading {
  background: var(--mp-green);
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 20px;
  padding: 11px 10px;
}
/* Product page title uses same bar */
#product-product h1 { font-size: 14px; }

/* ---------- Top bar ---------- */
#top {
  background: transparent;
  border: 0;
  margin: 0;
  min-height: 0;
  padding: 4px 0;
}
#top .btn-link, #top-links a, #top #form-currency .btn-link {
  color: var(--mp-grey);
  text-shadow: none;
}
#top-links a:hover { color: var(--mp-green); }
#top-links i { color: var(--mp-green); }

/* ---------- Header: logo, search, cart ---------- */
header { background: #f2f2f0; padding: 8px 0; }
#logo { margin: 0; }
#logo img { max-height: 115px; }

#search .form-control {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  height: 36px;
}
#search .btn-default {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #999;
  height: 36px;
  text-shadow: none;
}

#cart > .btn {
  background: var(--mp-green);
  border: 0;
  border-radius: 0;
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  height: 38px;
  text-shadow: none;
}
#cart > .btn:hover, #cart.open > .btn { background: var(--mp-green-dark); }

/* ---------- Main menu (grey bar, Oswald caps) ---------- */
#menu {
  background: var(--mp-grey);
  border: 0;
  border-radius: 0;
  min-height: 0;
  margin-bottom: 0;
}
#menu .nav > li > a {
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  text-shadow: none;
  padding: 12px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
#menu .nav > li > a:hover,
#menu .nav > li.open > a { background: var(--mp-green); color: #fff; }
#menu .dropdown-menu { border-radius: 0; background: var(--mp-grey); }
#menu .dropdown-inner a { color: #fff; }
#menu .dropdown-inner a:hover { background: var(--mp-green); }
#menu .see-all { background: var(--mp-green-dark); color: #fff; border: 0; }

/* ---------- Breadcrumb (full-width green bar) ---------- */
.breadcrumb {
  background: var(--mp-green);
  border-radius: 0;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  margin: 0 0 20px;
  padding: 10px 15px;
}
.breadcrumb a { color: #fff; }
.breadcrumb > li + li:before { color: #fff; content: "\00bb\00a0"; padding: 0; }

/* ---------- Side column (category list) ---------- */
.list-group-item {
  background: #fafafa;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 0;
  color: #444;
  padding: 9px 12px;
}
a.list-group-item:hover { background: #fff; color: var(--mp-green); }
.list-group-item.active, .list-group-item.active:hover {
  background: #fff;
  border: 0;
  color: var(--mp-green);
  font-weight: bold;
  text-shadow: none;
}

/* ---------- Product cards ---------- */
.product-thumb {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 0;
  text-align: center;
}
.product-thumb .image { border: 0; margin: 0; }
.product-thumb .image a { display: block; }
.product-thumb .caption { min-height: 0; padding: 8px 8px 0; }
.product-thumb .caption h4 a { color: #333; font-size: 13px; font-weight: normal; }
.product-thumb .caption h4 a:hover { color: var(--mp-green); }
.product-thumb .price { color: #222; font-weight: bold; font-size: 14px; }
.product-thumb .price-new { color: #222; }
.product-thumb .rating { margin-bottom: 6px; }

/* Button row: big green Add to Cart, small wishlist/compare under it */
.product-thumb .button-group {
  background: #fff;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 6px 4px 10px;
}
.product-thumb .button-group button {
  background: transparent;
  border: 0;
  color: #555;
  font-size: 11px;
  float: none;
  width: auto;
  order: 2;
  padding: 4px 8px;
}
.product-thumb .button-group button:first-child {
  background: var(--mp-green);
  color: #fff;
  flex: 0 0 100%;
  max-width: 130px;
  order: 1;
  margin: 0 auto 8px;
  padding: 9px 12px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}
.product-thumb .button-group button:first-child:hover { background: var(--mp-green-dark); }
.product-thumb .button-group button:first-child span { display: inline !important; }
.product-thumb .button-group button + button { border: 0; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--mp-green);
  background-image: none;
  border: 0;
  border-radius: 0;
  font-family: 'Oswald', Arial, sans-serif;
  text-shadow: none;
  text-transform: uppercase;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--mp-green-dark);
}
.btn-default { border-radius: 0; text-shadow: none; }

/* ---------- Product page ---------- */
#product-product .price, .product-info .price,
#content .list-unstyled h2 {
  font-family: 'Oswald', Arial, sans-serif;
  background: none;
  color: #222;
  font-size: 26px;
  padding: 0;
  margin: 10px 0;
  text-transform: none;
}
.nav-tabs { border: 0; margin-bottom: 0; }
.nav-tabs > li > a {
  background: var(--mp-green);
  border: 0;
  border-radius: 0;
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  margin-right: 1px;
  text-transform: uppercase;
}
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover,
.nav-tabs > li > a:hover {
  background: var(--mp-slate);
  border: 0;
  color: #fff;
}
.tab-content { background: #fafafa; padding: 14px; }

/* ---------- Category toolbar (sort / limit bar) ---------- */
#content .row > .col-md-2.col-sm-6.hidden-xs,
#content .row > .col-md-3.col-sm-6,
#content .row > .col-md-4.col-xs-6 { }
#input-sort, #input-limit { border-radius: 0; }

/* ---------- Pagination ---------- */
.pagination > li > a, .pagination > li > span {
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #333;
  font-weight: bold;
  margin: 0 3px;
}
.pagination > .active > a, .pagination > .active > span,
.pagination > .active > a:hover {
  background: var(--mp-pink);
  color: #fff;
}

/* ---------- Footer ---------- */
footer {
  background: var(--mp-grey);
  border: 0;
  color: #fff;
  margin-top: 30px;
  padding-top: 20px;
}
footer h5 {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #d5d5d5;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 400;
  padding-bottom: 8px;
  text-transform: uppercase;
}
footer a, footer a:hover { color: #fff; }
footer hr { border-color: rgba(255, 255, 255, 0.2); }
footer p { background: #f2f2f0; color: #444; margin: 0 -15px; padding: 14px 15px; }

/* Green social/contact strip (needs a small footer.twig edit, see notes) */
.mp-contacts {
  background: var(--mp-green);
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: bold;
  margin: 20px -15px 0;
  padding: 16px 0;
  text-align: center;
}
.mp-contacts a { color: #fff; margin: 0 14px; }
.mp-contacts a i {
  background: #fff;
  border-radius: 50%;
  color: var(--mp-green);
  display: inline-block;
  height: 32px;
  line-height: 32px;
  margin-right: 6px;
  text-align: center;
  width: 32px;
}

/* ---------- Wish List / Compare text under each product ----------
   The default buttons are icon-only; this adds the text with CSS so no
   product template needs editing (works in category, search, modules). */
.product-thumb .button-group button[onclick^="wishlist.add"]::after {
  content: " Add to Wish List";
  font-family: Arial, Helvetica, sans-serif;
}
.product-thumb .button-group button[onclick^="compare.add"]::after {
  content: " Add to Compare";
  font-family: Arial, Helvetica, sans-serif;
}
/* Beat OpenCart's "button + button { width: 20% }" and uppercase rules */
.product-thumb .button-group button[onclick^="wishlist.add"],
.product-thumb .button-group button[onclick^="compare.add"] {
  background: transparent;
  border: 0;
  color: #555;
  flex: 0 0 auto;
  float: none;
  font-size: 11px;
  padding: 4px 6px;
  text-transform: none;
  white-space: nowrap;
  width: auto;
}
.product-thumb .button-group button[onclick^="wishlist.add"]:hover,
.product-thumb .button-group button[onclick^="compare.add"]:hover {
  background: transparent;
  color: var(--mp-green);
}

/* ---------- Round 2 fixes ---------- */

/* Cards show only image, name and price (like Journal), not the description */
.product-thumb .caption p:not(.price) { display: none; }
.product-thumb .caption { padding-bottom: 0; }

/* Space between the menu and the home page modules */
#common-home { margin-top: 20px; }

/* Main menu spreads evenly across the full width */
@media (min-width: 768px) {
  #menu .nav { display: table; float: none; table-layout: fixed; width: 100%; }
  #menu .nav > li { display: table-cell; float: none; text-align: center; }
}

/* Boxed footer: grey box the width of the container, page background outside */
footer { background: transparent; border: 0; padding-top: 0; }
footer > .container { background: var(--mp-grey); padding-top: 20px; }

/* ---------- Home page: no wish list / compare links on the cards ---------- */
#common-home .product-thumb .button-group button[onclick^="wishlist.add"],
#common-home .product-thumb .button-group button[onclick^="compare.add"] { display: none; }
#common-home .product-thumb .button-group button:first-child { margin-bottom: 0; }

/* ---------- Quick view: magnifier on hover + popup ---------- */
.product-thumb .image { position: relative; }
.mp-qv-btn {
  background: rgba(113, 139, 9, 0.92);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  height: 44px;
  left: 50%;
  line-height: 44px;
  margin: -22px 0 0 -22px;
  opacity: 0;
  position: absolute;
  text-align: center;
  top: 50%;
  transition: opacity 0.2s;
  width: 44px;
  z-index: 2;
}
.product-thumb .image:hover .mp-qv-btn { opacity: 1; }
.mp-qv-btn:hover, .mp-qv-btn:focus { background: var(--mp-green-dark); color: #fff; }
@media (hover: none) { .mp-qv-btn { opacity: 0.9; } }

#mp-quickview .modal-content { border-radius: 0; }
#mp-quickview .modal-header { background: var(--mp-green); border: 0; color: #fff; }
#mp-quickview .modal-title {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 16px;
  padding-right: 20px;
  text-transform: uppercase;
}
#mp-quickview .close { color: #fff; opacity: 0.9; text-shadow: none; }
.mp-qv-price {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 26px;
  margin-bottom: 10px;
}
.mp-qv-desc { color: #555; line-height: 1.5; margin-bottom: 16px; }
.mp-qv-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.mp-qv-actions #mp-qv-qty { border-radius: 0; text-align: center; width: 56px; }
.mp-qv-actions .btn { border-radius: 0; }

/* Bootstrap's clearfix ::before/::after become empty table cells inside the
   display:table menu and push the items inward. Remove them. */
#menu .nav::before, #menu .nav::after { display: none; }
#menu .nav > li > a { white-space: nowrap; padding-left: 6px; padding-right: 6px; }

/* =====================================================================
   Round 4: breadcrumb, sort bar, equal-height cards, product page
   ===================================================================== */

/* ---------- Breadcrumb: "Home » Page" as plain text, no arrow shapes ---------- */
.breadcrumb > li { background: none; padding: 0; text-shadow: none; }
.breadcrumb > li::after { display: none; }
.breadcrumb > li + li::before { content: "\00bb"; padding: 0 6px; }
.breadcrumb i { font-size: 12px; }
.breadcrumb .fa-home::before {
  content: "Home";
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

/* ---------- Category page: slate sort bar ---------- */
#content > .row:has(#list-view) {
  background: var(--mp-slate);
  color: #fff;
  margin: 0 0 20px;
  padding: 8px 0;
}
#content > .row:has(#list-view) .form-group { margin-bottom: 0; }
#content > .row:has(#list-view) .input-group-addon {
  background: transparent;
  border: 0;
  color: #fff;
}
#content > .row:has(#list-view) .form-control { border-radius: 0; }
#compare-total, #compare-total:hover { color: #fff; font-weight: bold; }
#list-view, #grid-view {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
}
#list-view.active, #grid-view.active {
  background: transparent;
  box-shadow: none;
  color: var(--mp-pink);
}

/* Side module heading (add <h3 class="mp-side-title"> to category.twig) */
.mp-side-title {
  background: var(--mp-green);
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  padding: 11px 10px;
  text-transform: uppercase;
}

/* ---------- Equal-height product cards (grid view only) ---------- */
#content .row:has(> .product-layout) { display: flex; flex-wrap: wrap; }
#content .row:has(> .product-layout)::before,
#content .row:has(> .product-layout)::after { display: none; }
.product-layout:not(.product-list) { display: flex; }
.product-layout:not(.product-list) .product-thumb {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.product-layout:not(.product-list) .product-thumb .caption { flex: 1 1 auto; }

/* ---------- Product page: right column order like the old site ---------- */
#product-product #content > .row > .col-sm-4 { display: flex; flex-direction: column; }
#product-product .col-sm-4 > h1 { order: 1; }
#product-product .col-sm-4 > ul.list-unstyled { order: 2; }
#product-product .col-sm-4 > #product { order: 3; }
#product-product .col-sm-4 > .btn-group { order: 4; }
#product-product .col-sm-4 > .rating { order: 5; }

/* Wish list / compare as a slate bar under Add to Cart */
#product-product .col-sm-4 > .btn-group { display: flex; margin: 10px 0 14px; }
#product-product .col-sm-4 > .btn-group > .btn {
  background: var(--mp-slate);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  flex: 1 1 0;
  font-size: 12px;
  padding: 10px 6px;
  text-shadow: none;
}
#product-product .col-sm-4 > .btn-group > .btn:hover { background: var(--mp-green); }
#product-product .btn-group > .btn[onclick^="wishlist.add"]::after {
  content: " Add to Wish List";
  font-family: Arial, Helvetica, sans-serif;
}
#product-product .btn-group > .btn[onclick^="compare.add"]::after {
  content: " Add to Compare";
  font-family: Arial, Helvetica, sans-serif;
}

/* ---------- Product page: [-] [1] [+] [ADD TO CART] row ---------- */
.mp-buy-row { align-items: stretch; display: flex; margin: 0 0 10px; }
.mp-qty { display: flex; }
.mp-qty-btn {
  background: var(--mp-slate);
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  width: 36px;
}
.mp-qty-btn:hover { background: var(--mp-green); }
#product-product #input-quantity {
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  box-shadow: none;
  height: auto;
  text-align: center;
  width: 48px;
}
.mp-buy-row #button-cart { flex: 1 1 auto; margin-left: 6px; }

/* =====================================================================
   Round 5: work with or without a side column; tabs full width;
   cards: keep buttons level
   ===================================================================== */

/* Info column = second column in the first row, whatever its col-sm-* width */
#product-product #content > h1 + .row > div:last-child { display: flex; flex-direction: column; }
#product-product #content > h1 + .row > div:last-child > ul.list-unstyled { order: 2; }
#product-product #content > h1 + .row > div:last-child > #product { order: 3; }
#product-product #content > h1 + .row > div:last-child > .btn-group { order: 4; display: flex; margin: 10px 0 14px; }
#product-product #content > h1 + .row > div:last-child > .rating { order: 5; }
#product-product #content > h1 + .row > div:last-child > .btn-group > .btn {
  background: var(--mp-slate);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  flex: 1 1 0;
  font-size: 12px;
  padding: 10px 6px;
  text-shadow: none;
}
#product-product #content > h1 + .row > div:last-child > .btn-group > .btn:hover { background: var(--mp-green); }

/* Tabs now sit below both columns, so give them some air */
#product-product #content > .nav-tabs { margin-top: 20px; }

/* Keep Add to Cart level across a row of cards (grid view) */
#content .product-layout:not(.product-list) .product-thumb {
  display: flex;
  flex-direction: column;
}
#content .product-layout:not(.product-list) .product-thumb .caption { flex: 1 1 auto; }
#content .product-layout:not(.product-list) .product-thumb .button-group { margin-top: auto; }

/* ---------- Brand carousel (home page, "Browse by brand") ---------- */
.mp-brands { margin: 10px 0 30px; }
.mp-brands-head { position: relative; }
.mp-brands-head .box-heading { margin-bottom: 0; }
.mp-brands-nav {
  display: flex;
  gap: 8px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.mp-brands-nav button {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
}
.mp-brands-nav button:hover { opacity: 0.75; }
.mp-brands-view { margin-top: 20px; overflow: hidden; }
.mp-brands-track { display: flex; transition: transform 0.45s ease; }
.mp-brand { box-sizing: border-box; flex: 0 0 25%; min-width: 0; padding: 0 5px; }
.mp-brand a {
  align-items: center;
  background: #fff;
  border: 1px solid #e3e3e3;
  display: flex;
  height: 100px;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s;
}
.mp-brand a:hover { border-color: var(--mp-green); }
.mp-brand img { max-height: 100%; max-width: 100%; }
.mp-brands-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.mp-brands-dots button {
  background: var(--mp-slate);
  border: 0;
  border-radius: 50%;
  height: 12px;
  opacity: 0.6;
  padding: 0;
  width: 12px;
}
.mp-brands-dots button.active { background: var(--mp-pink); opacity: 1; }
.mp-brands-single .mp-brands-nav, .mp-brands-single .mp-brands-dots { display: none; }
@media (prefers-reduced-motion: reduce) { .mp-brands-track { transition: none; } }

/* Brand carousel: text tile for brands that have no logo */
.mp-brand-name {
  color: var(--mp-slate);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  padding: 0 8px;
  text-align: center;
  text-transform: uppercase;
}
.mp-brand a:hover .mp-brand-name { color: var(--mp-green); }

.mp-brand a, .mp-brand a:hover { text-decoration: none; }

/* ---------- No wish list / compare links on any product card ----------
   They stay available on the product page itself. */
.product-thumb .button-group button[onclick^="wishlist.add"],
.product-thumb .button-group button[onclick^="compare.add"] { display: none; }
.product-thumb .button-group button:first-child { margin-bottom: 0; }

/* ---------- Product page: main image without the white frame (like the old site) ---------- */
#product-product .thumbnails { margin-bottom: 10px; }
#product-product .thumbnails > li > a.thumbnail {
  background: none;
  border: 0;
  box-shadow: none;
  margin-bottom: 10px;
  padding: 0;
}
#product-product .thumbnails > li.image-additional > a.thumbnail { margin-bottom: 0; }


/* =====================================================================
   Product cards in the old site's style: edge-to-edge image, small white
   triangle under the picture, one-line name, different cart icon
   ===================================================================== */
.product-thumb .image { position: relative; }
.product-thumb .image a { display: block; }
.product-thumb .image img { display: block; height: auto; width: 100%; }
.product-thumb .image::after {
  border-bottom: 9px solid #fff;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  bottom: 0;
  content: "";
  height: 0;
  left: 50%;
  margin-left: -9px;
  pointer-events: none;
  position: absolute;
  width: 0;
}
.product-thumb .caption h4 {
  margin: 0 0 8px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cart icon on the Add to Cart button: drawn as an image mask so it takes
   the button's text colour */
.product-thumb .button-group button:first-child i.fa-shopping-cart {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M1.2 2.2H5.2L8.8 16.6H24.2' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M6.6 5.6H28M7.6 9.4H26.6M8.6 13.2H25.2' fill='none' stroke='black' stroke-width='2.4'/%3E%3Ccircle cx='11.4' cy='21' r='2.1'/%3E%3Ccircle cx='21.6' cy='21' r='2.1'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M1.2 2.2H5.2L8.8 16.6H24.2' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M6.6 5.6H28M7.6 9.4H26.6M8.6 13.2H25.2' fill='none' stroke='black' stroke-width='2.4'/%3E%3Ccircle cx='11.4' cy='21' r='2.1'/%3E%3Ccircle cx='21.6' cy='21' r='2.1'/%3E%3C/svg%3E") no-repeat center / contain;
  background-color: currentColor;
  display: inline-block;
  height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
  width: 17px;
}
.product-thumb .button-group button:first-child i.fa-shopping-cart::before { content: none; }

/* =====================================================================
   Product cards, round 2: old-site proportions, button and hover shadow
   (card = image 228 + name + price + button, about 350px tall)
   ===================================================================== */
.product-thumb {
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.25s ease;
}
.product-thumb:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3); }

/* No fade on the picture when hovering */
.product-thumb .image a:hover { opacity: 1; }

.product-thumb .caption { min-height: 0; padding: 10px 10px 0; }
.product-thumb .caption h4 {
  font-size: 14px;
  font-weight: normal;
  line-height: 20px;
  margin: 0 0 6px;
}
.product-thumb .caption h4 a { color: #333; }

/* Price: bold, centred, with a short light line above it */
.product-thumb .price {
  border-top: 1px solid #e3e3e3;
  color: #222;
  display: table;
  font-size: 15px;
  font-weight: bold;
  line-height: 20px;
  margin: 0 auto;
  padding: 5px 0 0;
}
.product-thumb .price-old { font-weight: normal; }
.product-thumb .price-tax { display: none; }

.product-thumb .button-group { padding: 12px 0 13px; }

/* Add to Cart: green, Oswald, bigger cart icon */
.product-thumb .button-group button:first-child {
  flex: 0 0 auto;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  height: auto;
  letter-spacing: 0;
  line-height: 20px;
  margin: 0 auto;
  max-width: none;
  padding: 8px 16px;
  text-transform: uppercase;
  width: auto;
}
.product-thumb .button-group button:first-child i.fa-shopping-cart {
  height: 18px;
  margin-right: 7px;
  vertical-align: -4px;
  width: 22px;
}

/* =====================================================================
   Page background (values read from the old Journal2 settings)
   - body colour #e4e4e4 + paper texture back.jpg (fixed, repeating)
   - top bar and header sit in the 1024px box, so the textured "sides"
     show left and right of them
   Put back.jpg in  image/catalog/  (or image/data/ - both are tried).
   ===================================================================== */
body {
  /* top layer: the main content column (1024px) gets a light white wash,
     like the old skin's "content background" (white at 24%);
     below it: the paper texture on the whole page, then the grey colour */
  background-attachment: fixed, fixed, fixed;
  background-color: #e4e4e4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)),
    url("../../../../../image/catalog/back.jpg"),
    url("../../../../../image/data/back.jpg");
  background-position: center top, center top, center top;
  background-repeat: no-repeat, repeat, repeat;
  background-size: 1024px 100%, auto, auto;
  color: #333745;
}

#top { background: transparent; border: 0; padding: 0; }
#top > .container { background: #f4f4f4; padding-bottom: 4px; padding-top: 4px; }

header { background: transparent; padding: 0; }
header > .container { background: #f4f4f4; padding-bottom: 8px; padding-top: 8px; }


/* =====================================================================
   Header laid out like the old site (needs the new <body> part of
   header.twig): logo on the left; on the right the top links + green cart,
   then currency / login + search, then the menu bar
   ===================================================================== */
:root { --mp-cart-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M1.2 2.2H5.2L8.8 16.6H24.2' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M6.6 5.6H28M7.6 9.4H26.6M8.6 13.2H25.2' fill='none' stroke='black' stroke-width='2.4'/%3E%3Ccircle cx='11.4' cy='21' r='2.1'/%3E%3Ccircle cx='21.6' cy='21' r='2.1'/%3E%3C/svg%3E"); }

header { background: transparent; padding: 0; }
header > .container.mp-header { background: #f4f4f4; display: flex; padding: 0; }

.mp-logo { flex: 0 0 257px; padding: 5px 0 0 38px; }
.mp-logo #logo { margin: 0; }
.mp-logo #logo img { display: block; max-height: 118px; max-width: 100%; width: auto; }

.mp-right {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) 257px;
  grid-template-rows: 41px 40px 40px;
  min-width: 0;
}

/* Row 1: links with thin dividers + green cart block */
.mp-links {
  align-items: stretch;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 0;
}
.mp-links > li { border-right: 1px solid #e6e6e6; display: flex; }
.mp-links > li:last-child { border-right: 0; }
.mp-links a {
  align-items: center;
  color: #444;
  display: flex;
  font-size: 14px;
  gap: 7px;
  padding: 0 14px;
  white-space: nowrap;
}
.mp-links a:hover { color: var(--mp-green); }
.mp-links .fa { color: var(--mp-green); font-size: 16px; }
.mp-links .fa-shopping-cart {
  -webkit-mask: var(--mp-cart-icon) no-repeat center / contain;
  mask: var(--mp-cart-icon) no-repeat center / contain;
  background-color: var(--mp-green);
  display: inline-block;
  height: 14px;
  width: 17px;
}
.mp-links .fa-shopping-cart::before { content: none; }

.mp-cart { grid-column: 2; grid-row: 1; }
.mp-cart #cart { margin: 0; width: 100%; }
.mp-cart #cart > .btn {
  align-items: center;
  background: var(--mp-green);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  display: flex;
  font: bold 14px Arial, Helvetica, sans-serif;
  height: 41px;
  justify-content: flex-end;
  padding: 0 14px 0 0;
  text-shadow: none;
  text-transform: none;
  width: 100%;
}
.mp-cart #cart > .btn:hover, .mp-cart #cart.open > .btn { background: var(--mp-green-dark); }
.mp-cart #cart > .btn i.fa-shopping-cart { display: none; }
.mp-cart #cart > .btn::after {
  -webkit-mask: var(--mp-cart-icon) no-repeat center / contain;
  mask: var(--mp-cart-icon) no-repeat center / contain;
  background-color: #fff;
  content: "";
  display: block;
  height: 24px;
  margin-left: 14px;
  width: 30px;
}

/* Row 2: currency / phone on the left, login + register on the right; search */
.mp-row2 {
  align-items: center;
  display: flex;
  grid-column: 1;
  grid-row: 2;
  justify-content: space-between;
  padding: 0 14px 0 50px;
}
.mp-row2-left, .mp-row2-right { align-items: center; display: flex; gap: 16px; }
.mp-row2 a, .mp-row2 .btn-link { color: #555; font-size: 14px; text-shadow: none; }
.mp-row2 a:hover { color: var(--mp-green); }
.mp-row2-right .fa { color: #777; margin-right: 4px; }
.mp-row2 #form-currency { margin: 0; }
.mp-row2 #form-currency .btn-link { color: var(--mp-green); font-weight: bold; padding: 0; }
.mp-row2 #form-currency .btn-link span { display: none; }
.mp-phone .fa { color: var(--mp-green); margin-right: 4px; }

.mp-search { background: #fff; grid-column: 2; grid-row: 2; }
.mp-search #search { display: flex; flex-direction: row-reverse; height: 40px; margin: 0; }
.mp-search #search .input-group-btn { display: block; width: auto; }
.mp-search #search .btn {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #a9b6bf;
  font-size: 20px;
  height: 40px;
  padding: 0 10px 0 14px;
}
.mp-search #search .form-control {
  border: 0;
  border-left: 1px solid #ececec;
  border-radius: 0;
  box-shadow: none;
  display: block;
  flex: 1 1 auto;
  float: none;
  font-size: 14px;
  height: 40px;
  min-width: 0;
  padding: 0 10px;
  width: auto;
}

/* Row 3: the menu bar spans the whole right side */
.mp-menu { grid-column: 1 / -1; grid-row: 3; }
.mp-right .container { margin: 0; max-width: none; padding: 0; width: auto; }
.mp-menu #menu { margin: 0; min-height: 40px; }
#menu .nav > li > a {
  border-right: 1px dotted rgba(0, 0, 0, 0.55);
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
  padding: 0 8px;
}
#menu .nav > li:last-child > a { border-right: 0; }
/* let each menu cell size to its text (long labels get more room) */
@media (min-width: 768px) { #menu .nav { table-layout: auto; } }

/* Phones: stack everything */
@media (max-width: 767px) {
  header > .container.mp-header { display: block; }
  .mp-logo { padding: 8px 15px 0; text-align: center; }
  .mp-logo #logo img { margin: 0 auto; }
  .mp-right { display: flex; flex-direction: column; }
  .mp-links { flex-wrap: wrap; }
  .mp-links a { padding: 10px 14px; }
  .mp-row2 { padding: 8px 14px; }
  .mp-search #search { height: 40px; }
}

/* Image popup: keep the prev/next arrows close to the picture */
.mfp-container {
  left: 50%;
  margin: 0;
  max-width: 100%;
  padding: 0 90px;          /* room for the arrows on each side */
  transform: translateX(-50%);
  width: 1100px;            /* popup width; make it smaller to bring arrows closer */
}
@media (max-width: 767px) {
  .mfp-container { padding: 0 8px; width: 100%; }
}
