/* RetroKnygos storefront. Shared by both Koparion variants; no external assets. */

/* Manrope (SIL OFL 1.1, fonts/manrope/OFL.txt): local variable WOFF2, weights 200-800. */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope/manrope-cyrillic-wght-normal.woff2) format('woff2-variations'), url(fonts/manrope/manrope-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope/manrope-latin-ext-wght-normal.woff2) format('woff2-variations'), url(fonts/manrope/manrope-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope/manrope-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/manrope/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Metric-matched fallback: keeps line breaks and heights close while Manrope loads (less layout shift). */
@font-face {
  font-family: 'Manrope Fallback'; src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 103.9%; ascent-override: 103%; descent-override: 29%; line-gap-override: 0%;
}

.rk-store {
  --rk-font: 'Manrope', 'Manrope Fallback', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --rk-accent: #a44829; --rk-accent-dark: #81391f; --rk-bg: #faf6f0;
  --rk-card: #fffcf7; --rk-brown: #5a392b; --rk-text: #30251f; --rk-border: #ded0c1;
  --rk-sand: #f0e6d9; --rk-line: #e6d6c4; --rk-success: #2f7d4f; --rk-success-dark: #23603c;
  --rk-radius: 8px; --rk-shadow: 0 8px 24px rgba(48, 37, 31, .12);
  color: var(--rk-text); background: var(--rk-bg); font: 400 17px/1.55 var(--rk-font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.rk-store .wrapper { background: var(--rk-bg); }
.rk-store h1, .rk-store h2, .rk-store h3, .rk-store .module-title h2 {
  font-family: var(--rk-font); color: var(--rk-text); text-transform: none; line-height: 1.25;
}
.rk-store a { color: var(--rk-accent); }
.rk-store a:hover { color: var(--rk-brown); }
.rk-store :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #28689c; outline-offset: 3px; }
.rk-store .form-control { color: var(--rk-text); border-color: var(--rk-border); border-radius: 5px; min-height: 44px; }
/* Header: existing search, dropdowns, account and cart handlers remain in place.
   The former top bar (#top) is no longer printed by the header template. */
.rk-store #form-language { display: none; }
.rk-store .header-inner { background: var(--rk-card); padding: 14px 0; }
.rk-store .header-inner .container-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "logo actions" "search search" "notice notice"; gap: 12px 16px; align-items: center; text-align: left; }
.rk-store .header-inner .container-inner > .clearfix { display: none; }
.rk-store .logo-container, .rk-store .top-search, .rk-store .box-cart { position: static; float: none; transform: none; width: auto; margin: 0; min-width: 0; }
/* Keep the notice in normal flow across the header, not inside a narrow logo column. */
.rk-store .header-inner .logo-container, .rk-store .header-inner #logo { display: contents; }
.rk-store .header-inner #logo > a { grid-area: logo; justify-self: start; }
/* Availability notice: text and contacts come unchanged from the theme-editor header (database). */
.rk-store .header-inner .attention {
  grid-area: notice; justify-self: center; box-sizing: border-box; width: 100%; max-width: 940px;
  position: static; float: none; height: auto; margin: 4px 0 0; padding: 14px 24px;
  background: #f0e6d9; border: 2px solid #b8735a; border-radius: 8px; box-shadow: 0 2px 6px #30251f14;
  color: var(--rk-text); font: 400 16px/1.65 var(--rk-font); text-align: center;
  text-wrap: balance; overflow-wrap: break-word;
}
.rk-store .header-inner .attention::before {
  content: ''; display: inline-block; width: 22px; height: 22px; margin: 0 8px 0 0; vertical-align: -5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23a44829'/%3E%3Ccircle cx='12' cy='7' r='1.6' fill='%23fffcf7'/%3E%3Crect x='10.6' y='10' width='2.8' height='8.5' rx='1.2' fill='%23fffcf7'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* The notice is written as four h5 lines in the header template: show them as one paragraph. */
.rk-store .header-inner .attention h5 { display: inline; position: static; height: auto; margin: 0; padding: 0; color: inherit; font: inherit; }
.rk-store .header-inner .attention h5::after { content: " "; }
.rk-store .header-inner .attention b { color: var(--rk-accent-dark); font-weight: 700; white-space: nowrap; }
.rk-store #logo img { max-width: 180px; max-height: 76px; width: auto; height: auto; }
.rk-store .top-search { grid-area: search; }
.rk-store .box-cart { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.rk-store .box-cart .links { display: flex; align-items: center; gap: 10px; margin: 0; }
.rk-store .box-cart .links a[href=""] { display: none; }
.rk-store .box-cart .links a { min-height: 36px; color: var(--rk-accent); }
.rk-store #cart { width: auto; }
.rk-store #cart > button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 100%; background: var(--rk-accent); color: #fff; border-radius: 6px; padding: 8px 10px; line-height: 1.4; white-space: normal; }
.rk-store #cart > button > i { flex: 0 0 24px; width: 24px; height: 24px; background-size: contain; }
.rk-store #cart > button .mycart { display: none; } /* #cart-total already includes the live cart summary. */
.rk-store #cart-total { position: static; display: inline; background: transparent; color: #fff; font-size: 13px; width: auto; height: auto; line-height: 1.5; margin-left: 6px; }
.rk-store #cart .dropdown-menu { width: 350px; max-width: calc(100vw - 30px); background: var(--rk-card); border: 1px solid var(--rk-border); }
.rk-store #cart .info-item { overflow-wrap: anywhere; }
.rk-store #search, .rk-store #search-by-category { width: 100%; margin: 0; }
.rk-store #search .search-content { display: flex; width: 100%; }
.rk-store #search .input-group-btn { position: static; width: auto; }
.rk-store #search input { width: 100%; min-width: 0; height: 48px; background: #fff; border: 1px solid var(--rk-border); color: var(--rk-text); padding: 12px; }
.rk-store #search button { position: static; min-width: 48px; height: 48px; background: var(--rk-accent); color: #fff; border-radius: 0 6px 6px 0; }
.rk-store #search-by-category { border: 1px solid var(--rk-border); background: #fff; border-radius: 6px; }
.rk-store #search-by-category .search-container { width: 100%; min-height: 48px; }
.rk-store #search-by-category .search-container #text-search { width: 100%; height: 48px; padding: 10px 64px 10px 190px; color: var(--rk-text); background: #fff; border-radius: 6px; }
.rk-store #search-by-category #sp-btn-search button { min-width: 48px; height: 48px; background: var(--rk-accent); color: #fff; border-radius: 0 6px 6px 0; }
.rk-store .top-menu { background: var(--rk-brown); border: 0; margin: 0; }
.rk-store .pt_custommenu { display: flex; flex-wrap: wrap; justify-content: center; }
.rk-store .pt_custommenu div.pt_menu { margin: 0; }
.rk-store .pt_custommenu div.pt_menu .parentMenu a,
.rk-store .pt_custommenu div.pt_menu .parentMenu span.block-title { color: #fff; font: 600 15px/1.5 var(--rk-font); padding: 16px; text-transform: none; }
.rk-store .pt_custommenu div.pt_menu .parentMenu a:hover,
.rk-store .pt_custommenu div.pt_menu .parentMenu a:focus-visible,
.rk-store .pt_custommenu div.pt_menu.act .parentMenu a,
.rk-store .pt_custommenu div.pt_menu.active .parentMenu a { background: var(--rk-accent-dark); color: #fff; box-shadow: inset 0 -3px #ded0c1; }
/* Remove Koparion's orange block, folded corner and oversized underline. */
.rk-store .pt_custommenu div.pt_menu .parentMenu a::before,
.rk-store .pt_custommenu div.pt_menu .parentMenu a span::before,
.rk-store .pt_custommenu div.pt_menu .parentMenu a span::after { content: none; }
.rk-store .pt_custommenu div.pt_menu .parentMenu { bottom: 0; }
.rk-store #ma-mobilemenu a:hover, .rk-store #ma-mobilemenu a:focus-visible { background: #f0e6d9; color: var(--rk-accent-dark); }
.rk-store .pt_custommenu .popup { max-width: calc(100vw - 30px); }
.rk-store .menu-mobile, .rk-store .navbar-inner, .rk-store .ma-nav-mobile-container .navbar { background: var(--rk-brown); border: 0; margin: 0; }
.rk-store .menu-mobile .brand { color: #fff; font-size: 16px; }
.rk-store .btn-navbar { color: #fff; min-width: 44px; min-height: 44px; background: transparent; border: 1px solid #aac1ad; border-radius: 5px; }
.rk-store .btn-navbar .icon-bar { background: #fff; }
.rk-store #ma-mobilemenu { background: var(--rk-card); }
.rk-store #ma-mobilemenu a { color: var(--rk-accent); min-height: 44px; padding-top: 12px; padding-bottom: 12px; }
/* Hero: decorative CSS books, not product imagery or a screenshot. */
/* Bootstrap clearfix pseudo-elements otherwise become extra grid items. */
.rk-store .module-title { margin: 24px 0; padding-bottom: 14px; border-bottom: 1px solid var(--rk-border); }
.rk-store .module-title h2 { font-size: 26px; background: transparent; }
/* Shared cards: keep prices and purchase controls visible on touch screens. */
.rk-store .product-thumb { border: 1px solid var(--rk-border); border-radius: 8px; background: var(--rk-card); margin-bottom: 20px; overflow: hidden; }
.rk-store .product-thumb .item-inner { padding: 14px; background: var(--rk-card); }
.rk-store .product-thumb .image { padding: 8px; background: #f2ede4; text-align: center; }
.rk-store .product-thumb .image img:not(.img-r) { width: 100%; height: 200px; object-fit: contain; margin: 0 auto; }
.rk-store .product-thumb .caption { padding: 16px 0 0; min-width: 0; }
.rk-store .product-thumb > .caption, .rk-store .product-thumb > div > .caption { padding: 16px; }
.rk-store .product-thumb .product-name, .rk-store .product-thumb h4 { margin: 0 0 10px; font: 600 17px/1.45 var(--rk-font); white-space: normal; overflow-wrap: break-word; word-break: normal; text-transform: none; }
.rk-store .product-thumb .product-name a { display: block; height: auto; max-height: none; white-space: normal; overflow: visible; text-overflow: clip; -webkit-line-clamp: unset; font: inherit; color: var(--rk-text); }
.rk-store .product-thumb .manufacture-product { font-size: 13px; margin-bottom: 6px; }
.rk-store .product-thumb .price-box, .rk-store .grid-style .item-inner:hover .price-box { opacity: 1; margin: 12px 0; }
.rk-store .product-thumb .price-box .price, .rk-store .product-thumb .price { color: var(--rk-accent); font-size: 20px; font-weight: 700; }
.rk-store .product-thumb .old-price .price, .rk-store .product-thumb .price-old { font-size: 14px; color: #6b6257; text-decoration: line-through; }
.rk-store .product-thumb .price-tax { font-size: 12px; font-weight: 400; }
.rk-store .grid-style .item-inner .action-links { position: static; opacity: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: transparent; padding: 0; width: 100%; }
.rk-store .grid-style .item-inner .action-links:after { display: none; }
.rk-store .grid-style .item-inner .action-links button.btn-cart,
.rk-store .grid-style .item-inner .action-links .add-to-links { opacity: 1; transform: none; float: none; }
.rk-store .product-thumb .action-links button { min-height: 44px; min-width: 44px; border-radius: 5px; }
.rk-store .product-thumb .action-links button.btn-cart { background: var(--rk-accent); color: #fff; padding: 8px 14px; line-height: 1.5; height: auto; white-space: normal; max-width: 100%; }
.rk-store .product-thumb .action-links button.btn-cart:hover { background: var(--rk-accent-dark); }
.rk-store .product-thumb .action-links button.btn-cart span { font-size: 14px; }
.rk-store .product-thumb .button-group { display: flex; flex-wrap: wrap; background: #f0e6d9; border-top: 1px solid var(--rk-border); }
.rk-store .product-thumb .button-group button { min-height: 44px; border: 0; color: var(--rk-accent); background: transparent; }
.rk-store .product-thumb .available { color: #75675b; font-size: 13px; }
/* Only non-carousel module grids: leave Owl dimensions and list-view switching intact. */
.rk-store .tt_product_module .tt-product:not(.owl-carousel) { display: grid; grid-template-columns: minmax(0,1fr); grid-auto-rows: 1fr; gap: 20px; }
.rk-store .tt_product_module .tt-product:not(.owl-carousel)::before,
.rk-store .tt_product_module .tt-product:not(.owl-carousel)::after { content: none; }
.rk-store .tt_product_module .tt-product:not(.owl-carousel) > .row_items { float: none; width: auto; padding: 0; min-width: 0; display: flex; flex-direction: column; }
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style,
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style .product-thumb,
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style .item,
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style .item-inner,
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style .caption { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style .product-thumb { margin-bottom: 0; }
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style .price-box { margin-top: auto; padding-top: 12px; }
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style .action-links { margin-top: 8px; }
@media (min-width: 600px) {
  .rk-store .tt_product_module .tt-product:not(.owl-carousel) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 1200px) {
  .rk-store .tt_product_module .tt-product:not(.owl-carousel) { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
/* Category/search keep existing sorting, filtering, pagination and grid/list switching. */
.rk-store .breadcrumb { background: transparent; border: 0; padding: 20px 0; margin: 0 0 16px; font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
.rk-store #product-category #content > h2, .rk-store #product-search #content > h1 { font-size: 32px; margin-bottom: 24px; }
.rk-store .input-group-addon { color: var(--rk-text); background: #f0e6d9; border-color: var(--rk-border); }
.rk-store .pagination > li > a, .rk-store .pagination > li > span { min-width: 44px; min-height: 44px; padding: 10px 14px; border-color: var(--rk-border); color: var(--rk-accent); }
.rk-store .pagination > .active > span { background: var(--rk-accent); color: #fff; }
.rk-store .list-group-item { background: var(--rk-card); border-color: var(--rk-border); padding: 12px 16px; }
/* Footer retains store information and legal/information links. */
.rk-store footer { background: #f0e6d9; color: var(--rk-text); margin-top: 48px; }
.rk-store footer .footer-top { background: transparent; padding: 36px 0 20px; }
.rk-store footer .footer-bottom { background: transparent; border-top: 1px solid #d6cbbb; padding: 18px 0; }
.rk-store footer .footer-title h5 { color: var(--rk-brown); font: 600 20px/1.4 var(--rk-font); text-transform: none; }
.rk-store footer a { color: #4b443c; }
.rk-store footer .text-content li a { display: inline-block; padding: 6px 0; line-height: 1.6; }
.rk-store footer .col-footer { margin-bottom: 20px; }
.rk-store footer .footer-copyright { float: none; color: #75675b; }
@media (min-width: 768px) {
  .rk-store .product-grid .product-thumb h4, .rk-store .grid-style .product-name { min-height: 3em; }
}
@media (min-width: 992px) {
  .rk-store .header-inner .container-inner { grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.6fr) auto; grid-template-areas: "logo search actions" "notice notice notice"; gap: 12px 24px; }
  .rk-store #logo img { max-width: 220px; }
}
@media (max-width: 991px) {
  .rk-store #search-by-category .categories-container { display: none; }
  .rk-store #search-by-category .search-container #text-search { padding-left: 14px; }
  .rk-store .ma-nav-mobile-container { margin: 0; }
  .rk-store .box-cart .links { display: none; }
}
@media (max-width: 767px) {
  .rk-store .container { max-width: 100%; }
  .rk-store .product-thumb .image img:not(.img-r) { height: 200px; }
  .rk-store .product-list .product-thumb .image { float: none; width: 100%; }
  .rk-store .product-list .product-thumb .caption { margin-left: 0; }
  .rk-store #product-category .input-group, .rk-store #product-search .input-group { display: flex; flex-direction: column; }
  .rk-store #product-category .input-group > *, .rk-store #product-search .input-group > * { width: 100%; }
  .rk-store footer .footer-title { pointer-events: none; }
  .rk-store footer .footer-content { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
}

/* RetroKnygos: scoped product-page refresh. Keep cart and stock logic in OpenCart. */
#product-product .column-main { padding: 20px 15px; border-radius: 12px; }
#product-product .column-main > .row > .block-1,
#product-product .column-main > .row > .block-2 { width: 100%; float: none; min-width: 0; }
#product-product .block-1 { margin-bottom: 28px; }
#product-product .block-1 > .thumbnails { padding: 20px; background: #faf6f0; border-radius: 10px; }
#product-product .block-1 > .thumbnails > .thumbnail { margin: 0; padding: 0; border: 0; background: transparent; }
#product-product .block-1 > .thumbnails img { display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; margin: 0 auto; object-fit: contain; }
#product-product .product-info-main .product-name { margin: 0 0 16px; font-size: 28px; line-height: 1.25; text-transform: none; overflow-wrap: anywhere; color: #30251f; }
#product-product .product-info-main .price-box { margin: 20px 0; }
#product-product .product-info-main .price-box .price { font-size: 30px; line-height: 1.3; font-weight: 700; color: #a44829; }
#product-product .product-info-main .price-box .old-price .price { font-size: 18px; font-weight: 400; color: #62655f; }
#product-product .product-info-main .box-options { padding: 16px; border: 1px solid #dedfd8; border-radius: 8px; color: #75675b; }
#product-product .product-info-main .box-options ul { margin-bottom: 12px; }
#product-product .product-info-main .box-options ul:last-child { margin-bottom: 0; }
#product-product .product-info-main .box-options li { padding: 4px 0; line-height: 1.6; overflow-wrap: anywhere; }
#product-product .product-info-main .box-options li span,
#product-product .product-info-main .box-options li a { color: #a44829; font-weight: 600; }
#product-product .product-info-main .box-options ul:last-child > li:last-child { border-top: 1px solid #dedfd8; margin-top: 8px; padding-top: 12px; font-weight: 700; }
#product-product .product-info-main .short-des { margin-top: 16px; padding: 16px 0; line-height: 1.7; color: #75675b; overflow-wrap: anywhere; }
#product-product #product > .form-group:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#product-product label[for='input-quantity'] { display: block; float: none; margin: 0; line-height: 1.5; }
#product-product .quantity-box { float: none; margin: 0; }
#product-product #minus,
#product-product #plus,
#product-product #input-quantity { min-width: 44px; min-height: 48px; background: #f1f2ed; color: #30251f; border: 1px solid #ced1c7; }
#product-product #button-cart { flex: 0 0 100%; float: none; margin: 4px 0 0; min-height: 52px; height: auto; padding: 14px 20px; line-height: 1.5; white-space: normal; border: 1px solid #a44829; border-radius: 8px; background: #a44829; color: #fff; font-size: 16px; text-transform: none; }
#product-product #button-cart:hover { background: #81391f; border-color: #81391f; }
#product-product #button-cart:disabled { opacity: .65; cursor: wait; }
#product-product .product-info-main button.btn-wishlist,
#product-product .product-info-main button.btn-compare { float: none; margin: 0; border-radius: 6px; }
#product-product a:focus-visible,
#product-product button:focus-visible,
#product-product input:focus-visible,
#product-product select:focus-visible,
#product-product textarea:focus-visible { outline: 3px solid #245f9b; outline-offset: 3px; }
#product-product .product-info-detailed { margin-top: 32px; line-height: 1.7; overflow-wrap: anywhere; }
#product-product .product-info-detailed img { max-width: 100%; height: auto; }
#product-product .product-info-detailed .nav-tabs { display: flex; flex-wrap: wrap; }
#product-product .column-main > .row > .related-products { width: 100%; float: none; clear: both; padding-top: 32px; }
@media (min-width: 768px) {
  #product-product .column-main { padding: 28px; }
  #product-product .column-main > .row > .block-1 { width: 42%; float: left; }
  #product-product .column-main > .row > .block-2 { width: 58%; float: left; }
  #product-product .product-info-main .product-name { font-size: 36px; }
  #product-product .block-1 > .thumbnails { padding: 24px; }
}
/* End RetroKnygos product-page refresh. */

/* Vintage controls and navigation; data and plugin-generated links stay unchanged. */
.rk-store :is(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,.price,#cart-total,.module-title h2) { font-family: var(--rk-font); }
.rk-store .btn-primary { background: var(--rk-accent); border-color: var(--rk-accent); color: #fff; }
.rk-store .btn-primary:hover { background: var(--rk-accent-dark); border-color: var(--rk-accent-dark); }
.rk-store #cart .dropdown-menu { max-height: 70vh; overflow-y: auto; box-shadow: 0 6px 20px #30251f22; }
.rk-store #cart .cart-image { width: 45px; height: 65px; object-fit: contain; }
/* Category dropdowns: see "Category mega menu" below (positioned by rk-design.js). */
.rk-store .pt_custommenu div.pt_menu { position: static; }
.rk-store .product-thumb .price, .rk-store .product-thumb .price-box .price { color: var(--rk-brown); }
.rk-store #checkout-cart .table td { vertical-align: middle; padding: 12px; }
.rk-store #checkout-cart .table img { max-width: 65px; height: auto; }
.rk-store #checkout-cart td .input-group { display: inline-flex; width: auto; min-width: 150px; align-items: stretch; }
.rk-store #checkout-cart td .input-group .form-control { flex: 0 0 58px; width: 58px; height: 42px; min-height: 42px; text-align: center; padding: 6px; }
.rk-store #checkout-cart td .input-group-btn { display: inline-flex; width: auto; }
.rk-store #checkout-cart td .input-group-btn .btn { height: 42px; min-width: 42px; margin: 0; padding: 8px; border-radius: 0; }
.rk-store #checkout-cart .btn-danger { color: #fff; background: #75452e; border-color: #75452e; }
.rk-store footer .row { display: flex; flex-wrap: wrap; }
.rk-store footer .col-footer { float: none; }
@media (max-width: 991px) {
 .rk-store #ma-mobilemenu { max-height: 65vh; overflow-y: auto; }
}
@media (max-width: 767px) {
 .rk-store #logo img { max-width: 130px; }
 .rk-store .header-inner .container-inner { gap: 10px; }
 .rk-store .header-inner .attention { padding: 12px 14px; font-size: 15px; line-height: 1.6; }
 .rk-store footer .col-footer { width: 50%; }
 .rk-store #checkout-cart .table-responsive { overflow-x: auto; }
}

/* Cart page: OpenCart's own warnings in the vintage palette (stock messages: rk-stock.css). */
.rk-store #checkout-cart .alert-danger:not(.rk-stock-alert) {
  background: #f8ebe2; border: 1px solid #d9a58f; border-left: 5px solid var(--rk-accent); border-radius: 8px;
  color: var(--rk-text); font: 400 16px/1.6 var(--rk-font); text-align: left; text-shadow: none;
}
.rk-store #checkout-cart .alert-danger:not(.rk-stock-alert) > .fa { color: var(--rk-accent); }
.rk-store #checkout-cart td .text-danger { color: var(--rk-accent); font-weight: 700; }

/* Footer refinement: even columns aligned with the page content, readable links,
   no theme dividers, empty columns hidden. Link targets are unchanged. */
.rk-store footer .footer-top .row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 40px; margin-left: 0; margin-right: 0;
}
.rk-store footer .footer-top .row::before, .rk-store footer .footer-top .row::after { content: none; }
.rk-store footer .footer-top .col-footer { float: none; width: auto; min-width: 0; margin: 0 0 16px; padding: 0; }
.rk-store footer .footer-top .col-footer::after { content: none; display: none; }
.rk-store footer .footer-top .col-footer:not(:has(*)) { display: none; }
.rk-store footer .footer-title h5 { margin: 0 0 10px; font-size: 19px; line-height: 1.35; overflow-wrap: break-word; }
.rk-store footer .list-unstyled.text-content { margin: 0; }
.rk-store footer .list-unstyled.text-content li a { display: inline-block; padding: 5px 0; color: var(--rk-brown); font-size: 15px; line-height: 1.5; }
.rk-store footer .list-unstyled.text-content li a:hover,
.rk-store footer .list-unstyled.text-content li a:focus-visible { color: var(--rk-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.rk-store footer .footer-bottom { border-top: 1px solid var(--rk-border); padding: 0; }
.rk-store footer .footer-bottom .container-inner { display: block; border-top: 0; padding: 18px 0; }
.rk-store footer .footer-copyright { float: none; text-align: center; }
.rk-store footer .footer-copyright p { color: #75675b; font-size: 14px; line-height: 1.6; text-transform: none; }
.rk-store footer .footer-bottom .footer-copyright a { color: var(--rk-accent); }
.rk-store footer .footer-bottom .footer-copyright a:hover { color: var(--rk-accent-dark); }
.rk-store #back-top { background: var(--rk-brown); border-radius: 6px; }
.rk-store #back-top:hover { background: var(--rk-accent-dark); }
@media (max-width: 767px) {
  .rk-store footer .footer-top { padding: 28px 0 8px; }
  .rk-store footer .footer-top .col-footer { width: auto; }
}

/* Cart refinement: readable quantity field, consistent secondary button, card layout on phones. */
.rk-store #checkout-cart td .input-group .form-control { font-size: 16px; color: var(--rk-text); }
.rk-store #checkout-cart .buttons { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 8px; }
.rk-store #checkout-cart .buttons::before, .rk-store #checkout-cart .buttons::after { content: none; }
.rk-store #checkout-cart .buttons .pull-left, .rk-store #checkout-cart .buttons .pull-right { float: none; }
.rk-store #checkout-cart .buttons .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 6px; font: 600 16px/1.4 var(--rk-font); text-shadow: none; }
.rk-store #checkout-cart .buttons .btn-default { background: var(--rk-card); color: var(--rk-brown); border: 1px solid var(--rk-brown); }
.rk-store #checkout-cart .buttons .btn-default:hover,
.rk-store #checkout-cart .buttons .btn-default:focus-visible { background: #f0e6d9; color: var(--rk-accent-dark); border-color: var(--rk-accent-dark); }
.rk-store #checkout-cart .btn:disabled, .rk-store #checkout-cart .btn.disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 767px) {
  .rk-store #checkout-cart .table-responsive { overflow-x: visible; border: 0; margin-bottom: 16px; }
  .rk-store #checkout-cart .rk-cart-table, .rk-store #checkout-cart .rk-cart-table tbody { display: block; width: 100%; border: 0; background: transparent; }
  .rk-store #checkout-cart .rk-cart-table thead { display: none; }
  .rk-store #checkout-cart .rk-cart-table tbody tr {
    display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 12px; padding: 12px;
    background: var(--rk-card); border: 1px solid var(--rk-border); border-radius: 8px;
  }
  .rk-store #checkout-cart .rk-cart-table tbody td { display: block; padding: 0; border: 0; text-align: left; vertical-align: top; }
  .rk-store #checkout-cart .rk-cart-table td.rk-cart-image { grid-row: 1 / span 5; }
  .rk-store #checkout-cart .rk-cart-table td.rk-cart-image img { max-width: 72px; }
  .rk-store #checkout-cart .rk-cart-table td.rk-cart-name, .rk-store #checkout-cart .rk-cart-table td.rk-cart-name a { min-width: 0; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .rk-store #checkout-cart .rk-cart-table td.rk-cart-name a { font-weight: 600; }
  .rk-store #checkout-cart .rk-cart-table td[data-label]:not(.rk-cart-name)::before { content: attr(data-label) ": "; color: #75675b; font-size: 14px; }
  .rk-store #checkout-cart .rk-cart-table td.rk-cart-quantity::before { display: block; margin-bottom: 4px; }
  .rk-store #checkout-cart .rk-cart-table td.rk-cart-total { font-weight: 700; color: var(--rk-text); }
  .rk-store #checkout-cart .buttons .pull-left, .rk-store #checkout-cart .buttons .pull-right, .rk-store #checkout-cart .buttons .btn { width: 100%; }
  .rk-store #checkout-cart .buttons .pull-right { order: -1; }
}

/* Checkout appearance (visual only): readable fields, vintage panels and buttons, clear errors. */
.rk-store #checkout-checkout .panel { border: 1px solid var(--rk-border); border-radius: 8px; box-shadow: none; overflow: hidden; background: var(--rk-card); }
.rk-store #checkout-checkout .panel-heading { background: #f0e6d9; border-color: var(--rk-border); padding: 12px 16px; }
.rk-store #checkout-checkout .panel-title, .rk-store #checkout-checkout .panel-title a { color: var(--rk-brown); font: 600 17px/1.4 var(--rk-font); }
.rk-store #checkout-checkout .panel-body { padding: 20px 16px; }
.rk-store #checkout-checkout legend { color: var(--rk-brown); font: 600 18px/1.4 var(--rk-font); border-color: var(--rk-border); }
.rk-store #checkout-checkout .control-label, .rk-store #checkout-checkout label, .rk-store #checkout-checkout p { color: var(--rk-text); font-size: 15px; line-height: 1.5; }
.rk-store #checkout-checkout .form-control { min-height: 44px; font-size: 16px; color: var(--rk-text); background: #fff; border-color: var(--rk-border); }
.rk-store #checkout-checkout .form-control:focus { border-color: var(--rk-accent); box-shadow: 0 0 0 3px rgba(164, 72, 41, .15); }
.rk-store #checkout-checkout .required > .control-label::before, .rk-store #checkout-checkout .required .control-label::before { color: var(--rk-accent); }
.rk-store #checkout-checkout .text-danger { color: #9b2c17; font-size: 14px; margin-top: 4px; }
.rk-store #checkout-checkout .has-error .form-control { border-color: #9b2c17; }
.rk-store #checkout-checkout .btn-primary,
.rk-store #checkout-checkout .buttons .btn { min-height: 44px; padding: 10px 22px; border: 1px solid var(--rk-accent); border-radius: 6px; background: var(--rk-accent); color: #fff; font: 600 16px/1.4 var(--rk-font); text-shadow: none; }
.rk-store #checkout-checkout .btn-primary:hover, .rk-store #checkout-checkout .btn-primary:focus-visible,
.rk-store #checkout-checkout .buttons .btn:hover, .rk-store #checkout-checkout .buttons .btn:focus-visible { background: var(--rk-accent-dark); border-color: var(--rk-accent-dark); color: #fff; }
.rk-store #checkout-checkout .btn:disabled, .rk-store #checkout-checkout .btn.disabled, .rk-store #checkout-checkout .btn[disabled] { opacity: .6; cursor: not-allowed; }
.rk-store #checkout-checkout .alert-danger:not(.rk-stock-alert), .rk-store #checkout-checkout .alert-warning {
  background: #f8ebe2; border: 1px solid #d9a58f; border-left: 5px solid var(--rk-accent); border-radius: 8px; color: var(--rk-text); font-size: 15px; text-shadow: none;
}
.rk-store #checkout-checkout .table { background: var(--rk-card); }
@media (max-width: 767px) {
  .rk-store #checkout-checkout .buttons .pull-right { float: none; }
  .rk-store #checkout-checkout .buttons .btn { width: 100%; }
}

/* ==========================================================================
   RetroKnygos UI redesign (2026-11-07): one typeface, one header row, category
   menu, product cards, alerts, mini-cart buttons, checkout comment, LP Express.
   Scoped to .rk-store (the storefront <body>); no rule targets the admin.
   ========================================================================== */

/* 1. Manrope everywhere in the storefront. Icon fonts keep their own family. */
.rk-store,
.rk-store :where(*:not(.fa):not(.glyphicon):not([class^="ion-"]):not([class*=" ion-"]):not([class^="pe-7s-"]):not([class*=" pe-7s-"]):not([class^="icon-"]):not([class*=" icon-"])) {
  font-family: var(--rk-font) !important;
}
.rk-store h1, .rk-store h2, .rk-store h3, .rk-store h4, .rk-store h5, .rk-store h6 { font-weight: 700; letter-spacing: -.01em; }
.rk-store p, .rk-store li, .rk-store td, .rk-store th, .rk-store label, .rk-store .form-control { line-height: 1.55; }
.rk-store .breadcrumb { font-size: 14px; }
.rk-store .form-control { font-size: 16px; }
.rk-store .btn { font-weight: 600; }

/* Shared buttons */
.rk-store .rk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  min-height: 44px; margin: 0; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px;
  font: 600 15px/1.25 var(--rk-font); text-align: center; text-decoration: none; text-transform: none; letter-spacing: 0;
  box-shadow: none; text-shadow: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.rk-store .rk-btn::before, .rk-store .rk-btn::after { content: none !important; }
.rk-store .rk-btn--primary { background: var(--rk-accent); border-color: var(--rk-accent); color: #fff; }
.rk-store .rk-btn--primary:hover, .rk-store .rk-btn--primary:focus-visible { background: var(--rk-accent-dark); border-color: var(--rk-accent-dark); color: #fff; }
.rk-store .rk-btn--secondary { background: var(--rk-card); border-color: var(--rk-brown); color: var(--rk-brown); }
.rk-store .rk-btn--secondary:hover, .rk-store .rk-btn--secondary:focus-visible { background: var(--rk-sand); border-color: var(--rk-accent-dark); color: var(--rk-accent-dark); }

/* 4 + 10. Header: logo, search, account, wish list and cart on one centred row. */
.rk-store .header-inner { padding: 16px 0 14px; }
.rk-store .header-inner .container-inner { align-items: center; }
.rk-store .rk-header-actions { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 6px 16px; }
.rk-store .rk-header-actions > script { display: none; }
.rk-store .rk-header-actions > :not(script),
.rk-store .rk-header-actions .links,
.rk-store .rk-header-actions .links > div { display: flex; align-items: center; float: none; width: auto; height: auto; margin: 0; padding: 0; border: 0; line-height: 1.2; }
.rk-store .rk-header-actions .links::before, .rk-store .rk-header-actions .links::after,
.rk-store .rk-header-actions .links > div::before, .rk-store .rk-header-actions .links > div::after { content: none; display: none; }
.rk-store .rk-header-link,
.rk-store .rk-header-actions .links a.rk-header-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 8px 8px;
  border: 0; border-radius: 6px; background: transparent; box-shadow: none;
  color: var(--rk-brown); font: 600 15px/1.2 var(--rk-font); text-decoration: none; text-transform: none; white-space: nowrap;
}
.rk-store .rk-header-link::before, .rk-store .rk-header-link::after { content: none !important; }
.rk-store .rk-header-link:hover, .rk-store .rk-header-link:focus-visible,
.rk-store .rk-account.open > .rk-header-link { background: var(--rk-sand); color: var(--rk-accent-dark); text-decoration: none; }
.rk-store .rk-header-link > .fa { flex: 0 0 auto; width: 20px; color: var(--rk-accent); font-size: 18px; text-align: center; }
.rk-store .rk-header-link > .rk-header-link__caret { width: auto; color: inherit; font-size: 14px; }
.rk-store .rk-account { position: relative; }
.rk-store .rk-account > .dropdown-menu {
  left: auto; right: 0; min-width: 220px; margin-top: 6px; padding: 6px; border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius); background: var(--rk-card); box-shadow: var(--rk-shadow);
}
.rk-store .rk-account > .dropdown-menu ul { margin: 0; padding: 0; list-style: none; }
.rk-store .rk-account > .dropdown-menu a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--rk-text); font-size: 15px; font-weight: 500; white-space: normal; }
.rk-store .rk-account > .dropdown-menu a:hover, .rk-store .rk-account > .dropdown-menu a:focus-visible { background: var(--rk-sand); color: var(--rk-accent-dark); }
.rk-store #cart { display: flex; align-items: center; float: none; width: auto; margin: 0; }
.rk-store #cart > button { min-height: 44px; margin: 0; padding: 8px 14px; border: 0; border-radius: 6px; font: 600 14px/1.3 var(--rk-font); white-space: nowrap; }
.rk-store #cart > button:hover, .rk-store #cart > button:focus-visible, .rk-store #cart.open > button { background: var(--rk-accent-dark); }
.rk-store #cart-total { margin-left: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; }
/* The theme prints the count in #cart-total ("3 prek. — ") and the sum separately in .mycart. */
.rk-store #cart > button .mycart { display: inline; position: static; margin: 0; padding: 0; background: none; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rk-store #cart > button .mycart > span:not(.total-price) { display: none; }
.rk-store #cart > button .mycart .total-price { display: inline; position: static; margin: 0; padding: 0; color: inherit; font: inherit; }
.rk-store .rk-header-currency .btn-group { margin: 0; }
.rk-store .rk-header-actions > .rk-header-currency:not(:has(*)) { display: none; }
/* Tablets (768-991 px): Bootstrap hides .navbar-toggle from 768 px, but the desktop menu starts at 992 px. */
@media (min-width: 768px) and (max-width: 991px) {
  .rk-store .menu-mobile .btn-navbar { display: block; }
}
.rk-store .rk-header-extra:empty { display: none; }
@media (max-width: 991px) {
  .rk-store .box-cart .links { display: flex; }
  .rk-store .rk-header-actions { gap: 4px 10px; }
}
/* Phones: icon buttons keep their text for screen readers; the cart shows a count badge. */
.rk-store .rk-visually-hidden,
.rk-store #cart > button .rk-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .rk-store .rk-header-link { min-width: 44px; justify-content: center; padding: 8px; }
  .rk-store .rk-header-link__text, .rk-store .rk-header-link__caret, .rk-store #wishlist-total > span {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .rk-store .rk-header-actions { gap: 2px 6px; }
}
@media (max-width: 575px) {
  .rk-store #logo img { max-width: 120px; max-height: 60px; }
  .rk-store #cart > button { min-width: 48px; padding: 8px 10px; position: relative; }
  .rk-store #cart > button .mycart { display: none; }
  .rk-store #cart > button #cart-total { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rk-store #cart > button[data-rk-count]::after {
    content: attr(data-rk-count); display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
    padding: 0 5px; border-radius: 10px; background: #fff; color: var(--rk-accent-dark); font: 700 12px/1 var(--rk-font);
  }
}

/* 2 + 3. Category mega menu: anchored panels sized by their content (rk-design.js positions them). */
.rk-store .top-menu .container-inner, .rk-store #pt_custommenu { position: relative; }
.rk-store .pt_custommenu div.pt_menu .parentMenu a,
.rk-store .pt_custommenu div.pt_menu .parentMenu span.block-title { font-size: 16px; font-weight: 600; padding: 15px 18px; }
.rk-store .pt_custommenu div.pt_menu .parentMenu a > span { display: inline-flex; align-items: center; gap: 6px; }
.rk-store .pt_custommenu .pt_menu > .popup {
  display: none; position: absolute; top: 100%; left: 0; right: auto; z-index: 1000; box-sizing: border-box;
  width: max-content; min-width: 200px; max-width: min(1000px, calc(100vw - 32px)); max-height: min(72vh, 640px);
  margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain;
  background: var(--rk-card); border: 1px solid var(--rk-border); border-top: 3px solid var(--rk-accent);
  border-radius: 0 0 var(--rk-radius) var(--rk-radius); box-shadow: var(--rk-shadow); text-align: left;
}
.rk-store .pt_custommenu .pt_menu.rk-open > .popup { display: block; animation: rk-menu-in .16s ease-out both; }
.rk-store .pt_custommenu .popup .inner-popup { padding: 10px 0; }
.rk-store .pt_custommenu .popup .block1 {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, max-content); gap: 0;
  float: none; width: auto !important; margin: 0; padding: 0 6px;
}
.rk-store .pt_custommenu .popup .block1::before, .rk-store .pt_custommenu .popup .block1::after,
.rk-store .pt_custommenu .popup .clearBoth { content: none; display: none; }
.rk-store .pt_custommenu .popup .column { float: none; width: auto; min-width: 0; max-width: 260px; margin: 0; padding: 0 6px; }
.rk-store .pt_custommenu .popup .column + .column { border-left: 1px solid var(--rk-line); }
.rk-store .pt_custommenu .popup .itemMenu { float: none; width: auto; margin: 0; padding: 0; }
.rk-store .pt_custommenu .popup .itemSubMenu { margin: 0 0 8px; padding: 0; border: 0; }
.rk-store .pt_custommenu .popup a.itemMenuName {
  display: block; float: none; box-sizing: border-box; margin: 1px 0; padding: 7px 14px 7px 16px; border-radius: 6px;
  color: var(--rk-text); font: 500 15px/1.4 var(--rk-font); text-transform: none; text-decoration: none;
  white-space: normal; overflow-wrap: break-word; hyphens: auto; background: transparent;
}
.rk-store .pt_custommenu .popup a.itemMenuName::before, .rk-store .pt_custommenu .popup a.itemMenuName::after { content: none; }
/* A category with genres is a section heading; its genres are indented below it. */
.rk-store .pt_custommenu .popup a.itemMenuName.actParent {
  margin-top: 6px; padding-top: 9px; padding-bottom: 8px; border-radius: 6px 6px 0 0;
  border-bottom: 1px solid #e3c3ae; color: var(--rk-brown); font-weight: 700; letter-spacing: .01em;
}
.rk-store .pt_custommenu .popup .itemMenu > a.itemMenuName.actParent:first-child { margin-top: 0; }
.rk-store .pt_custommenu .popup .itemSubMenu a.itemMenuName { padding-left: 28px; color: #4a3a31; font-weight: 400; }
.rk-store .pt_custommenu .popup a.itemMenuName:hover,
.rk-store .pt_custommenu .popup a.itemMenuName:focus-visible { background: var(--rk-sand); color: var(--rk-accent-dark); outline-offset: -2px; }
.rk-store .pt_custommenu .popup .block2 { padding: 10px 16px; }
@keyframes rk-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Mobile menu: readable rows with a clear left inset. */
.rk-store #ma-mobilemenu a { padding-left: 16px; padding-right: 44px; font-size: 16px; line-height: 1.4; white-space: normal; overflow-wrap: break-word; }
.rk-store #ma-mobilemenu li li a { padding-left: 30px; font-size: 15px; }
.rk-store #ma-mobilemenu li li li a { padding-left: 44px; }
.rk-store #ma-mobilemenu li + li { border-top: 1px solid var(--rk-line); }

/* 7. Product cards: equal rows, stock line, full-width action that turns into "Į krepšelį". */
.rk-store .product-thumb { height: 100%; transition: box-shadow .25s ease, border-color .25s ease; }
.rk-store .product-thumb .image { position: relative; overflow: hidden; }
.rk-store .product-thumb .image img:not(.img-r) { transition: transform .26s ease; transform-origin: 50% 50%; backface-visibility: hidden; }
.rk-store .product-thumb .product-name a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; max-height: none; }
.rk-store .product-thumb .product-name, .rk-store .product-thumb h4 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.rk-store .product-thumb .action-links { flex-wrap: wrap; }
.rk-store .product-thumb .price-box p { margin: 0; }
.rk-store .product-thumb .price-box, .rk-store .grid-style .item-inner:hover .price-box { margin-bottom: 4px; }
.rk-store .tt-product:not(.owl-carousel) > .row_items > .grid-style .action-links { margin-top: 0; }
.rk-store .product-thumb .action-links .rk-buy { height: auto; min-height: 48px; margin: 10px 0 0; padding: 10px 14px; line-height: 1.3; }
.rk-store .product-thumb .action-links .add-to-links { order: 1; }
.rk-store .product-thumb .action-links .rk-buy { order: 10; }
.rk-store .rk-buy {
  display: grid; place-items: center; flex: 1 0 100%; box-sizing: border-box; width: 100%; min-height: 48px;
  margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--rk-line); border-radius: var(--rk-radius);
  font: 600 15px/1.3 var(--rk-font); text-align: center; text-transform: none; letter-spacing: 0;
}
.rk-store .rk-buy__btn { position: relative; overflow: hidden; background: #fbf7f1; color: var(--rk-success-dark); cursor: pointer; box-shadow: none; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.rk-store .rk-buy__btn::before, .rk-store .rk-buy__btn::after { content: none !important; }
.rk-store .rk-buy__stock, .rk-store .rk-buy__cta {
  grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%;
  transition: opacity .25s ease, transform .25s ease;
}
.rk-store .rk-buy__cta { opacity: 0; transform: translateY(8px); color: #fff; }
.rk-store .rk-buy__cta .fa { font-size: 16px; }
.rk-store .rk-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px rgba(47, 158, 91, .18); }
.rk-store .rk-dot--out { background: #a2968b; box-shadow: none; }
.rk-store .rk-buy--out { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f3ece3; border-style: dashed; color: #6f6357; font-size: 14px; cursor: default; }
.rk-store .rk-buy__btn.is-busy { cursor: progress; opacity: .8; }
.rk-store .rk-buy__btn:focus-visible { outline: 3px solid #28689c; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .rk-store .product-thumb:hover { border-color: #d3bea8; box-shadow: var(--rk-shadow); }
  .rk-store .product-thumb:hover .image img:not(.img-r) { transform: scale(1.05); }
  .rk-store .product-thumb:hover .rk-buy__btn, .rk-store .rk-buy__btn:focus-visible { background: var(--rk-accent); border-color: var(--rk-accent); }
  .rk-store .product-thumb:hover .rk-buy__btn:hover { background: var(--rk-accent-dark); border-color: var(--rk-accent-dark); }
  .rk-store .product-thumb:hover .rk-buy__stock, .rk-store .rk-buy__btn:focus-visible .rk-buy__stock { opacity: 0; transform: translateY(-8px); }
  .rk-store .product-thumb:hover .rk-buy__cta, .rk-store .rk-buy__btn:focus-visible .rk-buy__cta { opacity: 1; transform: none; }
}
/* Touch screens: the stock line stays, and the action is a permanent terracotta button. */
@media (hover: none), (pointer: coarse) {
  .rk-store .rk-buy__btn,
  .rk-store .product-thumb .action-links .rk-buy__btn { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; padding: 0; border: 0; background: transparent; }
  .rk-store .rk-buy__stock { justify-content: center; font-size: 14px; }
  .rk-store .rk-buy__cta { opacity: 1; transform: none; min-height: 46px; padding: 10px 14px; border-radius: var(--rk-radius); background: var(--rk-accent); }
  .rk-store .rk-buy__btn:active .rk-buy__cta { background: var(--rk-accent-dark); }
}

/* 8. Alerts after adding to cart: stronger green, one text colour, gentle entrance. */
.rk-store .alert-success {
  position: relative; box-sizing: border-box; max-width: 100%; margin: 0 0 18px; padding: 14px 52px 14px 16px;
  background: #d5ecdc; border: 1px solid #94c9a5; border-left: 6px solid var(--rk-success); border-radius: var(--rk-radius);
  box-shadow: 0 4px 14px rgba(35, 96, 60, .14); color: #173f28; font: 500 16px/1.5 var(--rk-font); text-shadow: none;
  overflow-wrap: anywhere; animation: rk-alert-in .26s ease-out both;
}
/* On the home page OpenCart inserts the alert before .wrapper (directly in <body>): keep it in the content width. */
.rk-store > .alert { width: calc(100% - 32px); max-width: 1140px; margin: 12px auto 0; }
.rk-store .alert-success > .fa { margin-right: 6px; color: var(--rk-success); font-size: 19px; vertical-align: -2px; }
.rk-store .alert-success a, .rk-store .alert-success a:hover, .rk-store .alert-success a:focus { color: #0f3320 !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rk-store .alert-dismissible > .close {
  position: absolute; top: 8px; right: 10px; float: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 6px; color: inherit; font-size: 24px; line-height: 1; opacity: .75; text-shadow: none;
}
.rk-store .alert-dismissible > .close:hover, .rk-store .alert-dismissible > .close:focus-visible { opacity: 1; background: rgba(0, 0, 0, .06); }
.rk-store .rk-stock-alert--ajax { animation: rk-alert-in .26s ease-out both; }
@keyframes rk-alert-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .rk-store .alert-success { margin: 0 0 14px; font-size: 15px; }
}

/* 9. Mini-cart: terracotta checkout, light secondary, equal height, centred labels. */
.rk-store #cart .dropdown-menu { padding: 12px; border-radius: var(--rk-radius); }
.rk-store #cart .dropdown-menu .table { margin-bottom: 8px; background: transparent; }
.rk-store #cart .dropdown-menu .table td { border-color: var(--rk-line); color: var(--rk-text); font-size: 14px; }
.rk-store #cart .cart-button.rk-cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 0; padding: 0; background: transparent; border: 0; }
.rk-store #cart .cart-button.rk-cart-actions a.rk-btn {
  display: flex; align-items: center; justify-content: center; float: none; width: auto; height: auto; min-height: 46px; margin: 0; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 6px; font: 600 15px/1.25 var(--rk-font); text-align: center; text-transform: none; letter-spacing: 0; text-decoration: none;
}
.rk-store #cart .cart-button.rk-cart-actions a.rk-btn--primary { background: var(--rk-accent); border-color: var(--rk-accent); color: #fff; }
.rk-store #cart .cart-button.rk-cart-actions a.rk-btn--primary:hover,
.rk-store #cart .cart-button.rk-cart-actions a.rk-btn--primary:focus-visible { background: var(--rk-accent-dark); border-color: var(--rk-accent-dark); color: #fff; }
.rk-store #cart .cart-button.rk-cart-actions a.rk-btn--secondary { background: var(--rk-card); border-color: var(--rk-brown); color: var(--rk-brown); }
.rk-store #cart .cart-button.rk-cart-actions a.rk-btn--secondary:hover,
.rk-store #cart .cart-button.rk-cart-actions a.rk-btn--secondary:focus-visible { background: var(--rk-sand); border-color: var(--rk-accent-dark); color: var(--rk-accent-dark); }
@media (max-width: 380px) {
  .rk-store #cart .cart-button.rk-cart-actions { grid-template-columns: 1fr; }
}

/* 12. Checkout: compact order comment below the delivery choice */
.rk-store #checkout-checkout textarea.rk-comment { min-height: calc(3 * 1.55em + 22px); max-height: 360px; resize: vertical; }
.rk-store #collapse-shipping-method .radio label { font-size: 16px; line-height: 1.5; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .rk-store .product-thumb, .rk-store .product-thumb .image img, .rk-store .rk-buy__btn,
  .rk-store .rk-buy__stock, .rk-store .rk-buy__cta, .rk-store .rk-btn { transition: none !important; }
  .rk-store .product-thumb:hover .image img:not(.img-r) { transform: none !important; }
  .rk-store .alert-success, .rk-store .rk-stock-alert--ajax, .rk-store .pt_custommenu .pt_menu.rk-open > .popup { animation: none !important; }
}
/* End RetroKnygos UI redesign (2026-11-07). */
