/* =========================================================
   Clothing Series storefront — ShopCo / modern commerce look
   Website-only (web_include_css). Never load via app_include_*.
   Scope globals to website body markers so Desk stays untouched
   even if this file is accidentally included.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap");

/* Website pages set data-path / cs-storefront; Desk (/app) does not use these rules */
body.cs-storefront,
body[data-path] {
  --cs-primary: #111111;
  --cs-secondary: #5a5a5a;
  --cs-accent: #111111;
  --cs-bg: #ffffff;
  --cs-surface: #ffffff;
  --cs-muted-bg: #f4f4f5;
  --cs-text: #111111;
  --cs-muted: #6b7280;
  --cs-border: #e5e7eb;
  /* Navbar tokens — packs override these so light text never sits on white */
  --cs-nav-bg: rgba(255, 255, 255, 0.96);
  --cs-nav-text: #111111;
  --cs-nav-muted: #6b7280;
  --cs-nav-border: #e5e7eb;
  --cs-radius: 16px;
  --cs-radius-sm: 10px;
  --cs-container: 1200px;
  --cs-font: "DM Sans", "Outfit", sans-serif;
  --cs-display: "Outfit", "DM Sans", sans-serif;
  --cs-font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --cs-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(0, 0, 0, 0.06);
  --cs-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.1);
  --cs-header-h: 72px;
}

body.cs-storefront,
body[data-path] {
  font-family: var(--cs-font);
  color: var(--cs-text);
  background: var(--cs-bg);
  -webkit-font-smoothing: antialiased;
}

body.cs-storefront.product-page,
body[data-path].product-page,
body[data-path] .website-list,
body[data-path] .page-content-wrapper {
  background: var(--cs-bg) !important;
}

body.cs-storefront a,
body[data-path] a {
  transition: color 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.cs-container {
  max-width: var(--cs-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.cs-section {
  padding: 3.25rem 0;
}

.cs-section-tight {
  padding: 2rem 0 3rem;
}

.cs-section-title {
  font-family: var(--cs-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
}

.cs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cs-section-desc {
  margin: 0.35rem 0 0;
  color: var(--cs-muted, #6b7280);
  font-size: 0.95rem;
}

.cs-link-all {
  color: var(--cs-text) !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  white-space: nowrap;
}

.cs-link-all:hover {
  opacity: 0.65;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Top utility bar ---------- */
.cs-topbar,
.cs-announcement {
  background: #1f1f1f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
}

.cs-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.cs-topbar-msg {
  letter-spacing: 0.02em;
}

.cs-topbar-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cs-topbar-links a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
}

.cs-topbar-links a:hover {
  color: #fff !important;
}

@media (max-width: 640px) {
  .cs-topbar-links {
    display: none;
  }
  .cs-topbar-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- Navbar (website only) ---------- */
body.cs-storefront .navbar,
body[data-path] .navbar {
  background: var(--cs-nav-bg) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cs-nav-border) !important;
  min-height: var(--cs-header-h);
  box-shadow: none !important;
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.45rem 0;
}

body.cs-storefront .navbar .navbar-brand,
body[data-path] .navbar .navbar-brand {
  font-family: var(--cs-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem !important;
  color: var(--cs-nav-text) !important;
  text-transform: uppercase;
}

body.cs-storefront .navbar .nav-link,
body[data-path] .navbar .nav-link {
  font-family: var(--cs-font);
  font-weight: 600;
  color: var(--cs-nav-text) !important;
  font-size: 0.92rem;
  padding: 0.55rem 0.8rem !important;
  opacity: 0.92;
}

body.cs-storefront .navbar .nav-link:hover,
body[data-path] .navbar .nav-link:hover {
  opacity: 1;
  color: var(--cs-accent) !important;
}

body.cs-storefront .navbar .badge-primary,
body.cs-storefront .shopping-badge,
body[data-path] .navbar .badge-primary,
body[data-path] .shopping-badge {
  background: var(--cs-primary) !important;
  border-radius: 999px !important;
  font-size: 0.65rem !important;
  min-width: 1.15rem;
  height: 1.15rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.cs-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--cs-muted-bg);
  border: 1px solid var(--cs-nav-border, var(--cs-border));
  border-radius: 999px;
  padding: 3px;
}
.cs-lang-btn {
  border: 0;
  background: transparent;
  color: var(--cs-nav-muted, var(--cs-muted));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  font-family: var(--cs-font);
}
.cs-lang-btn:hover {
  color: var(--cs-text);
  background: #fff;
}
.cs-lang-btn.active {
  background: var(--cs-primary);
  color: #fff;
}
.navbar .cs-lang-nav {
  list-style: none;
}
#language-switcher {
  display: none !important;
}

/* ---------- Hero ---------- */
.cs-hero {
  position: relative;
  min-height: clamp(380px, 56vh, 560px);
  display: flex;
  align-items: center;
  color: #fff;
  background: #e8e8ea;
  overflow: hidden;
  border-radius: 0;
}

.cs-hero--image {
  background-image: var(--cs-hero-image);
  background-size: cover;
  background-position: center right;
}

.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.78) 42%,
    rgba(255, 255, 255, 0.15) 100%
  );
  pointer-events: none;
}

.cs-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  width: 100%;
}

