/* Brochure Builder – reusable entry banner + modal */

.brochure-entry {
	padding: var(--section-padding-sm);
	/* margin: 30px 0 30px;  */
}

.brochure-entry__card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    background: #fff;
    border: 2px solid #f6dcc4;
    border-radius: 24px;
    padding: 30px 34px;
    box-shadow: 0 10px 30px rgba(59, 33, 21, .05);
}

.brochure-entry__blob {
    display: none;
}

.brochure-entry__left {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 260px;
    flex: 1 1 280px;
}

.brochure-entry__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdeee0;
    border: 1px solid #f6dcc4;
    color: #c45a00;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.brochure-entry__icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: #fdeee0;
    border: 2px solid #f6dcc4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e07b39;
    font-size: 32px;
    flex-shrink: 0;
}

.brochure-entry__title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #3b2115;
    line-height: 1.15;
}

.brochure-entry__desc {
    margin: 0;
    color: #7a6558;
    font-size: 14px;
    line-height: 1.5;
    max-width: 360px;
}

.brochure-entry__steps {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex: 1 1 420px;
    justify-content: center;
}

.brochure-entry__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 150px;
    padding: 16px 12px;
    border-radius: 16px;
    background: #fff;
    border: 2px solid #f1ede8;
    transition: border-color .25s ease, transform .25s ease;
}

.brochure-entry__step:hover {
    transform: translateY(-3px);
}

.brochure-entry__step-arrow {
    align-self: center;
    color: #d9cfc4;
    font-size: 12px;
    flex-shrink: 0;
}

.brochure-entry__step-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* pastel accents per step */
.brochure-entry__step[data-step="1"] {
    border-color: #f6dcc4;
}

.brochure-entry__step[data-step="1"] .brochure-entry__step-icon {
    background: #fdeee0;
    color: #e07b39;
}

.brochure-entry__step[data-step="2"] {
    border-color: #cfe8da;
}

.brochure-entry__step[data-step="2"] .brochure-entry__step-icon {
    background: #e3f4ea;
    color: #3a9d6e;
}

.brochure-entry__step[data-step="3"] {
    border-color: #d9d3f0;
}

.brochure-entry__step[data-step="3"] .brochure-entry__step-icon {
    background: #eae6f8;
    color: #7a6bd6;
}

.brochure-entry__step strong {
    display: block;
    font-size: 13px;
    color: #3b2115;
    margin-bottom: 2px;
}

.brochure-entry__step span {
    display: block;
    font-size: 12px;
    color: #8a7466;
    line-height: 1.35;
}

.brochure-entry__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.brochure-entry__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3b2115;
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 14px 26px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(59, 33, 21, .22);
    transition: .25s ease;
}

/* .brochure-entry__btn:hover {
    background: #ff7200;
    transform: translateY(-2px);
} */

.brochure-entry__btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff7200;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    animation: brochure-count-pop .3s ease;
}

@keyframes brochure-count-pop {
    0% { transform: scale(.4); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.brochure-entry__hint {
    margin: 0;
    font-size: 12px;
    color: #8a7466;
}

/* Modal / Drawer */
.brochure-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.brochure-modal.is-open {
    display: block;
}

.brochure-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 16, 8, .55);
    backdrop-filter: blur(2px);
}

.brochure-modal__panel {
    position: absolute;
    inset: 18px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.brochure-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #f0e6dc;
    background: #fffaf5;
}

.brochure-modal__header h3 {
    margin: 0;
    font-size: 22px;
    color: #3b2115;
    font-weight: 800;
}

.brochure-modal__header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #8a7466;
}

.brochure-modal__close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #edd9c6;
    background: #fff;
    color: #3b2115;
    cursor: pointer;
    font-size: 18px;
}

.brochure-modal__body {
    flex: 1;
    overflow: auto;
    padding: 22px 24px 30px;
}

.brochure-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 24px;
    border-top: 1px solid #f0e6dc;
    background: #fff;
}

