/* Ana Morena Store - Estilo Global */

body {
    background: #F8F3E2;
    color: #5D2700;
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* NAVBAR */
#store-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    background: #F8F3E2;
    border-bottom: 1.5px solid #000;
    padding: 0 48px;
    box-sizing: border-box;
    position: relative;
}

#store-navbar .navbar-search {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    max-width: 320px;
    justify-content: flex-start;
}

#store-navbar .navbar-search-icon {
    margin-right: 8px;
    color: #5D2700;
    font-size: 20px;
}

#store-navbar .navbar-search-input {
    border: none;
    border-bottom: 2px solid #5D2700;
    background: transparent;
    outline: none;
    font-size: 18px;
    color: #5D2700;
    width: 100%;
    padding: 4px 0;
}

#store-navbar .navbar-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 180px;
    pointer-events: none;
}

#store-navbar .navbar-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    pointer-events: auto;
}

#store-navbar .navbar-logo img {
    height: 68px;
    max-height: 68px;
    margin: 0 auto;
    display: block;
    transition: height 0.2s;
    alt: 'Logo Ana Morena';
}

#store-navbar .navbar-icons {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

#store-navbar .navbar-icon {
    color: #5D2700;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}
#store-navbar .navbar-icon:hover {
    color: #000;
}

#store-navbar .navbar-icon:focus {
    outline: 2px solid #a67c52;
    outline-offset: 2px;
    background: #f3e9d7;
}

@media (max-width: 900px) {
    #store-navbar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: 56px;
        padding: 0 2vw;
        gap: 0;
        min-width: 0;
        position: relative;
        z-index: 20;
        background: #F8F3E2;
    }
    #store-navbar .navbar-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        margin-right: 8px;
        margin-left: 0;
        z-index: 22;
    }
    #store-navbar .navbar-logo {
        position: static;
        left: auto;
        transform: none;
        flex: 1 1 0;
        justify-content: center;
        align-items: center;
        width: auto;
        z-index: 21;
        pointer-events: auto;
    }
    #store-navbar .navbar-logo img {
        height: 32px;
        max-height: 32px;
    }
    #store-navbar .navbar-icons {
        flex: 1 1 0;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        margin: 0;
        z-index: 22;
    }
    #store-navbar .navbar-icons > *:not(.navbar-hamburger) {
        margin-left: 8px;
    }
    #store-navbar .navbar-icons {
        min-width: 0;
    }
    #store-navbar .navbar-hamburger {
        margin-left: 0;
    }
    .navbar-search-mobile {
        display: flex;
        align-items: center;
        width: 100vw;
        padding: 0 2vw 8px 2vw;
        background: #F8F3E2;
        border-bottom: 1px solid #e5e0d0;
        position: relative;
        z-index: 19;
        box-shadow: 0 2px 8px rgba(93,39,0,0.04);
    }
    .navbar-search-mobile .searchbar-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        background: #fff;
        border-radius: 22px;
        box-shadow: 0 2px 8px rgba(93,39,0,0.07);
        padding: 4px 14px 4px 10px;
        border: 1px solid #e5e0d0;
    }
    .navbar-search-mobile .navbar-search-icon {
        margin-right: 8px;
        color: #a67c52;
        font-size: 20px;
        flex-shrink: 0;
    }
    .navbar-search-mobile input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 15px;
        color: #5D2700;
        width: 100%;
        padding: 8px 0 8px 0;
        border-radius: 0;
        height: 32px;
        line-height: 32px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    .navbar-search-mobile input::placeholder {
        color: #a67c52;
        opacity: 1;
        font-size: 15px;
        vertical-align: middle;
    }
    #store-sections {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100vw;
        background: #F8F3E2;
        z-index: 30;
        box-shadow: 0 8px 32px rgba(93,39,0,0.10);
        border-bottom: 1px solid #e5e0d0;
        padding: 18px 0 12px 0;
        gap: 0;
        animation: fadeInMenu 0.2s;
    }
    #store-sections.open {
        display: flex;
    }
    #store-sections a {
        padding: 14px 0;
        border-radius: 0;
        background: none;
        min-width: 100vw;
        text-align: center;
        font-size: 17px;
        color: #5D2700;
        border-bottom: 1px solid #f3e9d7;
        white-space: nowrap;
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
    }
    #store-sections a.active {
        background: #a67c52;
        color: #fff;
    }
    #store-sections a:last-child {
        border-bottom: none;
    }
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 600px) {
    #store-navbar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: 56px;
        padding: 0 2vw;
        gap: 0;
        min-width: 0;
        position: relative;
        border-bottom: none; /* Remove linha preta no mobile */
    }
    #store-navbar .navbar-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        margin-right: 8px;
        margin-left: 0;
    }
    #store-navbar .navbar-search {
        display: none;
    }
    #store-navbar .navbar-logo {
        position: static;
        left: auto;
        transform: none;
        flex: 1 1 0;
        justify-content: center;
        align-items: center;
        width: auto;
        z-index: 1;
        pointer-events: auto;
    }
    #store-navbar .navbar-logo img {
        height: 32px;
        max-height: 32px;
    }
    #store-navbar .navbar-icons {
        flex: 1 1 0;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        margin: 0;
    }
    #store-navbar .navbar-icons > *:not(.navbar-hamburger) {
        margin-left: 8px;
    }
    #store-navbar .navbar-icons {
        min-width: 0;
    }
    #store-navbar .navbar-hamburger {
        margin-left: 0;
    }
    /* Searchbar mobile mais bonita */
    #store-navbar .navbar-search-mobile {
        display: flex;
        align-items: center;
        width: 100vw;
        padding: 0 2vw 10px 2vw;
        background: #F8F3E2;
        border-bottom: none;
        position: relative;
        z-index: 19;
        box-shadow: 0 2px 8px rgba(93,39,0,0.04);
    }
    #store-navbar .navbar-search-mobile .searchbar-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        background: #fff;
        border-radius: 22px;
        box-shadow: 0 2px 8px rgba(93,39,0,0.07);
        padding: 4px 14px 4px 10px;
        border: 1px solid #e5e0d0;
    }
    #store-navbar .navbar-search-mobile .navbar-search-icon {
        margin-right: 8px;
        color: #a67c52;
        font-size: 20px;
        flex-shrink: 0;
    }
    #store-navbar .navbar-search-mobile input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 15px;
        color: #5D2700;
        width: 100%;
        padding: 8px 0 8px 0;
        border-radius: 0;
        height: 32px;
        line-height: 32px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    #store-navbar .navbar-search-mobile input::placeholder {
        color: #a67c52;
        opacity: 1;
        font-size: 15px;
        vertical-align: middle;
    }
    /* Botão de filtro mobile menor e arredondado */
    .store-filter-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 6px rgba(93,39,0,0.10);
        border: 1px solid #e5e0d0;
        color: #a67c52;
        font-size: 20px;
        margin: 8px auto 8px auto;
        padding: 0;
        transition: box-shadow 0.2s, background 0.2s;
    }
    .store-filter-mobile-btn:active,
    .store-filter-mobile-btn:focus {
        background: #f3e9d7;
        box-shadow: 0 2px 12px rgba(93,39,0,0.13);
    }
    #store-sections {
        display: none;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        font-size: 14px;
        margin: 10px 0 10px 0;
        padding: 0 2vw;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: #F8F3E2;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100vw;
        z-index: 10;
        border-bottom: 1px solid #e5e0d0;
    }
    #store-sections.open {
        display: flex;
    }
    #store-sections a {
        padding: 7px 10px;
        border-radius: 16px;
        background: #f3e9d7;
        min-width: 80px;
        text-align: center;
        white-space: nowrap;
    }
    #store-sections a.active {
        background: #a67c52;
        color: #fff;
    }
    #store-banner {
        min-height: 180px;
        border-radius: 0;
        margin: 0 -2vw;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #store-banner img {
        min-width: 100vw;
        width: 100vw;
        height: 180px;
        object-fit: cover;
        border-radius: 0;
    }
}

