/* Layout GRAFYA — referência visual enviada pelo cliente */
:root {
    --grafya-blue: #071f4d;
    --grafya-blue-2: #0a2f6d;
    --grafya-cyan: #11a9f5;
    --grafya-pink: #f20a83;
    --grafya-yellow: #ffd11a;
    --grafya-green: #13b861;
    --grafya-bg: #f6f7fb;
    --grafya-card: #ffffff;
    --grafya-border: #dde6f2;
    --grafya-text: #10213d;
    --grafya-muted: #64748b;
    --grafya-shadow: 0 8px 20px rgba(9, 28, 68, .07);
    --grafya-shadow-strong: 0 16px 38px rgba(9, 28, 68, .13);
}

html,
body {
    background: var(--grafya-bg) !important;
}

.grafya-reference-site {
    color: var(--grafya-text);
    overflow-x: hidden;
}

.grafya-container {
    max-width: 1180px;
}

.grafya-header {
    background: #fff;
    border-bottom: 1px solid #e7edf6;
    box-shadow: 0 4px 18px rgba(7, 31, 77, .04);
    z-index: 1020;
}

.grafya-topbar {
    background: var(--grafya-blue);
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    padding: .42rem 0;
}

.grafya-topbar i {
    color: #ff8a00;
}

.grafya-mainbar {
    background: #fff;
    padding: 1rem 0 .85rem;
}

.grafya-mainbar-grid {
    display: grid;
    grid-template-columns: 255px minmax(260px, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.grafya-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    min-width: 0;
}

.grafya-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.grafya-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grafya-brand-text {
    display: grid;
    line-height: 1.05;
    min-width: 0;
}

.grafya-brand-text strong {
    color: var(--grafya-blue);
    font-size: 1.28rem;
    font-weight: 950;
    letter-spacing: -.03em;
    white-space: nowrap;
}

.grafya-brand-text small {
    color: #66768e;
    font-weight: 500;
    white-space: nowrap;
}

.grafya-search {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: .65rem;
    position: relative;
    margin: 0;
}

.grafya-search .smart-search-field {
    min-width: 0;
    position: relative;
}

.grafya-search .form-control {
    height: 48px;
    border-radius: 999px !important;
    background: #fff;
    border: 1px solid var(--grafya-border) !important;
    box-shadow: none !important;
    padding: .75rem 2.75rem .75rem 1.35rem !important;
    color: var(--grafya-text);
}

.grafya-search .form-control:focus {
    border-color: rgba(17, 169, 245, .65) !important;
    box-shadow: 0 0 0 .22rem rgba(17, 169, 245, .12) !important;
}

.grafya-search-btn {
    height: 48px;
    width: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--grafya-blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.grafya-search-btn:hover {
    background: #051838;
}

.smart-search-clear {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--grafya-blue);
    display: none;
    place-items: center;
    z-index: 3;
}

.smart-search-clear.is-visible {
    display: grid;
}

.smart-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 58px;
    z-index: 3000;
    background: #fff;
    border: 1px solid var(--grafya-border);
    border-radius: 16px;
    box-shadow: var(--grafya-shadow-strong);
    padding: .65rem;
    display: none;
}

.smart-search-results.is-visible {
    display: block;
}

.smart-search-status {
    text-align: center;
    padding: .9rem;
    color: var(--grafya-muted);
    font-weight: 700;
}

.smart-search-list {
    display: grid;
    gap: .4rem;
    max-height: 360px;
    overflow-y: auto;
}

.smart-search-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .55rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--grafya-text);
}

.smart-search-item:hover {
    background: #f5f8fd;
}

.smart-search-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #edf4ff;
}

.smart-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smart-search-info {
    min-width: 0;
}

