/* ============================================================
   Dressland — Brand theme layer
   Palette taken from the logo: Red #ed1d24 · Black #221e1f
   Loaded last so it refines the base template without markup changes.
   ============================================================ */

:root {
  --dl-red: #ed1d24;
  --dl-red-dark: #c1141a;
  --dl-red-soft: #fdecec;
  --dl-black: #121212;
  --dl-ink: #221e1f;
  --dl-muted: #6a6a6e;
  --dl-line: #e7e7ea;
  --dl-soft: #f7f7f8;
  --dl-navy: #121212;

  --dl-radius: 10px;
  --dl-radius-sm: 6px;
  --dl-shadow-sm: 0 2px 10px rgba(18, 18, 18, 0.06);
  --dl-shadow-md: 0 10px 28px rgba(18, 18, 18, 0.09);
  --dl-shadow-lg: 0 20px 46px rgba(18, 18, 18, 0.14);
  --dl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Global tone ---------- */
body {
  color: var(--dl-ink);
  background: #fff;
}

/* Colour is intentionally left to the base sheets so white-on-dark
   headings (footer, CTA band, deal banner) keep their contrast. */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.01em;
}

a {
  transition: color 0.25s var(--dl-ease);
}

::selection {
  background: var(--dl-red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--dl-red);
  outline-offset: 2px;
}

/* Brand scrollbar */
html {
  scrollbar-color: #3a3a40 #eeeef1;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #eeeef1;
}

::-webkit-scrollbar-thumb {
  background: #3a3a40;
  border-radius: 8px;
  border: 2px solid #eeeef1;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dl-red);
}

/* ---------- Buttons ---------- */
.primary-btn,
.site-btn,
.newslatter-item .subscribe-form button,
.inner-header .advanced-search .input-group button {
  background: var(--dl-red);
  border-color: var(--dl-red);
  border-radius: var(--dl-radius-sm);
  letter-spacing: 0.06em;
  box-shadow: 0 6px 16px rgba(237, 29, 36, 0.22);
  transition: background 0.25s var(--dl-ease), box-shadow 0.25s var(--dl-ease),
    transform 0.25s var(--dl-ease);
}

.primary-btn:hover,
.site-btn:hover,
.newslatter-item .subscribe-form button:hover,
.inner-header .advanced-search .input-group button:hover {
  background: var(--dl-red-dark);
  border-color: var(--dl-red-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(237, 29, 36, 0.28);
}

.primary-btn:active,
.site-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(237, 29, 36, 0.2);
}

/* Dark counterpart button (checkout / view cart in header dropdown) */
.inner-header .nav-right li.cart-icon .cart-hover .select-button .view-card {
  background: var(--dl-black);
  border-radius: var(--dl-radius-sm);
  transition: background 0.25s var(--dl-ease);
}

.inner-header .nav-right li.cart-icon .cart-hover .select-button .view-card:hover {
  background: #000;
}

.inner-header .nav-right li.cart-icon .cart-hover .select-button .checkout-btn {
  background: var(--dl-red);
  border-radius: var(--dl-radius-sm);
}

.inner-header .nav-right li.cart-icon .cart-hover .select-button .checkout-btn:hover {
  background: var(--dl-red-dark);
}

/* ---------- Header ---------- */
/* Search bar */
.inner-header .advanced-search {
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--dl-ease), box-shadow 0.25s var(--dl-ease);
}

.inner-header .advanced-search:focus-within {
  border-color: var(--dl-red);
  box-shadow: 0 0 0 4px rgba(237, 29, 36, 0.1);
}

.inner-header .advanced-search .input-group input {
  color: var(--dl-ink);
}

.inner-header .advanced-search .input-group button {
  border-radius: 0;
  box-shadow: none;
}

/* Cart / wishlist counters */
.inner-header .nav-right li.heart-icon a span,
.inner-header .nav-right li.cart-icon a span {
  background: var(--dl-red);
  box-shadow: 0 2px 6px rgba(237, 29, 36, 0.4);
}

.inner-header .nav-right li.heart-icon a:hover,
.inner-header .nav-right li.cart-icon a:hover {
  color: var(--dl-red);
}

.inner-header .nav-right li.cart-price {
  color: var(--dl-ink);
}

.inner-header .nav-right li.cart-icon .cart-hover {
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow-lg);
  border: 1px solid var(--dl-line);
}

/* Main navigation */
.nav-menu ul li a {
  position: relative;
  transition: color 0.25s var(--dl-ease);
}