/* MENU DE SEÇÕES */
#store-sections {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin: 32px 0 32px 0;
    font-size: 18px;
    font-weight: 500;
}
#store-sections a {
    color: #5D2700;
    text-decoration: none;
    transition: color 0.2s;
}
#store-sections a:hover {
    color: #000;
}
#store-sections a.active, #store-sections a:active {
    color: #a67c52;
    border-bottom: 2px solid #a67c52;
}

@media (max-width: 600px) {
    #store-sections {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        font-size: 14px;
        margin: 10px 0 10px 0;
        padding: 0 2vw;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #store-sections::-webkit-scrollbar {
        display: none;
    }
    #store-sections a {
        padding: 7px 10px;
        border-radius: 16px;
        background: #f3e9d7;
        min-width: 80px;
        text-align: center;
        white-space: nowrap;
    }
    #store-sections a.active {
        background: #a67c52;
        color: #fff;
    }
}

/* BANNER */
#store-banner {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #e5e0d0;
    border-radius: 0;
    overflow: hidden;
}
#store-banner img {
    width: 100vw;
    min-width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}
#store-banner .banner-content {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-align: right;
}
#store-banner .banner-content h2 {
    font-size: 48px;
    font-weight: 300;
    margin: 0;
}
#store-banner .banner-content strong {
    font-weight: 700;
}

@media (max-width: 600px) {
    #store-banner {
        min-height: 180px;
        border-radius: 0;
        margin: 0 -2vw;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #store-banner img {
        min-width: 100vw;
        width: 100vw;
        height: 180px;
        object-fit: cover;
        border-radius: 0;
    }
}

/* LINK VER COLEÇÃO */
#store-link-colecao {
    display: block;
    width: 100%;
    text-align: center;
    margin: 48px 0 48px 0;
    font-size: 18px;
    color: #5D2700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
#store-link-colecao:hover {
    color: #000;
}

