/* ==========================================================================
   Rowaa Digital theme — light by default, dark via the header toggle
   (html[data-bs-theme]). Loaded after bootstrap + stylesheet(.css|-rtl.css).
   Logical properties keep one file working for RTL (ar) and LTR (en-gb).
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("fonts/plex-arabic/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("fonts/plex-arabic/plex-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("fonts/plex-arabic/plex-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("fonts/plex-arabic/plex-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("fonts/plex-arabic/plex-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("fonts/plex-arabic/plex-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("fonts/plex-arabic/plex-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("fonts/plex-arabic/plex-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens: light (default) ---------- */
:root,
[data-bs-theme=light] {
  --rw-bg: #f6f7fb;
  --rw-bg-2: #eef0f7;
  --rw-surface: #ffffff;
  --rw-surface-2: #f3f4fa;
  --rw-surface-3: #e7e9f4;
  --rw-border: rgba(17, 24, 68, 0.09);
  --rw-border-strong: rgba(17, 24, 68, 0.18);
  --rw-text: #232a45;
  --rw-heading: #0b1030;
  --rw-muted: #5c6582;
  --rw-dim: #8c94ad;
  --rw-primary: #4f46e5;
  --rw-primary-rgb: 79, 70, 229;
  --rw-accent: #0891b2;
  --rw-link: #4338ca;
  --rw-link-rgb: 67, 56, 202;
  --rw-link-hover: #312e81;
  --rw-link-hover-rgb: 49, 46, 129;
  --rw-icon: #4f46e5;
  --rw-field: #ffffff;
  --rw-soft: rgba(79, 70, 229, 0.07);
  --rw-soft-strong: rgba(79, 70, 229, 0.14);
  --rw-header-bg: rgba(255, 255, 255, 0.82);
  --rw-top-bg: #ffffff;
  --rw-menu-bg: rgba(255, 255, 255, 0.6);
  --rw-star-off: #cfd4e4;
  --rw-grad-text: linear-gradient(90deg, #4f46e5, #0891b2);
  --rw-shadow-sm: 0 1px 2px rgba(17, 24, 68, 0.04), 0 6px 20px -12px rgba(17, 24, 68, 0.14);
  --rw-shadow-hover: 0 2px 4px rgba(17, 24, 68, 0.04), 0 28px 48px -24px rgba(79, 70, 229, 0.38);
  --rw-shadow-pop: 0 4px 10px rgba(17, 24, 68, 0.05), 0 28px 60px -20px rgba(17, 24, 68, 0.28);
  --rw-page-glow: radial-gradient(900px 480px at 88% -160px, rgba(99, 102, 241, 0.13), transparent 70%), radial-gradient(700px 420px at 4% -80px, rgba(34, 193, 238, 0.10), transparent 70%);
  --rw-danger-fg: #b91c1c; --rw-info-fg: #0369a1; --rw-success-fg: #047857;
  --rw-ok-bg: #ecfdf5; --rw-ok-bd: #a7f3d0; --rw-ok-fg: #065f46;
  --rw-err-bg: #fef2f2; --rw-err-bd: #fecaca; --rw-err-fg: #991b1b;
  --rw-warn-bg: #fffbeb; --rw-warn-bd: #fde68a; --rw-warn-fg: #92400e;
  --rw-info-bg: #eef2ff; --rw-info-bd: #c7d2fe; --rw-info-tx: #3730a3;
  color-scheme: light;
}

/* ---------- tokens: dark (optional, via the header toggle) ---------- */
[data-bs-theme=dark] {
  --rw-bg: #080b16;
  --rw-bg-2: #0c1122;
  --rw-surface: #111830;
  --rw-surface-2: #172040;
  --rw-surface-3: #1e2950;
  --rw-border: rgba(140, 160, 255, 0.14);
  --rw-border-strong: rgba(140, 160, 255, 0.28);
  --rw-text: #e7eaf6;
  --rw-heading: #f6f7ff;
  --rw-muted: #96a1c4;
  --rw-dim: #6b7699;
  --rw-primary: #5b6cff;
  --rw-primary-rgb: 91, 108, 255;
  --rw-accent: #38d6ff;
  --rw-link: #8ea0ff;
  --rw-link-rgb: 142, 160, 255;
  --rw-link-hover: #b8c3ff;
  --rw-link-hover-rgb: 184, 195, 255;
  --rw-icon: #aab4ff;
  --rw-field: rgba(255, 255, 255, 0.04);
  --rw-soft: rgba(91, 108, 255, 0.12);
  --rw-soft-strong: rgba(91, 108, 255, 0.24);
  --rw-header-bg: rgba(10, 14, 28, 0.82);
  --rw-top-bg: rgba(8, 11, 22, 0.6);
  --rw-menu-bg: rgba(12, 17, 34, 0.55);
  --rw-star-off: #46507a;
  --rw-grad-text: linear-gradient(90deg, #c7d2fe, #7dd3fc);
  --rw-shadow-sm: none;
  --rw-shadow-hover: 0 24px 48px -24px rgba(91, 108, 255, 0.55);
  --rw-shadow-pop: 0 24px 60px -18px rgba(0, 0, 0, 0.75);
  --rw-page-glow: radial-gradient(900px 480px at 85% -120px, rgba(91, 108, 255, 0.20), transparent 70%), radial-gradient(700px 420px at 5% 0, rgba(34, 193, 238, 0.10), transparent 70%);
  --rw-danger-fg: #fca5a5; --rw-info-fg: #7fe3ff; --rw-success-fg: #6ee7b7;
  --rw-ok-bg: #0d2a24; --rw-ok-bd: rgba(52, 211, 153, 0.4); --rw-ok-fg: #a7f3d0;
  --rw-err-bg: #2e1420; --rw-err-bd: rgba(248, 113, 113, 0.4); --rw-err-fg: #fecaca;
  --rw-warn-bg: #2d2310; --rw-warn-bd: rgba(251, 191, 36, 0.4); --rw-warn-fg: #fde68a;
  --rw-info-bg: #101d3d; --rw-info-bd: rgba(91, 108, 255, 0.45); --rw-info-tx: #c7d2fe;
  color-scheme: dark;
}

/* ---------- shared tokens + bootstrap mapping ---------- */
:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
  --rw-warning: #f59e0b;
  --rw-danger: #ef4444;
  --rw-gradient: linear-gradient(135deg, #6366f1 0%, #4f6bf5 50%, #22b8e6 100%);
  --rw-glow: 0 10px 26px -12px rgba(var(--rw-primary-rgb), 0.7);
  --rw-ring: 0 0 0 4px rgba(var(--rw-primary-rgb), 0.16);
  --rw-radius: 16px;
  --rw-radius-sm: 11px;
  --rw-radius-lg: 26px;
  --rw-ease: cubic-bezier(.2, .7, .2, 1);

  --bs-body-bg: var(--rw-bg);
  --bs-body-color: var(--rw-text);
  --bs-secondary-color: var(--rw-muted);
  --bs-secondary-bg: var(--rw-surface-2);
  --bs-tertiary-color: var(--rw-dim);
  --bs-tertiary-bg: var(--rw-surface-2);
  --bs-emphasis-color: var(--rw-heading);
  --bs-heading-color: var(--rw-heading);
  --bs-border-color: var(--rw-border);
  --bs-border-color-translucent: var(--rw-border);
  --bs-border-radius: var(--rw-radius-sm);
  --bs-border-radius-lg: var(--rw-radius);
  --bs-border-radius-sm: 8px;
  --bs-primary: var(--rw-primary);
  --bs-primary-rgb: var(--rw-primary-rgb);
  --bs-link-color: var(--rw-link);
  --bs-link-color-rgb: var(--rw-link-rgb);
  --bs-link-hover-color: var(--rw-link-hover);
  --bs-link-hover-color-rgb: var(--rw-link-hover-rgb);
  --bs-link-decoration: none;
  --bs-font-sans-serif: "Plex Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 0.95rem;
  --bs-body-line-height: 1.75;
}

/* ---------- base ---------- */
html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  height: auto;
  font-family: var(--bs-body-font-family);
  color: var(--rw-text);
  background-color: var(--rw-bg);
  background-image: var(--rw-page-glow);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(var(--rw-primary-rgb), 0.28); }
a { text-decoration: none; transition: color .15s ease; }
h1, h2, h3, h4, h5, h6 { color: var(--rw-heading); font-weight: 700; line-height: 1.35; letter-spacing: 0; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 1.1rem; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
label { font-size: .875rem; font-weight: 500; color: var(--rw-muted); }
hr { border-color: var(--rw-border-strong); opacity: 1; }
legend { border-bottom: 1px solid var(--rw-border); font-size: 1.1rem; font-weight: 600; color: var(--rw-heading); }
img { max-width: 100%; }
* { scrollbar-color: var(--rw-surface-3) transparent; }

/* layout: replace the absolute-positioned container/footer of the stock theme */
#container { position: static; display: flex; flex-direction: column; min-height: 100vh; margin-bottom: 0; }
#container > main { flex: 1 0 auto; padding-bottom: 4.5rem; }
#content, #column-left, #column-right { padding-bottom: 0; }
#column-left, #column-right { margin-bottom: 1.5rem; }

/* ---------- top bar ---------- */
#top {
  background: var(--rw-top-bg);
  border-bottom: 1px solid var(--rw-border);
  margin-bottom: 0;
  padding: 0;
  font-size: .82rem;
  position: relative;
  z-index: 1031;
}
#top .rw-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
#top ul.list-inline { margin: 0; display: flex; align-items: center; gap: 1.1rem; }
#top .list-inline-item { margin: 0; }
#top .list-inline-item > a,
#top .list-inline-item .dropdown > a,
#top .list-inline-item .dropdown > span {
  font-size: .82rem; color: var(--rw-muted); line-height: 38px; padding: 0; vertical-align: baseline; transition: color .15s;
}
#top .list-inline-item > a:hover,
#top .list-inline-item .dropdown > span:hover { color: var(--rw-heading); }
#top .dropdown-toggle::after { display: none; }
#top .fa-caret-down { font-size: .7em; opacity: .7; }
#top img { border-radius: 2px; vertical-align: -1px; }

