/*
Theme Name:   ListingHive Child
Theme URI:    https://shilpsathi.com/
Description:  Child theme for ListingHive
Author:       AI
Template:     listinghive
Version:      1.0.0
*/

/* 1. White Card Box Container */
.hp-template--vendor-view-page .hp-page__sidebar .hp-vendor__attributes,
.hp-template--vendor-view-page .hp-page__sidebar div[class*="hp-vendor__attributes"] {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #eef2f5 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Horizontal Row & Font Size Override */
.hp-template--vendor-view-page .hp-page__sidebar [class*="hp-vendor__attribute"] {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    border-bottom: 1px dotted #cbd5e1 !important;
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.hp-template--vendor-view-page .hp-page__sidebar [class*="hp-vendor__attribute"]:last-child,
.hp-template--vendor-view-page .hp-page__sidebar [class*="hp-vendor__attribute"]:last-of-type {
    border-bottom: none !important;
}

.hp-template--vendor-view-page .hp-page__sidebar [class*="hp-vendor__attribute"] .hp-vendor__attribute-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hp-template--vendor-view-page .hp-page__sidebar [class*="hp-vendor__attribute"] .hp-vendor__attribute-value,
.hp-template--vendor-view-page .hp-page__sidebar [class*="hp-vendor__attribute"] .hp-vendor__attribute-value *,
.hp-template--vendor-view-page .hp-page__sidebar [class*="hp-vendor__attribute"] .hp-field--string {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* ============================================================
   SHILPSATHI BRAND SYSTEM — matched to homepage mockup
   ============================================================ */

:root {
    --ss-terracotta: #C1502E;
    --ss-terracotta-dark: #9C3D1F;
    --ss-indigo: #1E2A4A;
    --ss-brass: #B8862E;
    --ss-walnut: #6B4226;
    --ss-sage: #6B7F5E;
    --ss-madder: #9C3D34;
    --ss-cream: #FAF7F1;
    --ss-cream-deep: #F1EADC;
    --ss-ink: #2B2620;
    --ss-muted: #6B6256;
    --ss-font-display: 'Yatra One', cursive;
    --ss-font-body: 'Work Sans', sans-serif;
}

/* ---- Page background (mockup uses cream as the base page color) ---- */
body {
    background-color: var(--ss-cream) !important;
}

/* Sections that are explicitly white/marked white in the editor must stay white
   even though the page background is now cream */
.wp-block-group.has-white-background-color,
.wp-block-group.has-white-background-color.has-background {
    background-color: #ffffff !important;
}

/* ---- Typography ---- */
body,
.hp-form,
.button,
.wp-block-button__link,
.has-work-sans-font-family {
    font-family: var(--ss-font-body) !important;
    color: var(--ss-ink);
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    color: var(--ss-indigo);
}

h1, h2,
.header-hero__content h1 {
    font-family: var(--ss-font-display) !important;
}

h3, h4, h5, h6 {
    font-family: var(--ss-font-body) !important;
    font-weight: 700 !important;
}

.header-hero__content p {
    color: var(--ss-ink) !important;
}

/* ---- Buttons / CTAs (site-wide) ---- */
.button-primary,
.hp-form__button.button-primary,
button.button-primary,
input.button-primary,
.wp-block-button__link.has-vivid-red-color {
    background-color: var(--ss-terracotta) !important;
    border-color: var(--ss-terracotta) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease;
}

.button-primary:hover,
.hp-form__button.button-primary:hover,
.wp-block-button__link.has-vivid-red-color:hover {
    background-color: var(--ss-terracotta-dark) !important;
    border-color: var(--ss-terracotta-dark) !important;
}

.wp-block-button__link.has-white-color {
    border: 2px solid #ffffff !important;
    border-radius: 8px !important;
}

/* ---- Craft Category cards (homepage) ---- */
/* Smaller/more compact proportions closer to the mockup, and NO color tint on
   the photo itself (that was muddying the image) — just a light gradient at
   the bottom for text legibility, plus a colored top accent bar per category */
.hp-listing-category--view-block {
    position: relative !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(30, 42, 74, 0.10) !important;
    transition: transform 0.2s ease;
    max-height: 190px !important;
}

.hp-listing-category--view-block:hover {
    transform: translateY(-3px);
}

.hp-listing-category--view-block .hp-listing-category__image,
.hp-listing-category--view-block .hp-listing-category__header {
    max-height: 190px !important;
}

.hp-listing-category--view-block .hp-listing-category__image img {
    height: 190px !important;
    object-fit: cover !important;
}

.hp-listing-category--view-block .hp-listing-category__image {
    position: relative !important;
}

/* Text-legibility gradient only (no color wash) */
.hp-listing-category--view-block .hp-listing-category__image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,16,10,0.02) 0%, rgba(20,16,10,0.55) 100%);
    pointer-events: none;
}

/* Colored top accent bar carries the category color-coding instead of a photo tint */
.hp-listing-category--view-block::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    z-index: 2;
}

.hp-listing-category--view-block:nth-of-type(6n+1)::after { background: var(--ss-terracotta); }
.hp-listing-category--view-block:nth-of-type(6n+2)::after { background: var(--ss-brass); }
.hp-listing-category--view-block:nth-of-type(6n+3)::after { background: var(--ss-walnut); }
.hp-listing-category--view-block:nth-of-type(6n+4)::after { background: var(--ss-sage); }
.hp-listing-category--view-block:nth-of-type(6n+5)::after { background: var(--ss-indigo); }
.hp-listing-category--view-block:nth-of-type(6n+6)::after { background: var(--ss-madder); }

