/* =============================================================
   DockerCart Theme — dockercart.css
   ============================================================= */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, button, input, select, textarea { font-family: 'Manrope', sans-serif; }

/* ── Header layer order (prevents topbar dropdown clipping under main row) ── */
#navbar {
  isolation: isolate;
}

#dc-top-micro-bar {
  position: relative;
  z-index: 30;
}

.dc-header-main-row {
  position: relative;
  z-index: 20;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ── Header spacer ────────────────────────────────────────── */
/* top-bar(36) + main(56) + mobile-search(52) = 144 on mobile
   top-bar(36) + main(56)                     = 92 on sm
   + category-bar(40)                         = 132 on lg      */
.dc-header-spacer {
  height: 144px;
  transition: height 0.28s ease;
}
@media (min-width: 640px)  { .dc-header-spacer { height: 92px; } }
@media (min-width: 1024px) { .dc-header-spacer { height: 132px; } }

@media (max-width: 1023px) {
  .dc-topbar-mobile-collapsible {
    max-height: 120px;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.22s ease, visibility 0s linear 0s;
  }

  /* Mobile dropdowns (language/currency) should not be clipped by topbar collapse container */
  .dc-topbar-mobile-collapsible:has(.dc-topbar-dd-panel:not(.hidden)) {
    overflow: visible;
  }

  .dc-topbar-mobile-collapsible.is-collapsed {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0s linear 0.28s;
  }

  body.dc-topbar-hidden .dc-header-spacer {
    height: 108px;
  }
}

@media (max-width: 1023px) {
  main {
    padding-top: 40px;
  }
  main.py-8 {
    padding-top: 60px;
  }
  section.py-10 {
    padding-top: 60px;
  }
  section#hero {
    padding-top: 40px;
  }
}

/* ── Category dropdown hover ──────────────────────────────── */
.dc-cat-item { position: relative; }
.dc-cat-dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  max-width: calc(100vw - 32px);
}
.dc-cat-item:hover > .dc-cat-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