.brochure-steps-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 0 auto 28px;
    max-width: 720px;
    padding: 6px 8px 0;
}

.brochure-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* connector line between steps */
.brochure-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 23px;
    right: calc(50% + 27px);
    left: calc(-50% + 27px);
    height: 3px;
    border-radius: 3px;
    background: #f0e2d4;
    transition: background .3s ease;
}

.brochure-step.is-active:not(:first-child)::before,
.brochure-step.is-done:not(:first-child)::before {
    background: #ffcf9e;
}

.brochure-step__dot {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #f0e2d4;
    color: #b9a494;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all .25s ease;
}

.brochure-step__tick {
    display: none;
}

.brochure-step:hover .brochure-step__dot {
    border-color: #ffb06a;
    color: #ff7200;
}

.brochure-step.is-active .brochure-step__dot {
    background: #ff8c2e;
    border-color: #ff8c2e;
    color: #fff;
    box-shadow: 0 0 0 5px #fdeee0;
}

.brochure-step.is-done .brochure-step__dot {
    background: #fff4ea;
    border-color: #ff9c46;
    color: #ff7200;
}

.brochure-step.is-done .brochure-step__icon {
    display: none;
}

.brochure-step.is-done .brochure-step__tick {
    display: inline;
}

.brochure-step__label {
    font-size: 12px;
    font-weight: 700;
    color: #b9a494;
    letter-spacing: .02em;
    transition: color .25s ease;
    white-space: nowrap;
}

.brochure-step.is-active .brochure-step__label {
    color: #3b2115;
}

.brochure-step.is-done .brochure-step__label {
    color: #c45a00;
}

@media (max-width: 640px) {
    .brochure-step__dot {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .brochure-step:not(:first-child)::before {
        top: 19px;
        right: calc(50% + 23px);
        left: calc(-50% + 23px);
    }

    .brochure-step__label {
        font-size: 10px;
    }
}

.brochure-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.brochure-panel-title h4 {
    margin: 0;
    font-size: 18px;
    color: #3b2115;
    font-weight: 700;
}

.brochure-panel-title span {
    font-size: 13px;
    color: #8a7466;
}

.brochure-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.brochure-search input {
    flex: 1;
    border: 1px solid #edd9c6;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
}

.brochure-search input:focus {
    border-color: #ff7200;
}

.brochure-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.brochure-cat-card {
    border: 2px solid #f0e6dc;
    border-radius: 16px;
    background: #fff;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
    position: relative;
}

.brochure-cat-card:hover {
    border-color: #ffb06a;
    transform: translateY(-2px);
}

.brochure-cat-card.is-selected {
    border-color: #ff7200;
    background: #fff7f0;
    box-shadow: 0 8px 18px rgba(255, 114, 0, .14);
}

.brochure-cat-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff7200;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.brochure-cat-card.is-selected .brochure-cat-card__check {
    display: inline-flex;
}

.brochure-cat-card img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f0e6dc;
    margin-bottom: 10px;
}

.brochure-cat-card h5 {
    margin: 0 0 4px;
    font-size: 14px;
    color: #3b2115;
    font-weight: 700;
}

.brochure-cat-card p {
    margin: 0;
    font-size: 12px;
    color: #8a7466;
}

.brochure-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.brochure-sub-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    border: 2px solid transparent;
}

.brochure-sub-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brochure-sub-card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    color: #fff;
}

.brochure-sub-card__overlay h5 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
}

.brochure-sub-card__overlay p {
    margin: 0;
    font-size: 12px;
    opacity: .9;
}

.brochure-sub-card.is-selected {
    border-color: #ff7200;
    box-shadow: 0 0 0 2px rgba(255, 114, 0, .25);
}

.brochure-sub-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff7200;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}

.brochure-sub-card.is-selected .brochure-sub-card__check {
    display: inline-flex;
}

.brochure-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.brochure-product-card {
    border: 2px solid #f0e6dc;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: .2s ease;
    display: flex;
    flex-direction: column;
}