.cs-hero-copy {
  max-width: 34rem;
  color: var(--cs-text);
}

.cs-hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cs-muted);
  margin-bottom: 0.85rem;
}

.cs-hero h1 {
  font-family: var(--cs-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 0.9rem;
  color: var(--cs-text) !important;
  text-transform: uppercase;
  max-width: 14ch;
}

.cs-hero p {
  font-size: 1.02rem;
  max-width: 30rem;
  color: var(--cs-muted) !important;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Buttons (website only — never restyle Desk .btn-primary) ---------- */
body.cs-storefront .cs-btn,
body.cs-storefront .btn-primary,
body.cs-storefront .btn-add-to-cart,
body.cs-storefront .btn-place-order,
body[data-path] .cs-btn,
body[data-path] .btn-primary,
body[data-path] .btn-add-to-cart,
body[data-path] .btn-place-order {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--cs-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.85rem 1.55rem !important;
  font-family: var(--cs-font) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  box-shadow: none !important;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease !important;
  text-transform: uppercase;
}

body.cs-storefront .cs-btn:hover,
body.cs-storefront .btn-primary:hover,
body.cs-storefront .btn-add-to-cart:hover,
body[data-path] .cs-btn:hover,
body[data-path] .btn-primary:hover,
body[data-path] .btn-add-to-cart:hover {
  background: #000 !important;
  transform: translateY(-1px);
  color: #fff !important;
}

.cs-btn-dark {
  background: #111 !important;
}

.cs-btn-outline-light {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid var(--cs-border) !important;
}

.cs-btn-outline-light:hover {
  background: var(--cs-muted-bg) !important;
  color: #111 !important;
}

body.cs-storefront .btn-light,
body.cs-storefront .btn-view-in-cart,
body[data-path] .btn-light,
body[data-path] .btn-view-in-cart {
  border-radius: 999px !important;
  border: 1px solid var(--cs-border) !important;
  background: #fff !important;
  font-weight: 600 !important;
}

/* ---------- Trust bar ---------- */
.cs-trust-bar {
  border-bottom: 1px solid var(--cs-border);
  background: #fff;
}

.cs-trust-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  padding: 1.35rem 0 !important;
  width: 100%;
}

@media (min-width: 900px) {
  .cs-trust-row {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
}

.cs-trust-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
}

.cs-trust-ico {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--cs-muted-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.cs-trust-ico::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  background: currentColor;
  color: #374151;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.cs-ico-ship::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 7h11v10H3z'/%3E%3Cpath d='M14 10h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 7h11v10H3z'/%3E%3Cpath d='M14 10h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
}
.cs-ico-lock::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 018 0v3'/%3E%3C/svg%3E");
}
.cs-ico-return::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 12a9 9 0 1018 0 9 9 0 00-18 0z'/%3E%3Cpath d='M8 12h8M8 12l3-3M8 12l3 3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M3 12a9 9 0 1018 0 9 9 0 00-18 0z'/%3E%3Cpath d='M8 12h8M8 12l3-3M8 12l3 3'/%3E%3C/svg%3E");
}
.cs-ico-check::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.cs-ico-support::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 12a8 8 0 0116 0v5a2 2 0 01-2 2h-1v-7h3M4 12v5a2 2 0 002 2h1v-7H4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4 12a8 8 0 0116 0v5a2 2 0 01-2 2h-1v-7h3M4 12v5a2 2 0 002 2h1v-7H4z'/%3E%3C/svg%3E");
}