.nav-menu ul li a:hover,
.nav-menu ul li.active a {
  color: #fff;
}

.nav-menu ul li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 10px;
  height: 2px;
  background: var(--dl-red);
  transition: left 0.28s var(--dl-ease), right 0.28s var(--dl-ease);
}

.nav-menu ul li:hover > a::after,
.nav-menu ul li.active > a::after {
  left: 18px;
  right: 18px;
}

.nav-menu ul li .dropdown {
  border-top: 2px solid var(--dl-red);
  box-shadow: var(--dl-shadow-md);
}

/* ---------- Breadcrumb ---------- */
.breacrumb-section {
  background: var(--dl-soft);
}

.breadcrumb-text {
  border-bottom: 1px solid var(--dl-line);
}

.breadcrumb-text a {
  color: var(--dl-muted);
}

.breadcrumb-text a:hover {
  color: var(--dl-red);
}

.breadcrumb-text span {
  color: var(--dl-ink);
  font-weight: 700;
}

/* ---------- Product cards ---------- */
.product-item .pi-pic {
  background: var(--dl-soft);
}

/* Equal-height columns with real gutters between rows.
   The card fills its column instead of using height:100% + margin,
   which previously overflowed the column and collapsed the row gap. */
.product-list .row {
  margin-left: -14px;
  margin-right: -14px;
}

.product-list .row > [class*="col-"] {
  display: flex;
  padding-left: 14px;
  padding-right: 14px;
  margin-bottom: 28px;
}

.product-list .row > .col-12 > .empty-products {
  width: 100%;
}

/* Shop grid + related products get the same card shell as the homepage */
.product-list .product-item {
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: var(--dl-radius);
  overflow: hidden;
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--dl-ease), box-shadow 0.35s var(--dl-ease),
    border-color 0.35s var(--dl-ease);
}

.product-list .product-item:hover {
  transform: translateY(-4px);
  border-color: #dcdce1;
  box-shadow: var(--dl-shadow-md);
}

.product-list .product-item .pi-text {
  padding: 14px 14px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* The category line is always rendered (blank when absent) so every
   card's text block lines up without leaving a hole above the price. */
.product-list .product-item .pi-text .catagory-name {
  margin-bottom: 6px;
  min-height: 13px;
  line-height: 13px;
}

.product-list .product-item .pi-text a h5 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-list .product-item .pi-text .product-price {
  margin-top: auto;
  font-size: 18px;
}

@media (max-width: 575px) {
  .product-list .row {
    margin-left: -8px;
    margin-right: -8px;
  }

  .product-list .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 18px;
  }
}

/* Homepage collection cards: image flush to the card edge */
.home-collection .product-item {
  border-radius: var(--dl-radius);
}

.home-collection .product-item .pi-pic {
  border-radius: 0;
}

.product-item .pi-pic img {
  transition: transform 0.55s var(--dl-ease);
}

.product-item:hover .pi-pic img {
  transform: scale(1.05);
}

.product-item .pi-pic .sale,
.product-item .pi-pic .sale.pp-sale {
  background: var(--dl-red);
  border-radius: 0 4px 4px 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
}

.product-item .pi-pic ul {
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(2px);
}

.product-item .pi-pic ul li {
  background: transparent;
}

.product-item .pi-pic ul li a {
  color: #fff;
}

.product-item .pi-pic ul li.w-icon.active a {
  background: var(--dl-red);
  color: #fff;
}

.product-item .pi-pic ul li a:hover {
  color: var(--dl-red);
}

.product-item .pi-pic ul li.w-icon.active a:hover {
  background: var(--dl-red-dark);
  color: #fff;
}

.product-item .pi-text .catagory-name {
  color: var(--dl-muted);
}

.product-item .pi-text a h5 {
  color: var(--dl-ink);
  transition: color 0.25s var(--dl-ease);
}

.product-item .pi-text a:hover h5 {
  color: var(--dl-red);
}

.product-item .pi-text .product-price {
  color: var(--dl-red);
}

.product-item .pi-text .product-price span {
  color: #a9a9ae;
}

/* ---------- Shop sidebar filters ---------- */
.filter-widget .fw-title {
  color: var(--dl-ink);
  position: relative;
  padding-bottom: 12px;
  font-size: 19px;
}

.filter-widget .fw-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  background: var(--dl-red);
  border-radius: 2px;
}

.filter-widget .filter-catagories li a {
  color: var(--dl-muted);
  padding: 2px 0;
  transition: color 0.2s var(--dl-ease), padding-left 0.2s var(--dl-ease);
}