/* ── Horizontal mega-menu: inline 3-level layout ──────────── */
.dc-cat-mega-inner {
  display: none;
}
.dc-cat-dropdown > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dc-cat-mega-group {}
.dc-cat-mega-parent {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.15s, background-color 0.15s;
}
.dc-cat-mega-parent:hover {
  color: #2563eb;
  background-color: #eff6ff;
  text-decoration: none;
}
.dc-cat-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.dc-cat-mega-child {
  display: block;
  font-size: 11.5px;
  color: #6b7280;
  text-decoration: none;
  padding: 2px 0;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: color .1s;
}
.dc-cat-mega-child:hover { color: #2563eb; }
.dc-cat-mega-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: none;
}
.dc-cat-mega-seeall {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.dc-cat-mega-seeall:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.dc-cat-mega-seeall-link {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 8px !important;
  background-color: transparent !important;
}
.dc-cat-mega-seeall-link:hover {
  background-color: transparent !important;
}


/* Ensure line-clamped titles/descriptions use the full width of their container
   Fixes blog/listing descriptions being clipped horizontally */
.line-clamp-2, .line-clamp-3 {
  display: block;
  width: 100%;
}
/* ── Vertical catalog menu — two-panel hamburger ─────────── */
.dc-vertical-menu-panel {
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  z-index: 200;
}
/* Two-panel shell */
.dc-vm-shell {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.15);
  max-height: 500px;
  overflow: clip;
  max-width: 900px;
}
/* Left column: category list */
.dc-vm-left {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid #f0f0f0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f9fafb;
  padding: 8px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.dc-vm-cat-row { border-radius: 10px; transition: background .12s; }
.dc-vm-cat-row.is-active { background: #eff6ff; }
.dc-vm-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #374151;
  text-decoration: none;
  transition: color .12s, background .12s;
}
.dc-vm-cat-link:hover,
.dc-vm-cat-row.is-active .dc-vm-cat-link { color: #2563eb; background: #eff6ff; }
.dc-vm-cat-link.is-active { color: #2563eb; font-weight: 700; }
.dc-vm-chevron { opacity: 0.35; flex-shrink: 0; }
.dc-vm-cat-row.is-active .dc-vm-chevron { opacity: 1; color: #2563eb; }
/* Right panel: subcategory content */
.dc-vm-right {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: visible;
  padding: 16px 20px 12px;
  scrollbar-gutter: stable;
}
.dc-vm-panel { display: none; }
.dc-vm-panel.is-visible { display: block; }
.dc-vm-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
}

.dc-vm-subcat-group {}
.dc-vm-subcat-parent {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  padding: 2px 0;
  margin-bottom: 5px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: color .1s;
}
.dc-vm-subcat-parent:hover { color: #1e40af; text-decoration: underline; }
.dc-vm-subcat-list { list-style: none; margin: 0; padding: 0; }
.dc-vm-subcat-child {
  display: block;
  font-size: 11.5px;
  color: #6b7280;
  text-decoration: none;
  padding: 2px 0;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: color .1s;
}
.dc-vm-subcat-child:hover { color: #2563eb; }
.dc-vm-subcat-standalone {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.3;
  transition: color .1s;
}
.dc-vm-subcat-standalone:hover { color: #2563eb; }
.dc-vm-panel-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}
.dc-vm-panel-empty { padding: 8px 0; }
.dc-vm-see-all {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.dc-vm-see-all:hover { text-decoration: underline; }

/* ── Mobile menu slide ────────────────────────────────────── */
#dc-mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(0);
}
.dc-mobile-menu-closed {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ── Mobile categories accordion children ────────────────── */
.dc-mobile-cat-children {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 4px;
}

/* ── Search form integration ──────────────────────────────── */
.dc-search-wrapper #search,
.dc-search-mobile #search {
  width: 100%;
  margin: 0;
}
.dc-search-wrapper,
.dc-search-mobile {
  position: relative;
  z-index: 600;
}
.dc-search-wrapper .input-group,
.dc-search-mobile .input-group {
  display: block;
  position: relative;
  width: 100%;
}
.dc-search-wrapper .input-group input,
.dc-search-mobile .input-group input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border-radius: 1rem;
  background: #f3f4f6;
  border: 1px solid transparent;
  font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
  font-family: 'Manrope', sans-serif;
}
.dc-search-wrapper .input-group input:focus,
.dc-search-mobile .input-group input:focus {
  border-color: #60a5fa;
  background: white;
}
.dc-search-wrapper .input-group-btn,
.dc-search-mobile .input-group-btn { display: none; }

/* Search icon overlay (Tailwind class used in search.twig) */
.dc-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  z-index: 2;
}

.dockercart-search-suggest {
  z-index: 2147483000 !important;
  border-radius: 0 0 14px 14px;
  border-top: 1px solid #e5e7eb !important;
}

/* ── Top-bar dropdowns (currency / language) ──────────────── */
.dc-topbar-dd { position: relative; }
.dc-topbar-dd-panel {
  position: absolute;
  z-index: 40;
  animation: dcDdFadeIn 0.14s ease;
  transform-origin: top right;
}
@keyframes dcDdFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(-3px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* Ensure topbar controls flex properly */
.dc-topbar-controls { display: flex; align-items: center; gap: 0.5rem; }
.dc-topbar-controls > * { display: flex; align-items: center; }

@media (min-width: 1024px) {
  .dc-topbar-controls-right {
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .dc-topbar-info-links {
    z-index: 1;
  }
}

/* Override default Bootstrap styles from currency/language renders */
.dc-topbar-controls .pull-left,
.dc-topbar-controls .btn-group { float: none !important; display: flex; }
.dc-topbar-controls .btn-link {
  color: #9ca3af !important;
  padding: 0 !important;
  font-size: 0.75rem !important;
  text-decoration: none !important;
  box-shadow: none !important;
  font-family: 'Manrope', sans-serif !important;
}
.dc-topbar-controls .btn-link:hover { color: #fff !important; }
.dc-topbar-controls .dropdown-menu {
  background: #111827 !important;
  border: 1px solid #374151 !important;
  border-radius: 0.75rem !important;
  padding: 0.375rem 0 !important;
  min-width: 10rem !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}
.dc-topbar-controls .dropdown-menu > li > a,
.dc-topbar-controls .dropdown-menu .btn-link {
  color: #d1d5db !important;
  font-size: 0.75rem !important;
  padding: 0.5rem 1rem !important;
  font-family: 'Manrope', sans-serif !important;
}
.dc-topbar-controls .dropdown-menu > li > a:hover,
.dc-topbar-controls .dropdown-menu .btn-link:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

/* ── Account dropdown ─────────────────────────────────────── */
.dc-account-wrapper {
  position: relative;
  z-index: 120;
}

.dc-account-dd {
  animation: dcDdFadeIn 0.14s ease;
  transform-origin: top right;
  position: fixed !important;
  top: 0;
  left: 0;
  right: auto;
  z-index: 2147483500 !important;
  pointer-events: auto;
}

/* ── Footer icon color reset ──────────────────────────────── */
footer .dc-social a i {
  color: #9ca3af;
  transition: color 0.15s;
}
footer .dc-social a:hover i { color: white; }

/* ── Suppress leftover Bootstrap global styles ───────────── */
body { padding-top: 0 !important; }

/* =============================================================
   DockerCart 1-Click Checkout — theme overrides
   ============================================================= */

/* ── Button wrapper ───────────────────────────────────────── */
.dockercart-oneclickcheckout-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Base button reset ────────────────────────────────────── */
.dockercart-oneclickcheckout-button.btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.dockercart-oneclickcheckout-button.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
}
.dockercart-oneclickcheckout-button.btn:hover::before { background: rgba(255,255,255,0.08); }
.dockercart-oneclickcheckout-button.btn:active  { transform: translateY(1px) !important; }

/* ── Color themes ─────────────────────────────────────────── */
.dockercart-oneclickcheckout-button.theme-purple {
  background: #111827 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.22) !important;
}
.dockercart-oneclickcheckout-button.theme-blue {
  background: #111827 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.22) !important;
}
.dockercart-oneclickcheckout-button.theme-green {
  background: #111827 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.22) !important;
}
.dockercart-oneclickcheckout-button.theme-red {
  background: #111827 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.22) !important;
}
.dockercart-oneclickcheckout-button.theme-orange {
  background: #111827 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.22) !important;
}
.dockercart-oneclickcheckout-button.theme-pink {
  background: #111827 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.22) !important;
}
.dockercart-oneclickcheckout-button.theme-teal {
  background: #111827 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.22) !important;
}
.dockercart-oneclickcheckout-button.theme-dark {
  background: #111827 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.22) !important;
}

/* ── Modal backdrop ───────────────────────────────────────── */
body.modal-open { overflow: hidden; }
#oneclickcheckout-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
#oneclickcheckout-modal.in {
  display: flex;
}
#oneclickcheckout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3990;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

/* ── Modal dialog ─────────────────────────────────────────── */
#oneclickcheckout-modal .modal-dialog {
  width: 100%;
  max-width: 480px;
  margin: 40px auto;
  position: relative;
  z-index: 1;
}
@media (max-width: 540px) {
  #oneclickcheckout-modal {
    align-items: flex-end;
    padding: 0;
  }
  #oneclickcheckout-modal .modal-dialog { margin: 0; max-width: 100%; }
  #oneclickcheckout-modal .modal-content { border-radius: 24px 24px 0 0; }
}

/* ── Modal content card ───────────────────────────────────── */
#oneclickcheckout-modal .modal-content {
  border: none !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 60px rgba(0,0,0,.18) !important;
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
}

/* ── Modal header ─────────────────────────────────────────── */
#oneclickcheckout-modal .modal-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 20px 24px 16px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#oneclickcheckout-modal .modal-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
#oneclickcheckout-modal .modal-title::before {
  content: '';
}

