/* ============================================================
   Urban Bloom Collection — uniform editorial layout
   page-urban-bloom.php
   ============================================================ */

.urban-bloom-wrap {
    padding-top: 0;
}

.urban-bloom-page.page-content {
    margin-top: 0;
    padding-bottom: 30px;
    text-align: center;
}

/* ---- Brand header ---- */
/* .site-name + .sub are direct children of .page-content so the brand
   styles auto-apply (60px desktop, 47px sub in red). Just tighten margins. */

.urban-bloom-page > .site-name {
    margin-top: 25px !important;
    margin-bottom: 0 !important;
}

.urban-bloom-page > .sub {
    margin-bottom: 0 !important;
}

/* ---- Delivery notice ---- */

.urban-bloom-delivery-notice {
    margin: 18px auto 0;
    max-width: 720px;
    padding: 0 20px;
}

.urban-bloom-delivery-notice p {
    margin: 0;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #555;
    line-height: 1.7;
}

.urban-bloom-delivery-notice p strong {
    color: #000;
    font-weight: 600;
}

/* ---- Hero band (Featured Image + tagline + intro) ---- */

.urban-bloom-hero-band {
    margin: 35px auto 50px;
}

.urban-bloom-hero-image {
    margin: 0 auto 25px;
    max-width: 1000px;
}

.urban-bloom-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.urban-bloom-tagline {
    display: block;
    color: #d21414;
    font-size: 36px;
    line-height: 1.05;
    margin: 0;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .urban-bloom-tagline { font-size: 50px; }
}

@media (min-width: 992px) {
    .urban-bloom-tagline { font-size: 62px; }
}

.urban-bloom-intro {
    max-width: 720px;
    margin: 24px auto 0;
    padding: 0 20px;
}

.urban-bloom-intro p {
    font-family: Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 12px;
}

.urban-bloom-intro p:last-child { margin-bottom: 0; }

/* ---- Section divider above the rows ---- */

.urban-bloom-rows {
    margin-top: 0;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}

/* ============================================================
   Product rows — UNIFORM card sizing
   Image: 1:1 aspect ratio, object-fit cover (every image is identical
   in the rendered layout, regardless of source aspect)
   ============================================================ */