/* ---- Featured Artisan / Vendor cards ---- */
.hp-vendor--view-block {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #ece4da !important;
    border-radius: 14px !important;
    padding: 20px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

/* Colored top accent bar — same treatment as the craft category cards */
.hp-vendor--view-block::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    z-index: 2;
}

.hp-vendor--view-block:nth-of-type(6n+1)::before { background: var(--ss-terracotta); }
.hp-vendor--view-block:nth-of-type(6n+2)::before { background: var(--ss-brass); }
.hp-vendor--view-block:nth-of-type(6n+3)::before { background: var(--ss-walnut); }
.hp-vendor--view-block:nth-of-type(6n+4)::before { background: var(--ss-sage); }
.hp-vendor--view-block:nth-of-type(6n+5)::before { background: var(--ss-indigo); }
.hp-vendor--view-block:nth-of-type(6n+6)::before { background: var(--ss-madder); }

/* Smaller, circular avatar instead of a large square photo */
.hp-vendor--view-block .hp-vendor__image {
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto 12px !important;
}

.hp-vendor--view-block .hp-vendor__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.hp-vendor--view-block .hp-vendor__header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: auto !important;
}

.hp-vendor--view-block .hp-vendor__name,
.hp-vendor--view-block .hp-vendor__name a {
    font-family: var(--ss-font-body) !important;
    font-weight: 700 !important;
    color: var(--ss-indigo) !important;
}

.hp-vendor__verified-badge {
    color: #2E7D4F !important;
}

.hp-vendor--view-block [class*="hp-vendor__attribute--artist-primarycraft"],
.hp-vendor--view-block [class*="hp-vendor__attribute--"] .hp-field--string {
    color: var(--ss-terracotta-dark) !important;
    font-weight: 600 !important;
}

/* ---- Creation / listing cards ---- */
.hp-listing--view-block {
    position: relative !important;
    border-radius: 14px !important;
    border-color: #ece4da !important;
    overflow: hidden !important;
}

/* Colored top accent bar — same treatment as category and artisan cards */
.hp-listing--view-block::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    z-index: 3;
}

.hp-listing--view-block:nth-of-type(6n+1)::before { background: var(--ss-terracotta); }
.hp-listing--view-block:nth-of-type(6n+2)::before { background: var(--ss-brass); }
.hp-listing--view-block:nth-of-type(6n+3)::before { background: var(--ss-walnut); }
.hp-listing--view-block:nth-of-type(6n+4)::before { background: var(--ss-sage); }
.hp-listing--view-block:nth-of-type(6n+5)::before { background: var(--ss-indigo); }
.hp-listing--view-block:nth-of-type(6n+6)::before { background: var(--ss-madder); }

/* Make every photo fill its frame consistently (fixes the grey gaps on some cards) */
.hp-listing--view-block .hp-listing__image img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

.hp-listing__featured-badge,
.hp-listing__featured {
    background-color: var(--ss-brass) !important;
    color: #ffffff !important;
}

.hp-listing__category {
    background-color: var(--ss-cream-deep) !important;
    color: var(--ss-indigo) !important;
    border-radius: 20px !important;
}

.hp-listing__verified-badge {
    color: #2E7D4F !important;
}

/* ---- Tabs (Details / Edit) on listing & vendor pages ---- */
.hp-menu__item--current {
    border-bottom-color: var(--ss-terracotta) !important;
}

.hp-menu__item--current > a {
    color: var(--ss-terracotta) !important;
}

/* ---- Sidebar boxes on vendor & listing pages ---- */
.hp-page__sidebar > div {
    border-radius: 14px !important;
}

/* ---- Footer — indigo, matching mockup ---- */
.site-footer,
footer.site-footer {
    background-color: var(--ss-indigo) !important;
    color: var(--ss-cream) !important;
}

.site-footer a {
    color: var(--ss-cream) !important;
    opacity: 0.92;
}

.site-footer a:hover {
    color: var(--ss-terracotta) !important;
    opacity: 1;
}

.site-footer .widget__title,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 {
    color: #ffffff !important;
    font-family: var(--ss-font-body) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12.5px !important;
    opacity: 0.75;
}

/* ---- Homepage-only: remove the gap between the CTA band and the footer ---- */
body.home #content.site-content,
body.home .site-content {
    padding-bottom: 0 !important;
}
/* ---- category window align hower ---- */
.hp-listing__category {
  background-color: transparent !important;
  border-radius: 0 !important;
}
.hp-listing__category a {
  background-color: var(--ss-cream-deep) !important;
  color: var(--ss-indigo) !important;
}
.hp-listing__category a:hover {
  background-color: rgb(21, 205, 114) !important;
  color: #fff !important;
}
/*added to change the look of vendor/artist page */
.ss-vendor-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin: 16px 0 24px;
}
.ss-vendor-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 100%;
  height: 224px;
  border-radius: 12px;
  overflow: hidden;
}
.ss-vendor-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ss-vendor-story {
  background: var(--ss-cream-deep, #F1EADC);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 24px;
}
.ss-vendor-story h3 {
  margin: 0 0 8px;
  color: var(--ss-indigo, #1E2A4A);
}
.ss-vendor-story p {
  margin: 0;
  color: var(--ss-ink, #2B2620);
  line-height: 1.6;
}

/* ---- Creations (listings) grid: 3 per row instead of 2 ---- */
@media only screen and (min-width: 48em) {
  .hp-listings .hp-grid__item.hp-col-sm-6 {
    flex-basis: 33.333% !important;
    max-width: 33.333% !important;
  }
}


@media only screen and (min-width: 48em) {
  .hp-vendors .hp-grid__item.hp-col-sm-6 {
    flex-basis: 33.333% !important;
    max-width: 33.333% !important;
  }
}