/* ── Hero banner badge & primary button styles ───────────────────────── */
.banner-slide__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent, #3b82f6);
  color: #fff;
}

.banner-slide__btn--primary {
  background: var(--accent, #3b82f6);
  border: 1px solid var(--accent, #3b82f6);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.banner-slide__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2,6,23,0.18);
  filter: brightness(0.92);
}

#oneclickcheckout-modal .close {
  font-size: 1.5rem !important;
  line-height: 1 !important;
  opacity: .4 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  cursor: pointer;
  color: #374151 !important;
  transition: opacity .15s !important;
}
#oneclickcheckout-modal .close:hover { opacity: .8 !important; }

/* ── Modal body ───────────────────────────────────────────── */
#oneclickcheckout-modal .modal-body {
  padding: 20px 24px 24px !important;
  background: #fff;
}

/* ── Modal footer ─────────────────────────────────────────── */
#oneclickcheckout-modal .modal-footer {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px !important;
  border: none !important;
  background: #fff;
}
#oneclickcheckout-modal .modal-footer .btn {
  margin: 0 !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  padding: 11px 16px !important;
  transition: all .2s ease !important;
}
#oneclickcheckout-modal .btn-cancel {
  flex: 0 0 auto;
  min-width: 112px;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  background: #fff !important;
}
#oneclickcheckout-modal .btn-cancel:hover {
  border-color: #9ca3af !important;
  background: #f9fafb !important;
}

