@media (max-width: 1200px) {
    .agive-auth-page {
        max-width: 1000px;
    }
    
    .agive-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agive-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .agive-menu-toggle {
        display: inline-flex;
    }

    .agive-sidebar {
        position: fixed;
        left: -300px;
        width: 280px;
        transition: left 0.25s ease;
        height: 100vh;
    }

    .agive-sidebar.is-open {
        left: 0;
    }

    .agive-main {
        width: 100%;
    }

    .agive-auth-layout {
        min-height: auto;
        padding: 18px;
        align-items: flex-start;
    }

    .agive-auth-page {
        max-width: 100%;
        gap: 16px;
    }

    .agive-auth__wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .agive-auth__brand,
    .agive-auth__card {
        padding: 22px;
        border-radius: 24px;
        width: 100%;
    }

    .agive-auth__brand h2 {
        font-size: 28px;
        line-height: 1.15;
    }

    .agive-auth__brand p {
        font-size: 15px;
        line-height: 1.6;
        max-width: 100%;
    }

    .agive-auth__brand-logo img {
        max-height: 44px;
    }

    .agive-auth-page .agive-footer__inner {
        max-width: 100%;
        margin-left: 0;
        width: 100%;
        border-radius: 24px;
        padding: 20px 22px;
        box-sizing: border-box;
    }
    
    .agive-form-grid,
    .agive-form-grid--address {
        grid-template-columns: 1fr;
    }
    
    .agive-grid--2,
    .agive-grid--3 {
        grid-template-columns: 1fr;
    }

    .agive-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .agive-topbar {
        margin: 12px 12px 0;
        padding: 16px;
    }

    .agive-content,
    .agive-footer {
        padding: 12px;
    }

    .agive-page-title {
        font-size: 20px;
    }

    .agive-page-subtitle {
        font-size: 13px;
    }

    .agive-topbar__right {
        display: none;
    }

    .agive-auth-layout {
        padding: 14px;
    }

    .agive-auth__brand,
    .agive-auth__card,
    .agive-auth-page .agive-footer__inner {
        padding: 20px;
        border-radius: 22px;
    }

    .agive-auth__brand h2 {
        font-size: 24px;
    }

    .agive-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .agive-form-actions .agive-btn,
    .agive-auth__footer .agive-btn {
        width: 100%;
    }
    
    .agive-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .agive-stats-grid {
        grid-template-columns: 1fr;
    }

    .agive-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .agive-hero h2 {
        font-size: 28px;
    }

    .agive-card,
    .agive-stat-card {
        padding: 18px;
    }

    .agive-hero__actions,
    .agive-support-box__actions {
        width: 100%;
    }

    .agive-hero__actions .agive-btn,
    .agive-support-box__actions .agive-btn {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .agive-page-header {
        align-items: flex-start;
    }

    .agive-grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .agive-page-header h2 {
        font-size: 24px;
    }

    .agive-empty-state {
        padding: 32px 18px;
        border-radius: 20px;
    }

    .agive-table thead th,
    .agive-table td {
        padding: 14px 12px;
    }
}

@media (max-width: 1200px) {
    .agive-public-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .agive-public-hero {
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .agive-public-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .agive-public-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .agive-public-hero__content h1 {
        font-size: 30px;
    }

    .agive-public-grid--3 {
        grid-template-columns: 1fr;
    }

    .agive-public-cta {
        padding: 22px;
        border-radius: 22px;
    }

    .agive-public-hero__actions,
    .agive-public-cta__actions {
        width: 100%;
    }

    .agive-public-hero__actions .agive-btn,
    .agive-public-cta__actions .agive-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .agive-department-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .agive-tabs-nav {
        flex-direction: column;
    }

    .agive-tabs-nav li a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .agive-auth-page .agive-footer__inner {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .agive-footer {
        padding: 0 12px 12px;
    }

    .agive-footer--auth {
        padding: 0;
    }

    .agive-footer__inner {
        padding: 16px 18px;
        border-radius: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .agive-footer__right {
        width: 100%;
        gap: 10px 14px;
    }
}

@media (max-width: 991px) {
    .agive-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .agive-pagination__left,
    .agive-pagination__right,
    .agive-pagination__center {
        width: 100%;
    }

    .agive-pagination__left .agive-btn,
    .agive-pagination__right .agive-btn {
        width: 100%;
    }

    .agive-pagination__center {
        text-align: center;
    }
}

/* ===== Store / Products ===== */

.agive-store-page {
    width: 100%;
}

.agive-store-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.agive-store-sidebar {
    position: sticky;
    top: 24px;
}

.agive-store-content {
    min-width: 0;
}

.agive-store-hero {
    background: #fff;
    border: 1px solid var(--agive-border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--agive-shadow-soft);
    margin-bottom: 22px;
}

.agive-store-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--agive-surface-soft);
    color: var(--agive-primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.agive-store-title {
    margin: 0 0 10px;
    color: var(--agive-primary);
    font-size: 40px;
    line-height: 1.05;
    font-weight: 800;
}

.agive-store-subtitle {
    margin: 0;
    color: var(--agive-text-soft);
    font-size: 17px;
    max-width: 760px;
}

.agive-store-mobile-categories {
    display: none;
    margin-bottom: 18px;
}

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

.agive-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--agive-border);
    border-radius: 24px;
    box-shadow: var(--agive-shadow-soft);
    padding: 24px;
}

.agive-product-card__title {
    margin: 0;
    color: var(--agive-primary);
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
}

.agive-product-card__stock {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(46, 155, 98, 0.10);
    color: var(--agive-success);
    font-size: 12px;
    font-weight: 700;
}

.agive-product-card__body {
    margin-top: 18px;
}

.agive-product-card__description {
    margin: 0 0 16px;
    color: var(--agive-text-soft);
    line-height: 1.7;
}

.agive-product-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.agive-product-card__features li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--agive-border);
    color: var(--agive-text-soft);
    line-height: 1.5;
}