.smart-search-info small {
    display: block;
    color: var(--grafya-pink);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.smart-search-info strong,
.smart-search-info span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-search-info strong {
    font-weight: 900;
    color: var(--grafya-blue);
}

.smart-search-info span {
    color: var(--grafya-muted);
    font-size: .82rem;
}

.smart-search-price {
    color: var(--grafya-blue);
    font-weight: 900;
    white-space: nowrap;
}

.smart-search-footer {
    margin-top: .5rem;
    border-top: 1px solid var(--grafya-border);
    padding-top: .55rem;
}

.smart-search-footer a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    color: var(--grafya-blue);
    background: #f6f9ff;
    border-radius: 12px;
    padding: .75rem;
    font-weight: 900;
}

.grafya-header-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.grafya-whatsapp-btn,
.grafya-cart-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    border-radius: 9px;
    padding: .68rem .95rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.grafya-whatsapp-btn {
    background: var(--grafya-green);
    color: #fff;
}

.grafya-whatsapp-btn:hover {
    color: #fff;
    background: #0ca554;
}

.grafya-cart-btn {
    color: #1450a8;
    background: #fff;
    border: 1px solid #cbd8ea;
    position: relative;
}

.grafya-cart-btn:hover {
    color: var(--grafya-blue);
    background: #f8fbff;
}

.grafya-cart-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    background: #e92857;
    color: #fff;
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    padding: 0 .35rem;
    display: grid;
    place-items: center;
    font-size: .76rem;
    font-weight: 900;
}

.grafya-mobile-menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #cbd8ea;
    border-radius: 10px;
    background: #fff;
    color: var(--grafya-blue);
}

.grafya-nav {
    background: #fff;
    border-top: 1px solid #edf1f7;
    padding: .82rem 0 1rem;
}

.grafya-menu {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
}

.grafya-menu-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.grafya-all-categories {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #fff;
    background: var(--grafya-blue);
    border: 0;
    border-radius: 9px;
    padding: .68rem 1rem;
    font-weight: 850;
    box-shadow: none;
}

.grafya-quick-menu {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    min-width: 0;
}

.grafya-quick-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .68rem 1rem;
    border: 1px solid #dce4ef;
    background: #fff;
    border-radius: 9px;
    color: #1d2a41;
    text-decoration: none;
    font-weight: 800;
    font-size: .93rem;
}

.grafya-quick-menu a:hover {
    color: var(--grafya-blue);
    background: #f8fbff;
    border-color: #cbd8ea;
}

.catalog-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(900px, calc(100vw - 2rem));
    display: grid;
    grid-template-columns: 255px 1fr;
    background: #fff;
    border: 1px solid var(--grafya-border);
    border-radius: 18px;
    box-shadow: 0 24px 58px rgba(7, 31, 77, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .18s ease;
    overflow: hidden;
    z-index: 2500;
}

.catalog-menu-wrap:hover .catalog-panel,
.catalog-menu-wrap.is-open .catalog-panel,
.catalog-menu-wrap:focus-within .catalog-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.catalog-sidebar {
    background: #f8fbff;
    border-right: 1px solid var(--grafya-border);
    padding: .75rem;
    max-height: 66vh;
    overflow-y: auto;
}

.catalog-category {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 12px;
    padding: .72rem .8rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--grafya-text);
    font-weight: 800;
}

.catalog-category:hover,
.catalog-category.is-active {
    background: #fff;
    color: var(--grafya-blue);
    box-shadow: 0 8px 20px rgba(7, 31, 77, .08);
}

.catalog-content {
    padding: 1.2rem;
    max-height: 66vh;
    overflow-y: auto;
}

.catalog-content-panel {
    display: none;
}

.catalog-content-panel.is-active {
    display: block;
}

.catalog-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.catalog-panel-heading span {
    color: var(--grafya-pink);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 900;
}

.catalog-panel-heading h3 {
    color: var(--grafya-blue);
    font-weight: 950;
    margin: .15rem 0 0;
}

.catalog-options-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.catalog-option-card {
    border: 1px solid var(--grafya-border);
    border-radius: 14px;
    padding: .9rem;
}