/* ── Form groups ──────────────────────────────────────────── */
#oneclickcheckout-form .form-group {
  margin-bottom: 14px !important;
}
#oneclickcheckout-form label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 5px !important;
  display: block;
}
#oneclickcheckout-form label .required { color: #ef4444 !important; }

/* ── Inputs ───────────────────────────────────────────────── */
#oneclickcheckout-form input[type="text"],
#oneclickcheckout-form input[type="email"],
#oneclickcheckout-form input[type="tel"],
#oneclickcheckout-form textarea,
#oneclickcheckout-form select {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
  font-size: 0.875rem !important;
  font-family: 'Manrope', sans-serif !important;
  color: #111827 !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color .15s !important;
  box-shadow: none !important;
}
#oneclickcheckout-form input[readonly],
#oneclickcheckout-form textarea[readonly],
#oneclickcheckout-form select[disabled],
#oneclickcheckout-form input[disabled],
#oneclickcheckout-form textarea[disabled] {
  background: #f8fafc !important;
  border-color: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}
#oneclickcheckout-form input:focus,
#oneclickcheckout-form textarea:focus,
#oneclickcheckout-form select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important;
}
#oneclickcheckout-form input.has-error,
#oneclickcheckout-form select.has-error,
#oneclickcheckout-form textarea.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}

/* ── Error alert ──────────────────────────────────────────── */
#oneclickcheckout-error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 12px !important;
  color: #dc2626 !important;
  font-size: 0.8rem !important;
  padding: 10px 14px !important;
  margin-bottom: 14px !important;
}
#oneclickcheckout-error ul { margin: 0; padding-left: 16px; }

/* ── Submit button ────────────────────────────────────────── */
#oneclickcheckout-submit {
  display: block !important;
  width: 100% !important;
  flex: 1 1 auto;
  padding: 12px 20px !important;
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: background .2s !important;
  font-family: 'Manrope', sans-serif !important;
  letter-spacing: .02em !important;
}
#oneclickcheckout-submit:hover { background: #1d4ed8 !important; }
#oneclickcheckout-submit:active { background: #1e40af !important; }

/* Theme-based submit button color */
.theme-purple  #oneclickcheckout-submit { background: #2563eb !important; }
.theme-green   #oneclickcheckout-submit { background: #2563eb !important; }
.theme-red     #oneclickcheckout-submit { background: #2563eb !important; }
.theme-orange  #oneclickcheckout-submit { background: #2563eb !important; }
.theme-pink    #oneclickcheckout-submit { background: #2563eb !important; }
.theme-teal    #oneclickcheckout-submit { background: #2563eb !important; }
.theme-dark    #oneclickcheckout-submit { background: #2563eb !important; }

/* =============================================================
   DockerCart Success / Logout pages
   ============================================================= */
.dc-success-page #content {
  margin-bottom: 24px;
}

.dc-success-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.08);
  padding: 24px;
  text-align: center;
}