.brochure-product-card.is-selected {
    border-color: #ff7200;
    box-shadow: 0 10px 22px rgba(255, 114, 0, .16);
}

.brochure-product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
}

.brochure-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brochure-product-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
}

.brochure-product-card.is-selected .brochure-product-card__check {
    display: inline-flex;
}

.brochure-product-card__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.brochure-product-card__body h5 {
    margin: 0;
    font-size: 14px;
    color: #3b2115;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.brochure-product-card__body p {
    margin: 0;
    font-size: 12px;
    color: #8a7466;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brochure-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.brochure-product-card__price {
    font-weight: 800;
    color: #3b2115;
    font-size: 15px;
}

.brochure-product-card__btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    background: #fff4ea;
    color: #c45a00;
}

.brochure-product-card.is-selected .brochure-product-card__btn {
    background: #22c55e;
    color: #fff;
}

.brochure-selected-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scroll-snap-type: x mandatory;
}

.brochure-selected-card {
    flex: 0 0 180px;
    border: 1px solid #f0e6dc;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: grab;
    position: relative;
}

.brochure-selected-card.is-dragging {
    opacity: .55;
}

.brochure-selected-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.brochure-selected-card__body {
    padding: 10px;
}

.brochure-selected-card__body h5 {
    margin: 0 0 4px;
    font-size: 13px;
    color: #3b2115;
    font-weight: 700;
    line-height: 1.3;
}

.brochure-selected-card__body span {
    font-size: 11px;
    color: #8a7466;
}

.brochure-selected-card__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
}

.brochure-empty {
    text-align: center;
    padding: 40px 16px;
    color: #8a7466;
}

.brochure-loader {
    display: none;
    text-align: center;
    padding: 30px;
    color: #8a7466;
}

.brochure-loader.is-visible {
    display: block;
}

.brochure-loader .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #ffe0c2;
    border-top-color: #ff7200;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: brochure-spin .7s linear infinite;
}

@keyframes brochure-spin {
    to { transform: rotate(360deg); }
}

.brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.brochure-btn--ghost {
    background: #fff;
    border: 1px solid #edd9c6;
    color: #3b2115;
}

.brochure-btn--primary {
    background: #ff7200;
    color: #fff;
}

.brochure-btn--dark {
    background: #3b2115;
    color: #fff;
}

.brochure-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.brochure-details-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.brochure-details-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #7a6558;
    margin-bottom: 6px;
}

.brochure-details-form input {
    width: 100%;
    border: 1px solid #edd9c6;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
}

.brochure-load-more {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

/* Phone + OTP verification */
.brochure-otp {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #edd9c6;
    border-radius: 16px;
    background: #fffaf5;
    max-width: 520px;
}

.brochure-otp__field + .brochure-otp__field {
    margin-top: 14px;
}

.brochure-otp label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #7a6558;
    margin-bottom: 6px;
}

.brochure-required {
    color: #e11d48;
}

.brochure-otp__row {
    display: flex;
    gap: 10px;
}

.brochure-otp__row input {
    flex: 1;
    border: 1px solid #edd9c6;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.brochure-otp__row input:focus {
    border-color: #ff7200;
}

.brochure-otp__row input:disabled {
    background: #f6efe8;
    color: #8a7466;
}

.brochure-otp__status {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 600;
    display: none;
}

.brochure-otp__status.is-info {
    display: block;
    color: #7a6558;
}

.brochure-otp__status.is-success {
    display: block;
    color: #16a34a;
}

.brochure-otp__status.is-error {
    display: block;
    color: #e11d48;
}

@media (max-width: 992px) {
    .brochure-entry__steps {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .brochure-modal__panel {
        inset: 0;
        border-radius: 0;
    }
}

@media (max-width: 640px) {
    .brochure-entry__card {
        padding: 20px;
    }

    .brochure-entry__title {
        font-size: 22px;
    }

    .brochure-entry__step {
        min-width: 150px;
    }

    .brochure-cat-grid,
    .brochure-sub-grid,
    .brochure-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
