:root {
    --ip-orange: #ed4b2c;
    --ip-orange-dark: #d83d20;
    --ip-ink: #222631;
    --ip-muted: #777e8b;
    --ip-line: #e9ebef;
    --ip-bg: #f5f6f8;
    --ip-white: #fff;
    --ip-green: #198754;
    --ip-radius: 15px;
    --ip-shadow: 0 8px 28px rgba(20,25,35,.055);
}

* { box-sizing: border-box; }

body.ip-store {
    margin: 0;
    background: var(--ip-bg);
    color: var(--ip-ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ip-header {
    min-height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--ip-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px max(calc((100% - 1180px)/2), 22px);
}

.ip-brand {
    color: var(--ip-orange);
    text-decoration: none;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -.8px;
}

.ip-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ip-header-link {
    color: #454b56;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 9px;
}

.ip-header-link:hover { background: #fff3ef; color: var(--ip-orange); }

.ip-wrap {
    width: min(1180px, calc(100% - 36px));
    margin: 36px auto 65px;
}

.ip-heading {
    margin-bottom: 25px;
}

.ip-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.9px;
}

.ip-heading p {
    margin: 0;
    color: var(--ip-muted);
    font-size: 14px;
    line-height: 1.6;
}

.ip-card {
    background: var(--ip-white);
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    box-shadow: var(--ip-shadow);
    padding: 24px;
}

.ip-card + .ip-card { margin-top: 18px; }

.ip-card-title {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 850;
}

.ip-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--ip-orange);
    border-radius: 9px;
    background: var(--ip-orange);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: .18s ease;
}

.ip-btn:hover {
    background: var(--ip-orange-dark);
    border-color: var(--ip-orange-dark);
    transform: translateY(-1px);
}

.ip-btn-secondary {
    background: #fff;
    border-color: var(--ip-line);
    color: #424956 !important;
}

.ip-btn-secondary:hover {
    background: #f7f8fa;
    border-color: #cfd3da;
}

.ip-btn-green {
    background: var(--ip-green);
    border-color: var(--ip-green);
}

.ip-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 17px;
    font-size: 13px;
    line-height: 1.55;
}

.ip-alert-success { background: #edf9f1; color: #216d3b; border: 1px solid #cdebd6; }
.ip-alert-error { background: #fff1f1; color: #9e3030; border: 1px solid #f0cece; }
.ip-alert-notice { background: #fff6f0; color: #815034; border: 1px solid #f3d9c8; }

.ip-muted { color: var(--ip-muted); font-size: 12px; line-height: 1.6; }

.ip-input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #dfe2e7;
    border-radius: 9px;
    background: #fff;
    color: var(--ip-ink);
    font: inherit;
    font-size: 14px;
}

.ip-input:focus {
    outline: 0;
    border-color: var(--ip-orange);
    box-shadow: 0 0 0 3px rgba(237,75,44,.10);
}

.ip-field { margin-bottom: 17px; }
.ip-field label {
    display: block;
    margin-bottom: 7px;
    color: #343944;
    font-size: 12px;
    font-weight: 800;
}

.ip-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.ip-full { grid-column: 1/-1; }

.ip-price {
    color: var(--ip-orange);
    font-weight: 900;
    white-space: nowrap;
}

.ip-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ip-line);
    font-size: 13px;
}

.ip-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    font-size: 17px;
    font-weight: 900;
}

.ip-empty {
    padding: 55px 22px;
    text-align: center;
}

.ip-empty-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: #fff1ec;
    color: var(--ip-orange);
    font-size: 30px;
}

.ip-empty h2 { margin: 0 0 9px; font-size: 19px; }
.ip-empty p { margin: 0 auto 22px; color: var(--ip-muted); font-size: 13px; }

.ip-cart-layout {
    display: grid;
    grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr);
    gap: 22px;
    align-items: start;
}

.ip-cart-item {
    display: grid;
    grid-template-columns: 112px minmax(0,1fr) auto;
    gap: 17px;
    align-items: center;
    padding: 19px 0;
    border-bottom: 1px solid var(--ip-line);
}