/* ---------- header ---------- */
header.rw-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--rw-header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rw-border);
}
.rw-header-row { display: flex; align-items: center; gap: 1.25rem; padding-block: .9rem; }
#logo { margin: 0; text-align: start; flex: 0 0 auto; }
#logo h1 { margin: 0; font-size: 1.25rem; }
#logo img { max-width: 180px; max-height: 46px; }
.rw-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--rw-heading); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.rw-brand:hover { color: var(--rw-heading); }
.rw-brand-mark {
  width: 40px; height: 40px; border-radius: 13px; background: var(--rw-gradient);
  display: grid; place-items: center; color: #fff; font-size: 1rem; box-shadow: var(--rw-glow); flex: 0 0 auto;
}
.rw-header-search { flex: 1 1 auto; min-width: 0; max-width: 620px; margin-inline: auto; }
.rw-header-actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.rw-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 44px; min-width: 44px; padding: 0 .85rem;
  border-radius: 13px; border: 1px solid var(--rw-border); background: var(--rw-surface);
  color: var(--rw-text); font-size: .875rem; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.rw-icon-btn:hover, .rw-icon-btn.show { background: var(--rw-surface-2); border-color: var(--rw-border-strong); color: var(--rw-heading); }
.rw-icon-btn i { font-size: 1rem; color: var(--rw-icon); }
.rw-icon-btn.dropdown-toggle::after { display: none; }
.rw-theme-toggle { padding: 0; }
.rw-theme-toggle .fa-sun { display: none; }
[data-bs-theme=dark] .rw-theme-toggle .fa-sun { display: inline-block; }
[data-bs-theme=dark] .rw-theme-toggle .fa-moon { display: none; }

