/* Build Your Own Oz – scoped under body class and page container */

/* Hide theme page header / breadcrumb on this template */
.hh-build-oz-page .page-top.page-header-6,
.hh-build-oz-page section.page-top {
    display: none !important;
}

/* Remove top/left/right padding so hero background can be full width */
.hh-build-oz-page #content,
.hh-build-oz-page .hh-oz-page {
    margin: 0;
    padding: 0;
}

.hh-build-oz-page #main .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

.hh-build-oz-page #main .row.main-content-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hh-build-oz-page #main .main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hh-build-oz-page #main,
.hh-build-oz-page #main .container {
    padding-top: 0 !important;
}

/* Hero: full bleed – extend to edges of content area (no white space) */
.hh-build-oz-page .hh-oz-hero.hh-oz-fullbleed,
.hh-oz-page .hh-oz-hero.hh-oz-fullbleed {
    width: 100%;
    min-width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
}

.hh-build-oz-page .hh-oz-hero-overlay,
.hh-oz-page .hh-oz-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hh-build-oz-page .hh-oz-hero-inner,
.hh-oz-page .hh-oz-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hh-build-oz-page .hh-oz-hero-stack,
.hh-oz-page .hh-oz-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

/* Typography */
.hh-build-oz-page .hh-oz-kicker,
.hh-oz-page .hh-oz-kicker {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fbe34c;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.25rem;
}

