/* Header reference: soft pink, without photographic decoration. */
header.rikki-header { padding: 30px 0 24px; background: linear-gradient(115deg,#fceaf6 0%,#fbdcf1 55%,#ffc7e9 100%); color: #172033; }
header.rikki-header .header-container { display: grid; grid-template-columns: 220px 180px minmax(260px,1fr) 270px; gap: 24px; align-items: center; }
header.rikki-header .header-container .logo { margin: 0; min-width: 0; }
header.rikki-header .header-container .logo img { display: block; width: 100%; max-width: 220px; height: auto; }
header.rikki-header .header-container .help-container { display: block; }
header.rikki-header .help-container a { display: flex; align-items: center; gap: 9px; color: #172033; text-decoration: none; }
header.rikki-header .help-container i { color: #0037eb; font-size: 23px; }
header.rikki-header .header-container .help-container span { padding: 0; font-size: 15px; }
header.rikki-header .header-container .search-container { display: flex; flex-direction: column; gap: 12px; min-width: 0; width: auto; order: initial; }
header.rikki-header .header-container .h-search { padding: 0; height: 55px; border-radius: 12px; background: #fff; }
header.rikki-header .header-container .h-search input { height: 55px; width: 100%; padding: 0 65px 0 20px; background: transparent; border: 0; border-radius: 12px; color: #172033; font-size: 14px; }
header.rikki-header .header-container .h-search .h-search-btn { right: 6px; top: 6px; margin: 0; width: 48px; height: 43px; background: #0037eb; }
header.rikki-header .header-container .container-language-currency { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; margin: 0; min-height: 39px; background: rgba(255,255,255,.95); border-radius: 10px; }
header.rikki-header .language-container,header.rikki-header .currency-container { min-width: 0; position: relative; }
header.rikki-header .header-container .container-language-currency form { margin: 0; }
header.rikki-header .lang-btn,header.rikki-header .currency-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 39px; border: 0; background: transparent; font-size: 14px; color: #172033; }
header.rikki-header .lang-btn img { width: 21px; height: auto; }
header.rikki-header .currency-container:before { content: ''; position: absolute; left: 0; top: 10px; height: 19px; width: 1px; background: #e6e7ee; }
header.rikki-header .header-container .header-menu { display: flex; width: auto; margin: 0; order: initial; justify-content: space-between; }
header.rikki-header .header-menu .header-menu-item { flex: 1; border-left: 1px solid rgba(255,255,255,.7); }
header.rikki-header .header-menu .header-menu-item:first-child { border: 0; }
header.rikki-header .header-menu .header-menu-item-link { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 13px; padding: 5px; width: 100%; height: auto; min-height: 70px; color: #172033; }
header.rikki-header .header-menu .header-menu-item-link i { font-size: 29px; color: #142034; }
header.rikki-header .header-menu .header-action-label { display: block; position: static; font-size: 13px; font-weight: 600; line-height: 1.3; max-width: 90px; }
header.rikki-header .header-menu .count { top: -8px; right: 17px; background: #f723ac; width: 23px; height: 23px; }
header.rikki-header .header-menu .short-cart .count { background: #0037eb; }
header.rikki-header .dropdown-menu { z-index: 1050; }
#menu.rikki-navigation { display: block; border: 0; background: linear-gradient(115deg,#fceaf6,#ffd0ec); padding: 0 0 10px; margin: 0 0 20px; }
#menu.rikki-navigation .container { display: block; }
.rikki-nav-list { display: flex; align-items: center; justify-content: center; gap: 32px; list-style: none; padding: 13px 8px; margin: 0; border-radius: 12px; background: #f8fafdf5; box-shadow: 0 5px 16px #17203308; }
.rikki-nav-list > li > a { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 9px; color: #172033; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: 9px; }
.rikki-nav-list > li > a > i { color: #0843c2; font-size: 17px; }
.rikki-nav-list > .rikki-catalog > a,.rikki-catalog-mobile { background: linear-gradient(110deg,#f623b6,#ff19a5); color: #fff; }
.rikki-nav-list > .rikki-catalog > a { min-width: 260px; justify-content: space-between; }
.rikki-nav-list > .rikki-catalog > a i { color: #fff; }
.rikki-nav-list .rikki-home { color: #0037eb; background: transparent; box-shadow: none; }
.rikki-nav-list a:hover { filter: brightness(.97); }
.rikki-catalog { position: relative; }
#menu.rikki-navigation .dropdown-menu { min-width: 100%; padding: 10px; border-radius: 10px; max-height: 65vh; overflow-y: auto; }
#menu.rikki-navigation .dropdown-menu a { display: block; padding: 10px; color: #172033; white-space: normal; text-decoration: none; }
.rikki-catalog-mobile { display: none; }
header.rikki-header a:focus-visible,header.rikki-header button:focus-visible,.rikki-navigation a:focus-visible,.rikki-navigation button:focus-visible { outline: 2px solid #0037eb; outline-offset: 3px; }
@media (max-width: 1199px) {
 header.rikki-header .header-container { grid-template-columns: 180px minmax(230px,1fr) 220px; gap: 20px; }
 header.rikki-header .header-container .help-container { display: none; }
 .rikki-nav-list { gap: 16px; padding: 10px; }
 .rikki-nav-list > li > a { padding: 12px 9px; font-size: 13px; gap: 8px; }
 .rikki-nav-list > .rikki-catalog > a { min-width: 0; }
}
@media (max-width: 767px) {
 header.rikki-header { padding: 16px 0 12px; }
 header.rikki-header > .container,#menu.rikki-navigation > .container { width: 100%; padding-left: 15px; padding-right: 15px; }
 header.rikki-header .header-container { grid-template-columns: minmax(120px,1fr) auto; gap: 16px 12px; }
 header.rikki-header .header-container .logo img { max-width: 165px; }
 header.rikki-header .header-container .header-menu { width: 156px; gap: 4px; }
 header.rikki-header .header-menu .header-menu-item { border: 0; }
 header.rikki-header .header-menu .header-menu-item-link { width: 48px; height: 44px; min-height: 0; padding: 8px; justify-content: center; }
 header.rikki-header .header-menu .header-menu-item-link i { font-size: 22px; }
 header.rikki-header .header-menu .header-action-label { display: none; }
 header.rikki-header .header-menu .count { top: -4px; right: 0; width: 21px; height: 21px; font-size: 12px; }
 header.rikki-header .header-container .search-container { grid-column: 1 / -1; gap: 12px; }
 header.rikki-header .header-container .h-search input { font-size: 15px; padding-left: 17px; }
 header.rikki-header .header-container .container-language-currency { background: transparent; gap: 14px; }
 header.rikki-header .language-container,header.rikki-header .currency-container { background: #ffffffed; border-radius: 10px; }
 header.rikki-header .currency-container:before { display: none; }
 header.rikki-header .lang-btn,header.rikki-header .currency-btn { gap: 7px; font-size: 14px; }
 #menu.rikki-navigation { padding-bottom: 12px; margin-bottom: 0; }
 .rikki-nav-list { display: none; }
 .rikki-catalog-mobile { display: flex; align-items: center; gap: 15px; width: 100%; min-height: 49px; padding: 12px 18px; border: 0; border-radius: 9px; font-size: 18px; font-weight: 700; text-align: left; }
 .rikki-catalog-mobile > i:first-child { font-size: 24px; }
 .rikki-catalog-mobile > i:last-child { margin-left: auto; }
}
@media (max-width: 359px) {
 header.rikki-header .header-container .header-menu { width: 132px; gap: 0; }
 header.rikki-header .header-menu .header-menu-item-link { width: 44px; }
 header.rikki-header .header-container { gap: 15px 5px; }
}
/* Override the legacy search and action rules at their full specificity. */
/* Mouse clicks stay unframed; keyboard focus remains visible in the brand color. */
body a:focus:not(:focus-visible) { outline: none !important; }
body a:focus-visible { outline: 2px solid #0037eb; outline-offset: 3px; }
header.rikki-header #search.h-search { position: relative; display: block; height: 52px; padding: 0; background: #fff; border-radius: 12px; }
header.rikki-header #search.h-search input.form-control { display: block; box-sizing: border-box; width: 100%; height: 52px; min-height: 0; padding: 0 64px 0 18px; margin: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: none; line-height: normal; font-size: 15px; }
header.rikki-header #search.h-search .h-search-btn { position: absolute; inset: 5px 6px auto auto; width: 42px; height: 42px; margin: 0; padding: 0; border-radius: 50%; }
header.rikki-header .header-container .header-menu .header-menu-item-link i { font-size: 23px; }
header.rikki-header .header-container .header-menu .header-menu-item-link { min-height: 56px; gap: 9px; }
header.rikki-header .header-container .header-menu .header-action-label { font-size: 12px; }
header.rikki-header .header-container .header-menu .count { width: 19px; height: 19px; font-size: 11px; top: -5px; }
#menu.rikki-navigation { background: #f8fafc; padding: 0; border-radius: 0; width: 100%; }
.rikki-nav-list { justify-content: center; background: transparent; border-radius: 0; box-shadow: none; }
.rikki-nav-list > .rikki-catalog > a { min-width: 0; background: transparent; color: #172033; justify-content: center; }
.rikki-nav-list > .rikki-catalog > a i { color: #0843c2; }
#mobile-header-preferences:empty { display: none; }
#mobile-header-preferences .container-language-currency { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
#mobile-header-preferences form { margin: 0; }
#mobile-header-preferences .language-container,#mobile-header-preferences .currency-container { position: relative; min-width: 0; }
#mobile-header-preferences .lang-btn,#mobile-header-preferences .currency-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 42px; padding: 8px; border: 0; border-radius: 8px; background: #f5f6fb; color: #172033; font-size: 13px; }
#mobile-header-preferences .lang-btn img { width: 21px; }
#mobile-header-preferences .dropdown-menu { min-width: 100%; z-index: 1060; }
#mobile-header-preferences .dropdown-menu button { width: 100%; padding: 8px; background: #fff; border: 0; text-align: left; }
@media (max-width: 767px) {
 header.rikki-header .header-container .logo { grid-column: 1; grid-row: 1; }
 header.rikki-header .header-container .header-menu { grid-column: 2; grid-row: 1; width: 138px; }
 header.rikki-header .header-container .header-menu .header-menu-item-link { min-height: 44px; width: 44px; }
 header.rikki-header .header-container .header-menu .header-menu-item-link i { font-size: 22px; }
 header.rikki-header .header-container .search-container { grid-row: 2; }
 header.rikki-header .container-language-currency { display: none !important; }
 #menu.rikki-navigation { background: linear-gradient(115deg,#fceaf6,#ffd0ec); padding-bottom: 12px; }
}

/* Language and currency pickers, shared with the mobile drawer. */
:is(header.rikki-header, #mobile-header-preferences) :is(#form-language, #form-currency),
:is(header.rikki-header, #mobile-header-preferences) .lang-select { position: relative; }
:is(header.rikki-header, #mobile-header-preferences) :is(#form-language, #form-currency) .dropdown-menu { top: calc(100% + 8px); left: 0; right: auto; width: max-content; min-width: 100%; max-width: calc(100vw - 40px); padding: 6px; margin: 0; border: 1px solid #e9edf5; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(26,40,75,.13); list-style: none; }
:is(header.rikki-header, #mobile-header-preferences) #form-currency .dropdown-menu { left: auto; right: 0; }
:is(header.rikki-header, #mobile-header-preferences) :is(#form-language, #form-currency) .dropdown-menu li { padding: 0; margin: 0; border: 0; }
:is(header.rikki-header, #mobile-header-preferences) :is(#form-language, #form-currency) .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 39px; padding: 9px 12px; margin: 0; border: 0; border-radius: 7px; background: transparent; color: #293247; font-size: 13px; line-height: 1.4; text-align: left; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
:is(header.rikki-header, #mobile-header-preferences) :is(#form-language, #form-currency) .dropdown-menu button:hover,
:is(header.rikki-header, #mobile-header-preferences) :is(#form-language, #form-currency) .dropdown-menu button:focus-visible { background: #f1f5ff; color: #0037eb; }
:is(header.rikki-header, #mobile-header-preferences) :is(#form-language, #form-currency) .dropdown-menu button.is-selected { background: #edf2ff; color: #0037eb; font-weight: 600; }
:is(header.rikki-header, #mobile-header-preferences) .dropdown-menu .language-select img { width: 20px; height: auto; border-radius: 2px; }
:is(header.rikki-header, #mobile-header-preferences) .dropdown-menu .currency-select strong { min-width: 22px; text-align: center; }
:is(header.rikki-header, #mobile-header-preferences) :is(.language-select, .currency-select) .fa-check { margin-left: auto; font-size: 11px; color: #0037eb; }

/* Wide catalog dropdown with category previews. */
@media (min-width: 768px) {
 #menu.rikki-navigation > .container { position: relative; }
 #menu.rikki-navigation .rikki-catalog { position: static; }
 #menu.rikki-navigation .rikki-mega-menu { left: 15px; right: 15px; top: 100%; width: auto; min-width: 0; max-height: min(680px,70vh); margin: 0; padding: 28px; border: 1px solid #f0e4ec; border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(64,30,50,.14); z-index: 1040; }
 .rikki-mega-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 24px; }
 .rikki-mega-category { display: flex; align-items: flex-start; gap: 15px; min-width: 0; }
 #menu.rikki-navigation .rikki-mega-menu .rikki-mega-image { display: flex; align-items: center; justify-content: center; flex: 0 0 86px; width: 86px; height: 76px; padding: 0; overflow: hidden; border-radius: 13px; background: transparent; color: #2463cc; }
 .rikki-mega-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
 .rikki-mega-image > i { font-size: 28px; }
 .rikki-mega-content { flex: 1; min-width: 0; }
 #menu.rikki-navigation .rikki-mega-menu .rikki-mega-title { display: flex; align-items: baseline; gap: 8px; padding: 0 0 9px; color: #164da0; font-size: 15px; font-weight: 700; line-height: 1.35; }
 .rikki-mega-title > i { color: #2463cc; font-size: 15px; }
 .rikki-mega-children { list-style: none; margin: 0; padding: 0; }
 #menu.rikki-navigation .rikki-mega-children a { padding: 3px 0; color: #44404a; font-size: 12px; line-height: 1.5; }
 #menu.rikki-navigation .rikki-mega-menu a:hover { color: #0037eb; background: transparent; filter: none; }
 #menu.rikki-navigation .rikki-mega-menu a:focus-visible { outline-color: #2463cc; }
}
@media (min-width: 768px) and (max-width: 991px) {
 .rikki-mega-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
 #menu.rikki-navigation .rikki-mega-menu { padding: 22px; }
}

/* A calm, responsive recovery page. */
.rikki-not-found { padding-top: 46px; padding-bottom: 70px; }
.rikki-not-found__card { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 55px; padding: 60px; border: 0; border-radius: 0; background: transparent; }
.rikki-not-found__art { position: relative; min-height: 285px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: transparent; }
.rikki-not-found__code { font-size: clamp(110px,14vw,190px); line-height: 1; font-weight: 700; letter-spacing: -10px; color: #0037eb; text-shadow: 0 12px 0 #0037eb09; }
.rikki-not-found__spark { position: absolute; top: 6px; right: 20px; font-size: 45px; color: #eeb5d8; }
.rikki-not-found__pill { margin-top: 22px; padding: 8px 16px; border-radius: 30px; background: #fff; color: #3956a0; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.rikki-not-found__eyebrow { color: #68728b; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.rikki-not-found__body h1 { margin: 12px 0 18px; color: #17233b; font-size: clamp(26px,3vw,38px); line-height: 1.2; font-weight: 700; }
.rikki-not-found__body p { max-width: 470px; margin: 0 0 25px; color: #6c7485; font-size: 14px; line-height: 1.8; }
.rikki-not-found__search { display: flex; align-items: center; gap: 6px; padding: 6px; margin-bottom: 24px; border: 1px solid #dfe5f2; border-radius: 12px; background: #fff; }
.rikki-not-found__search input { width: 100%; min-width: 0; padding: 10px 12px; border: 0; background: transparent; color: #17233b; font-size: 14px; }
.rikki-not-found__search button { flex: 0 0 42px; height: 42px; border: 0; border-radius: 9px; background: #0037eb; color: #fff; cursor: pointer; }
.rikki-not-found__search:focus-within { border-color: #0037eb; box-shadow: 0 0 0 3px #0037eb12; }
.rikki-not-found__home { display: inline-flex; align-items: center; gap: 10px; color: #0037eb; font-size: 14px; font-weight: 600; text-decoration: none; }
.rikki-not-found__home:hover { color: #0029b3; }
@media(max-width:767px) {
 .rikki-not-found { padding-top: 24px; padding-bottom: 35px; }
 .rikki-not-found__card { grid-template-columns: 1fr; gap: 25px; padding: 28px 22px; border-radius: 20px; }
 .rikki-not-found__art { min-height: 180px; }
 .rikki-not-found__code { font-size: 120px; letter-spacing: -6px; }
 .rikki-not-found__body { text-align: center; }
 .rikki-not-found__body p { margin-left: auto; margin-right: auto; }
}

/* Pagination uses the same pink gradient as the header. */
body .pagination > .active > span,
body .pagination > .active > span:hover,
body .pagination > .active > a,
body .pagination > .active > a:hover,
body .catalog-pagination .pagination > .active > span,
body .catalog-pagination .pagination > .active > span:hover {
 border-color: #f6cce6;
 background: linear-gradient(115deg,#fceaf6 0%,#fbdcf1 55%,#ffc7e9 100%);
 color: #75364f;
 box-shadow: 0 3px 8px rgba(190,70,131,.1);
}
/* Match the home content width to the catalog. */
#common-home.container { width: 100%; max-width: 1600px; padding: 0 20px 36px; }
#common-home #content { min-width: 0; }
@media (max-width: 767px) {
 #common-home.container { padding: 0 12px 24px; }
}

.recommendation-section { margin: 32px 0 40px; }
.recommendation-section__title { position: relative; margin: 0 0 22px; padding: 0 0 14px; color: #17233b; font-size: 24px; line-height: 1.3; font-weight: 600; }
.recommendation-section__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 52px; height: 3px; border-radius: 3px; background: linear-gradient(90deg,#0037eb,#f5c4e1); }
@media(max-width:767px) { .recommendation-section { margin: 24px 0 30px; } .recommendation-section__title { font-size: 20px; margin-bottom: 18px; } }

/* Live search: grouped, compact product previews. */
.gd-search-mod .gd-search-mod-container { padding: 22px; }
.gd-search-mod .gd-search-list { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 24px; padding: 0; }
.gd-search-mod .gd-search-list-catalog { width: auto; margin: 0; }
.gd-search-mod .gd-search-list-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 18px; width: 100%; min-width: 0; }
.gd-search-mod .gd-search-list-grid { width: auto; min-width: 0; height: 100%; margin: 0; padding: 8px; border: 0; border-radius: 0; background: transparent; }
.gd-search-mod .gd-search-cat-name { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.4; color: #1d3154; }
.gd-search-mod .gd-search-item { display: block; width: 100%; margin: 0; padding: 0; min-width: 0; }
.gd-search-mod .gd-search-item + .gd-search-item { border-top: 1px solid #f0f2f7; }
.gd-search-mod .gd-search-item > a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-radius: 8px; min-width: 0; }
.gd-search-mod .gd-search-item > a:hover { background: #f7f9ff; }
.gd-search-mod .gd-search-item-image { flex: 0 0 64px; width: 64px; height: 72px; margin: 0; overflow: hidden; border-radius: 8px; background: #fff; }
.gd-search-mod .gd-search-item-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gd-search-mod .gd-search-item-content { flex: 1; min-width: 0; }
.gd-search-mod .gd-search-item-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #30384a; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.gd-search-mod .gd-search-item-price { margin-top: 5px; color: #17233b; font-size: 14px; font-weight: 700; line-height: 1.4; }
.gd-search-mod .gd-search-cat-count { display: inline-block; width: auto; margin-top: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #2455ad; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.gd-search-mod .gd-search-cat-count:hover { background: transparent; text-decoration: underline; }
.gd-search-mod .gd-search-cat-products { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.gd-search-mod .gd-search-list-items > .gd-search-cat-name { grid-column: 1 / -1; }
@media(max-width:1199px) {
 .gd-search-mod .gd-search-list { grid-template-columns: 190px minmax(0,1fr); gap: 16px; }
 .gd-search-mod .gd-search-list-items,.gd-search-mod .gd-search-cat-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
 .gd-search-mod .gd-search-mod-container { padding: 12px; }
 .gd-search-mod .gd-search-list { grid-template-columns: minmax(0,1fr); }
 .gd-search-mod .gd-search-list-catalog { width: 100%; margin-bottom: 8px; }
 .gd-search-mod .gd-search-list-items,.gd-search-mod .gd-search-cat-products { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .gd-search-mod .gd-search-list-grid { padding: 14px; }
 .gd-search-mod .gd-search-item-name { font-size: 13px; }
}