.catalog-option-title {
    display: block;
    color: var(--grafya-blue);
    font-weight: 900;
    margin-bottom: .65rem;
    text-decoration: none;
}

.catalog-size-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.catalog-size-list a {
    border: 1px solid var(--grafya-border);
    border-radius: 999px;
    padding: .34rem .55rem;
    text-decoration: none;
    color: var(--grafya-text);
    font-size: .82rem;
    font-weight: 750;
}

.grafya-main-content {
    background: var(--grafya-bg);
}

.grafya-home-hero {
    padding: .95rem 0 1.1rem;
}

.grafya-hero-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(7, 31, 77, .09);
    background: var(--grafya-blue);
}

.grafya-hero-image {
    width: 100%;
    display: block;
    aspect-ratio: 1180 / 390;
    object-fit: cover;
}

.grafya-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: .45rem;
}

.grafya-hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.58);
}

.grafya-hero-dots span:first-child {
    background: #fff;
}

.grafya-home-section {
    padding: .7rem 0;
}

.grafya-section-heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.grafya-section-heading i {
    color: var(--grafya-blue);
    font-size: 1rem;
}

.grafya-section-heading h2 {
    margin: 0;
    color: #12233f;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -.02em;
}

.grafya-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .95rem;
}

.grafya-category-card {
    min-height: 150px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: .75rem;
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--grafya-shadow);
    text-decoration: none;
    transition: .18s ease;
    overflow: hidden;
}

.grafya-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--grafya-shadow-strong);
}

.grafya-category-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.grafya-category-text h3 {
    margin: 0 0 .42rem;
    color: #14243f;
    font-size: 1.03rem;
    font-weight: 950;
}

.grafya-category-text p {
    margin: 0 0 .7rem;
    color: #607086;
    font-size: .84rem;
    line-height: 1.35;
}

.grafya-category-text span {
    margin-top: auto;
    color: #0d5fc6;
    font-size: .82rem;
    font-weight: 900;
}

.grafya-category-image {
    width: 95px;
    min-width: 95px;
    display: grid;
    place-items: center;
}

.grafya-category-image img {
    max-width: 100%;
    max-height: 104px;
    object-fit: contain;
}

.grafya-offers-section {
    padding-bottom: 1.5rem;
}

.grafya-offers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.grafya-offer-card {
    position: relative;
    min-height: 170px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--grafya-blue);
    box-shadow: 0 12px 28px rgba(7, 31, 77, .11);
    text-decoration: none;
    color: #fff;
}

.grafya-offer-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grafya-offer-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(7,31,77,.82) 0%, rgba(7,31,77,.45) 45%, rgba(7,31,77,.08) 100%);
}

.grafya-offer-content {
    position: relative;
    z-index: 1;
    width: 56%;
    padding: 1.25rem 1.35rem;
}

.grafya-offer-content h3 {
    margin: 0 0 .5rem;
    font-size: 1.35rem;
    font-weight: 950;
}

.grafya-offer-content p {
    margin: 0;
    font-size: .86rem;
    color: rgba(255,255,255,.88);
}

.grafya-offer-content strong {
    display: block;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
    margin-bottom: 1rem;
}

.grafya-offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--grafya-yellow);
    color: #17213a;
    border-radius: 9px;
    padding: .55rem .9rem;
    font-size: .84rem;
    font-weight: 900;
}

.grafya-discount-badge {
    position: absolute;
    right: -3.9rem;
    top: .25rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--grafya-yellow);
    color: #17213a;
    display: grid;
    place-items: center;
    transform: rotate(-12deg);
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(0,0,0,.13);
}

.grafya-offcanvas .grafya-search {
    grid-template-columns: 1fr 48px;
}

.grafya-offcanvas .smart-search-results {
    position: fixed;
    left: .75rem;
    right: .75rem;
    top: 134px;
}