.cs-trust-item h3 {
  font-family: var(--cs-display);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

.cs-trust-item p {
  margin: 0;
  color: var(--cs-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* ---------- Category circles ---------- */
.cs-cat-circles {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
  overflow-x: auto !important;
  padding: 0.25rem 0 0.75rem !important;
  scrollbar-width: none;
}
.cs-cat-circles::-webkit-scrollbar {
  display: none;
}

.cs-cat-circle {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  width: 96px !important;
  text-align: center !important;
  text-decoration: none !important;
  color: var(--cs-text) !important;
}

.cs-cat-circle-media {
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto 0.55rem !important;
  border-radius: 999px !important;
  background: var(--cs-muted-bg) !important;
  border: 1px solid var(--cs-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-cat-circle:hover .cs-cat-circle-media {
  transform: translateY(-3px);
  box-shadow: var(--cs-shadow);
}

.cs-cat-circle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-cat-letter {
  font-family: var(--cs-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cs-muted);
}

.cs-cat-circle-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.cs-cat-circle-all .cs-cat-circle-media {
  border-radius: 18px;
}

/* ---------- Product grid ---------- */
.cs-product-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem 1rem !important;
  align-items: start !important;
}

@media (min-width: 768px) {
  .cs-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.5rem 1.25rem !important;
  }
}

@media (min-width: 1100px) {
  .cs-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.75rem 1.4rem !important;
  }
}

.cs-product-card {
  display: flex;
  flex-direction: column;
  background: var(--cs-surface);
  border: 0;
  border-radius: var(--cs-radius);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  height: auto !important;
  align-self: start;
  transition: transform 0.2s ease;
}

.cs-product-card:hover {
  transform: translateY(-3px);
}

.cs-product-card .media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--cs-muted-bg);
  overflow: hidden;
  border-radius: var(--cs-radius);
}

.cs-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cs-product-card:hover img {
  transform: scale(1.04);
}

.cs-product-card .body {
  padding: 0.85rem 0.15rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cs-series {
  color: var(--cs-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-product-card .title {
  font-family: var(--cs-font);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
}

.cs-price {
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cs-text);
}

/* ---------- Promo banners ---------- */
.cs-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .cs-banner-grid {
    grid-template-columns: 1.2fr 1.2fr 0.9fr;
    min-height: 320px;
  }
}

.cs-promo-banner {
  position: relative;
  border-radius: var(--cs-radius);
  overflow: hidden;
  min-height: 220px;
  background: var(--cs-muted-bg);
  display: block;
  text-decoration: none !important;
  color: #fff !important;
}

.cs-promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
}

.cs-promo-banner-copy {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cs-promo-banner-copy span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.cs-promo-banner-copy strong {
  font-family: var(--cs-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cs-promo-banner-copy em {
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.9;
}

.cs-promo-banner--sale {
  background: #111;
  color: #fff !important;
}

.cs-promo-banner--sale::after {
  display: none;
}

.cs-promo-banner--sale .cs-promo-banner-copy {
  position: relative;
  inset: auto;
  height: 100%;
  justify-content: center;
  padding: 1.5rem;
  left: 0;
  bottom: 0;
}

/* ---------- Webshop listing cards (fix tall empty cards) ---------- */
.product-card-group,
.item-card-group-section,
#product-listing {
  font-family: var(--cs-font);
}

#products-grid-area,
#products-list-area {
  align-items: flex-start !important;
}

#product-listing .item-card,
.item-card-group-section .item-card,
#products-grid-area .item-card {
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0.35rem !important;
  margin-bottom: 1rem;
  align-self: flex-start !important;
}