.agive-product-card__features li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.agive-product-card__features .feature-value {
    color: var(--agive-primary);
    font-weight: 700;
    white-space: nowrap;
}

.agive-product-card__footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--agive-border);
}

.agive-product-card__from,
.agive-product-card__bundle,
.agive-product-card__cycle,
.agive-product-card__setup {
    color: var(--agive-text-soft);
}

.agive-product-card__from,
.agive-product-card__bundle {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.agive-product-card__price {
    color: var(--agive-primary);
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 8px;
}

.agive-product-card__cycle {
    font-size: 14px;
    margin-bottom: 4px;
}

.agive-product-card__setup {
    font-size: 13px;
}

.agive-product-card__button {
    width: 100%;
    margin-top: 18px;
    gap: 10px;
}

/* Sidebar do standard_cart */
#order-standard_cart .cart-sidebar.sidebar,
#order-standard_cart .sidebar {
    width: 100%;
    float: none;
}

#order-standard_cart .cart-body {
    width: 100%;
    float: none;
}

#order-standard_cart .panel-sidebar,
#order-standard_cart .sidebar-categories,
#order-standard_cart .list-group {
    background: #fff;
    border: 1px solid var(--agive-border);
    border-radius: 22px;
    box-shadow: var(--agive-shadow-soft);
    overflow: hidden;
}

#order-standard_cart .panel-sidebar .panel-heading,
#order-standard_cart .sidebar-categories .panel-heading {
    background: transparent;
    color: var(--agive-primary);
    border-bottom: 1px solid var(--agive-border);
    font-weight: 800;
}

#order-standard_cart .list-group-item {
    border-left: 0;
    border-right: 0;
}

#order-standard_cart .list-group-item:first-child {
    border-top: 0;
}

#order-standard_cart .list-group-item:last-child {
    border-bottom: 0;
}

#order-standard_cart .list-group-item.active,
#order-standard_cart .list-group-item.active:hover,
#order-standard_cart .list-group-item.active:focus {
    background: rgba(33, 62, 96, 0.08);
    color: var(--agive-primary);
    border-color: var(--agive-border);
    font-weight: 700;
}

/* Esconde o header antigo do standard cart */
#order-standard_cart .header-lined {
    display: none;
}

@media (max-width: 991px) {
    .agive-store-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .agive-store-sidebar {
        display: block;
        width: 100%;
        position: static;
        top: auto;
    }

    .agive-store-content {
        width: 100%;
        min-width: 0;
    }

    .agive-store-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .agive-store-title {
        font-size: 28px;
        line-height: 1.1;
        word-break: break-word;
    }

    .agive-store-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }

    .agive-store-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .agive-product-card {
        padding: 20px;
        border-radius: 22px;
    }

    .agive-product-card__title {
        font-size: 24px;
        line-height: 1.15;
    }

    .agive-product-card__price {
        font-size: 30px;
    }

    .agive-store-sidebar-panel {
        width: 100%;
    }

    .agive-store-sidebar-panel__header {
        cursor: pointer;
    }

    .agive-store-sidebar-panel__body,
    .agive-store-sidebar-panel__list,
    .agive-store-sidebar-panel__footer {
        display: none;
    }

    .agive-store-sidebar-panel.is-open .agive-store-sidebar-panel__body,
    .agive-store-sidebar-panel.is-open .agive-store-sidebar-panel__list,
    .agive-store-sidebar-panel.is-open .agive-store-sidebar-panel__footer {
        display: block;
    }

    .agive-store-sidebar-panel__toggle {
        transition: transform 0.2s ease;
    }

    .agive-store-sidebar-panel.is-open .agive-store-sidebar-panel__toggle {
        transform: rotate(180deg);
    }
}

@media (max-width: 991px) {
    .agive-configure-page .secondary-cart-body {
        grid-template-columns: 1fr;
    }

    .agive-configure-page .secondary-cart-sidebar {
        position: static;
    }
}

@media (max-width: 1199px) {
    #order-standard_cart .secondary-cart-body {
        grid-template-columns: 1fr !important;
    }

    #order-standard_cart .secondary-cart-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 767px) {
    #order-standard_cart .product-title {
        font-size: 28px;
    }

    #order-standard_cart .product-info,
    #order-standard_cart .field-container,
    #order-standard_cart .order-summary {
        border-radius: 22px;
    }
}

@media (max-width: 768px) {
    .agv-cart-layout {
        flex-direction: column;
    }

    .item-price {
        text-align: left;
        margin-top: 10px;
    }
}