@media (max-width: 1199.98px) {
    .grafya-mainbar-grid {
        grid-template-columns: 235px minmax(230px, 1fr) auto;
        gap: 1rem;
    }

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

@media (max-width: 991.98px) {
    .grafya-mainbar-grid {
        grid-template-columns: 1fr auto;
    }

    .grafya-mainbar .grafya-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .grafya-header-actions .grafya-whatsapp-btn,
    .grafya-header-actions .grafya-cart-btn {
        display: none;
    }

    .grafya-brand-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .grafya-hero-image {
        aspect-ratio: 16 / 7.5;
    }

    .grafya-offers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .grafya-topbar .grafya-container {
        justify-content: center !important;
    }

    .grafya-topbar {
        font-size: .78rem;
    }

    .grafya-brand-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .grafya-brand-text strong {
        font-size: 1.02rem;
    }

    .grafya-brand-text small {
        font-size: .78rem;
    }

    .grafya-home-hero {
        padding-top: .75rem;
    }

    .grafya-hero-card {
        border-radius: 16px;
    }

    .grafya-hero-image {
        aspect-ratio: 16 / 8.6;
    }

    .grafya-category-grid {
        grid-template-columns: 1fr;
    }

    .grafya-category-card {
        min-height: 132px;
    }

    .grafya-offer-content {
        width: 68%;
        padding: 1rem;
    }

    .grafya-offer-content h3 {
        font-size: 1.1rem;
    }

    .grafya-offer-content strong {
        font-size: 1.55rem;
    }

    .grafya-discount-badge {
        right: -3rem;
        width: 50px;
        height: 50px;
        font-size: .85rem;
    }

    .smart-search-item {
        grid-template-columns: 52px 1fr;
    }

    .smart-search-price {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 480px) {
    .grafya-hero-image {
        aspect-ratio: 4 / 2.8;
    }

    .grafya-offer-content {
        width: 78%;
    }
}


/* Últimos produtos adicionados */
.grafya-latest-products-section {
    padding: .8rem 0 2.2rem;
}

.grafya-latest-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.grafya-latest-product-card {
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--grafya-shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}

.grafya-latest-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--grafya-shadow-strong);
}

.grafya-latest-product-image {
    display: block;
    background: linear-gradient(135deg, #eef6ff, #fff6fb);
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.grafya-latest-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.grafya-latest-product-card:hover .grafya-latest-product-image img {
    transform: scale(1.04);
}

.grafya-latest-product-body {
    padding: .95rem;
}

.grafya-latest-product-category {
    display: block;
    color: var(--grafya-pink);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}

.grafya-latest-product-body h3 {
    margin: 0 0 .45rem;
    font-size: 1.02rem;
    font-weight: 950;
    line-height: 1.18;
}

.grafya-latest-product-body h3 a {
    color: #14243f;
    text-decoration: none;
}

.grafya-latest-product-body h3 a:hover {
    color: var(--grafya-blue);
}

.grafya-latest-product-body p {
    color: #607086;
    font-size: .84rem;
    line-height: 1.35;
    min-height: 46px;
    margin: 0 0 .75rem;
}

.grafya-latest-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

.grafya-latest-product-footer strong {
    color: var(--grafya-blue);
    font-size: .98rem;
    font-weight: 950;
}

.grafya-mini-cart-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grafya-blue);
    color: #fff;
    font-size: 1.05rem;
    transition: .16s ease;
}

.grafya-mini-cart-btn:hover {
    background: #051838;
}

.grafya-mini-cart-btn.is-loading,
.grafya-mini-cart-btn.is-added {
    width: auto;
    min-width: 42px;
    padding: 0 .7rem;
}

.grafya-products-empty {
    background: #fff;
    border: 1px dashed #cbd8ea;
    border-radius: 16px;
    padding: 1.1rem;
    color: #607086;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 700;
}