/* search */
form.rw-search { margin: 0 !important; position: relative; display: flex; flex-wrap: nowrap; }
.rw-search .form-control {
  height: 46px; font-size: .92rem; line-height: 1.4; padding-block: 0;
  padding-inline: 1.15rem 3.5rem;
  border-radius: 14px !important; border: 1px solid var(--rw-border);
  background: var(--rw-surface-2); color: var(--rw-text);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.rw-search .form-control::placeholder { color: var(--rw-dim); }
.rw-search .form-control:focus { background: var(--rw-surface); border-color: var(--rw-primary); box-shadow: var(--rw-ring); }
.rw-search .btn {
  position: absolute; inset-block: 5px; inset-inline-end: 5px; z-index: 6;
  width: 40px; padding: 0; border: 0; border-radius: 10px !important;
  background: var(--rw-gradient); color: #fff; font-size: .9rem; line-height: 1; text-shadow: none;
}
.rw-search .btn:hover { filter: brightness(1.1); color: #fff; }

/* mini cart */
#cart { margin: 0; }
#cart > .dropdown { display: block; }
#cart .rw-cart-btn { border-color: transparent; background: var(--rw-soft); color: var(--rw-link); font-weight: 600; }
#cart .rw-cart-btn:hover, #cart .rw-cart-btn.show { background: var(--rw-soft-strong); border-color: transparent; color: var(--rw-link); }
#cart .dropdown-menu { background: var(--rw-surface); min-width: min(420px, calc(100vw - 2rem)); margin-top: .6rem !important; }
#cart .dropdown-menu li { min-width: 0; }
#cart .img-thumbnail { min-width: 0; width: 56px; }
#cart .table { font-size: .85rem; }
#cart .btn-danger { padding: .25rem .5rem; font-size: .8rem; }

/* ---------- category menu ---------- */
.rw-menu-wrap { border-bottom: 1px solid var(--rw-border); background: var(--rw-menu-bg); margin-bottom: 2rem; }
#menu {
  background: transparent !important; background-image: none; border: 0; border-radius: 0;
  min-height: 50px; padding: 0; margin: 0; --bs-navbar-padding-y: 0;
}
#menu .navbar-nav { gap: .15rem; flex-wrap: wrap; }
#menu .navbar-nav > li > a {
  color: var(--rw-muted); text-shadow: none; font-weight: 500; font-size: .92rem;
  padding: .8rem .9rem; border-radius: 0; position: relative; background: transparent; white-space: nowrap;
}
#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li > a.show { color: var(--rw-heading); background: transparent; }
#menu .navbar-nav > li > a::before {
  content: ""; position: absolute; inset-inline: .9rem; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--rw-gradient); transform: scaleX(0); transition: transform .25s var(--rw-ease);
}
#menu .navbar-nav > li > a:hover::before,
#menu .navbar-nav > li > a.show::before { transform: scaleX(1); }
#menu .dropdown-toggle::after { margin-inline-start: .4em; opacity: .6; vertical-align: .15em; border-width: .28em; }
#menu .dropdown-menu { border-radius: var(--rw-radius); margin-top: 0; padding: .6rem; }
#menu .dropdown-inner ul { min-width: 190px; margin: 0; }
#category { float: none; color: var(--rw-heading); text-shadow: none; font-size: .95rem; font-weight: 600; line-height: 50px; }
#category i { color: var(--rw-icon); margin-inline-end: .35rem; }
#menu .navbar-toggler { border: 1px solid var(--rw-border); border-radius: 10px; padding: .35rem .7rem; margin-inline-start: auto; }
#menu .navbar-toggler:focus { box-shadow: none; }
#menu .navbar-toggler i { color: var(--rw-heading); }
@media (max-width: 991.98px) {
  #menu .navbar-collapse { padding-bottom: .75rem; }
  #menu .navbar-nav > li > a { padding: .6rem .25rem; }
  #menu .navbar-nav > li > a::before { display: none; }
  #menu .dropdown-menu { background: transparent; border: 0; box-shadow: none; padding: 0 1rem .5rem; }
  #menu .dropdown-inner ul { min-width: 0; }
}

