:root {
    --hc-ink: #1d1815;
    --hc-burgundy: #64283f;
    --hc-gold: #b7894f;
    --hc-ivory: #f6f1ea;
    --hc-soft: #fffdf9;
    --hc-muted: #726760;
    --hc-line: rgba(33, 25, 22, .12);
    --hc-serif: Georgia, "Times New Roman", serif;
    --hc-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --hc-shell: min(1100px, calc(100vw - 40px));
    --hc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Hide default page title on commerce pages — we render our own */
.hera-commerce #main-content article.page > .entry-title,
.hera-commerce .et_pb_post_title,
.hera-commerce .woocommerce-products-header {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.hera-commerce #main-content {
    background:
        radial-gradient(ellipse at 10% 0%, rgba(183, 137, 79, .1), transparent 42%),
        radial-gradient(ellipse at 90% 8%, rgba(100, 40, 63, .08), transparent 40%),
        linear-gradient(180deg, #f8f3ec 0%, #f3ebe2 100%);
}

.hera-commerce #main-content > .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.hera-commerce #main-content > .container::before,
.hera-commerce #sidebar {
    display: none !important;
}

.hera-commerce #left-area {
    width: 100% !important;
    padding: 0 !important;
}

.hera-commerce-shell {
    width: var(--hc-shell);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) 0 clamp(70px, 8vw, 110px);
    color: var(--hc-ink);
    font-family: var(--hc-sans);
}

.hera-commerce-hero {
    margin-bottom: clamp(34px, 5vw, 54px);
    text-align: center;
}

.hera-commerce-hero .hera-brand {
    display: inline-flex;
    margin-bottom: 28px;
}

.hera-commerce-hero .hera-brand img {
    width: min(240px, 70vw);
    height: auto;
}