.filter-widget .filter-catagories li a:hover {
  color: var(--dl-red);
  padding-left: 6px;
}

.filter-widget .filter-catagories li a.active {
  color: var(--dl-red);
  font-weight: 700;
}

.fw-tags a {
  display: inline-block;
  border: 1px solid var(--dl-line);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0 8px 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--dl-muted);
  background: #fff;
  transition: all 0.25s var(--dl-ease);
}

.fw-tags a:hover {
  border-color: var(--dl-red);
  color: var(--dl-red);
}

.fw-tags a.active {
  background: var(--dl-red);
  border-color: var(--dl-red);
  color: #fff;
  box-shadow: 0 6px 14px rgba(237, 29, 36, 0.24);
}

.filter-widget .fw-brand-check .bc-item label input:checked ~ span {
  background: var(--dl-red);
  border-color: var(--dl-red);
}

/* ---------- Shop toolbar + pagination ---------- */
.product-show-option {
  border-bottom: 1px solid var(--dl-line);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.product-show-option p {
  color: var(--dl-muted);
  margin-bottom: 0;
}

.dl-shop-pagination .page-link {
  color: var(--dl-ink);
  border-color: var(--dl-line);
  border-radius: var(--dl-radius-sm);
  margin: 0 4px;
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  transition: all 0.22s var(--dl-ease);
}

.dl-shop-pagination .page-link:hover {
  background: var(--dl-red-soft);
  border-color: var(--dl-red);
  color: var(--dl-red);
}

.dl-shop-pagination .page-item.active .page-link {
  background: var(--dl-red);
  border-color: var(--dl-red);
  color: #fff;
  box-shadow: 0 6px 14px rgba(237, 29, 36, 0.26);
}

.dl-shop-pagination .page-item.disabled .page-link {
  color: #b9b9be;
  background: #fff;
}

.empty-products {
  border: 1px dashed var(--dl-line);
}

.empty-products a {
  color: var(--dl-red);
  font-weight: 700;
}

/* ---------- Forms ---------- */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  border-color: var(--dl-red) !important;
  box-shadow: 0 0 0 3px rgba(237, 29, 36, 0.1);
  outline: none;
}

/* ---------- Footer ---------- */
.footer-section {
  background: var(--dl-black);
  position: relative;
}

.footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dl-red) 0%, var(--dl-red) 34%, #2a2a2a 34%);
}

.footer-left ul li,
.footer-widget ul li a,
.newslatter-item p,
.copyright-reserved .copyright-text {
  color: #b0b0b5;
}

.footer-widget h5,
.newslatter-item h5 {
  position: relative;
  padding-bottom: 12px;
}

.footer-widget h5::after,
.newslatter-item h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--dl-red);
}

.footer-widget ul li a:hover,
.copyright-reserved .copyright-text a:hover {
  color: var(--dl-red);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #d7d7db;
  transition: background 0.25s var(--dl-ease), color 0.25s var(--dl-ease),
    transform 0.25s var(--dl-ease);
}

.footer-social a:hover {
  background: var(--dl-red);
  color: #fff;
  transform: translateY(-2px);
}

.newslatter-item .subscribe-form input {
  background: #1f1f22;
  border: 1px solid #2e2e33;
  border-radius: var(--dl-radius-sm);
  color: #e6e6ea;
  padding-right: 130px;
}

.newslatter-item .subscribe-form input:focus {
  border-color: var(--dl-red) !important;
}

.copyright-reserved {
  border-top: 1px solid #2a2a2e;
}

/* WhatsApp bubble keeps its own brand green, just softened */
.whatsapp-btn {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

/* ---------- Section chrome (shared with home.css tokens) ---------- */
.dl-section-title {
  color: var(--dl-ink);
}

/* CTA band: style.css paints every h3/p dark (#111 / #636363), which
   hides the copy against the black→red gradient. Force white here since
   theme.css loads last. */
.dl-cta-band__inner h3,
.dl-cta-band__inner p {
  color: #fff;
}

.dl-cta-band__inner p {
  color: rgba(255, 255, 255, 0.88);
}

.dl-section-title span,
.dl-section-label {
  color: var(--dl-red);
}

/* ---------- Loading state ---------- */
.dl-shop-loading::after {
  border-top-color: var(--dl-red);
}

@media (max-width: 575px) {
  .fw-tags a {
    padding: 6px 13px;
    font-size: 12px;
  }

  .dl-shop-pagination .page-link {
    min-width: 34px;
    margin: 0 2px;
    padding: 6px 8px;
  }
}
