/*
 * MORDISCO.NET custom child theme — black / rose editorial directory look.
 * Loaded after Storefront. Core data, forms and account flows remain inherited.
 */
:root {
  color-scheme: dark;
  --color-bg: #09090d;
  --color-surface: #121219;
  --color-surface-2: #1a1a23;
  --color-text: #f8f4f7;
  --color-text-muted: #aaa2ad;
  --color-border: #302b36;
  --color-accent: #ff3d91;
  --color-accent-2: #ff78b4;
  --color-accent-200: #54243c;
  --color-accent-600: #db2876;
  --color-accent-700: #bd1e63;
  --color-neutral-700: #aaa2ad;
  --color-neutral-800: #7c7480;
  --color-fixed-light: #fff;
  --radius-card: 16px;
}
html, body { background: #09090d !important; color: #f8f4f7 !important; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: #ff6aa9; }
a:hover { color: #ff9bc6; }
header, .sf-header, .sf-site-header, .sf-nav, .sf-topbar,
footer, .sf-footer {
  background: #0c0b11 !important;
  color: #f8f4f7 !important;
  border-color: #302b36 !important;
}
.sf-container, .sf-wrap { max-width: 1240px; }
.sf-btn--primary, .sf-btn--primary:visited, button[type="submit"] {
  background: #ff3d91 !important; color: #fff !important; border-color: #ff3d91 !important;
}
input:not([type=checkbox]):not([type=radio]), select, textarea {
  background: #17151d !important; color: #fff !important; border: 1px solid #39323f !important;
  border-radius: 10px !important;
}
input::placeholder, textarea::placeholder { color: #aaa2ad !important; }
.sf-card, .sf-catgrid__item, .sf-widget, .sf-panel {
  background: #15131b !important; border-color: #302b36 !important; color: #f8f4f7 !important;
}
.sf-card { overflow: hidden; border-radius: 15px !important; }
.sf-card__media { background: #211923 !important; }
.sf-card__media img { transition: transform .35s ease; }
.sf-card:hover .sf-card__media img { transform: scale(1.035); }
.sf-card__title, .sf-section__title { color: #fff !important; }
.sf-card__meta, .sf-card__desc, .sf-section__aside { color: #aaa2ad !important; }
.sf-badge--featured { background: #ff3d91 !important; color: #fff !important; }
.sf-card--highlight, .sf-card--featured { border-color: #8d315d !important; }
.sf-search, .sf-search__field, .sf-search__input { border-radius: 12px !important; }
.sf-footer a, .sf-header a { color: #f8f4f7; }
.sf-footer a:hover, .sf-header a:hover { color: #ff78b4; }

/* New homepage layout */
.md-home { background: #09090d; color: #f8f4f7; }
.md-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.md-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 490px; display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(255,61,145,.19), transparent 35%),
    radial-gradient(ellipse at 8% 90%, rgba(112,32,76,.18), transparent 35%),
    linear-gradient(135deg,#0d0b12 0%,#17101b 52%,#0b0a10 100%);
  border-bottom: 1px solid #302432;
}
.md-hero:after {
  content:""; position:absolute; inset:0; z-index:-1; opacity:.13;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: linear-gradient(to bottom,black,transparent);
}
.md-hero__glow { position:absolute; z-index:-1; border-radius:50%; filter:blur(3px); pointer-events:none; }
.md-hero__glow--one { width:300px;height:300px;right:7%;top:3%;border:1px solid rgba(255,93,165,.25);box-shadow:0 0 90px rgba(255,61,145,.12) inset; }
.md-hero__glow--two { width:160px;height:160px;right:18%;bottom:7%;background:rgba(255,61,145,.07); }
.md-hero__inner { padding:78px 0 70px; }
.md-kicker, .md-eyebrow { color:#ff78b4; font-size:11px; font-weight:800; letter-spacing:.18em; }
.md-kicker { display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.md-kicker span { width:7px;height:7px;border-radius:50%;background:#ff3d91;box-shadow:0 0 14px #ff3d91; }
.md-hero h1 { max-width:720px; margin:0; color:#fff; font-size:clamp(42px,6vw,76px); line-height:.99; letter-spacing:-.055em; font-weight:850; }
.md-hero h1 em { color:#ff5ba2; font-style:normal; }
.md-hero__lead { max-width:590px; margin:22px 0 30px; color:#c4b8c5; font-size:16px; line-height:1.65; }
.md-search {
  display:grid; grid-template-columns:1.25fr 1fr .85fr auto; gap:9px;
  max-width:1030px; padding:10px; border:1px solid rgba(255,255,255,.12);
  border-radius:15px; background:rgba(17,14,23,.88); box-shadow:0 18px 60px rgba(0,0,0,.32);
  backdrop-filter:blur(14px);
}
.md-search__field { display:flex; flex-direction:column; gap:5px; min-width:0; padding:7px 12px; border-right:1px solid #302b36; }
.md-search__field span { color:#9f94a3; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.md-search__field input, .md-search__field select {
  width:100%; min-width:0; padding:3px 0 !important; border:0 !important; outline:0; box-shadow:none !important;
  background:transparent !important; color:#fff !important; font-size:14px;
}
.md-search__field select option { background:#17151d; }
.md-search__submit { align-self:stretch; display:flex; gap:20px; align-items:center; justify-content:center; border:0; border-radius:10px; padding:0 23px; background:#ff3d91; color:white; font-weight:800; cursor:pointer; }
.md-search__submit:hover { background:#e72b7e; }
.md-search__submit span { font-size:20px; }
.md-quickcats { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-top:20px; color:#a99eaa; font-size:12px; }
.md-quickcats a { padding:7px 13px; border:1px solid #44303e; border-radius:999px; color:#f6eaf1; text-decoration:none; background:rgba(255,255,255,.035); }
.md-quickcats a:hover { border-color:#ff3d91; background:rgba(255,61,145,.12); }
.md-hero__bottomline { position:absolute; bottom:0; left:0; right:0; display:flex; justify-content:space-between; padding:13px max(20px,calc((100% - 1180px)/2)); border-top:1px solid rgba(255,255,255,.08); color:#807583; font-size:9px; font-weight:800; letter-spacing:.16em; }
.md-section { padding:66px 0; }
.md-section__head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:26px; }
.md-section__head h2 { margin:7px 0 0; color:#fff; font-size:clamp(25px,3vw,34px); letter-spacing:-.035em; }
.md-textlink { color:#ff78b4; text-decoration:none; font-size:13px; font-weight:750; }
.md-textlink span { margin-left:7px; }
.md-category-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.md-category-card {
  position:relative; min-height:135px; display:flex; flex-direction:column; justify-content:end;
  padding:22px; overflow:hidden; text-decoration:none; border:1px solid #332a37; border-radius:15px;
  background:linear-gradient(135deg,#211521,#121018); transition:transform .2s,border-color .2s;
}
.md-category-card:after { content:""; position:absolute; width:150px;height:150px;right:-40px;top:-65px;border:1px solid rgba(255,94,164,.25);border-radius:50%;box-shadow:0 0 0 22px rgba(255,94,164,.035),0 0 0 45px rgba(255,94,164,.025); }
.md-category-card:hover { transform:translateY(-3px); border-color:#a43b70; }
.md-category-card__number { color:#ff78b4; font-size:11px; font-weight:800; letter-spacing:.12em; }
.md-category-card__name { margin-top:9px; color:#fff; font-size:21px; font-weight:800; }
.md-category-card__arrow { position:absolute; right:20px;bottom:19px;color:#ff78b4;font-size:20px; }
.md-category-card--2 { background:linear-gradient(135deg,#1b1724,#121018); }
.md-category-card--3 { background:linear-gradient(135deg,#24131e,#121018); }
.md-featured { background:#100e15; border-top:1px solid #211b27; border-bottom:1px solid #211b27; }
.md-section__note { display:flex; align-items:center; gap:8px; color:#ff78b4; font-size:10px; font-weight:800; letter-spacing:.13em; }
.md-section__note i { width:7px;height:7px;border-radius:50%;background:#ff3d91;box-shadow:0 0 10px #ff3d91; }
.md-latest { padding-top:68px; }
.md-empty { padding:40px; border:1px dashed #453544; border-radius:14px; color:#b7aab8; text-align:center; }
.md-more { margin:26px 0 0; text-align:center; }
.md-more a { display:inline-block; padding:12px 20px; border:1px solid #69304d; border-radius:999px; color:#ff8cbd; text-decoration:none; font-weight:750; }
.md-publish { padding:40px 0; background:linear-gradient(100deg,#21111d,#17111b); border-top:1px solid #46263a; }
.md-publish__inner { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.md-publish h2 { margin:7px 0; color:#fff; font-size:29px; letter-spacing:-.03em; }
.md-publish p { margin:0; color:#b9aebb; }
.md-publish__button { display:inline-flex; align-items:center; gap:24px; padding:15px 22px; border-radius:10px; background:#ff3d91; color:#fff; text-decoration:none; font-weight:800; white-space:nowrap; }
.md-publish__button:hover { background:#e72b7e; color:#fff; }

/* Card grid inherited from Storefront, restyled as photo-first directory cards. */
.sf-cards { gap:16px !important; }
.sf-card { background:#15121a !important; border:1px solid #302432 !important; border-radius:15px !important; }
.sf-card__media { aspect-ratio:4/5 !important; }
.sf-card__media img { object-fit:cover; }
.sf-card__body { padding:14px !important; }
.sf-card__price { color:#ff8cbd !important; font-weight:800; }
.sf-card__title { font-size:15px !important; font-weight:800 !important; }
.sf-card__cat { background:rgba(10,8,14,.82) !important; color:#ffb3d2 !important; border:1px solid rgba(255,120,180,.3); }
.sf-card__meta { border-top:1px solid #302432 !important; padding-top:10px !important; }
.sf-badge { background:#ff3d91 !important; color:white !important; border-radius:999px !important; }
.sf-card--featured { box-shadow:0 0 0 1px rgba(255,61,145,.25),0 12px 35px rgba(0,0,0,.2); }
@media (min-width:900px) {
  .sf-cards { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
@media (max-width:850px) {
  .md-search { grid-template-columns:1fr 1fr; }
  .md-search__field:nth-child(2) { border-right:0; }
  .md-search__category { border-right:0; }
  .md-search__submit { min-height:48px; }
  .md-category-grid { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .md-wrap { width:min(100% - 28px,1180px); }
  .md-hero { min-height:0; }
  .md-hero__inner { padding:58px 0 72px; }
  .md-hero h1 { font-size:43px; }
  .md-hero__lead { font-size:14px; }
  .md-search { grid-template-columns:1fr; padding:9px; }
  .md-search__field { border-right:0; border-bottom:1px solid #302b36; padding:9px 10px; }
  .md-search__submit { min-height:48px; }
  .md-hero__bottomline { font-size:8px; letter-spacing:.08em; }
  .md-section { padding:46px 0; }
  .md-section__head { align-items:start; }
  .md-publish__inner { align-items:flex-start; flex-direction:column; }
  .md-publish h2 { font-size:25px; }
}


/* MORDISCO directory: cards, listing pages, contact and profile forms. */
.sf-cards,
.sf-listings,
.listing-grid,
.listings-grid,
.search-results-grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important;
}
.sf-card { min-width:0; }
.sf-card__media { overflow:hidden; }
.sf-card__media img { width:100%; height:100%; object-fit:cover; }
.sf-card__body { min-width:0; }
.sf-card__title { overflow-wrap:anywhere; }

/* Profile/detail page */
.sf-item, .sf-item-detail, .item-detail, .listing-detail,
.item-main, .item-sidebar, .sf-panel, .sf-widget {
  color:#f8f4f7;
}
.sf-item, .sf-item-detail, .item-detail, .listing-detail {
  background:#111018;
  border:1px solid #302b36;
  border-radius:16px;
}
.sf-item img, .sf-item-detail img, .item-detail img, .listing-detail img {
  max-width:100%;
  height:auto;
  border-radius:12px;
}
.sf-item__title, .sf-item-detail__title, .item-detail h1, .listing-detail h1 {
  color:#fff;
  overflow-wrap:anywhere;
}
.sf-item__meta, .sf-item-detail__meta, .item-detail dl, .listing-detail dl {
  color:#c5bac7;
}

/* Forms and account areas */
form .form-row, .sf-form-row, .sf-field, .control-group { min-width:0; }
button, input[type=submit], .sf-btn, .sf-button {
  border-radius:10px;
}
.sf-btn--primary, .sf-button--primary, button[type=submit], input[type=submit] {
  background:#ff3d91;
  border-color:#ff3d91;
  color:#fff;
}

/* WhatsApp button added by the child theme on listing detail pages. */
.md-whatsapp-contact {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:46px;
  margin:14px 0;
  padding:12px 18px;
  border:1px solid #1d9d58;
  border-radius:999px;
  background:#168b4b;
  color:#fff !important;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none !important;
  box-shadow:0 8px 24px rgba(22,139,75,.18);
}
.md-whatsapp-contact:hover { background:#11763f; color:#fff !important; }
.md-whatsapp-contact svg { width:19px; height:19px; fill:currentColor; }

@media (min-width:561px) and (max-width:899px) {
  .sf-cards, .sf-listings, .listing-grid, .listings-grid, .search-results-grid {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media (max-width:560px) {
  /* Exact request: two profile cards per row on phones. */
  .sf-cards, .sf-listings, .listing-grid, .listings-grid, .search-results-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
  }
  .sf-card { border-radius:11px !important; }
  .sf-card__media { aspect-ratio:3/4 !important; }
  .sf-card__body { padding:9px !important; }
  .sf-card__title { font-size:13px !important; line-height:1.25 !important; }
  .sf-card__meta { font-size:11px !important; }
  .sf-card__price { font-size:12px !important; }
  .sf-badge { font-size:9px !important; padding:4px 7px !important; }
  .md-whatsapp-contact { width:100%; box-sizing:border-box; }
}