@media (max-width: 600px) {
    #store-link-colecao {
        font-size: 13px;
        margin: 10px 0 10px 0;
    }
}

/* FOOTER */
#store-footer {
    background: #5D2700;
    color: #fff;
    padding: 48px 0 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
#store-footer .footer-content {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}
#store-footer .footer-section {
    min-width: 180px;
    margin-left: auto;
    margin-right: auto;
}
#store-footer .footer-section h4 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}
#store-footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#store-footer .footer-section ul li {
    margin-bottom: 8px;
}
#store-footer .footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: text-decoration 0.2s;
}
#store-footer .footer-section ul li a:hover {
    text-decoration: underline;
}
#store-footer .footer-social {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}
#store-footer .footer-social a {
    color: #fff;
    font-size: 24px;
    transition: color 0.2s;
}
#store-footer .footer-social a:hover {
    color: #F8F3E2;
}

@media (max-width: 600px) {
    #store-footer {
        padding: 8px 0 4px 0;
        gap: 2px;
    }
    #store-footer .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        align-items: flex-start;
        width: 100%;
        padding: 0 2vw;
        justify-content: space-between;
    }
    #store-footer .footer-section {
        min-width: 0;
        width: 48%;
        margin-bottom: 2px;
    }
    #store-footer .footer-section h4 {
        font-size: 12px;
        margin-bottom: 2px;
        font-weight: 600;
    }
    #store-footer .footer-section ul {
        margin: 0;
        padding: 0;
    }
    #store-footer .footer-section ul li {
        margin-bottom: 1px;
    }
    #store-footer .footer-section ul li a {
        font-size: 12px;
    }
    #store-footer .footer-social {
        gap: 6px;
        margin-top: 2px;
        justify-content: center;
        width: 100%;
        display: flex;
    }
    #store-footer .footer-social a {
        font-size: 18px;
    }
}

/* Produtos - Grid e Cards */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 48px auto 48px auto;
}
.store-product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(93,39,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
    min-height: 370px;
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
}
.store-product-card:hover {
    box-shadow: 0 4px 24px rgba(93,39,0,0.13);
}
.store-product-card:focus-within {
    outline: 2px solid #a67c52;
}
.store-product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3e9d7;
}
.store-product-info {
    padding: 20px 16px 24px 16px;
    text-align: center;
}
.store-product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #5D2700;
}
.store-product-price {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #5D2700;
}
.store-product-link {
    display: inline-block;
    color: #5D2700;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #5D2700;
    transition: color 0.2s;
}
.store-product-link:hover {
    color: #000;
    border-bottom: 1px solid #000;
}

/* === FAVORITE BUTTON (CORAÇÃO) === */
.product-card-favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 20;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.product-card-favorite-btn:hover,
.product-card-favorite-btn:focus {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.product-card-favorite-btn svg {
    display: block;
    stroke: #d32f2f;
    stroke-width: 2.2;
    fill: none;
    transition: fill 0.2s, stroke 0.2s;
}
.product-card-favorite-btn.favorited svg {
    fill: #d32f2f;
    stroke: #d32f2f;
}

/* Ajuste para garantir que o botão fique acima da imagem */
.group.relative .product-card-favorite-btn {
    z-index: 20;
}

@media (max-width: 900px) {
    .store-products-grid {
        gap: 18px;
        margin: 24px auto 24px auto;
    }
    .store-product-card {
        min-height: 340px;
        max-width: 98vw;
    }
}
@media (max-width: 600px) {
    .store-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 12px auto 12px auto;
        padding: 0 2vw;
    }
    .store-product-card {
        min-height: 260px;
        max-width: 100vw;
        border-radius: 10px;
        box-shadow: 0 1px 6px rgba(93,39,0,0.10);
        padding-bottom: 8px;
    }
    .store-product-image {
        height: 140px;
        border-radius: 10px 10px 0 0;
    }
    .store-product-info {
        padding: 12px 8px 12px 8px;
    }
    .store-product-title {
        font-size: 17px;
        margin-bottom: 6px;
    }
    .store-product-price {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .store-product-link {
        font-size: 15px;
        padding: 6px 0;
    }
}

@media (max-width: 900px) and (orientation: portrait), (max-width: 600px) {
    #store-navbar .navbar-search {
        display: none !important;
    }
    .navbar-search-mobile {
        display: flex !important;
    }
}
@media (min-width: 901px), (orientation: landscape) and (min-width: 601px) {
    #store-navbar .navbar-search {
        display: flex !important;
    }
    .navbar-search-mobile {
        display: none !important;
    }
}

/* Navbar menu mobile toggle */
#store-sections {
    display: flex;
    gap: 32px;
    justify-content: center;
    transition: max-height 0.3s, opacity 0.3s;
    max-height: 100px;
    opacity: 1;
}
@media (max-width: 900px) and (orientation: portrait) {
    #store-sections {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100vw;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 16px 24px 16px 24px;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }
    #store-sections.open {
        display: flex;
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
    }
}