.grafya-footer-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
    background: rgba(255,255,255,.08);
}

.grafya-footer-map iframe {
    display: block;
    width: 100%;
}

@media (max-width: 991.98px) {
    .grafya-latest-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .grafya-latest-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

    .grafya-latest-product-card:nth-child(n+7) {
        display: none;
    }

    .grafya-latest-product-body {
        padding: .75rem;
    }

    .grafya-latest-product-body h3 {
        font-size: .9rem;
    }

    .grafya-latest-product-body p {
        font-size: .76rem;
        min-height: 40px;
    }

    .grafya-latest-product-footer {
        gap: .45rem;
    }

    .grafya-latest-product-footer strong {
        font-size: .84rem;
    }

    .grafya-mini-cart-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}


/* Ajustes: footer com mapa mais organizado + loading compacto nos cards */
.grafya-footer-service-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: 1rem;
}

.grafya-footer-service-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .85rem;
}

.grafya-footer-service-head h6 {
    margin-bottom: .25rem;
}

.grafya-footer-service-head p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: .88rem;
}

.grafya-footer-service-head > i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #16b85f;
    color: #fff;
    font-size: 1.25rem;
    flex: 0 0 42px;
}

.grafya-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: .75rem;
}

.grafya-footer-actions .btn {
    border-radius: 12px;
    font-weight: 800;
}

.grafya-footer-contact-line {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: rgba(255,255,255,.82);
    font-size: .92rem;
}

.grafya-footer-contact-line i {
    color: var(--grafya-yellow);
    margin-top: .15rem;
}

.grafya-footer-instagram {
    color: rgba(255,255,255,.75);
}

.grafya-footer-map-card {
    background: rgba(3, 15, 38, .3);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    padding: .65rem;
}

.grafya-footer-map-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    margin-bottom: .55rem;
}

.grafya-footer-map-title i {
    color: var(--grafya-yellow);
}

.grafya-footer-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.grafya-footer-map iframe {
    display: block;
    width: 100%;
}

.grafya-mini-cart-btn {
    overflow: hidden;
    white-space: nowrap;
}

.grafya-mini-cart-btn.is-loading,
.grafya-mini-cart-btn.is-added {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
}

.grafya-mini-cart-btn.is-added {
    background: #16a34a !important;
}

@media (max-width: 767.98px) {
    .grafya-footer-service-card {
        padding: .9rem;
    }

    .grafya-footer-actions .btn {
        flex: 1 1 145px;
    }

    .grafya-mini-cart-btn.is-loading,
    .grafya-mini-cart-btn.is-added {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
    }
}


/* Footer em 4 colunas: GRAFYA | Atalhos | Atendimento | Mapa */
.grafya-footer-compact .grafya-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr 1.25fr;
    gap: 1.35rem;
    align-items: start;
}

.grafya-footer-compact .grafya-footer-col {
    min-width: 0;
}

.grafya-footer-compact h5 {
    font-size: 1.35rem;
    font-weight: 950;
    margin-bottom: .6rem;
}

.grafya-footer-compact h6 {
    font-size: .95rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .85rem;
}

.grafya-footer-compact p {
    color: rgba(255,255,255,.76);
    margin-bottom: .9rem;
    line-height: 1.55;
}

.grafya-footer-link-list,
.grafya-footer-social-list {
    display: grid;
    gap: .55rem;
    margin: 0;
}

.grafya-footer-link-list a,
.grafya-footer-social-list a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    transition: .15s ease;
}

.grafya-footer-link-list a:hover,
.grafya-footer-social-list a:hover {
    color: #fff;
    transform: translateX(2px);
}

.grafya-footer-link-list i {
    color: var(--grafya-yellow);
    width: 18px;
}

.grafya-footer-social-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .96rem;
    flex: 0 0 30px;
}

.grafya-footer-social-icon.is-whatsapp {
    background: #16b85f;
}