.dc-success-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.dc-success-card__title {
  margin: 0 0 12px;
  font-size: 1.9rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.dc-success-card__message {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}

.dc-success-card__message p:last-child {
  margin-bottom: 0;
}

.dc-success-card__actions {
  margin-top: 20px;
}

.dc-success-card__actions .btn {
  min-width: 180px;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dc-success-card--logout .dc-success-card__icon {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

/* =============================================================
   Article / Information page tweaks
   Improve paragraph spacing and optional first-line indent for prose
   (Tailwind Typography handles most of this; keep a couple of small fallbacks)
   ============================================================= */
.prose p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.75;
  /* A subtle first-line indent helps readability in some locales */
  text-indent: 1.05em;
  /* Reduce paragraph font-size for better compactness */
  font-size: 1rem;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Reduce heading sizes inside prose blocks for tighter layout */
.prose h1 { font-size: 1.5rem; line-height: 1.15; }
.prose h2 { font-size: 1.25rem; line-height: 1.2; }
.prose h3 { font-size: 1.125rem; line-height: 1.25; }
.prose h4 { font-size: 1rem; line-height: 1.3; }

@media (min-width: 640px) {
  .prose h1 { font-size: 1.75rem; }
  .prose h2 { font-size: 1.375rem; }
}
.prose ul, .prose ol {
  margin-bottom: 1rem;
}

/* Make anchor tags inside rich content render inline-block (prevents full-width blocks)
   Applied to category/product/article descriptions which use .prose */
.prose a {
  display: inline-block !important;
}
.prose a img {
  display: inline-block;
}

/* Ensure anchors inside line-clamped headings/descriptions remain inline-block */
.line-clamp-2 a,
.line-clamp-3 a,
.dc-blog-content a {
  display: inline-block !important;
}

/* Ensure blog-specific prose uses full width of parent to avoid horizontal clipping */
.dc-blog-content.prose,
.dc-blog-content.prose-lg,
.dc-blog-content.prose-sm {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}
.dc-blog-content.prose img,
.dc-blog-content.prose figure {
  max-width: 100% !important;
}

/* Override Tailwind Typography root font-size utilities for our prose blocks
   Some responsive classes like .sm:prose-lg increase root font-size; force smaller size
   for blog/category/product/article prose blocks. */
.dc-blog-content.prose,
.dc-blog-content.prose-sm,
.dc-blog-content.prose-lg,
.dc-blog-content.sm\:prose,
.dc-blog-content.sm\:prose-lg,
.dc-blog-content.lg\:prose-lg,
.prose.prose-lg,
.prose.sm\:prose-lg,
.prose.lg\:prose-lg,
.prose-lg,
.sm\:prose-lg,
.lg\:prose-lg {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

@media (max-width: 767px) {
  .dc-success-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .dc-success-card__title {
    font-size: 1.55rem;
  }

  .dc-success-card__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ── Footer accordion arrow rotation ──────────────────────── */
.footer-accordion-arrow {
  transition: transform 0.3s ease;
}

/* ── Widget "View all" link hover animation ──────────────── */
.dc-view-all-link {
  display: inline-block;
  background: transparent;
  color: #2563eb;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.25s ease;
}
.dc-view-all-link:hover {
  background: rgba(219, 234, 254, 0.52);
  text-decoration: none;
}

/* =============================================================
   View Mode Toggle (grid / list / table)
   ============================================================= */
.dc-view-toggle .dc-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dc-view-toggle .dc-view-btn:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.dc-view-toggle .dc-view-btn.is-active {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.dc-view-toggle .dc-view-btn.is-active svg {
  stroke: #2563eb !important;
}

/* ── List view ──────────────────────────────────────────── */
.dc-view-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}
.dc-view-list .product-card {
  flex-direction: row !important;
  border-radius: 1rem !important;
}
.dc-view-list .wishlist-btn {
  opacity: 1 !important;
  transform: none !important;
}
.dc-view-list .quick-view-btn,
.dc-view-list .add-to-cart-btn {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Table view ─────────────────────────────────────────── */
.dc-view-table {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}
.dc-view-table .product-card {
  display: grid !important;
  grid-template-columns: 50px minmax(140px, 1fr) auto auto auto 48px auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.625rem 0.75rem;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.dc-view-table .product-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(2,6,23,0.06);
}
.dc-view-table .product-card .wishlist-btn,
.dc-view-table .product-card .quick-view-btn,
.dc-view-table .product-card .add-to-cart-btn {
  opacity: 1 !important;
  transform: none !important;
  position: static !important;
}
.dc-view-table .product-card .wishlist-btn {
  width: 28px;
  height: 28px;
}
.dc-view-table .product-card .wishlist-btn i {
  width: 12px;
  height: 12px;
}
@media (max-width: 1023px) {
  .dc-view-table,
  .dc-view-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }
  .dc-view-table .product-card {
    grid-template-columns: 1fr !important;
    gap: 0;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
  }
}

/* ── View toggle visibility: desktop only ──────────────── */
.dc-view-toggle {
  display: none;
}
@media (min-width: 1024px) {
  .dc-view-toggle {
    display: inline-flex;
  }
}

/* ── Scroll-to-top ─────────────────────────────────────────── */
#dc-scroll-to-top {
  top: 144px;
  height: calc(100vh - 144px);
}
@media (min-width: 640px) {
  #dc-scroll-to-top {
    top: 92px;
    height: calc(100vh - 92px);
  }
}
@media (min-width: 1024px) {
  #dc-scroll-to-top {
    top: 132px;
    height: calc(100vh - 132px);
  }
}
#dc-scroll-to-top svg {
  transition: transform 0.3s ease, color 0.3s ease;
}
#dc-scroll-to-top.is-returning svg {
  transform: rotate(180deg);
}
#dc-scroll-to-top:hover svg {
  transform: scale(1.15);
  color: #6b7280;
}
#dc-scroll-to-top.is-returning:hover svg {
  transform: rotate(180deg) scale(1.15);
}

/* ── Blog: читать статью → анимация стрелки ────────────────── */
[data-lucide="arrow-right"]{transition:transform .2s ease}
a:hover [data-lucide="arrow-right"]{transform:translateX(4px)}
