
/* =========================================
   BOM AMIGO ESTÉTICA ANIMAL
   Catálogo de Produtos e Serviços
   Folha de estilos - styles.css
========================================= */

/* 1. CONFIGURAÇÕES GERAIS */

:root {
    --primary: #7041a6;
    --primary-dark: #512b80;
    --primary-light: #eee5f8;
    --secondary: #f5effb;

    --background: #ffffff;
    --background-soft: #faf8fc;

    --text: #30283a;
    --text-light: #766d7e;

    --border: #e9e2ef;
    --success: #27834e;

    --shadow: 0 8px 28px rgba(54, 29, 76, 0.08);

    --radius: 14px;
    --radius-large: 22px;

    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    background: var(--primary-light);
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 38px;
}

.section-heading h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--text-light);
    font-size: 1rem;
}


/* 2. CABEÇALHO */

.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.header-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.2rem;
    white-space: nowrap;
}

.logo i {
    font-size: 1.7rem;
    color: var(--primary);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navigation a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.navigation a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 11px 17px;
    border-radius: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: var(--transition);
}

.cart-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cart-count {
    background: white;
    color: var(--primary);
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 1.5rem;
}


/* 3. BOTÕES */

.btn-primary,
.btn-secondary {
    min-height: 48px;
    padding: 13px 23px;
    border-radius: 9px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-secondary {
    color: var(--primary);
    background: white;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}


/* 4. SEÇÃO INICIAL */

.hero {
    background:
        radial-gradient(circle at 90% 10%, #eadcf8 0, transparent 35%),
        linear-gradient(120deg, #faf7fd, #f2eafb);

    padding: 85px 0;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-text h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.7rem, 5vw, 4.3rem);
    line-height: 1.12;
    color: var(--primary-dark);
    margin-bottom: 22px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    max-width: 520px;
    color: var(--text-light);
    font-size: 1.08rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    border-radius: 45% 45% 18px 18px;
    box-shadow: var(--shadow);
}

.hero-image::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(112, 65, 166, 0.2);
    border-radius: 45% 45% 18px 18px;
    top: 15px;
    left: 15px;
    z-index: -1;
}


/* 5. PRODUTOS */

.products-section {
    padding: 90px 0;
    background: var(--background);
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 230px;
    max-width: 450px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--background-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 16px;
}

.search-box i {
    color: var(--primary);
}

.search-box input {
    width: 100%;
    min-height: 48px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
}

.products-toolbar select {
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background-soft);
    color: var(--text);
    outline: none;
}

.products-toolbar select:focus,
.search-box:focus-within {
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 220px;
    background: var(--background-soft);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-info {
    padding: 19px;
}

.product-category {
    display: inline-block;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 30px;
    margin-bottom: 11px;
}

.product-info h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.35;
}

.product-description {
    min-height: 43px;
    color: var(--text-light);
    font-size: 0.83rem;
    margin-bottom: 15px;
}

.product-price {
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.product-price small {
    display: block;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 500;
}

.add-cart-button {
    width: 100%;
    min-height: 43px;
    border: none;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    transition: var(--transition);
}

.add-cart-button:hover {
    background: var(--primary);
    color: white;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 15px;
    color: var(--text-light);
}


/* 6. SERVIÇOS */

.services-section {
    padding: 90px 0;
    background: var(--background-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    background: white;
    padding: 30px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: #d5c0e9;
}

.service-card > i {
    width: 53px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.12rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.service-price {
    display: block;
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.service-button {
    width: 100%;
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
}

.service-button:hover {
    background: var(--primary-dark);
}

.service-notice {
    margin-top: 30px;
    padding: 19px 22px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    color: var(--primary-dark);
    font-size: 0.9rem;
}


/* 7. SOBRE O CATÁLOGO */

.about-section {
    padding: 90px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.about-content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.about-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-large);
}


/* 8. CONTATO */

.contact-section {
    padding: 80px 0;
    background:
        linear-gradient(120deg, var(--primary-dark), var(--primary));
    color: white;
}

.contact-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.contact-content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

.contact-content .btn-primary {
    background: white;
    color: var(--primary-dark);
    border-color: white;
}

.contact-content .btn-primary:hover {
    background: var(--primary-light);
}


/* 9. RODAPÉ */

.footer {
    padding: 35px 0;
    background: #261c31;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 800;
}

.footer-logo i {
    color: #c9a6ef;
    margin-right: 7px;
}

.footer p {
    color: #c9bfce;
    font-size: 0.85rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


/* 10. CARRINHO DE COMPRAS */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 17, 34, 0.55);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(440px, 100%);
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: var(--transition);
}

.cart-overlay.active .cart-panel {
    transform: translateX(0);
}

.cart-header {
    padding: 23px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 1.2rem;
}

.cart-header button {
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1.4rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 50px 15px;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.cart-item p {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
}

.quantity-controls button {
    width: 27px;
    height: 27px;
    border: 1px solid var(--border);
    background: var(--background-soft);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 700;
}

.remove-item {
    border: none;
    background: transparent;
    color: #c04c59;
    font-size: 0.9rem;
    align-self: start;
}

.cart-footer {
    padding: 22px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-total strong {
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.checkout-button {
    width: 100%;
    min-height: 49px;
    background: #238b50;
    color: white;
    border: none;
    border-radius: 9px;
    font-weight: 800;
    transition: var(--transition);
}

.checkout-button:hover {
    background: #176c3c;
}

.checkout-button:disabled {
    background: #aaa;
    cursor: not-allowed;
}


/* 11. RESPONSIVIDADE */

@media (max-width: 1050px) {

    .navigation {
        gap: 17px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content {
        gap: 35px;
    }
}

@media (max-width: 850px) {

    .header-content {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 22px 5%;
        background: white;
        border-bottom: 1px solid var(--border);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .navigation.active {
        display: flex;
    }

    .hero {
        padding: 65px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-image img {
        height: 350px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-content img {
        order: -1;
    }
}

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .logo {
        font-size: 1rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .cart-button {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .cart-button span:not(.cart-count) {
        display: none;
    }

    .hero {
        padding: 55px 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
    }

    .hero-image img {
        height: 270px;
    }

    .products-section,
    .services-section,
    .about-section {
        padding: 65px 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .product-image {
        height: 155px;
    }

    .product-info {
        padding: 13px;
    }

    .product-info h3 {
        font-size: 0.92rem;
    }

    .product-description {
        font-size: 0.78rem;
        min-height: 55px;
    }

    .product-price {
        font-size: 1rem;
    }

    .add-cart-button {
        font-size: 0.78rem;
    }

    .products-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        max-width: none;
    }

    .products-toolbar select {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px 20px;
    }

    .about-content img {
        height: 260px;
    }

    .contact-section {
        padding: 65px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .cart-panel {
        width: 100%;
    }
}

@media (max-width: 360px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 210px;
    }
}