.grafya-footer-social-icon.is-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.grafya-footer-social-icon.is-telegram {
    background: #229ed9;
}

.grafya-footer-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.grafya-footer-map-head h6 {
    margin-bottom: 0;
}

.grafya-footer-map-head a {
    color: var(--grafya-yellow);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
}

.grafya-footer-compact .grafya-footer-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.grafya-footer-compact .grafya-footer-map iframe {
    display: block;
    width: 100%;
}

@media (max-width: 991.98px) {
    .grafya-footer-compact .grafya-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .grafya-footer-compact .grafya-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grafya-footer-map-head {
        align-items: flex-start;
    }
}


/* PWA / modal de instalar atalho */
.install-app-modal {
    z-index: 5000;
}

.install-app-box {
    border-radius: 30px;
}

.install-app-manual {
    text-align: left;
    background: #f6f9ff;
    border: 1px solid #dbe7fb;
    border-radius: 18px;
    padding: .95rem 1rem;
    margin: 0 0 1rem;
    color: #10213d;
}

.install-app-manual strong {
    display: block;
    color: var(--grafya-blue);
    margin-bottom: .45rem;
}

.install-app-manual ol {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: .35rem;
    color: #53647c;
    font-weight: 650;
}

.install-app-actions .btn-primary {
    background: var(--grafya-blue);
    border-color: var(--grafya-blue);
}

/* Cards de produtos no estilo de vitrine/preço por pacote */
.grafya-product-pricing-grid {
    align-items: stretch;
}

.grafya-pricing-product-card {
    min-height: 100%;
    display: flex;
    border-radius: 16px;
}

.grafya-pricing-product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.grafya-pricing-product-body h3 {
    margin: 0 0 .5rem;
    font-size: .98rem;
    line-height: 1.25;
    font-weight: 950;
    color: #050b14;
}

.grafya-pricing-product-body h3 a {
    color: inherit;
    text-decoration: none;
}

.grafya-pricing-product-body h3 a:hover {
    color: var(--grafya-blue);
}

.grafya-pricing-product-description {
    color: #1d2a3f;
    font-size: .94rem;
    line-height: 1.35;
    margin: 0 0 .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.55em;
}

.grafya-pricing-product-price {
    color: #000;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
    margin: .1rem 0 .28rem;
}

.grafya-pricing-unit-price {
    color: #5a6272;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.05rem;
}

.grafya-pricing-product-meta {
    display: grid;
    gap: .28rem;
    color: #6b7280;
    font-size: .9rem;
    margin-top: auto;
    padding-top: .45rem;
}

.grafya-pricing-product-meta strong {
    color: #6b7280;
    font-weight: 850;
}

.grafya-pricing-product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding-top: .95rem;
    margin-top: .75rem;
    border-top: 1px solid #edf1f7;
}

.grafya-product-details-link {
    color: #0d5fc6;
    font-size: .86rem;
    font-weight: 900;
    text-decoration: none;
}

.grafya-product-details-link:hover {
    color: var(--grafya-blue);
}

/* Página de orçamento: quantidade como pacote/lote definido */
.grafya-quote-item {
    border-radius: 18px;
    overflow: hidden;
}

.grafya-quote-item-info h5 {
    color: #13213a;
    font-weight: 950;
    margin-bottom: .35rem;
}

.grafya-quote-item-description {
    color: #607086;
    margin-bottom: .65rem;
    line-height: 1.4;
}

.grafya-quote-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .55rem 0 .75rem;
}

.grafya-quote-item-tags span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #f5f8ff;
    border: 1px solid #dce7f6;
    color: #44546b;
    border-radius: 999px;
    padding: .42rem .72rem;
    font-size: .86rem;
    font-weight: 700;
}

.grafya-quote-item-tags i {
    color: var(--grafya-blue);
}

.grafya-quote-options {
    display: grid;
    gap: .18rem;
    padding-left: 1.05rem;
    color: #53647c;
}