.hera-commerce-kicker {
    margin: 28px 0 12px;
    color: var(--hc-burgundy);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.hera-commerce-hero h1 {
    margin: 0 0 12px;
    color: var(--hc-ink);
    font-family: var(--hc-serif);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.05;
}

.hera-commerce-intro {
    margin: 0 auto;
    max-width: 460px;
    color: var(--hc-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* Stepper */
.hera-steps-bar {
    margin: 0 auto 8px;
    max-width: 560px;
}

.hera-steps-bar ol {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hera-steps-bar li,
.hera-steps-bar a {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.hera-steps-bar__num {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid var(--hc-line);
    border-radius: 50%;
    place-items: center;
    color: var(--hc-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    background: rgba(255, 255, 255, .55);
    transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--hc-ease);
}

.hera-steps-bar__label {
    color: var(--hc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hera-steps-bar .is-current .hera-steps-bar__num,
.hera-steps-bar .is-done .hera-steps-bar__num {
    color: #fff8ef;
    border-color: transparent;
    background: linear-gradient(145deg, #3a221c, #64283f 55%, #291b17);
    box-shadow: 0 10px 22px rgba(33, 25, 22, .16);
}

.hera-steps-bar .is-current .hera-steps-bar__label,
.hera-steps-bar .is-done .hera-steps-bar__label {
    color: var(--hc-ink);
}

.hera-steps-bar .is-current .hera-steps-bar__num {
    transform: scale(1.06);
}

.hera-commerce-stage {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--hc-line);
    background: var(--hc-soft);
    box-shadow: 0 24px 60px rgba(33, 25, 22, .06);
    animation: heraCommerceIn .7s var(--hc-ease) both;
}

@keyframes heraCommerceIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* Cart table */
.hera-commerce .woocommerce-cart-form,
.hera-commerce .cart-collaterals,
.hera-commerce .woocommerce-checkout,
.hera-commerce .woocommerce-order {
    font-family: var(--hc-sans);
}

.hera-commerce table.shop_table {
    border: 0 !important;
    border-collapse: collapse;
}

.hera-commerce table.shop_table th {
    padding: 14px 12px;
    border: 0 !important;
    border-bottom: 1px solid var(--hc-line) !important;
    color: var(--hc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: transparent !important;
}

.hera-commerce table.shop_table td {
    padding: 22px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--hc-line) !important;
    vertical-align: middle;
    background: transparent !important;
}

.hera-commerce .product-thumbnail img {
    width: 88px !important;
    height: 110px !important;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 8px 20px rgba(33, 25, 22, .1);
}

.hera-commerce .product-name a {
    color: var(--hc-ink) !important;
    font-family: var(--hc-serif);
    font-size: 20px;
    font-weight: 400;
    text-decoration: none !important;
}

.hera-commerce .product-name a:hover {
    color: var(--hc-burgundy) !important;
}

.hera-commerce .product-remove a {
    display: inline-grid !important;
    width: 32px;
    height: 32px;
    border: 1px solid var(--hc-line);
    border-radius: 50%;
    color: var(--hc-muted) !important;
    place-items: center;
    text-decoration: none !important;
    transition: background .25s ease, color .25s ease;
}

.hera-commerce .product-remove a:hover {
    color: #fff !important;
    background: var(--hc-burgundy);
    border-color: var(--hc-burgundy);
}

.hera-commerce .quantity .qty {
    width: 64px;
    min-height: 42px;
    border: 1px solid var(--hc-line) !important;
    border-radius: 0 !important;
    background: #fff;
    text-align: center;
}

.hera-commerce .actions {
    padding-top: 22px !important;
}

.hera-commerce .coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hera-commerce .coupon input,
.hera-commerce .woocommerce-input-wrapper input,
.hera-commerce .woocommerce-input-wrapper select,
.hera-commerce .woocommerce-input-wrapper textarea,
.hera-commerce input.input-text,
.hera-commerce textarea,
.hera-commerce select {
    min-height: 48px;
    border: 1px solid var(--hc-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--hc-ink);
    font-size: 14px;
}

.hera-commerce textarea {
    min-height: 110px;
    padding: 14px !important;
}

.hera-commerce .button,
.hera-commerce button.button,
.hera-commerce a.button,
.hera-commerce #place_order,
.hera-c-btn {
    display: inline-flex !important;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #3a221c, #64283f) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease !important;
    position: relative;
    overflow: hidden;
}

.hera-commerce .button:hover,
.hera-commerce button.button:hover,
.hera-commerce a.button:hover,
.hera-commerce #place_order:hover,
.hera-c-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(33, 25, 22, .18) !important;
}

.hera-commerce .button:not(.checkout-button):not(#place_order),
.hera-c-btn--ghost {
    color: var(--hc-ink) !important;
    background: transparent !important;
    border-color: var(--hc-line) !important;
}

.hera-commerce a.checkout-button,
.hera-c-btn--burgundy {
    color: #fff !important;
    background: linear-gradient(135deg, #c89a57, #8d6430) !important;
}

.hera-commerce .cart-collaterals {
    margin-top: 28px;
}

.hera-commerce .cart_totals,
.hera-commerce #order_review {
    padding: 28px;
    border: 1px solid var(--hc-line);
    background:
        radial-gradient(circle at 100% 0%, rgba(183, 137, 79, .12), transparent 45%),
        #fffaf4;
}

.hera-commerce .cart_totals h2,
.hera-commerce #order_review_heading,
.hera-commerce .woocommerce-billing-fields h3,
.hera-commerce .woocommerce-additional-fields h3,
.hera-commerce .woocommerce-shipping-fields h3 {
    margin: 0 0 18px;
    color: var(--hc-ink);
    font-family: var(--hc-serif);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -.02em;
}

.hera-commerce .cart_totals .shop_table th,
.hera-commerce .cart_totals .shop_table td,
.hera-commerce #order_review .shop_table th,
.hera-commerce #order_review .shop_table td {
    border-bottom: 1px solid var(--hc-line) !important;
    font-size: 14px;
}

.hera-commerce .order-total th,
.hera-commerce .order-total td {
    font-family: var(--hc-serif);
    font-size: 22px !important;
}

/* Checkout layout */
.hera-commerce--checkout .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: start;
}

.hera-commerce--checkout #customer_details {
    float: none !important;
    width: 100% !important;
}

.hera-commerce--checkout #order_review_heading,
.hera-commerce--checkout #order_review {
    float: none !important;
    width: 100% !important;
}

.hera-commerce--checkout #order_review {
    position: sticky;
    top: 24px;
}

.hera-commerce form .form-row {
    margin-bottom: 16px;
    padding: 0;
}

.hera-commerce form .form-row label {
    margin-bottom: 8px;
    color: var(--hc-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hera-commerce #payment {
    margin-top: 18px;
    border: 0 !important;
    background: transparent !important;
}

.hera-commerce #payment ul.payment_methods {
    padding: 0 !important;
    border: 0 !important;
}

.hera-commerce #payment ul.payment_methods li {
    margin: 0 0 12px;
    padding: 16px 18px;
    border: 1px solid var(--hc-line);
    background: #fff;
    list-style: none;
    transition: border-color .25s ease, transform .25s ease;
}

.hera-commerce #payment ul.payment_methods li:hover {
    border-color: rgba(183, 137, 79, .55);
    transform: translateY(-2px);
}