.ip-cart-item:first-child { padding-top: 0; }
.ip-cart-item:last-child { border-bottom: 0; }

.ip-product-image {
    width: 112px;
    height: 112px;
    border-radius: 11px;
    background: #f7f8fa;
    object-fit: contain;
}

.ip-product-name { font-size: 14px; font-weight: 850; line-height: 1.4; }
.ip-product-meta { margin-top: 7px; color: var(--ip-muted); font-size: 12px; line-height: 1.7; }

.ip-quantity {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.ip-quantity button {
    width: 31px;
    height: 31px;
    border: 1px solid var(--ip-line);
    border-radius: 7px;
    background: #fff;
    color: var(--ip-ink);
    cursor: pointer;
    font-size: 17px;
}

.ip-quantity input {
    width: 47px;
    height: 31px;
    border: 1px solid var(--ip-line);
    border-radius: 7px;
    text-align: center;
}

.ip-remove {
    border: 0;
    background: transparent;
    color: #c23e3e;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
    padding: 8px 0;
}

.ip-cart-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ip-summary-card { position: sticky; top: 20px; }
.ip-summary-card .ip-btn { width: 100%; margin-top: 16px; }

.ip-account-layout {
    display: grid;
    grid-template-columns: 245px minmax(0,1fr);
    gap: 22px;
    align-items: start;
}

.ip-account-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ip-account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border-radius: 9px;
    color: #4b515d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.ip-account-menu a:hover,
.ip-account-menu a.active {
    background: #fff1ec;
    color: var(--ip-orange);
}

.ip-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 19px;
    margin-bottom: 17px;
    border-bottom: 1px solid var(--ip-line);
}

.ip-avatar {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fff0eb;
    color: var(--ip-orange);
    font-size: 25px;
    font-weight: 900;
    object-fit: cover;
}

.ip-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ip-stat-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ip-stat {
    padding: 17px;
    border: 1px solid var(--ip-line);
    border-radius: 11px;
    background: #fff;
}

.ip-stat strong { display: block; font-size: 23px; font-weight: 900; }
.ip-stat span { color: var(--ip-muted); font-size: 11px; }

.ip-order {
    border: 1px solid var(--ip-line);
    border-radius: 12px;
    margin-bottom: 13px;
    overflow: hidden;
}

.ip-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding: 16px;
    background: #fafbfc;
}

.ip-order-number { font-size: 13px; font-weight: 900; }
.ip-order-date { margin-top: 4px; color: var(--ip-muted); font-size: 11px; }

.ip-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 30px;
    background: #f0f1f4;
    color: #555c68;
    font-size: 10px;
    font-weight: 850;
}