/* ---------- dropdowns / popovers ---------- */
.dropdown-menu {
  --bs-dropdown-bg: var(--rw-surface);
  --bs-dropdown-color: var(--rw-text);
  --bs-dropdown-border-color: var(--rw-border);
  --bs-dropdown-link-color: var(--rw-text);
  --bs-dropdown-link-hover-color: var(--rw-heading);
  --bs-dropdown-link-hover-bg: var(--rw-surface-2);
  --bs-dropdown-link-active-bg: var(--rw-primary);
  --bs-dropdown-divider-bg: var(--rw-border);
  --bs-dropdown-border-radius: var(--rw-radius-sm);
  --bs-dropdown-font-size: .9rem;
  box-shadow: var(--rw-shadow-pop);
  text-align: start;
}
.dropdown-item { border-radius: 8px; padding: .45rem .75rem; }
.tooltip { --bs-tooltip-bg: #0b1030; --bs-tooltip-color: #fff; --bs-tooltip-font-size: .78rem; font-family: var(--bs-body-font-family); }
[data-bs-theme=dark] .tooltip { --bs-tooltip-bg: var(--rw-surface-3); }

/* ---------- buttons ---------- */
.btn { --bs-btn-border-radius: var(--rw-radius-sm); --bs-btn-font-weight: 600; --bs-btn-padding-x: 1.15rem; --bs-btn-padding-y: .52rem; --bs-btn-font-size: .92rem; transition: filter .15s, background-color .15s, border-color .15s, box-shadow .2s, transform .15s var(--rw-ease); }
.btn:active { transform: translateY(1px); }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.6rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 14px; }
.btn-primary, .btn.bg-primary {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff;
  --bs-btn-bg: var(--rw-primary); --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--rw-primary); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--rw-primary); --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-bg: var(--rw-primary); --bs-btn-disabled-border-color: transparent;
  background-image: var(--rw-gradient) !important; border-color: transparent; box-shadow: var(--rw-glow);
}
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }
.btn-light, .btn-secondary, .btn-dark, .btn-default {
  --bs-btn-color: var(--rw-text); --bs-btn-bg: var(--rw-surface); --bs-btn-border-color: var(--rw-border-strong);
  --bs-btn-hover-color: var(--rw-heading); --bs-btn-hover-bg: var(--rw-surface-2); --bs-btn-hover-border-color: var(--rw-border-strong);
  --bs-btn-active-color: var(--rw-heading); --bs-btn-active-bg: var(--rw-surface-3); --bs-btn-active-border-color: var(--rw-primary);
  --bs-btn-disabled-color: var(--rw-dim); --bs-btn-disabled-bg: var(--rw-surface-2); --bs-btn-disabled-border-color: var(--rw-border);
}
.btn-danger { --bs-btn-bg: rgba(239, 68, 68, 0.1); --bs-btn-border-color: rgba(239, 68, 68, 0.3); --bs-btn-color: var(--rw-danger-fg); --bs-btn-hover-bg: #ef4444; --bs-btn-hover-border-color: #ef4444; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #dc2626; --bs-btn-active-border-color: #dc2626; --bs-btn-active-color: #fff; }
.btn-info { --bs-btn-bg: rgba(14, 165, 233, 0.1); --bs-btn-border-color: rgba(14, 165, 233, 0.3); --bs-btn-color: var(--rw-info-fg); --bs-btn-hover-bg: #0ea5e9; --bs-btn-hover-border-color: #0ea5e9; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #0284c7; --bs-btn-active-border-color: #0284c7; --bs-btn-active-color: #fff; }
.btn-success { --bs-btn-bg: rgba(16, 185, 129, 0.1); --bs-btn-border-color: rgba(16, 185, 129, 0.3); --bs-btn-color: var(--rw-success-fg); --bs-btn-hover-bg: #10b981; --bs-btn-hover-border-color: #10b981; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #059669; --bs-btn-active-border-color: #059669; --bs-btn-active-color: #fff; }
.btn-warning { --bs-btn-color: #1a1300; }
.btn-ghost { --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, 0.08); --bs-btn-border-color: rgba(255, 255, 255, 0.28); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, 0.16); --bs-btn-hover-border-color: rgba(255, 255, 255, 0.5); --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, 0.2); --bs-btn-active-border-color: #fff; }
.btn-group > .btn.active { border-color: var(--rw-primary); color: var(--rw-link); background: var(--rw-soft); }
[data-bs-theme=dark] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
button:focus-visible, a:focus-visible, .btn:focus-visible, [role=button]:focus-visible { outline: 2px solid var(--rw-primary) !important; outline-offset: 2px; box-shadow: none; }

/* ---------- forms ---------- */
.form-control, .form-select, .input-group-text {
  background-color: var(--rw-field); border-color: var(--rw-border-strong); color: var(--rw-text);
  border-radius: var(--rw-radius-sm); padding: .58rem .9rem; font-size: .92rem;
}
.form-control::placeholder { color: var(--rw-dim); }
.form-control:focus, .form-select:focus { background-color: var(--rw-surface); border-color: var(--rw-primary); color: var(--rw-heading); box-shadow: var(--rw-ring); }
.form-control:disabled, .form-control[readonly], .form-select:disabled { background-color: var(--rw-surface-2); color: var(--rw-dim); }
.form-select option { background: var(--rw-surface); color: var(--rw-text); }
.input-group-text { background-color: var(--rw-surface-2); color: var(--rw-muted); font-size: .85rem; }
.form-check-input { background-color: var(--rw-field); border-color: var(--rw-border-strong); }
.form-check-input:checked { background-color: var(--rw-primary); border-color: var(--rw-primary); }
.form-check-input:focus { border-color: var(--rw-primary); box-shadow: var(--rw-ring); }
.form-check-label { color: var(--rw-text); font-size: .9rem; }
.form-label, .col-form-label { color: var(--rw-muted); font-size: .875rem; font-weight: 500; }
.col-form-label { text-align: start; }
.form-text { color: var(--rw-dim); }
div.required .col-form-label:before, div.required .form-label:before { color: var(--rw-danger); }
.invalid-feedback { color: var(--rw-danger-fg); }
fieldset { margin-bottom: 1.5rem; }
[data-bs-theme=dark] input:-webkit-autofill { -webkit-text-fill-color: var(--rw-text); box-shadow: 0 0 0 100px var(--rw-surface-2) inset !important; caret-color: #fff; }

/* ---------- surfaces ---------- */
.card { --bs-card-bg: var(--rw-surface); --bs-card-border-color: var(--rw-border); --bs-card-border-radius: var(--rw-radius); --bs-card-cap-bg: var(--rw-surface-2); box-shadow: var(--rw-shadow-sm); }
.border { border-color: var(--rw-border) !important; }
.border.rounded { background: var(--rw-surface); border-radius: var(--rw-radius) !important; padding: 1.75rem !important; box-shadow: var(--rw-shadow-sm); }
.img-thumbnail { background: #fff; border: 1px solid var(--rw-border); border-radius: var(--rw-radius-sm); padding: .3rem; }
.modal-content { --bs-modal-bg: var(--rw-surface); --bs-modal-border-color: var(--rw-border); --bs-modal-header-border-color: var(--rw-border); --bs-modal-footer-border-color: var(--rw-border); border-radius: var(--rw-radius); box-shadow: var(--rw-shadow-pop); }
.modal-backdrop { --bs-backdrop-bg: #070a1c; --bs-backdrop-opacity: .55; }
.list-group { --bs-list-group-bg: var(--rw-surface); --bs-list-group-color: var(--rw-muted); --bs-list-group-border-color: var(--rw-border); --bs-list-group-border-radius: var(--rw-radius); --bs-list-group-item-padding-y: .68rem; --bs-list-group-active-bg: var(--rw-soft); --bs-list-group-active-border-color: var(--rw-border); --bs-list-group-active-color: var(--rw-link); font-size: .9rem; box-shadow: var(--rw-shadow-sm); }
.list-group-item { transition: background .15s, color .15s; }
a.list-group-item:hover { background: var(--rw-surface-2); color: var(--rw-heading); }
.list-group-item.active { box-shadow: inset 3px 0 0 var(--rw-primary); font-weight: 600; }
[dir=rtl] .list-group-item.active { box-shadow: inset -3px 0 0 var(--rw-primary); }

.table { --bs-table-bg: transparent; --bs-table-color: var(--rw-text); --bs-table-border-color: var(--rw-border); --bs-table-striped-bg: rgba(var(--rw-primary-rgb), 0.025); --bs-table-striped-color: var(--rw-text); --bs-table-hover-bg: var(--rw-soft); --bs-table-hover-color: var(--rw-heading); font-size: .9rem; vertical-align: middle; }
.table > thead > tr > *, .table > thead td { background: var(--rw-surface-2); color: var(--rw-heading); font-weight: 600; }
.table-responsive { border-radius: var(--rw-radius-sm); }
.table > :not(caption) > * > * { padding: .75rem .9rem; }

.alert { --bs-alert-border-radius: var(--rw-radius-sm); border-width: 1px; font-size: .92rem; }
.alert-success { --bs-alert-bg: var(--rw-ok-bg); --bs-alert-border-color: var(--rw-ok-bd); --bs-alert-color: var(--rw-ok-fg); --bs-alert-link-color: var(--rw-ok-fg); }
.alert-danger { --bs-alert-bg: var(--rw-err-bg); --bs-alert-border-color: var(--rw-err-bd); --bs-alert-color: var(--rw-err-fg); --bs-alert-link-color: var(--rw-err-fg); }
.alert-warning { --bs-alert-bg: var(--rw-warn-bg); --bs-alert-border-color: var(--rw-warn-bd); --bs-alert-color: var(--rw-warn-fg); --bs-alert-link-color: var(--rw-warn-fg); }
.alert-info, .alert-primary { --bs-alert-bg: var(--rw-info-bg); --bs-alert-border-color: var(--rw-info-bd); --bs-alert-color: var(--rw-info-tx); --bs-alert-link-color: var(--rw-info-tx); }
.alert a { font-weight: 600; text-decoration: underline; }
#alert { left: 0; right: 0; top: 92px; width: min(560px, calc(100vw - 2rem)); margin-left: auto; margin-right: auto; }
#alert .alert { box-shadow: var(--rw-shadow-pop) !important; }

.nav-tabs { --bs-nav-tabs-border-color: var(--rw-border); --bs-nav-tabs-link-hover-border-color: transparent; --bs-nav-tabs-link-active-bg: transparent; --bs-nav-tabs-link-active-color: var(--rw-heading); --bs-nav-tabs-link-active-border-color: transparent; --bs-nav-link-color: var(--rw-muted); --bs-nav-link-hover-color: var(--rw-heading); margin-bottom: 1.25rem; gap: .25rem; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; font-weight: 600; padding: .7rem 1rem; }
.nav-tabs .nav-link.active { border-bottom-color: var(--rw-primary); }

.pagination { --bs-pagination-bg: var(--rw-surface); --bs-pagination-color: var(--rw-muted); --bs-pagination-border-color: var(--rw-border); --bs-pagination-hover-bg: var(--rw-surface-2); --bs-pagination-hover-color: var(--rw-heading); --bs-pagination-hover-border-color: var(--rw-border-strong); --bs-pagination-active-bg: var(--rw-primary); --bs-pagination-active-border-color: var(--rw-primary); --bs-pagination-disabled-bg: var(--rw-surface); --bs-pagination-disabled-color: var(--rw-dim); --bs-pagination-disabled-border-color: var(--rw-border); --bs-pagination-focus-box-shadow: none; gap: .3rem; }
.pagination .page-link { border-radius: 10px !important; }

/* ---------- breadcrumb ---------- */
.breadcrumb { margin: 0 0 1.5rem; padding: 0; border: 0; background: transparent; font-size: .85rem; gap: .25rem; align-items: center; flex-wrap: wrap; }
.breadcrumb i { font-size: .85rem; }
.breadcrumb > li.breadcrumb-item { text-shadow: none; padding: 0; white-space: normal; display: inline-flex; align-items: center; color: var(--rw-dim); }
.breadcrumb > li.breadcrumb-item > a { color: var(--rw-muted); }
.breadcrumb > li.breadcrumb-item > a:hover { color: var(--rw-link); }
.breadcrumb > li.breadcrumb-item:last-child > a { color: var(--rw-heading); font-weight: 500; }
.breadcrumb > li.breadcrumb-item:after { display: none; }
.breadcrumb > li.breadcrumb-item + li:before { content: ""; float: none; display: inline-block; width: 6px; height: 6px; padding: 0; margin-inline: .65rem; border-top: 1.5px solid var(--rw-dim); border-inline-end: 1.5px solid var(--rw-dim); transform: rotate(45deg); }
[dir=rtl] .breadcrumb > li.breadcrumb-item + li:before { transform: rotate(-135deg); }

/* ---------- product card ---------- */
.product-thumb {
  border: 1px solid var(--rw-border); border-radius: var(--rw-radius); background: var(--rw-surface);
  overflow: hidden; display: flex; flex-direction: column; height: 100%; box-shadow: var(--rw-shadow-sm);
  transition: transform .3s var(--rw-ease), border-color .2s ease, box-shadow .3s var(--rw-ease);
}
.product-thumb:hover { transform: translateY(-5px); border-color: rgba(var(--rw-primary-rgb), 0.35); box-shadow: var(--rw-shadow-hover); }
.product-thumb .image { background: #fff; text-align: center; overflow: hidden; border-bottom: 1px solid var(--rw-border); }
.product-thumb .image a { display: block; padding: .75rem; }
.product-thumb .image a:hover { opacity: 1; }
.product-thumb .image img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .5s var(--rw-ease); }
.product-thumb:hover .image img { transform: scale(1.05); }
.product-thumb .content { display: flex; flex-direction: column; flex: 1 1 auto; }
.product-thumb .description { padding: 1.1rem 1.1rem .5rem; margin-bottom: 0; flex: 1 1 auto; }
.product-thumb .description h4 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; line-height: 1.5; }
.product-thumb .description h4 a { color: var(--rw-heading); }
.product-thumb .description h4 a:hover { color: var(--rw-link); }
.product-thumb .description p { color: var(--rw-muted); font-size: .84rem; line-height: 1.65; margin-bottom: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-thumb form { margin: 0; }
.product-thumb .button { position: static; display: flex; gap: .45rem; width: auto; padding: .6rem 1.1rem 1.1rem; }
.product-thumb .button button {
  width: 42px; height: 42px; flex: 0 0 42px; line-height: 1; border: 1px solid var(--rw-border); border-radius: var(--rw-radius-sm);
  background: var(--rw-surface-2); color: var(--rw-muted); display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-size: .88rem; font-weight: 600; transition: background .15s, color .15s, border-color .15s, filter .15s;
}
.product-thumb .button button + button { border: 1px solid var(--rw-border); }
.product-thumb .button button:hover { background: var(--rw-soft); color: var(--rw-link); border-color: rgba(var(--rw-primary-rgb), 0.3); }
.product-thumb .button button.rw-add { flex: 1 1 auto; width: auto; background: var(--rw-gradient); border-color: transparent; color: #fff; }
.product-thumb .button button.rw-add:hover { filter: brightness(1.1); background: var(--rw-gradient); color: #fff; }
@media (min-width: 960px) {
  .product-list .product-thumb { flex-direction: row; }
  .product-list .product-thumb .image { flex: 0 0 220px; border-bottom: 0; border-inline-end: 1px solid var(--rw-border); }
  .product-list .product-thumb .content { flex: 1 1 auto; }
  .product-list .product-thumb .button { border: 0; width: auto; margin: 0; max-width: 360px; }
}

/* price + rating */
.price { color: var(--rw-heading); font-size: 1.08rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .55rem; }
.price-new { font-weight: 700; color: var(--rw-heading); }
.price-old { color: var(--rw-dim); font-size: .85em; text-decoration: line-through; }
.price-tax { color: var(--rw-dim); font-size: .75rem; flex-basis: 100%; }
.rating { margin-top: .4rem; }
.rating .fa-stack { width: 18px; height: 1.6em; line-height: 1.6em; }
.rating .fa-star { font-size: 13px; }
.rating .fa-regular.fa-star { color: var(--rw-star-off); }
.rating .fa-solid.fa-star, .rating .fa-solid.fa-star + .fa-star { color: var(--rw-warning); }

/* ---------- home ---------- */
/* The hero is a deep indigo panel in both themes: it anchors the light page. */
.rw-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--rw-radius-lg);
  background:
    radial-gradient(520px 320px at 10% 110%, rgba(34, 211, 238, 0.28), transparent 70%),
    radial-gradient(680px 420px at 95% -10%, rgba(129, 140, 248, 0.55), transparent 70%),
    linear-gradient(140deg, #1e1b6b 0%, #131a4f 45%, #0b1030 100%);
  box-shadow: 0 40px 80px -40px rgba(49, 46, 129, 0.6);
  padding: clamp(2.25rem, 1.2rem + 4.5vw, 5rem) clamp(1.25rem, .5rem + 4vw, 4.25rem);
  margin-bottom: 1.25rem;
  color: #fff;
}
[data-bs-theme=dark] .rw-hero { border: 1px solid var(--rw-border); box-shadow: none; }
.rw-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(199, 210, 254, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(199, 210, 254, 0.1) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 5%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 5%, transparent 72%);
}
.rw-hero-inner { max-width: 620px; position: relative; }
.rw-eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .32rem .9rem; border-radius: 999px; border: 1px solid rgba(165, 243, 252, 0.35); background: rgba(165, 243, 252, 0.1); color: #cffafe; font-size: .8rem; font-weight: 600; margin-bottom: 1.2rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rw-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.22); }
.rw-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem); line-height: 1.28; margin-bottom: 1rem; }
.rw-hero h1 em { font-style: normal; background: linear-gradient(90deg, #c7d2fe, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rw-hero p.lead { color: #c9d0f5; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.9; margin-bottom: 1.9rem; font-weight: 400; }
.rw-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.rw-hero .btn-primary { background-image: none !important; background-color: #fff; --bs-btn-bg: #fff; --bs-btn-hover-bg: #fff; --bs-btn-active-bg: #eef2ff; --bs-btn-color: #312e81; --bs-btn-hover-color: #312e81; --bs-btn-active-color: #312e81; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6); }
.rw-hero .btn-primary:hover { filter: none; }

/* decorative glass tiles (desktop only) */
.rw-hero-art { position: absolute; inset-block: 0; inset-inline-end: clamp(2rem, 6vw, 6rem); width: 300px; display: none; pointer-events: none; }
.rw-hero-art span {
  position: absolute; display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22); background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: rw-float 7s ease-in-out infinite;
}
.rw-hero-art span:nth-child(1) { width: 132px; height: 132px; border-radius: 34px; font-size: 2.8rem; top: 16%; inset-inline-end: 34%; }
.rw-hero-art span:nth-child(2) { width: 92px; height: 92px; border-radius: 26px; font-size: 1.8rem; top: 54%; inset-inline-end: 4%; animation-delay: -2.2s; }
.rw-hero-art span:nth-child(3) { width: 78px; height: 78px; border-radius: 22px; font-size: 1.5rem; top: 60%; inset-inline-end: 66%; animation-delay: -4.2s; }
.rw-hero-art span:nth-child(4) { width: 62px; height: 62px; border-radius: 18px; font-size: 1.15rem; top: 12%; inset-inline-end: 2%; animation-delay: -1.2s; background: linear-gradient(145deg, rgba(103, 232, 249, 0.45), rgba(99, 102, 241, 0.25)); }
@keyframes rw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (min-width: 992px) { .rw-hero-art { display: block; } }

.rw-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.75rem; }
.rw-feature { display: flex; align-items: flex-start; gap: .9rem; padding: 1.2rem; border: 1px solid var(--rw-border); border-radius: var(--rw-radius); background: var(--rw-surface); box-shadow: var(--rw-shadow-sm); transition: transform .3s var(--rw-ease), box-shadow .3s var(--rw-ease), border-color .2s; }
.rw-feature:hover { transform: translateY(-3px); border-color: rgba(var(--rw-primary-rgb), 0.3); box-shadow: var(--rw-shadow-hover); }
.rw-feature i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; display: grid; place-items: center; background: var(--rw-soft); color: var(--rw-icon); font-size: 1.05rem; }
.rw-feature strong { display: block; color: var(--rw-heading); font-size: .95rem; font-weight: 600; margin-bottom: .1rem; }
.rw-feature span { color: var(--rw-muted); font-size: .82rem; line-height: 1.6; display: block; }
@media (max-width: 991.98px) { .rw-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .rw-features { grid-template-columns: 1fr; } }

#common-home #content > h3 { display: flex; align-items: center; gap: .75rem; font-size: 1.4rem; margin: 2.75rem 0 1.4rem; }
#common-home #content > h3::before { content: ""; width: 5px; height: 1.2em; border-radius: 4px; background: var(--rw-gradient); }
#common-home #content > h3::after { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(to left, transparent, var(--rw-border-strong)); }
[dir=ltr] #common-home #content > h3::after { background: linear-gradient(to right, transparent, var(--rw-border-strong)); }

/* banner carousels */
.carousel { border-radius: var(--rw-radius); overflow: hidden; margin-bottom: 1.5rem; border: 1px solid var(--rw-border); background: #fff; box-shadow: var(--rw-shadow-sm); }
.carousel .row { --bs-gutter-x: 0; margin: 0; }
.carousel img { width: 100%; }
.carousel-indicators [data-bs-target] { width: 22px; height: 4px; border: 0; border-radius: 4px; background-color: var(--rw-primary); }
.carousel-control-prev, .carousel-control-next { width: 44px; height: 44px; top: 50%; transform: translateY(-50%); margin-inline: .75rem; border-radius: 50%; background: rgba(11, 16, 48, 0.65); color: #fff; opacity: .9; }
.carousel-control-prev:hover, .carousel-control-next:hover { background: var(--rw-primary); opacity: 1; }
[dir=rtl] .carousel-control-prev span, [dir=rtl] .carousel-control-next span { transform: scaleX(-1); }

/* ---------- product page ---------- */
#product-info .magnific-popup .img-thumbnail { border-radius: var(--rw-radius); padding: .75rem; box-shadow: var(--rw-shadow-sm); }
#product-info .magnific-popup > div .img-thumbnail { border-radius: var(--rw-radius-sm); padding: .3rem; max-width: 84px; margin-bottom: .5rem; box-shadow: none; transition: border-color .15s; }
#product-info .magnific-popup > div a:hover .img-thumbnail { border-color: var(--rw-primary); }
#product-info #content > .row > .col-sm > ul.list-unstyled { color: var(--rw-muted); font-size: .9rem; }
#product-info #content > .row > .col-sm > ul.list-unstyled a { font-weight: 600; }
#product-info h2 { margin: 0; }
#product-info h2 .price-new { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); background: var(--rw-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
#product-info #product { margin-top: 1.25rem; padding: 1.4rem; border: 1px solid var(--rw-border); border-radius: var(--rw-radius); background: var(--rw-surface); box-shadow: var(--rw-shadow-sm); }
#product-info #product hr { margin: 1rem 0; }
#product-info #button-cart { --bs-btn-padding-y: .8rem; }
#product-info .tab-content { padding: 1.6rem; border: 1px solid var(--rw-border); border-radius: var(--rw-radius); background: var(--rw-surface); box-shadow: var(--rw-shadow-sm); }
#product-info .tab-content img { height: auto; border-radius: var(--rw-radius-sm); }
.mfp-bg { background: #070a1c; opacity: .88; }

/* category toolbar */
#compare-total { background-image: none !important; background: var(--rw-surface) !important; border: 1px solid var(--rw-border-strong) !important; box-shadow: none; color: var(--rw-text); }
#compare-total:hover { background: var(--rw-surface-2) !important; color: var(--rw-heading); filter: none; transform: none; }
#product-category #content > .row > div > ul:not(.pagination) { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
#product-category #content > .row > div > ul:not(.pagination) li a { display: inline-block; padding: .38rem 1rem; border: 1px solid var(--rw-border-strong); border-radius: 999px; background: var(--rw-surface); color: var(--rw-text); font-size: .85rem; font-weight: 500; transition: border-color .15s, color .15s, background .15s; }
#product-category #content > .row > div > ul:not(.pagination) li a:hover { border-color: var(--rw-primary); color: var(--rw-link); background: var(--rw-soft); }
#product-category #content > .row > [class*=col-sm-3] { width: 100%; }

/* ---------- account dashboard ---------- */
#account-account #content h2 { font-size: 1.05rem; color: var(--rw-muted); font-weight: 600; margin: 2rem 0 .85rem; }
#account-account #content ul.list-unstyled { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; margin: 0; }
#account-account #content ul.list-unstyled li a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: 100%; padding: 1.05rem 1.15rem;
  border: 1px solid var(--rw-border); border-radius: var(--rw-radius); background: var(--rw-surface); color: var(--rw-text); font-weight: 500; font-size: .92rem;
  box-shadow: var(--rw-shadow-sm); transition: border-color .15s, color .15s, transform .3s var(--rw-ease), box-shadow .3s var(--rw-ease);
}
#account-account #content ul.list-unstyled li a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid var(--rw-dim); border-inline-end: 2px solid var(--rw-dim); transform: rotate(45deg); flex: 0 0 auto; }
[dir=rtl] #account-account #content ul.list-unstyled li a::after { transform: rotate(-135deg); }
#account-account #content ul.list-unstyled li a:hover { border-color: rgba(var(--rw-primary-rgb), 0.35); color: var(--rw-link); transform: translateY(-3px); box-shadow: var(--rw-shadow-hover); }

/* checkout */
#checkout-checkout fieldset, #checkout-checkout #checkout-confirm { padding: 1.4rem; border: 1px solid var(--rw-border); border-radius: var(--rw-radius); background: var(--rw-surface); box-shadow: var(--rw-shadow-sm); }
#checkout-checkout fieldset fieldset { padding: 0; border: 0; background: transparent; box-shadow: none; }

/* cms */
.blog-thumb { border: 1px solid var(--rw-border); border-radius: var(--rw-radius); background: var(--rw-surface); overflow: hidden; box-shadow: var(--rw-shadow-sm); }
.blog-thumb .image a:hover { opacity: 1; }
.blog-thumb h4 a { color: var(--rw-heading); }

/* ---------- footer (deep navy in both themes) ---------- */
footer {
  position: static; bottom: auto; width: 100%; flex-shrink: 0;
  border: 0; border-top: 1px solid rgba(140, 160, 255, 0.14);
  background: radial-gradient(700px 300px at 85% 0, rgba(99, 102, 241, 0.22), transparent 70%), linear-gradient(180deg, #0d1233 0%, #070a1c 100%);
  color: #98a2c8; padding: 4rem 0 1.5rem; font-size: .9rem;
}
footer .rw-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem 2.5rem; }
footer .rw-brand, footer .rw-brand:hover { color: #fff; }
footer .rw-footer-about p { margin: 1rem 0 0; max-width: 34ch; line-height: 1.9; font-size: .88rem; }
footer h5 { font-family: inherit; font-size: .95rem; font-weight: 600; color: #fff; margin: 0 0 1.1rem; }
footer ul { margin: 0; }
footer ul li { margin-bottom: .6rem; }
footer a { color: #98a2c8; text-decoration: none; }
footer a:hover { color: #fff; }
footer hr { border: 0; border-top: 1px solid rgba(140, 160, 255, 0.14); margin: 2.75rem 0 1.25rem; }
footer .rw-footer-bottom { font-size: .8rem; color: #6b7699; line-height: 1.9; }
footer .rw-footer-bottom p { margin: 0; }
footer .rw-footer-bottom a { color: #98a2c8; }
@media (max-width: 991.98px) { footer .rw-footer-grid { grid-template-columns: repeat(2, 1fr); } footer .rw-footer-about { grid-column: 1 / -1; } }
@media (max-width: 479.98px) { footer .rw-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; } }

/* cookie bar */
#cookie { left: 0; right: 0; bottom: 0; height: auto; padding: .75rem 0; opacity: 1; background: rgba(11, 16, 48, 0.96); border-top: 1px solid rgba(140, 160, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#cookie div { font-size: .9rem; color: #e7eaf6; }

/* ---------- responsive header ---------- */
@media (max-width: 767.98px) {
  .rw-header-row { flex-wrap: wrap; gap: .75rem; padding-block: .7rem; }
  .rw-header-search { order: 3; flex-basis: 100%; max-width: none; }
  .rw-header-actions { margin-inline-start: auto; gap: .4rem; }
  .rw-icon-btn { padding: 0 .7rem; }
  .rw-icon-btn .rw-label { display: none; }
  .rw-brand { font-size: 1.05rem; }
  .rw-brand-mark { width: 36px; height: 36px; }
  .rw-menu-wrap { margin-bottom: 1.25rem; }
  #container > main { padding-bottom: 2.5rem; }
}
@media (max-width: 399.98px) { .rw-brand span:last-child { display: none; } }

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