#product-listing .item-card .card,
.item-card-group-section .item-card .card,
#products-grid-area .item-card .card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  flex-direction: column !important;
  display: flex !important;
  border-radius: var(--cs-radius) !important;
  border: 1px solid var(--cs-border) !important;
  overflow: hidden !important;
  background: var(--cs-surface) !important;
  box-shadow: none !important;
}

#product-listing .card-img-container,
.item-card-group-section .card-img-container,
#products-grid-area .card-img-container {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4 !important;
  max-height: 320px !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  background: var(--cs-muted-bg);
  overflow: hidden;
  display: block !important;
  position: relative;
}

#product-listing .card-img-container > a,
.item-card-group-section .card-img-container > a,
#products-grid-area .card-img-container > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

#product-listing .card-img,
.item-card-group-section .card-img,
#product-listing .card-img-top,
.item-card-group-section .card-img-top,
#products-grid-area .card-img,
#products-grid-area .card-img-top {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  margin-top: 0 !important;
  display: block !important;
}

#product-listing .card-body,
.item-card-group-section .card-body,
#product-listing .card-body-flex,
.item-card-group-section .card-body-flex,
#products-grid-area .card-body-flex {
  padding: 0.85rem 1rem 1rem !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem;
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
}

#product-listing .product-title,
.item-card-group-section .product-title {
  font-size: 0.92rem !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

#product-listing .product-category,
.item-card-group-section .product-category {
  margin: 0.15rem 0 !important;
  font-size: 0.78rem !important;
}

#product-listing .product-price,
.item-card-group-section .product-price,
#products-grid-area .product-price {
  font-size: 1rem !important;
  margin: 0.35rem 0 0 !important;
  margin-bottom: 0 !important;
  margin-top: 0.35rem !important;
}

/* Grid cards: keep chrome compact — overlay CTA on image, don't inflate card height */
#products-grid-area .item-card .card {
  position: relative !important;
}

#products-grid-area .btn-add-to-cart-list,
#products-grid-area .go-to-cart-grid,
#products-grid-area .btn-explore-variants,
#products-grid-area a:has(.go-to-cart-grid),
#products-grid-area a:has(.btn-explore-variants) {
  position: absolute !important;
  left: 0.7rem !important;
  right: 0.7rem !important;
  bottom: auto !important;
  top: calc(320px - 3.1rem) !important;
  margin: 0 !important;
  z-index: 3;
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

#products-grid-area .card:hover .btn-add-to-cart-list,
#products-grid-area .card:hover .go-to-cart-grid,
#products-grid-area .card:hover .btn-explore-variants,
#products-grid-area .card:focus-within .btn-add-to-cart-list,
#products-grid-area .card:focus-within .go-to-cart-grid,
#products-grid-area .card:focus-within .btn-explore-variants,
#products-grid-area .card:hover a:has(.go-to-cart-grid),
#products-grid-area .card:focus-within a:has(.go-to-cart-grid) {
  opacity: 1;
  visibility: visible !important;
  pointer-events: auto;
}

#products-grid-area .like-action,
#products-grid-area .cart-indicator {
  position: absolute !important;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  margin: 0 !important;
}

#products-grid-area .card-body-flex > div:first-child {
  position: relative;
  margin-top: 0 !important;
  display: block !important;
}

#products-grid-area .out-of-stock {
  margin: 0.25rem 0 0 !important;
}