.ip-status-green { background: #eaf7ee; color: #237343; }
.ip-status-orange { background: #fff1e7; color: #a65b27; }
.ip-status-red { background: #fff0f0; color: #a43d3d; }

.ip-order-body { padding: 15px 16px; }
.ip-order-product {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 12px;
}

.ip-order-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--ip-line);
    font-size: 13px;
    font-weight: 900;
}

.ip-order details { border-top: 1px solid var(--ip-line); }
.ip-order summary {
    padding: 13px 16px;
    color: var(--ip-orange);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ip-order-details { padding: 0 16px 17px; font-size: 12px; line-height: 1.7; color: #59606c; }

.ip-profile-box {
    padding: 17px;
    border: 1px solid #f1d4ca;
    background: #fff8f5;
    border-radius: 11px;
    margin-bottom: 19px;
}

.ip-profile-box.complete { border-color: #d5eadb; background: #f5fbf6; }
.ip-profile-box strong { display: block; margin-bottom: 7px; font-size: 14px; }
.ip-profile-box p { margin: 0 0 12px; color: var(--ip-muted); font-size: 12px; line-height: 1.6; }

.ip-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(300px,.8fr);
    gap: 22px;
    align-items: start;
}

.ip-checkout-aside { position: sticky; top: 20px; }
.ip-checkout-step {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 19px;
}

.ip-step-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff0eb;
    color: var(--ip-orange);
    font-size: 12px;
    font-weight: 900;
}

.ip-checkout-step strong { font-size: 15px; }
.ip-checkout-step small { display: block; margin-top: 3px; color: var(--ip-muted); font-size: 11px; }

@media(max-width:900px) {
    .ip-account-layout { grid-template-columns: 1fr; }
    .ip-account-menu { flex-direction: row; flex-wrap: wrap; }
    .ip-cart-layout, .ip-checkout-layout { grid-template-columns: 1fr; }
    .ip-summary-card, .ip-checkout-aside { position: static; }
}

@media(max-width:600px) {
    .ip-header { padding: 12px 15px; min-height: 65px; }
    .ip-brand { font-size: 19px; }
    .ip-header-link { padding: 8px; font-size: 11px; }
    .ip-wrap { width: calc(100% - 24px); margin: 23px auto 45px; }
    .ip-card { padding: 17px; }
    .ip-grid { grid-template-columns: 1fr; }
    .ip-full { grid-column: auto; }
    .ip-cart-item { grid-template-columns: 78px minmax(0,1fr); gap: 12px; }
    .ip-product-image { width: 78px; height: 82px; }
    .ip-cart-item-total { grid-column: 2; }
    .ip-cart-actions { flex-direction: column-reverse; }
    .ip-cart-actions .ip-btn { width: 100%; }
    .ip-stat-grid { gap: 7px; }
    .ip-stat { padding: 12px 9px; }
    .ip-stat strong { font-size: 19px; }
    .ip-stat span { font-size: 10px; }
    .ip-order-head { align-items: flex-start; }
}

/* =========================================================
   IP REFINAMENTO VISUAL V2
   ========================================================= */

.ip-wrap {
    width: min(1280px, calc(100% - 48px));
    margin-top: 42px;
}

.ip-heading {
    margin-bottom: 29px;
}

.ip-heading h1 {
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -1.1px;
}

.ip-heading p {
    font-size: 14px;
}

.ip-card {
    padding: 27px;
    border-radius: 16px;
    box-shadow: 0 9px 30px rgba(20,25,35,.045);
}

.ip-card-title {
    font-size: 18px;
    margin-bottom: 21px;
}

.ip-account-layout {
    grid-template-columns: 255px minmax(0,1fr);
    gap: 25px;
}

.ip-account-layout > aside {
    position: sticky;
    top: 22px;
}

.ip-account-menu a {
    min-height: 43px;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 9px;
}

.ip-user {
    gap: 14px;
}

.ip-user strong {
    font-size: 14px;
}

.ip-avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
}

.ip-stat-grid {
    gap: 15px;
}

.ip-stat {
    padding: 19px;
    border-radius: 13px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ip-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20,25,35,.06);
}

.ip-stat strong {
    font-size: 27px;
    color: var(--ip-ink);
}

.ip-stat span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
}

.ip-order {
    border-radius: 13px;
    margin-bottom: 16px;
}

.ip-order-head {
    padding: 18px 19px;
}

.ip-order-number {
    font-size: 14px;
    letter-spacing: .1px;
}

.ip-order-date {
    font-size: 11px;
    margin-top: 6px;
}

.ip-status {
    padding: 7px 12px;
    font-size: 10px;
    letter-spacing: .15px;
}

.ip-order-body {
    padding: 17px 19px;
}

.ip-order-product-v2 {
    align-items: center;
    padding: 11px 0;
}

.ip-order-product-info {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.ip-order-thumb {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--ip-line);
    background: #fff;
}

.ip-order-thumb-empty {
    display: grid;
    place-items: center;
    background: #fff1ec;
    color: var(--ip-orange);
    font-size: 15px;
    font-weight: 950;
}