.grafya-quote-item-price small {
    display: block;
    color: #7a8799;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .72rem;
}

.grafya-quote-item-price .fw-bold {
    color: var(--grafya-blue);
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .grafya-pricing-product-price {
        font-size: 1.45rem;
    }

    .grafya-pricing-product-description {
        font-size: .84rem;
    }

    .grafya-pricing-unit-price,
    .grafya-pricing-product-meta {
        font-size: .82rem;
    }

    .grafya-pricing-product-actions {
        gap: .45rem;
    }

    .grafya-quote-item .d-flex {
        flex-direction: column;
    }

    .grafya-quote-item-price {
        width: 100%;
        text-align: left !important;
        border-top: 1px solid #edf1f7;
        padding-top: .85rem;
    }
}

/* Ajuste final: preço por unidade abaixo do preço principal */
.grafya-pricing-product-price + .grafya-pricing-unit-price {
    display: block;
    margin-top: -.08rem;
}

.grafya-pricing-unit-price {
    color: #5f6877;
    font-size: .92rem;
    font-weight: 750;
    line-height: 1.1;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .grafya-pricing-unit-price {
        font-size: .78rem;
    }
}

/* Linha técnica do produto: 4X0 - 250 Unidades | CCF50 */
.grafya-pricing-product-code {
    color: #050b14;
    font-size: .92rem;
    font-weight: 950;
    line-height: 1.2;
    margin-bottom: .45rem;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.grafya-pricing-product-body h3 {
    margin-top: 0;
}

.grafya-quote-package-line {
    color: #0b2d67;
    font-size: .82rem;
    font-weight: 950;
    text-transform: uppercase;
    margin-bottom: .18rem;
}


/* Produtos compactos dentro do menu Todas as categorias */
.catalog-products-mini {
    display: grid;
    gap: .75rem;
}

.catalog-products-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #e6edf7;
}

.catalog-products-mini-head span {
    color: var(--grafya-blue);
    font-size: .86rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.catalog-products-mini-head small {
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
}

.catalog-products-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.catalog-product-mini-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    padding: .65rem;
    background: #f8fbff;
    border: 1px solid #e1eaf6;
    border-radius: 16px;
    color: #10213d;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.catalog-product-mini-card:hover {
    color: #10213d;
    transform: translateY(-1px);
    border-color: #bcd4f6;
    box-shadow: 0 10px 22px rgba(9, 28, 68, .08);
}

.catalog-product-mini-image {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef6ff, #fff6fb);
    border: 1px solid #e4ebf5;
}

.catalog-product-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-product-mini-info {
    min-width: 0;
    display: grid;
    gap: .12rem;
}

.catalog-product-mini-info small {
    color: #0d6efd;
    font-size: .68rem;
    line-height: 1.1;
    font-weight: 950;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-product-mini-info strong {
    color: #152238;
    font-size: .78rem;
    line-height: 1.18;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.85em;
}

.catalog-product-mini-price {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    flex-wrap: wrap;
    color: #071f4d;
    font-size: .78rem;
    font-weight: 950;
    margin-top: .08rem;
}

.catalog-product-mini-price em {
    color: #64748b;
    font-style: normal;
    font-size: .68rem;
    font-weight: 800;
}

@media (max-width: 1199.98px) {
    .catalog-products-mini-grid {
        grid-template-columns: 1fr;
    }
}


/* Página de detalhes do produto */
.grafya-product-detail-page {
    color: #10213d;
}

.grafya-product-breadcrumb {
    font-size: .88rem;
    font-weight: 700;
}

.grafya-product-detail-image {
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef6ff, #fff6fb);
    box-shadow: 0 18px 42px rgba(9, 28, 68, .10);
}

.grafya-product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.grafya-product-detail-info h1 {
    color: #071f4d;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.05;
    font-weight: 950;
    margin: .25rem 0 .8rem;
}

.grafya-product-detail-code {
    color: #0d6efd;
    font-size: .92rem;
    line-height: 1.2;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .35rem;
}

.grafya-product-detail-info .lead {
    color: #53647c;
    font-size: 1.02rem;
    line-height: 1.45;
    margin-bottom: 1.05rem;
}

.grafya-product-detail-price {
    display: grid;
    gap: .2rem;
    margin: 1rem 0;
}

.grafya-product-detail-price strong {
    color: #000;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: .95;
    letter-spacing: -.05em;
    font-weight: 950;
}

.grafya-product-detail-price small {
    color: #64748b;
    font-size: 1rem;
    font-weight: 800;
}

.grafya-product-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin: 1.15rem 0;
}