.web-item-group-cards,
.list-item-row,
.item-card {
  border-radius: var(--cs-radius) !important;
  overflow: hidden;
  background: var(--cs-surface) !important;
  box-shadow: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover .card,
.web-item-group-cards:hover {
  transform: translateY(-3px);
  box-shadow: var(--cs-shadow-hover) !important;
}

/* Empty filter sidebar → full-width product grid */
.row:has(#product-filters.cs-filters-empty) > .col-md-3,
.row:has(#product-filters.cs-filters-empty) > [class*="col-md-3"] {
  display: none !important;
}

.row:has(#product-filters.cs-filters-empty) #product-listing {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

#product-filters .filters-title {
  font-family: var(--cs-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

#product-filters .clear-filters {
  font-weight: 600;
  color: var(--cs-muted) !important;
}

/* Pagination */
.page-content-wrapper .pagination,
#product-listing + .mt-4,
.product-list-controls {
  margin-top: 1rem;
}

.product-paging-area .btn-prev,
.product-paging-area .btn-next {
  border-radius: 999px !important;
  border: 1px solid var(--cs-border) !important;
  font-weight: 600 !important;
  min-width: 5.5rem;
}
a[href*="page="],
.page-content-wrapper a:is([rel="prev"], [rel="next"]) {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--cs-border);
  border-radius: 999px;
  color: var(--cs-text) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.88rem;
  background: #fff;
}

.product-page-content .product-title,
.item-content h1,
.item-name {
  font-family: var(--cs-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

.product-container {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: calc(var(--cs-radius) + 4px);
  padding: 1.5rem !important;
  box-shadow: var(--cs-shadow);
}

/* Hide empty secondary product panels (reviews/specs shell with no content) */
.cs-product-secondary > .product-container:not(:has(.ratings-reviews-section)):not(:has(.category-tabs)):not(:has(.product-description)):empty {
  display: none !important;
}

.ratings-reviews-section .reviews-header {
  font-family: var(--cs-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ratings-reviews-section .btn-write-review {
  border-radius: 999px !important;
  font-weight: 600 !important;
}

.item-stock,
.in-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eaf7ef;
  color: #1f7a3f !important;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem !important;
  font-weight: 600;
}

.cart-table,
.frappe-card,
.cart-payment-addresses {
  border-radius: var(--cs-radius) !important;
  border: 1px solid var(--cs-border) !important;
  box-shadow: var(--cs-shadow) !important;
  background: var(--cs-surface) !important;
}

.cs-cart-item-link {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: 600;
}

.cs-cart-item-link:hover {
  opacity: 0.75;
  text-decoration: underline !important;
}

.cart-item-image .cs-cart-item-link {
  display: block;
}

.cs-cart-variant-meta {
  font-size: 0.85rem;
  color: var(--cs-muted);
}

.cs-cart-attr strong {
  color: var(--cs-text);
  font-weight: 600;
}

/* ---------- Page shell: website only (Desk must keep its own body layout) ---------- */
body.cs-storefront,
body[data-path] {
  height: auto !important;
  min-height: 100vh !important;
  /* Frappe website uses display:flex; flex-shrink then clips .web-footer to min-height:140px */
  display: block !important;
}

/* ---------- Footer (editable contact + social) ---------- */
.web-footer.cs-footer,
.cs-footer,
footer.web-footer {
  background: #111 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  margin-top: 0 !important;
  border-top: none !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: none !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  position: relative !important;
  display: block !important;
  z-index: 2;
  clear: both;
}

/* Inner shell owns padding + black fill so content never sits on white */
.cs-footer-shell {
  background: #111 !important;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem !important;
  width: 100%;
  box-sizing: border-box;
  display: block !important;
}

.cs-footer .cs-container,
.cs-footer-shell > .cs-container {
  max-width: var(--cs-container);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.cs-footer-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: start;
  width: 100%;
}

@media (min-width: 768px) {
  .cs-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (min-width: 900px) {
  .cs-footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr !important;
    gap: 2.5rem;
  }
}

.cs-footer-logo {
  font-family: var(--cs-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cs-footer-about {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 28rem;
  margin: 0 0 1.1rem;
}

.cs-footer-col h4 {
  color: #fff;
  font-family: var(--cs-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.cs-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-footer-col li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.cs-footer a {
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
}

.cs-footer a:hover {
  color: #fff !important;
}

.cs-footer-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.1rem;
}

.cs-footer-address {
  white-space: pre-line;
  line-height: 1.45;
}

/* Phone / email / WhatsApp / hours — always LTR in AR and EN */
.cs-ltr,
a.cs-ltr,
span.cs-ltr,
.cs-footer-contact a[dir="ltr"],
.cs-footer-contact span[dir="ltr"],
.cs-contact-line a[dir="ltr"],
.cs-contact-line span[dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block;
  text-align: left;
}

html[dir="rtl"] .cs-ltr,
html[lang="ar"] .cs-ltr,
body.cs-rtl .cs-ltr {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

.cs-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-social-link {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}

.cs-social-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cs-social-icon::before {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  font-family: var(--cs-font);
}

.cs-social-instagram::before { content: "IG"; }
.cs-social-facebook::before { content: "FB"; }
.cs-social-twitter::before { content: "X"; }
.cs-social-tiktok::before { content: "TT"; }
.cs-social-youtube::before { content: "YT"; }
.cs-social-linkedin::before { content: "IN"; }

.cs-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Hide leftover Powered by branding (website footer only) */
body.cs-storefront .footer-powered,
body.cs-storefront .web-footer .footer-powered,
body[data-path] .footer-powered,
body[data-path] .web-footer .footer-powered,
body.cs-storefront a[href*="erpnext.com"],
body.cs-storefront a[href*="frappeframework.com"],
body[data-path] a[href*="erpnext.com"],
body[data-path] a[href*="frappeframework.com"] {
  display: none !important;
}

/* Default frappe footer remnants if override fails mid-render */
.web-footer:not(.cs-footer) .footer-info .footer-col-right {
  display: none !important;
}

/* ---------- Page chrome (website only) ---------- */
body.cs-storefront .page-header h1,
body.cs-storefront .page-header-wrapper .page-header,
body[data-path] .page-header h1,
body[data-path] .page-header-wrapper .page-header {
  font-family: var(--cs-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.cs-storefront main.container,
body.cs-storefront .page-content-wrapper main.container,
body[data-path] main.container,
body[data-path] .page-content-wrapper main.container {
  max-width: var(--cs-container) !important;
}

.page-content-wrapper .page-breadcrumbs:empty {
  display: none;
}

/* Full-bleed store home (escape default container padding look) */
.page-content-wrapper:has(.cs-storefront-home) > .container,
.page-content-wrapper:has(.cs-storefront-home) main.container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* RTL + Arabic — website storefront only (Desk has its own Arabic UI fonts) */
body.cs-storefront.cs-rtl,
body[data-path].cs-rtl,
html[lang="ar"] body.cs-storefront,
html[dir="rtl"] body.cs-storefront,
html[lang="ar"] body[data-path],
html[dir="rtl"] body[data-path] {
  --cs-font: var(--cs-font-ar);
  --cs-display: var(--cs-font-ar);
  font-family: var(--cs-font-ar);
}

body.cs-storefront.cs-rtl,
body.cs-storefront.cs-rtl .navbar,
body.cs-storefront.cs-rtl .cs-hero,
body.cs-storefront.cs-rtl .cs-footer,
body.cs-storefront.cs-rtl .cs-btn,
body.cs-storefront.cs-rtl .btn-primary,
body.cs-storefront.cs-rtl .page-content-wrapper,
body[data-path].cs-rtl,
body[data-path].cs-rtl .navbar,
body[data-path].cs-rtl .page-content-wrapper {
  font-family: var(--cs-font-ar) !important;
}

[dir="rtl"] .cs-hero h1,
body.cs-rtl .cs-hero h1 {
  max-width: none;
  font-family: var(--cs-font-ar) !important;
}

/* Dashboard shell */
.cs-dash {
  display: flex;
  min-height: 100vh;
  background: #0f1115;
  color: #f2f2f2;
}
.cs-dash-nav {
  width: 240px;
  background: #161a22;
  padding: 1.25rem;
  border-right: 1px solid #262b36;
}
.cs-dash-nav a {
  display: block;
  color: #c9ced8;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}
.cs-dash-nav a.active,
.cs-dash-nav a:hover {
  background: #262b36;
  color: #fff;
}
.cs-dash-main {
  flex: 1;
  padding: 1.5rem;
}

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

/* ---------- Contact page ---------- */
.cs-contact-page .cs-contact-intro {
  font-size: 1.02rem;
  max-width: 40rem;
  line-height: 1.55;
}

.cs-contact-card {
  background: var(--cs-muted-bg);
  border-radius: var(--cs-radius);
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--cs-border);
}

.cs-contact-card h3 {
  font-family: var(--cs-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.cs-contact-line {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--cs-text);
}

.cs-contact-line span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-muted);
  margin-bottom: 0.15rem;
}

.cs-contact-line a {
  color: var(--cs-text) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.cs-contact-line a:hover {
  opacity: 0.7;
}

.cs-contact-page .form-control {
  border-radius: var(--cs-radius-sm) !important;
  border-color: var(--cs-border) !important;
  min-height: 44px;
}

.cs-contact-page textarea.form-control {
  min-height: 160px;
}

.cs-contact-page .btn-send {
  border-radius: 999px !important;
  padding: 0.55rem 1.4rem !important;
  font-weight: 700 !important;
  background: var(--cs-primary) !important;
  border-color: var(--cs-primary) !important;
}

body.cs-rtl {
  font-family: var(--cs-font-ar) !important;
}

/* ---------- Inline variant picker (template PDP) ---------- */
.cs-variant-picker {
  margin: 1.25rem 0 1.5rem;
  max-width: 100%;
}

.cs-variant-block {
  margin-bottom: 1.1rem;
}

.cs-variant-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-muted);
  margin-bottom: 0.55rem;
}

.cs-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cs-variant-opt {
  appearance: none;
  border: 1px solid var(--cs-border);
  background: #fff;
  color: var(--cs-text);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.cs-variant-opt:hover:not(.is-disabled) {
  border-color: #111;
}

.cs-variant-opt.is-selected {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.cs-variant-opt.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cs-variant-options--swatch .cs-variant-opt--swatch {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 2px solid var(--cs-border);
  background: var(--swatch, #ccc);
  position: relative;
}

.cs-variant-options--swatch .cs-variant-opt--swatch span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cs-variant-options--swatch .cs-variant-opt--swatch.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
  background: var(--swatch, #ccc) !important;
  border-color: #111 !important;
}

.cs-variant-options--swatch .cs-swatch-white {
  border-color: #cfcfcf;
}

.cs-variant-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.5rem;
  margin-bottom: 0.85rem;
}

.cs-variant-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.cs-variant-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: var(--cs-muted-bg);
  color: var(--cs-muted);
}

.cs-variant-stock.is-in {
  background: #eaf7ef;
  color: #1f7a3f;
}

.cs-variant-stock.is-out {
  background: #fdecea;
  color: #b42318;
}

.cs-variant-opt.is-oos:not(.is-selected) {
  opacity: 0.45;
  text-decoration: line-through;
}

.cs-variant-add-btn {
  min-height: 48px;
}

.cs-variant-add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Mobile: product page CTAs + cart ---------- */
@media (max-width: 767.98px) {
  /* Product detail card */
  .product-container {
    padding: 1rem !important;
    overflow: hidden;
  }

  .product-details,
  .product-details.expand {
    max-width: 100%;
    overflow: hidden;
  }

  .product-page-content .product-title,
  .product-details .product-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    word-break: break-word;
    padding-right: 0.25rem;
  }

  .item-cart {
    max-width: 100%;
  }

  .item-cart .product-price {
    font-size: 1.25rem !important;
    flex-wrap: wrap;
  }

  .item-cart .product-price .formatted-price {
    display: inline-block;
    margin-left: 0 !important;
    margin-top: 0.15rem;
  }

  /* Stack Add to Cart / View in Cart / Contact — full width */
  .item-cart .mt-6 .d-flex,
  .item-cart .mb-4.d-flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .item-cart .btn-add-to-cart,
  .item-cart .btn-view-in-cart,
  .item-cart .btn-inquiry,
  .item-cart .w-30-40,
  .item-cart a.btn {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .item-cart .btn-add-to-cart {
    padding: 0.95rem 1.1rem !important;
    min-height: 48px;
  }

  .item-cart .btn-add-to-cart .icon {
    flex-shrink: 0;
  }

  .item-cart .mt-6.mb-5 {
    margin-bottom: 0.5rem !important;
  }

  .product-details > .d-flex {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .product-details .like-action-item-fp {
    flex-shrink: 0;
  }

  .item-breadcrumbs {
    font-size: 0.75rem;
    line-height: 1.4;
    word-break: break-word;
  }

  /* Cart page */
  .cart-container {
    overflow-x: hidden;
  }

  .cart-container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cart-container .col-md-8,
  .cart-container .col-md-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
  }

  .cart-container .frappe-card {
    padding: 1rem !important;
    overflow: hidden;
  }

  .cart-container .cart-table {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .cart-container .cart-table thead {
    display: none;
  }

  .cart-container .cart-table tbody,
  .cart-container .cart-table tfoot,
  .cart-container .cart-table tr {
    display: block;
    width: 100%;
  }

  .cart-container .cart-table tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cs-border);
    margin-bottom: 0;
  }

  .cart-container .cart-table td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    padding: 0.25rem 0 !important;
    border: none !important;
    text-align: left !important;
  }

  .cart-container .cart-table td > .d-flex {
    flex-wrap: wrap;
    align-items: flex-start !important;
    gap: 0.65rem;
  }

  .cart-container .cart-item-image {
    width: 72px !important;
    min-width: 72px !important;
    flex-shrink: 0;
    margin-right: 0 !important;
  }

  .cart-container .cart-item-image img {
    max-height: 72px !important;
    width: 72px;
    object-fit: cover;
    border-radius: 8px;
  }

  .cart-container .cart-items .item-title {
    width: 100% !important;
    font-size: 0.95rem !important;
  }

  /* Compact note field — was dominating mobile cart rows */
  .cart-container .cart-items .notes {
    width: 100%;
    margin-top: 0.35rem !important;
  }

  .cart-container .cart-items .notes textarea {
    width: 100% !important;
    max-width: 100%;
    min-height: 32px !important;
    height: 32px !important;
    max-height: 32px !important;
    padding: 0.35rem 0.6rem !important;
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    resize: none;
    border-radius: 8px !important;
    background: var(--cs-muted-bg) !important;
  }

  /* Qty + remove + price as one row under the item */
  .cart-container .cart-table td.text-right > .d-flex {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.35rem;
  }

  .cart-container .sm-item-subtotal .item-rate {
    display: none !important;
  }

  .cart-container .number-spinner {
    width: auto !important;
    min-width: 0 !important;
    max-width: 140px;
    margin: 0 !important;
  }

  .cart-container .number-spinner .cart-qty {
    max-width: 48px !important;
  }

  /* Show remove on mobile (webshop hides .column-sm-view) */
  .cart-container .cart-table .remove-cart-item.column-sm-view {
    display: inline-flex !important;
    float: none !important;
    margin: 0 0 0 0.35rem !important;
  }

  .cart-container .sm-item-subtotal {
    display: block !important;
    text-align: right !important;
    margin-top: 0 !important;
    margin-left: auto;
    flex: 1;
  }

  .cart-container .row.mt-2 {
    flex-direction: column;
    gap: 0.65rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .cart-container .row.mt-2 > [class*="col-"] {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .cart-container .row.mt-2 > .col-3:empty,
  .cart-container .row.mt-2 > .col-3:not(:has(a)) {
    display: none !important;
  }

  .cart-container .place-order-container {
    width: 100% !important;
    display: block !important;
    float: none !important;
  }

  .cart-container .place-order-container .btn,
  .cart-container .place-order-container a.btn,
  .cart-container .btn-primary-light {
    width: 100% !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    margin: 0 !important;
    text-align: center;
    border-radius: 999px !important;
    padding: 0.85rem 1.25rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    background: #fff !important;
    color: #111 !important;
    border: 1px solid var(--cs-border) !important;
    box-sizing: border-box !important;
  }

  .cart-container .btn-place-order {
    width: 100% !important;
    padding: 0.95rem 1.25rem !important;
  }

  .cart-container .txtcoupon {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 0.5rem;
  }

  .cart-container .bt-coupon {
    width: 100%;
  }

  .cart-container .cs-guest-checkout .form-row > [class*="col-"] {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .cart-empty {
    padding: 1.5rem 1rem !important;
    text-align: center;
  }

  .cart-empty .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Fill the phone viewport edge-to-edge (no phantom narrow column) */
  html,
  body,
  .page-content-wrapper,
  .page-content-wrapper .container,
  main.container,
  .item-main,
  .product-page-content,
  .product-container,
  .cart-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-content-wrapper,
  .page-content-wrapper .container,
  .item-main,
  .product-page-content {
    overflow-x: hidden;
  }

  main.container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
}