.ip-order-product-description {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.ip-order-product-description strong {
    font-size: 12px;
    line-height: 1.45;
}

.ip-order-product-description .ip-muted {
    font-size: 11px;
}

.ip-order-item-price {
    white-space: nowrap;
    font-size: 12px;
}

.ip-order-total {
    padding-top: 15px;
    font-size: 13px;
}

.ip-order details summary {
    padding: 15px 19px;
    font-size: 12px;
}

.ip-order-details {
    padding: 4px 19px 19px;
    line-height: 1.85;
    font-size: 12px;
}

.ip-empty {
    padding: 65px 25px;
}

.ip-empty-icon {
    width: 76px;
    height: 76px;
    font-size: 32px;
}

.ip-cart-layout {
    gap: 25px;
}

.ip-cart-item {
    padding: 21px 0;
    grid-template-columns: 120px minmax(0,1fr) auto;
}

.ip-product-image {
    width: 120px;
    height: 120px;
}

.ip-product-name {
    font-size: 15px;
}

.ip-quantity {
    margin-top: 14px;
}

.ip-quantity input {
    font-size: 13px;
}

.ip-summary-card {
    border-top: 3px solid var(--ip-orange);
}

.ip-summary-card .ip-summary-total {
    font-size: 18px;
}

.ip-checkout-layout {
    gap: 25px;
}

.ip-checkout-layout .ip-card {
    margin-bottom: 18px;
}

.ip-checkout-step {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ip-line);
}

.ip-checkout-step strong {
    font-size: 16px;
}

.ip-checkout-step small {
    font-size: 11px;
}

.ip-checkout-aside {
    border-top: 3px solid var(--ip-orange);
}

.ip-field label {
    font-size: 12px;
    margin-bottom: 8px;
}

.ip-input {
    min-height: 48px;
    border-radius: 9px;
}

.ip-btn {
    min-height: 46px;
    border-radius: 9px;
    font-size: 12px;
}

@media(max-width:900px) {
    .ip-wrap {
        width: min(100% - 32px, 720px);
        margin-top: 27px;
    }

    .ip-account-layout {
        grid-template-columns: 1fr;
    }

    .ip-account-layout > aside {
        position: static;
    }

    .ip-account-menu {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media(max-width:600px) {
    .ip-wrap {
        width: calc(100% - 22px);
        margin-top: 20px;
    }

    .ip-card {
        padding: 17px;
    }

    .ip-stat-grid {
        gap: 7px;
    }

    .ip-stat {
        padding: 12px 9px;
    }

    .ip-stat strong {
        font-size: 20px;
    }

    .ip-order-head {
        padding: 14px;
    }

    .ip-order-body {
        padding: 13px;
    }

    .ip-order-thumb {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .ip-order-product-info {
        gap: 9px;
    }

    .ip-order-product-description strong {
        font-size: 11px;
    }

    .ip-order-item-price {
        font-size: 11px;
    }

    .ip-order-details {
        padding-left: 14px;
        padding-right: 14px;
        overflow-wrap: anywhere;
    }

    .ip-cart-item {
        grid-template-columns: 76px minmax(0,1fr);
        gap: 11px;
    }

    .ip-product-image {
        width: 76px;
        height: 82px;
    }

    .ip-cart-item-total {
        grid-column: 2;
    }

    .ip-account-menu a {
        padding: 10px;
        font-size: 11px;
    }
}

/* IP FIX MINIATURAS V3 */
.ip-order-product-v2 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    min-width: 0 !important;
}

.ip-order-product-v2 .ip-order-product-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.ip-order-product-v2 img.ip-order-thumb,
.ip-order-product-v2 .ip-order-thumb {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    flex: 0 0 64px !important;
    object-fit: contain !important;
    border: 1px solid #e9ebef !important;
    border-radius: 9px !important;
    background: #fff !important;
}

.ip-order-product-v2 .ip-order-product-description {
    min-width: 0 !important;
    overflow-wrap: anywhere;
}

.ip-order-product-v2 .ip-order-item-price {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

@media(max-width:600px) {
    .ip-order-product-v2 img.ip-order-thumb,
    .ip-order-product-v2 .ip-order-thumb {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        flex-basis: 52px !important;
    }
}
