/* Shared page patterns for UX Builder pages beyond the homepage. */
.pony-design-system {
    --pony-heading-font: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --pony-body-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --pony-ink: #261b14;
    --pony-brown: #3b281b;
    --pony-gold-deep: #a77b3f;
    --pony-paper: #fbf8f2;
}

.pony-design-system,
.pony-design-system button,
.pony-design-system input,
.pony-design-system select,
.pony-design-system textarea {
    font-family: var(--pony-body-font);
}

.pony-design-system h1,
.pony-design-system h2,
.pony-design-system h3,
.pony-design-system h4,
.pony-heading h1,
.pony-heading h2,
.pony-heading h3 {
    font-family: var(--pony-heading-font);
    font-weight: 600;
}

.pony-design-system a { transition: color var(--pony-transition), background-color var(--pony-transition), border-color var(--pony-transition); }
.pony-design-system .breadcrumbs { color: var(--pony-muted); font-size: 11px; letter-spacing: .04em; }
.pony-design-system .breadcrumbs a { color: var(--pony-brown); }

/* Image-led title section used for service, gallery, price, product and news pages. */
.pony-page-hero {
    position: relative;
    display: flex;
    min-height: clamp(300px, 35vw, 500px);
    align-items: center;
    overflow: hidden;
    background-color: var(--pony-brown);
    color: #fff;
}
.pony-page-hero .section-bg,
.pony-page-hero .section-bg-overlay { position: absolute; inset: 0; }
.pony-page-hero .section-bg-overlay { background: linear-gradient(90deg, rgba(23,15,10,.78), rgba(23,15,10,.12) 78%) !important; }
.pony-page-hero > .section-content { position: relative; z-index: 2; width: 100%; }
.pony-page-hero__content { max-width: 760px; padding: clamp(34px, 6vw, 82px) 0; }
.pony-page-hero .pony-heading { margin: 0; color: #fff; }
.pony-page-hero .pony-heading__eyebrow { color: var(--pony-gold-light); }
.pony-page-hero h1 { margin: 0 0 14px; color: #fff; font-size: clamp(40px, 4.5vw, 64px); line-height: .98; }
.pony-page-hero p { max-width: 560px; color: rgba(255,255,255,.82); }
.pony-page-hero--center { text-align: center; }
.pony-page-hero--center .pony-page-hero__content { margin-inline: auto; }

.pony-page-intro { padding: 30px 0 18px; background: var(--pony-paper); }
.pony-page-intro__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pony-page-intro__copy { max-width: 760px; }
.pony-page-intro__copy > :last-child { margin-bottom: 0; }

/* Filters and service or collection listing grids. */
.pony-filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 28px; }
.pony-filter-bar a,
.pony-filter-bar button {
    display: inline-flex; min-height: 36px; align-items: center; justify-content: center;
    border: 1px solid rgba(59,40,27,.18); border-radius: var(--pony-radius-pill);
    padding: 0 16px; background: transparent; color: var(--pony-brown);
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.pony-filter-bar .is-active,
.pony-filter-bar a[aria-current="page"] { border-color: var(--pony-brown); background: var(--pony-brown); color: #fff; }

.pony-gallery-grid > .row,
.pony-product-grid > .row,
.pony-service-list > .row,
.pony-news-grid > .row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.pony-product-grid .products { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.pony-product-grid .products > .product { width: auto; max-width: none; margin: 0; padding: 0; }
.pony-gallery-grid > .row > .col,
.pony-product-grid > .row > .col,
.pony-service-list > .row > .col,
.pony-news-grid > .row > .col { width: auto; max-width: none; flex-basis: auto; padding: 0; }

.pony-gallery-card,
.pony-product-card,
.pony-news-card { height: 100%; overflow: hidden; border: 1px solid var(--pony-border); border-radius: var(--pony-radius-md); background: #fff; box-shadow: var(--pony-shadow-sm); }
.pony-gallery-card .box-image,
.pony-product-card .box-image,
.pony-news-card .box-image { overflow: hidden; margin: 0; }
.pony-gallery-card .box-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform var(--pony-transition-slow); }
.pony-gallery-card:hover .box-image img { transform: scale(1.04); }
.pony-gallery-card .box-text,
.pony-product-card .box-text,
.pony-news-card .box-text { padding: 15px 17px 18px; }

.pony-service-list .pony-service-card { min-height: 300px; }
.pony-service-list .pony-service-card .banner-bg { background-color: #d6c1a4; }
.pony-service-list .pony-service-card .text-box-content { padding: 18px; }
.pony-service-list .pony-service-card__title { font-size: 20px; }

/* Price page: readable comparison tables on desktop and horizontally scrollable on phones. */
.pony-price-table { overflow: hidden; border: 1px solid rgba(59,40,27,.12); border-radius: var(--pony-radius-md); background: #fff; }
.pony-price-table table { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.pony-price-table th,
.pony-price-table td { padding: 13px 17px; border-bottom: 1px solid rgba(59,40,27,.09); text-align: left; }
.pony-price-table thead th { background: var(--pony-brown); color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pony-price-table tbody tr:nth-child(even) { background: var(--pony-paper); }
.pony-price-table tbody tr:last-child td { border-bottom: 0; }
.pony-price-table td:last-child { color: var(--pony-gold-deep); font-weight: 700; text-align: right; white-space: nowrap; }
.pony-price-table__note { margin: 10px 0 0; color: var(--pony-muted); font-size: 11px; }

/* Product and editorial details remain native WordPress/WooCommerce content. */
.pony-product-card .price { color: var(--pony-gold-deep); font-weight: 700; }
.pony-product-card .add-to-cart-button .button,
.pony-product-card .product-title a { color: var(--pony-ink); }
.pony-product-detail .product-title { font-family: var(--pony-heading-font); font-size: clamp(30px, 4vw, 48px); }
.pony-product-detail .price { color: var(--pony-gold-deep); font-size: 20px; }
.pony-product-detail .product-images img { border-radius: var(--pony-radius-md); }
.pony-product-detail .quantity input { border-radius: var(--pony-radius-pill); }

.pony-article { max-width: 820px; margin-inline: auto; }
.pony-article__lead { color: var(--pony-muted); font-size: 17px; line-height: 1.75; }
.pony-article__body { color: var(--pony-ink); font-size: 15px; line-height: 1.9; }
.pony-article__body h2,
.pony-article__body h3 { margin-top: 1.6em; }
.pony-article__body img { border-radius: var(--pony-radius-md); }
.pony-news-card .box-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pony-news-card .post-title { font-family: var(--pony-heading-font); font-size: 21px; line-height: 1.15; }
.pony-news-card .is-divider { background-color: var(--pony-gold); }

/* Shared salon details, contact cards and footer areas. */
.pony-info-card { height: 100%; padding: 22px; border: 1px solid var(--pony-border); border-radius: var(--pony-radius-md); background: #fff; }
.pony-info-card__eyebrow { color: var(--pony-gold-deep); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pony-info-card__title { margin: 6px 0 10px; font-size: 21px; }
.pony-info-card :last-child { margin-bottom: 0; }
#footer { border-top: 1px solid rgba(255,255,255,.09); }
#footer .widget { margin-bottom: 22px; }
#footer .widget-title { color: var(--pony-gold-light); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
#footer .is-divider { background-color: rgba(216,177,106,.55); }
#footer .pony-footer-eyebrow { margin-bottom: 10px; color: var(--pony-gold-light); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
#footer .pony-footer-brand,
#footer .pony-footer-links { height: 100%; padding: 8px 0; }
#footer .pony-footer-brand a { color: var(--pony-gold-light); }
#footer .pony-footer-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; margin: 0; list-style: none; }
#footer .pony-footer-links li { margin: 0; }
#footer .payment-icons { display: none !important; }

@media (max-width: 849px) {
    .pony-page-hero { min-height: 330px; }
    .pony-page-hero .section-bg-overlay { background: linear-gradient(0deg, rgba(23,15,10,.74), rgba(23,15,10,.13) 85%) !important; }
    .pony-page-hero__content { max-width: 100%; padding: 100px 18px 30px; }
    .pony-page-hero h1 { font-size: clamp(38px, 11vw, 56px); }
    .pony-page-intro__inner { align-items: flex-start; flex-direction: column; gap: 14px; }
    .pony-gallery-grid > .row,
    .pony-product-grid > .row,
    .pony-service-list > .row,
    .pony-news-grid > .row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .pony-product-grid .products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .pony-service-list .pony-service-card { min-height: 245px; }
    .pony-price-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pony-price-table table { min-width: 540px; }
    .pony-price-table th,
    .pony-price-table td { padding: 11px 12px; font-size: 12px; }
    .pony-article__lead { font-size: 15px; }
}

@media (max-width: 549px) {
    .pony-gallery-grid > .row { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pony-service-list > .row,
    .pony-news-grid > .row { grid-template-columns: 1fr; }
    .pony-service-list .pony-service-card { min-height: 280px; }
}
