/* Koshik v3 visual layer for OpenCart / oct_remarket.
   Presentation only: product data, checkout fields and cart actions stay native. */
:root {
  --kv3-ink: #222a24;
  --kv3-muted: #605e54;
  --kv3-paper: #fdfaf5;
  --kv3-white: #fffefa;
  --kv3-line: #e9e1d6;
  --kv3-coral: #ba3d30;
  --kv3-coral-hover: #982c22;
  --kv3-peach: #f6e4d8;
  --kv3-olive: #e6e9d9;
  --kv3-pink: #f3e1e4;
  --kv3-shadow: 0 10px 30px rgba(46, 38, 28, .07);
}

html { scroll-behavior: smooth; }
body {
  color: var(--kv3-ink);
  background: var(--kv3-paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
body, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; transition: color .16s ease; }
a:hover { color: var(--kv3-coral); }
:focus-visible { outline: 3px solid #467769 !important; outline-offset: 3px; }

header {
  position: relative;
  z-index: 20;
  background: var(--kv3-white);
  border-bottom: 1px solid var(--kv3-line);
  box-shadow: 0 3px 16px rgba(46, 38, 28, .035);
}
header > .container-fluid { max-width: 1360px; padding-top: 13px; padding-bottom: 13px; }
#logo { justify-content: flex-start !important; }
.kv3-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--kv3-ink); font-size: 24px; font-weight: 800; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.kv3-wordmark:hover { color: var(--kv3-ink); text-decoration: none; }
.kv3-wordmark > span > span { color: var(--kv3-coral); }
.kv3-wordmark svg { width: 42px; height: 42px; padding: 8px; flex: none; border-radius: 13px; background: var(--kv3-coral); fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kv3-wordmark ~ * { display: none !important; }
#logo img { max-height: 64px; width: auto; object-fit: contain; }
#menu_toggle_button,
.rm-btn.primary,
.rm-btn.rm-product-one-click-btn,
#product #button-cart,
#product-product #button-cart {
  color: #fff !important;
  background: var(--kv3-coral) !important;
  border-color: var(--kv3-coral) !important;
  border-radius: 10px;
  box-shadow: 0 5px 13px rgba(186, 61, 48, .16);
  font-weight: 700;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
#menu_toggle_button:hover,
.rm-btn.primary:hover,
.rm-btn.rm-product-one-click-btn:hover,
#product #button-cart:hover,
#product-product #button-cart:hover {
  color: #fff !important;
  background: var(--kv3-coral-hover) !important;
  border-color: var(--kv3-coral-hover) !important;
  transform: translateY(-1px);
}
header input[type="text"], header input[type="search"] {
  min-height: 44px;
  border: 1px solid var(--kv3-line);
  border-radius: 11px;
  background: #f8f5ef;
}
header input:focus { border-color: #c57b6d; box-shadow: 0 0 0 3px rgba(186, 61, 48, .1); }

#common-home, #product-category, #product-product, #checkout-cart, #checkout-checkout {
  max-width: 1320px;
  padding-top: 18px;
  padding-bottom: 42px;
}
.kv3-home-landing { width: 100%; margin: 0 auto; }
.kv3-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  min-height: 438px;
  margin: 7px 0 34px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--kv3-peach);
}
.kv3-home-hero-copy { align-self: center; padding: 42px 20px 42px clamp(28px, 5vw, 70px); }
.kv3-home-eyebrow { color: #90372b; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.kv3-home-hero .kv3-home-title { margin: 16px 0 18px; color: var(--kv3-ink); font: 400 clamp(46px, 5.1vw, 74px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.067em; }
.kv3-home-hero .kv3-home-title em { color: #8c3b33; font-weight: 400; }
.kv3-home-hero-copy p { max-width: 355px; margin: 0 0 24px; color: #4c4940; font-size: 16px; }
.kv3-home-cta { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 12px 19px; border-radius: 10px; background: var(--kv3-coral); color: #fff !important; font-size: 14px; font-weight: 750; }
.kv3-home-cta:hover { background: var(--kv3-coral-hover); color: #fff !important; text-decoration: none; }
.kv3-home-cta span { font-size: 19px; line-height: 1; }
.kv3-home-hero-photos { display: grid; min-width: 0; grid-template-columns: 1.2fr .88fr; gap: 4px; background: #fff0e7; }
.kv3-home-hero-photos figure { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.kv3-home-hero-photos img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.kv3-home-hero-photos figure + figure img { object-position: 48% 39%; }
.kv3-home-categories { margin: 0 0 35px; }
.kv3-home-live-products { margin: 20px 0 0; }
.kv3-home-categories h2 { margin: 0 0 14px; color: var(--kv3-ink); font: 400 clamp(29px, 3.2vw, 46px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.kv3-home-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kv3-home-category { position: relative; display: flex; min-width: 0; min-height: 154px; align-items: center; isolation: isolate; overflow: hidden; padding: 18px 15px 18px 23px; border-radius: 15px; background: var(--kv3-olive); color: var(--kv3-ink); text-decoration: none !important; }
.kv3-home-category-men { background: #eadfcf; }
.kv3-home-category-kids { background: var(--kv3-pink); }
.kv3-home-category > img { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 48%; height: 100%; object-fit: cover; object-position: center 9%; }
.kv3-home-category::after { position: absolute; z-index: -1; inset: 0 41% 0 47%; background: linear-gradient(90deg, var(--kv3-olive), transparent); content: ""; }
.kv3-home-category-men::after { background: linear-gradient(90deg, #eadfcf, transparent); }
.kv3-home-category-kids::after { background: linear-gradient(90deg, var(--kv3-pink), transparent); }
.kv3-home-category-copy { position: relative; display: flex; max-width: 57%; flex-direction: column; align-items: flex-start; }
.kv3-home-category-copy strong { color: var(--kv3-ink); font: 400 clamp(21px, 2.3vw, 31px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.kv3-home-category-copy small { display: block; max-width: 130px; margin-top: 7px; color: #514f45; font-size: 12px; }
.kv3-home-category-copy i { display: grid; width: 31px; height: 31px; place-items: center; margin-top: 10px; border-radius: 50%; background: var(--kv3-white); color: var(--kv3-ink); font-size: 18px; font-style: normal; }
.kv3-home-category:hover .kv3-home-category-copy i { background: var(--kv3-coral); color: #fff; }
.kv3-home-category:focus-visible { z-index: 1; outline-offset: -4px !important; }
.rm-page-title h1, .rm-page-title,
#product-product .rm-product-title,
#checkout-cart .rm-cart-title {
  color: var(--kv3-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.025em;
}
.rm-page-title h1 { font-size: clamp(27px, 3vw, 39px); }
.rm-content, .rm-module-item, .rm-subcategory, .rm-category-wall-item > div {
  border: 1px solid var(--kv3-line);
  border-radius: 15px;
  background: var(--kv3-white);
  box-shadow: 0 5px 20px rgba(46, 38, 28, .035);
}
.rm-content { padding: clamp(14px, 2vw, 25px); }
.rm-content-title { color: var(--kv3-ink); font-weight: 750; }
.rm-btn, .btn, button.rm-module-buttons-item {
  min-height: 40px;
  border-radius: 9px;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.form-control, select.form-control, textarea.form-control {
  min-height: 44px;
  border: 1px solid var(--kv3-line);
  border-radius: 9px;
  color: var(--kv3-ink);
  background-color: var(--kv3-white);
  box-shadow: none;
}
.form-control:focus, select.form-control:focus, textarea.form-control:focus {
  border-color: #c57b6d;
  box-shadow: 0 0 0 3px rgba(186, 61, 48, .1);
}

/* Home: keeps the existing configured OpenCart modules and their real content. */
#common-home .content-top-box, #common-home .rm-module, #common-home .row { min-width: 0; }
#common-home .rm-module-title, #common-home .rm-content-title { margin-bottom: 14px; }
#common-home .rm-module-item {
  height: 100%;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
#common-home .rm-module-item:hover { transform: translateY(-3px); box-shadow: var(--kv3-shadow); }
#common-home .rm-module-img { background: #f5f0e9; }
#common-home .rm-module-img img { object-fit: cover; }
#common-home .rm-module-buttons-item {
  width: 40px;
  height: 40px;
  border: 1px solid var(--kv3-line);
  border-radius: 50%;
  background: var(--kv3-white);
}
#common-home .rm-module-buttons-item:hover { color: var(--kv3-coral); border-color: #d9a69b; }
#common-home .rm-module-price, #common-home .price { color: var(--kv3-coral); font-weight: 800; }
#common-home .rm-module-item a:hover { color: var(--kv3-coral); }

/* Catalog */
#product-category .rm-category-description,
#product-category .rm-category-wall-item > div,
#product-category .rm-subcategory { overflow: hidden; }
#product-category .rm-category-wall-item-image { background: #f6f2eb; border-radius: 12px; }
#product-category .rm-category-sort { gap: 10px; padding: 12px 0; }
#product-category .rm-category-sort select { min-height: 42px; border-radius: 9px; }
#product-category .rm-module-item {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
#product-category .rm-module-item:hover { transform: translateY(-3px); box-shadow: var(--kv3-shadow); }
#product-category .rm-module-img { background: #f5f0e9; }
#product-category .rm-module-img > a img { object-fit: cover; }
#product-category .rm-module-buttons-item {
  width: 40px;
  height: 40px;
  border: 1px solid var(--kv3-line);
  border-radius: 50%;
  background: var(--kv3-white);
}
#product-category .rm-module-buttons-item:hover { border-color: #d9a69b; background: #fff7f3; }
#product-category .rm-module-price, #product-category .price { color: var(--kv3-coral); font-weight: 800; }
#product-category .pagination > li > a,
#product-category .pagination > li > span { border-color: var(--kv3-line); color: var(--kv3-ink); }
#product-category .pagination > .active > span { border-color: var(--kv3-coral); background: var(--kv3-coral); }

/* Product page: image, selected options, real stock and native purchase action. */
#product-product .rm-product { border: 0; background: transparent; box-shadow: none; padding: 0; }
#product-product .rm-product-images-main { overflow: hidden; border-radius: 15px; background: #f5f0e9; }
#product-product .rm-product-images-main img { border-radius: 15px; }
#product-product .rm-product-images-additional-item { overflow: hidden; border: 1px solid var(--kv3-line); border-radius: 9px; }
#product-product .rm-product-center { padding: clamp(16px, 2vw, 26px); border: 1px solid var(--kv3-line); border-radius: 15px; background: var(--kv3-white); box-shadow: var(--kv3-shadow); }
#product-product .rm-product-center-price { color: var(--kv3-coral); font-size: clamp(23px, 2vw, 30px); font-weight: 800; }
#product-product #rm-product-options-box { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--kv3-line); }
#product-product #rm-product-options-box label { color: var(--kv3-ink); font-weight: 650; }
#product-product #rm-product-options-box input[type="radio"] { accent-color: var(--kv3-coral); }
#product-product #button-cart { min-height: 48px; padding-inline: 22px; }
#product-product .rm-product-mobile-fixed { z-index: 25; padding: 9px max(14px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); border-top: 1px solid var(--kv3-line); background: rgba(255, 254, 250, .97); box-shadow: 0 -6px 22px rgba(46, 38, 28, .08); }
#product-product .rm-product-mobile-fixed-price-new { color: var(--kv3-coral); font-size: 19px; font-weight: 800; }

/* Cart */
#checkout-cart .rm-cart { padding: clamp(14px, 2vw, 25px); }
#checkout-cart .rm-cart-products-item {
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--kv3-line);
  border-radius: 12px;
  background: var(--kv3-white);
}
#checkout-cart .rm-cart-products-item-img img { width: 88px; height: 104px; object-fit: cover; border-radius: 9px; background: #f5f0e9; }
#checkout-cart .rm-cart-products-item-info-title { font-weight: 700; }
#checkout-cart .rm-cart-products-item-price-all { color: var(--kv3-coral); font-size: 17px; font-weight: 800; }
#checkout-cart .rm-product-quantity input { min-height: 40px; text-align: center; }
#checkout-cart .rm-cart-block-total-price { color: var(--kv3-ink); font-size: 20px; font-weight: 800; }
#checkout-cart .rm-cart-buttons { gap: 10px; }
#checkout-cart .rm-btn-del { color: #725f57; border-radius: 9px; }

/* Checkout: native OpenCart accordion and delivery/payment extensions remain intact. */
#checkout-checkout .rm-account-content { padding: clamp(14px, 2.3vw, 30px); }
#checkout-checkout #accordion > .panel {
  margin: 0 0 11px;
  overflow: hidden;
  border: 1px solid var(--kv3-line);
  border-radius: 12px;
  background: var(--kv3-white);
  box-shadow: none;
}
#checkout-checkout .panel-heading { padding: 14px 17px; background: #f8f4ed; }
#checkout-checkout .panel-title { color: var(--kv3-ink); font-weight: 750; }
#checkout-checkout .panel-body { padding: 17px; }
#checkout-checkout .panel-body input[type="radio"], #checkout-checkout .panel-body input[type="checkbox"] { accent-color: var(--kv3-coral); }
#checkout-checkout .str_delivery { margin-top: 12px; padding: 13px; border: 1px solid var(--kv3-line); border-radius: 10px; background: #fffaf5; }
#checkout-checkout .str_delivery label { display: block; margin-bottom: 10px; color: var(--kv3-ink); font-weight: 650; }
#checkout-checkout .str_delivery small { display: block; color: var(--kv3-muted); }
#checkout-checkout .str_delivery .np-city,
#checkout-checkout .str_delivery .np-warehouse { min-height: 44px; margin-top: 5px; }
#checkout-checkout #collapse-checkout-confirm .table { background: var(--kv3-white); }
#checkout-checkout #collapse-checkout-confirm .table td { padding: 10px; border-color: var(--kv3-line); }

@media (max-width: 767.98px) {
  header > .container-fluid { padding-top: 9px; padding-bottom: 9px; }
  #logo img { max-height: 49px; }
  .kv3-wordmark { gap: 7px; font-size: 19px; }
  .kv3-wordmark svg { width: 36px; height: 36px; padding: 7px; border-radius: 11px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  #rm_mobile_nav {
    position: fixed !important;
    top: auto !important;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-height: 62px;
    padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    border-top: 1px solid var(--kv3-line);
    background: rgba(255, 254, 250, .97);
    box-shadow: 0 -6px 22px rgba(46, 38, 28, .08);
    backdrop-filter: blur(12px);
  }
  #rm_mobile_nav #rm_mobile_menu_button,
  #rm_mobile_nav .kv3-mobile-link {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 3px 2px;
    border: 0;
    border-radius: 9px;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--kv3-ink) !important;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transform: none;
  }
  #rm_mobile_nav #rm_mobile_menu_button .rm-btn-icon { display: flex; width: 22px; height: 22px; flex: none; flex-direction: column; justify-content: center; gap: 4px; }
  #rm_mobile_nav #rm_mobile_menu_button .rm-btn-icon img { display: none; }
  #rm_mobile_nav #rm_mobile_menu_button .rm-btn-icon span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  #rm_mobile_nav #rm_mobile_menu_button::after { content: attr(aria-label); display: block; max-width: 100%; overflow: hidden; font-size: 10px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
  #rm_mobile_nav .kv3-mobile-link svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  #rm_mobile_nav .kv3-mobile-label { display: block; max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  #rm_mobile_nav .kv3-mobile-count { position: absolute; top: 0; left: calc(50% + 5px); min-width: 16px; padding: 1px 4px; border-radius: 12px; background: var(--kv3-peach); color: #782c23; font-size: 9px; line-height: 1.25; }
  #rm_mobile_nav .rm-mobile-nav-buttons { display: flex !important; min-width: 0; align-items: center; justify-content: center; gap: 1px; }
  #rm_mobile_nav .rm-mobile-nav-buttons-btn { display: grid; width: 34px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; }
  #rm_mobile_nav .rm-mobile-nav-buttons-btn img { width: 19px; height: 19px; }
  #common-home, #product-category, #product-product, #checkout-cart, #checkout-checkout { padding-top: 10px; padding-bottom: 28px; }
  .kv3-home-hero { grid-template-columns: 1fr; min-height: 0; margin: 4px 0 25px; border-radius: 16px; }
  .kv3-home-hero-copy { padding: 22px 20px 18px; }
  .kv3-home-eyebrow { font-size: 9px; }
  .kv3-home-hero .kv3-home-title { margin: 10px 0 12px; font-size: clamp(42px, 12vw, 55px); }
  .kv3-home-hero-copy p { margin-bottom: 15px; font-size: 14px; }
  .kv3-home-cta { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .kv3-home-hero-photos { height: clamp(212px, 61vw, 315px); grid-template-columns: 1.18fr .82fr; }
  .kv3-home-hero-photos img { object-position: center 34%; }
  .kv3-home-hero-photos figure + figure img { object-position: 50% 30%; }
  .kv3-home-categories { margin-bottom: 28px; }
  .kv3-home-live-products { margin-top: 14px; }
  .kv3-home-categories h2 { margin-bottom: 9px; font-size: clamp(23px, 7vw, 29px); }
  .kv3-home-category-grid { gap: 7px; }
  .kv3-home-category { min-height: 124px; align-items: flex-end; padding: 7px; border-radius: 10px; }
  .kv3-home-category > img { inset: 0; width: 100%; height: 100%; object-position: center 9%; }
  .kv3-home-category::after { display: none; }
  .kv3-home-category-copy { max-width: 100%; padding: 6px 7px; border-radius: 7px; background: rgba(255, 250, 242, .94); }
  .kv3-home-category-copy strong { font-size: 14px; }
  .kv3-home-category-copy small, .kv3-home-category-copy i { display: none; }
  .rm-page-title h1 { font-size: 28px; }
  #common-home .rm-module-item, #product-category .rm-module-item { border-radius: 11px; }
  #product-category .rm-category-buttons { position: sticky; top: 0; z-index: 10; padding: 6px 0; background: var(--kv3-paper); }
  #product-product .rm-product-center { margin-top: 12px; padding: 15px; }
  #product-product .rm-product-mobile-fixed { display: flex !important; bottom: calc(62px + env(safe-area-inset-bottom)) !important; }
  #checkout-cart .rm-cart-products-item { padding: 10px; }
  #checkout-cart .rm-cart-products-item-left { align-items: flex-start !important; }
  #checkout-cart .rm-cart-products-item-img img { width: 68px; height: 82px; }
  #checkout-checkout .panel-heading { padding: 12px; }
  #checkout-checkout .panel-body { padding: 12px; }
  #checkout-checkout .str_delivery { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