.grafya-product-spec-grid span {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #f8fbff;
    border: 1px solid #dfe8f5;
    border-radius: 16px;
    padding: .72rem .82rem;
    color: #475569;
    font-size: .88rem;
    font-weight: 750;
}

.grafya-product-spec-grid i {
    color: #0d6efd;
}

.grafya-product-spec-grid strong {
    color: #10213d;
}

.grafya-product-quote-form {
    border-radius: 24px;
    margin-top: 1.25rem;
}

.grafya-product-description {
    background: #fff;
    border-radius: 26px;
    padding: 1.4rem;
    box-shadow: 0 14px 32px rgba(9, 28, 68, .07);
}

.grafya-product-description h2 {
    color: #071f4d;
    font-size: 1.3rem;
    font-weight: 950;
    margin-bottom: .75rem;
}

@media (max-width: 575.98px) {
    .grafya-product-spec-grid {
        grid-template-columns: 1fr;
    }
}


/* Correção de exibição segura da página produto.php */
.grafya-product-detail-info {
    min-width: 0;
}

.grafya-product-detail-code {
    word-break: break-word;
}

.grafya-product-spec-grid span {
    min-width: 0;
    word-break: break-word;
}

.grafya-product-description div {
    color: #475569;
    line-height: 1.65;
}


/* Correção definitiva: card de produto com imagem sempre acima das informações */
.grafya-product-pricing-grid .grafya-pricing-product-card,
.grafya-latest-products-grid .grafya-pricing-product-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100%;
}

.grafya-pricing-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef6ff, #fff6fb);
    overflow: hidden;
    flex: 0 0 auto;
}

.grafya-pricing-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .22s ease;
}

.grafya-pricing-product-card:hover .grafya-pricing-product-image img {
    transform: scale(1.04);
}

.grafya-pricing-product-card .grafya-pricing-product-body {
    width: 100%;
    flex: 1 1 auto;
}

.grafya-pricing-product-card .grafya-pricing-product-body h3 {
    display: none;
}

.grafya-pricing-product-description {
    font-weight: 500;
}

.grafya-pricing-product-description a {
    color: inherit;
    text-decoration: none;
}

.grafya-pricing-product-description a:hover {
    color: var(--grafya-blue);
}


/* Produto: exibir só campos preenchidos no banco */
.grafya-product-spec-grid:empty {
    display: none;
}

.grafya-product-detail-info .lead {
    word-break: break-word;
}


/* Rebuild produto.php e cards: produto correto + imagem acima */
.grafya-product-pricing-grid .grafya-pricing-product-card,
.grafya-latest-products-grid .grafya-pricing-product-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100%;
}

.grafya-pricing-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef6ff, #fff6fb);
    overflow: hidden;
    flex: 0 0 auto;
}

.grafya-pricing-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .22s ease;
}

.grafya-pricing-product-card:hover .grafya-pricing-product-image img {
    transform: scale(1.04);
}

.grafya-pricing-product-card .grafya-pricing-product-body {
    width: 100%;
    flex: 1 1 auto;
}

.grafya-product-detail-page[data-product-id] {
    scroll-margin-top: 110px;
}