.hera-commerce #payment div.payment_box {
    margin: 12px 0 0;
    padding: 14px;
    border: 0;
    color: var(--hc-muted);
    background: var(--hc-ivory) !important;
    font-size: 13px;
    line-height: 1.6;
}

.hera-commerce #payment div.payment_box::before {
    display: none !important;
}

/* Confirmation */
.hera-commerce--confirm .woocommerce-order {
    text-align: left;
}

.hera-commerce--confirm .woocommerce-notice,
.hera-commerce--confirm .woocommerce-thankyou-order-received {
    margin: 0 0 28px;
    padding: 22px 24px !important;
    border: 1px solid rgba(183, 137, 79, .35) !important;
    color: var(--hc-ink) !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(183, 137, 79, .16), transparent 50%),
        #fffaf4 !important;
    font-family: var(--hc-serif);
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1.35;
}

.hera-commerce--confirm ul.order_details {
    display: grid;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    border: 0 !important;
}

.hera-commerce--confirm ul.order_details li {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--hc-line);
    background: #fff;
    font-size: 14px;
}

.hera-commerce--confirm ul.order_details li strong {
    display: block;
    margin-bottom: 8px;
    color: var(--hc-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hera-confirm-next {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--hc-line);
}

.hera-confirm-next h2 {
    margin: 0 0 22px;
    font-family: var(--hc-serif);
    font-size: 28px;
    font-weight: 400;
}

.hera-confirm-next__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.hera-confirm-next__grid article {
    padding: 22px;
    border: 1px solid var(--hc-line);
    background: #fff;
}

.hera-confirm-next__grid span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--hc-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.hera-confirm-next__grid h3 {
    margin: 0 0 8px;
    font-family: var(--hc-serif);
    font-size: 20px;
    font-weight: 400;
}

.hera-confirm-next__grid p {
    margin: 0;
    color: var(--hc-muted);
    font-size: 13px;
    line-height: 1.6;
}

.hera-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Reassure footer */
.hera-commerce-reassure {
    display: grid;
    margin-top: 28px;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--hc-line);
    border: 1px solid var(--hc-line);
}

.hera-commerce-reassure > div {
    display: grid;
    gap: 6px;
    padding: 22px 18px;
    background: rgba(255, 253, 249, .92);
    text-align: center;
}

.hera-commerce-reassure strong {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hera-commerce-reassure span,
.hera-commerce-reassure a {
    color: var(--hc-muted);
    font-size: 13px;
    text-decoration: none;
}

.hera-commerce-reassure a:hover {
    color: var(--hc-burgundy);
}

.hera-commerce .woocommerce-info,
.hera-commerce .woocommerce-message,
.hera-commerce .woocommerce-error {
    border-top: 0 !important;
    border-left: 2px solid var(--hc-gold) !important;
    background: #fffaf4 !important;
    color: var(--hc-ink) !important;
}

.hera-commerce .return-to-shop .button {
    background: linear-gradient(135deg, #c89a57, #8d6430) !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    .hera-commerce--checkout .woocommerce-checkout,
    .hera-confirm-next__grid,
    .hera-commerce-reassure,
    .hera-commerce--confirm ul.order_details {
        grid-template-columns: 1fr;
    }

    .hera-commerce--checkout #order_review {
        position: static;
    }
}

@media (max-width: 680px) {
    .hera-commerce-stage {
        padding: 16px;
    }

    .hera-commerce table.shop_table_responsive tr {
        margin-bottom: 18px;
        border: 1px solid var(--hc-line) !important;
        background: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hera-commerce-stage,
    .hera-commerce .button,
    .hera-steps-bar .is-current .hera-steps-bar__num {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