.urban-bloom-row {
    list-style: none;
    margin: 0 -15px 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.urban-bloom-row > .product {
    margin-bottom: 25px;
    padding-left: 15px;
    padding-right: 15px;
    float: none; /* Royal floats .product — flex parent overrides */
}

.urban-bloom-row .content-product {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.urban-bloom-row .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* All product images: square, cover-fitted, identical sizing */
.urban-bloom-row .product-image-wrapper {
    margin-bottom: 16px;
}

.urban-bloom-row .product-image-wrapper a.product-content-image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.urban-bloom-row .product-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.urban-bloom-row .product-title {
    margin: 0 0 6px;
}

.urban-bloom-row .product-title a {
    line-height: 1.05;
    letter-spacing: 2px;
}

.urban-bloom-row .price {
    font-size: 18px !important;
    margin: 0 0 8px;
    display: block;
}

.urban-bloom-row .product-excerpt {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    margin: 0 0 14px;
    flex: 1;
}

.urban-bloom-row .product-excerpt p { margin: 0; }

.urban-bloom-row .btn,
.urban-bloom-row .button {
    align-self: center;
    font-size: 13px !important;
    padding: 10px 24px !important;
    letter-spacing: 1.5px;
}

.urban-bloom-page .products-page-cats { display: none; }

/* ============================================================
   1-up FEATURED row — single centered card, prominent but proportional
   ============================================================ */

.urban-bloom-row-1up {
    margin-top: 10px;
    margin-bottom: 35px;
}

.urban-bloom-row-1up > .product {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.urban-bloom-row-1up .product-title a {
    font-size: 26px;
}

@media (min-width: 992px) {
    .urban-bloom-row-1up .product-title a { font-size: 28px; }
}

/* ============================================================
   2-up rows — identical cards, equal halves
   ============================================================ */

.urban-bloom-row-2up > .product {
    max-width: 50%;
    flex: 0 0 50%;
}

.urban-bloom-row-2up .content-product {
    max-width: 480px;
    margin: 0 auto;
}

.urban-bloom-row-2up .product-title a {
    font-size: 20px;
}

@media (min-width: 992px) {
    .urban-bloom-row-2up .product-title a { font-size: 22px; }
}

@media (max-width: 767px) {
    .urban-bloom-row-2up > .product {
        max-width: 100%;
        flex: 0 0 100%;
    }
    .urban-bloom-row-2up .content-product { max-width: 380px; }
    .urban-bloom-row-1up .product-title a { font-size: 22px; }
}

/* ============================================================
   Pagination — centered, refined, brand-consistent
   Heavy specificity to win against .pagination-cubic if present
   ============================================================ */

.urban-bloom-page .urban-bloom-pagination {
    margin: 30px 0 10px;
    padding: 22px 0 0;
    border-top: 1px solid #eaeaea;
    text-align: center;
    clear: both;
    float: none !important;
    width: 100%;
}

.urban-bloom-page .urban-bloom-pagination ul.page-numbers {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
    float: none !important;
    width: auto;
}

.urban-bloom-page .urban-bloom-pagination li {
    display: inline-block;
    margin: 0 4px;
    padding: 0;
    float: none !important;
    list-style: none;
    border: 0;
}

.urban-bloom-page .urban-bloom-pagination .page-numbers {
    display: inline-block;
    min-width: 38px;
    padding: 8px 14px;
    font-family: BebasNeue-Regular, sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    color: #000;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    opacity: 1;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.urban-bloom-page .urban-bloom-pagination a.page-numbers:hover {
    color: #d21414;
    border-color: #d21414;
    background: transparent;
    opacity: 1;
}

.urban-bloom-page .urban-bloom-pagination .page-numbers.current {
    color: #d21414;
    border-color: #d21414;
    background: transparent;
    opacity: 1;
}

.urban-bloom-page .urban-bloom-pagination .next.page-numbers,
.urban-bloom-page .urban-bloom-pagination .prev.page-numbers {
    border-color: transparent;
    font-size: 16px;
}

.urban-bloom-page .urban-bloom-pagination .next.page-numbers:hover {
    border-color: transparent;
    color: #d21414;
}

/* ---- Footer-ad ---- */

.urban-bloom-footer-ad {
    margin-top: 0;
    padding: 40px 20px 20px;
}

.urban-bloom-footer-ad .ad-address a {
    color: #000;
    text-decoration: none;
}

.urban-bloom-footer-ad .ad-address a:hover {
    color: #d21414;
}

/* ---- Admin notice ---- */

.urban-bloom-admin-notice {
    padding: 60px 40px;
    text-align: center;
    color: #999;
    font-family: Roboto, sans-serif;
    border: 1px dashed #ddd;
    margin: 40px 0;
}

/* ============================================================
   Mobile tightening
   ============================================================ */

@media (max-width: 767px) {
    .urban-bloom-page.page-content {
        padding-bottom: 20px;
    }
    /* Brand stylesheet absolutely-positions .site-name on mobile for the
       site's header bar — undo that for our in-content brand block so .sub
       doesn't collapse on top of the H1. */
    .urban-bloom-page > .site-name {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .urban-bloom-page > .sub {
        position: static !important;
        margin-top: 6px !important;
    }
    .urban-bloom-delivery-notice {
        margin-top: 14px;
    }
    .urban-bloom-delivery-notice p {
        font-size: 12px;
        letter-spacing: 0.6px;
    }
    .urban-bloom-hero-band {
        margin: 25px 0 30px;
    }
    .urban-bloom-rows {
        padding-top: 28px;
    }
    .urban-bloom-row {
        margin-bottom: 16px;
    }
    .urban-bloom-row-1up {
        margin-bottom: 25px;
    }
    .urban-bloom-row .product-title a {
        letter-spacing: 1.5px;
    }
}