.hh-build-oz-page .hh-oz-title,
.hh-oz-page .hh-oz-title {
    font-size: 76px;
    font-weight: 700;
    color: #fbe34c;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.hh-build-oz-page .hh-oz-subtitle,
.hh-oz-page .hh-oz-subtitle {
    font-size: 22px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.hh-build-oz-page .hh-oz-price,
.hh-oz-page .hh-oz-price {
    font-size: 44px;
    font-weight: 700;
    color: #fbe34c;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    margin-bottom: 0.25rem;
}

.hh-build-oz-page .hh-oz-deadline,
.hh-oz-page .hh-oz-deadline {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .hh-build-oz-page .hh-oz-title,
    .hh-oz-page .hh-oz-title {
        font-size: 46px;
    }
}

@media (max-width: 575px) {
    .hh-build-oz-page .hh-oz-title,
    .hh-oz-page .hh-oz-title {
        font-size: 36px;
    }
}

/* Card */
.hh-build-oz-page .hh-oz-card,
.hh-oz-page .hh-oz-card {
    max-width: 760px;
    width: 100%;
    background: rgba(245, 245, 245, 0.88);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    padding: 24px;
    margin: 0 auto;
}

.hh-build-oz-page .hh-oz-card-title,
.hh-oz-page .hh-oz-card-title {
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.hh-build-oz-page .hh-oz-slot-instruction,
.hh-oz-page .hh-oz-slot-instruction {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    margin-bottom: 1rem;
}

.hh-build-oz-page .hh-oz-select-grid.hh-oz-slots,
.hh-oz-page .hh-oz-select-grid.hh-oz-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 575px) {
    .hh-build-oz-page .hh-oz-select-grid.hh-oz-slots,
    .hh-oz-page .hh-oz-select-grid.hh-oz-slots {
        grid-template-columns: 1fr 1fr;
    }
}

.hh-build-oz-page .hh-oz-slot,
.hh-oz-page .hh-oz-slot {
    min-height: 52px;
    padding: 0.5rem 0.75rem;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hh-build-oz-page .hh-oz-slot.has-selection,
.hh-oz-page .hh-oz-slot.has-selection {
    border-style: solid;
    border-color: #2f8f3a;
    background: #f0f9f0;
}

.hh-build-oz-page .hh-oz-slot-label,
.hh-oz-page .hh-oz-slot-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hh-build-oz-page .hh-oz-slot-value,
.hh-oz-page .hh-oz-slot-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.hh-build-oz-page .hh-oz-select-grid,
.hh-oz-page .hh-oz-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 575px) {
    .hh-build-oz-page .hh-oz-select-grid,
    .hh-oz-page .hh-oz-select-grid {
        grid-template-columns: 1fr;
    }
}

.hh-build-oz-page .hh-oz-field .hh-oz-select,
.hh-oz-page .hh-oz-field .hh-oz-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

.hh-build-oz-page .hh-oz-cta,
.hh-oz-page .hh-oz-cta {
    display: block;
    margin: 0 auto 1rem;
    width: 240px;
    height: 52px;
    background: #2f8f3a;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.hh-build-oz-page .hh-oz-cta:hover,
.hh-oz-page .hh-oz-cta:hover {
    background: #268030;
    color: #fff;
}

.hh-build-oz-page .hh-oz-cta:disabled,
.hh-oz-page .hh-oz-cta:disabled {
    background: #9e9e9e;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.75;
    box-shadow: none;
}

.hh-build-oz-page .hh-oz-cta:disabled:hover,
.hh-oz-page .hh-oz-cta:disabled:hover {
    background: #9e9e9e;
}

.hh-build-oz-page .hh-oz-cta.hh-oz-cta-attract,
.hh-oz-page .hh-oz-cta.hh-oz-cta-attract {
    animation: hh-oz-cta-attract 0.6s ease-in-out 3;
}

@keyframes hh-oz-cta-attract {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .hh-build-oz-page .hh-oz-cta.hh-oz-cta-attract,
    .hh-oz-page .hh-oz-cta.hh-oz-cta-attract {
        animation: none;
    }
}

.hh-build-oz-page .hh-oz-card-footnote,
.hh-oz-page .hh-oz-card-footnote {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.hh-build-oz-page .hh-oz-form-message,
.hh-oz-page .hh-oz-form-message {
    margin-top: 0.5rem;
    text-align: center;
    min-height: 1.5em;
}

.hh-build-oz-page .hh-oz-admin-note,
.hh-oz-page .hh-oz-admin-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff3cd;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Grid section */
.hh-build-oz-page .hh-oz-grid,
.hh-oz-page .hh-oz-grid {
    background: #fff;
    padding: 3rem 1rem;
}

/* Grid header – emphasize instruction with animation */
.hh-build-oz-page .hh-oz-grid-header,
.hh-oz-page .hh-oz-grid-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 1.5rem 1.75rem;
    background: linear-gradient(135deg, #fef9e6 0%, #fef3c7 50%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #fbe34c;
    box-shadow: 0 4px 20px rgba(251, 227, 76, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    animation: hh-oz-header-enter 0.8s ease-out both;
}

.hh-build-oz-page .hh-oz-grid-header::before,
.hh-oz-page .hh-oz-grid-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: hh-oz-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.hh-build-oz-page .hh-oz-grid-header .hh-oz-grid-header-icon,
.hh-build-oz-page .hh-oz-grid-header .hh-oz-grid-header-title,
.hh-build-oz-page .hh-oz-grid-header .hh-oz-grid-header-sub,
.hh-oz-page .hh-oz-grid-header .hh-oz-grid-header-icon,
.hh-oz-page .hh-oz-grid-header .hh-oz-grid-header-title,
.hh-oz-page .hh-oz-grid-header .hh-oz-grid-header-sub {
    position: relative;
    z-index: 1;
}

@keyframes hh-oz-header-enter {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hh-oz-shimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

@keyframes hh-oz-pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.2; }
}

.hh-build-oz-page .hh-oz-grid-header-icon,
.hh-oz-page .hh-oz-grid-header-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    background: linear-gradient(145deg, #2f8f3a, #268030);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(47, 143, 58, 0.4);
    position: relative;
    animation: hh-oz-pulse-ring 2s ease-in-out infinite;
}

.hh-build-oz-page .hh-oz-grid-header-icon::after,
.hh-oz-page .hh-oz-grid-header-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    margin-left: -6px;
    margin-top: -10px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #fff;
}

.hh-build-oz-page .hh-oz-grid-header-title,
.hh-oz-page .hh-oz-grid-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 0.35rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hh-build-oz-page .hh-oz-grid-header-sub,
.hh-oz-page .hh-oz-grid-header-sub {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 575px) {
    .hh-build-oz-page .hh-oz-grid-header-title,
    .hh-oz-page .hh-oz-grid-header-title {
        font-size: 1.2rem;
    }
    .hh-build-oz-page .hh-oz-grid-header,
    .hh-oz-page .hh-oz-grid-header {
        padding: 1.25rem 1rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-build-oz-page .hh-oz-grid-header,
    .hh-oz-page .hh-oz-grid-header,
    .hh-build-oz-page .hh-oz-grid-header-icon,
    .hh-oz-page .hh-oz-grid-header-icon {
        animation: none;
    }
    .hh-build-oz-page .hh-oz-grid-header::before,
    .hh-oz-page .hh-oz-grid-header::before {
        display: none;
    }
}

/* 5 columns: 19 items = 4 rows (5+5+5+4) with no “View All” needed */
.hh-build-oz-page .hh-oz-grid-cards,
.hh-oz-page .hh-oz-grid-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 1199px) {
    .hh-build-oz-page .hh-oz-grid-cards,
    .hh-oz-page .hh-oz-grid-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .hh-build-oz-page .hh-oz-grid-cards,
    .hh-oz-page .hh-oz-grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .hh-build-oz-page .hh-oz-grid-cards,
    .hh-oz-page .hh-oz-grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.hh-build-oz-page .hh-oz-card-product,
.hh-oz-page .hh-oz-card-product {
    display: block;
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hh-build-oz-page .hh-oz-slot-badge,
.hh-oz-page .hh-oz-slot-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2f8f3a;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 2px solid #fff;
}

.hh-build-oz-page .hh-oz-card-product:hover,
.hh-oz-page .hh-oz-card-product:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.hh-build-oz-page .hh-oz-card-product.hh-oz-selected,
.hh-oz-page .hh-oz-card-product.hh-oz-selected {
    border-color: #2f8f3a;
    box-shadow: 0 0 0 1px #2f8f3a;
}

.hh-build-oz-page .hh-oz-card-product.is-hidden,
.hh-oz-page .hh-oz-card-product.is-hidden {
    display: none;
}

.hh-build-oz-page .hh-oz-card-product-image,
.hh-oz-page .hh-oz-card-product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.hh-build-oz-page .hh-oz-card-product-image img,
.hh-oz-page .hh-oz-card-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hh-build-oz-page .hh-oz-card-product-name,
.hh-oz-page .hh-oz-card-product-name {
    padding: 0.5rem 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    line-height: 1.2;
}

.hh-build-oz-page .hh-oz-viewall,
.hh-oz-page .hh-oz-viewall {
    display: block;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.hh-build-oz-page .hh-oz-viewall:hover,
.hh-oz-page .hh-oz-viewall:hover {
    background: #152a47;
    color: #fff;
}
