/* Variables for consistency and easy modification */
:root {
    --primary-color: #007bff; /* Example blue */
    --secondary-color: #6c757d; /* Example grey */
    --accent-color: #28a745; /* Green for 'In Stock' */
    --text-color: #333;
    --light-text-color: #666;
    --background-light: #f8f8f8;
    --background-white: #fff;
    --border-color: #eee;
    --main-border-color: #ddd;
    --shadow-light: 0 2px 5px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 10px rgba(0,0,0,0.1);
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --container-max-width: 1200px;
}

/* Base Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    font-size: 16px;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
}

/* Header */
.main-header {
    background-color: var(--background-white);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px; /* Adjust logo size */
    margin-right: var(--spacing-lg);
}

.search-bar {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
}

.search-bar input {
    border: none;
    padding: var(--spacing-sm);
    flex-grow: 1;
    outline: none;
}

.search-bar .search-btn {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 0; /* Remove button border-radius if needed */
    transition: background-color 0.2s ease-in-out;
}

.search-bar .search-btn:hover {
    background-color: #0056b3;
}

.cart-info {
    position: relative; /* For dropdown */
    margin-left: var(--spacing-xl);
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.cart-info:hover {
    background-color: var(--background-light);
}

.cart-link {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: bold;
}

.cart-link i {
    margin-right: var(--spacing-sm);
    font-size: 1.2em;
}

.dropdown-arrow {
    border: solid var(--text-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: var(--spacing-sm);
    transition: transform 0.2s ease-in-out;
}

/* Cart Dropdown Content (hidden by default) */
.cart-dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* Position below cart-info */
    right: 0;
    background-color: var(--background-white);
    min-width: 200px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    z-index: 1000;
    padding: var(--spacing-md);
    border-radius: 5px;
    margin-top: var(--spacing-sm);
}
.cart-info.open .cart-dropdown-content {
    display: block;
}
.cart-info.open .dropdown-arrow {
    transform: rotate(225deg); /* Arrow points up when open */
}


/* Top Navigation */
.top-nav {
    background-color: #333;
    color: white;
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-light);
}

.nav-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.desktop-nav-links {
    display: flex; /* Always flex on desktop */
}

.desktop-nav-links li a {
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    display: block;
    transition: background-color 0.2s ease-in-out;
}

.desktop-nav-links li a:hover {
    background-color: #555;
    border-radius: 4px;
}

/* Mobile Menu Toggle (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    margin-left: auto; /* Push to right */
}

.mobile-menu-toggle button {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: background-color 0.2s ease-in-out;
}
.mobile-menu-toggle button:hover {
    background-color: #0056b3;
}


/* Mobile Nav Overlay (hidden by default) */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay */
    z-index: 2000;
    display: none; /* Controlled by JS */
    overflow-y: auto; /* Enable scrolling for content */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav-content {
    background-color: var(--background-white);
    width: 80%; /* Adjust width for mobile menu */
    max-width: 320px; /* Max width for larger mobiles/tablets */
    height: auto;
    position: absolute;
    right: 0; /* Slide in from right */
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    padding: var(--spacing-xl);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.mobile-nav-overlay.open .mobile-nav-content {
    transform: translateX(0); /* Slide into view */
}

.mobile-nav-close-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 1.5em;
    color: var(--text-color);
    background: none;
    border: none;
}

.mobile-nav-links li a {
    display: block;
    padding: var(--spacing-md) 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav-links li:last-child a {
    border-bottom: none;
}
.mobile-nav-links li a:hover {
    background-color: var(--background-light);
}

.mobile-sidebar-content {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.mobile-sidebar-content h2 {
    font-size: 1.2em;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.mobile-sidebar-content .category-list li a {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px dotted var(--border-color);
    color: var(--text-color);
}
.mobile-sidebar-content .category-list li:last-child a {
    border-bottom: none;
}


/* Breadcrumbs */
.breadcrumbs {
    padding: var(--spacing-md) var(--spacing-md);
    background-color: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9em;
    color: var(--light-text-color);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-lg);
}

.breadcrumbs a {
    color: var(--light-text-color);
    display: flex;
    align-items: center;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs i {
    margin-right: var(--spacing-xs);
}

.breadcrumb-separator {
    margin: 0 var(--spacing-sm);
    color: var(--border-color);
}

.current-page {
    font-weight: bold;
    color: var(--text-color);
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: var(--spacing-xl); /* Gap between sidebar and main product area */
    margin-bottom: var(--spacing-xl);
}

/* Sidebar */
.sidebar {
    flex: 0 0 280px; /* Fixed width for desktop */
    background-color: var(--background-white);
    padding: var(--spacing-lg);
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.sidebar-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color); /* Underline effect */
    color: var(--primary-color);
}

.category-list li {
    margin-bottom: var(--spacing-sm);
}

.category-list li a {
    display: block;
    padding: var(--spacing-sm) 0;
    color: var(--text-color);
    border-bottom: 1px dotted var(--border-color);
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list li a:hover, .category-list li .selected {
    color: var(--primary-color);
    padding-left: var(--spacing-sm); /* Slight indent on hover */
    background-color: var(--background-light);
}

/* Product Listing */
.product-listing {
    flex-grow: 1;
    background-color: var(--background-white);
    padding: var(--spacing-lg);
    border: 1px solid var(--main-border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.product-listing h1 {
    font-size: 1.8em;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.product-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: var(--spacing-md);
}

.sort-by label {
    margin-right: var(--spacing-sm);
    font-weight: bold;
    color: var(--light-text-color);
}

.sort-by select {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-white);
    font-size: 0.9em;
    cursor: pointer;
    outline: none;
}

.sort-by select:focus {
    border-color: var(--primary-color);
}

.view-options {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.view-options .view-label {
    font-weight: bold;
    color: var(--light-text-color);
    margin-right: var(--spacing-sm);
}

.view-options .view-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-white);
    color: var(--text-color);
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.view-options .view-btn:hover {
    background-color: var(--background-light);
    border-color: var(--primary-color);
}

.view-options .view-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-options .view-btn.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.product-count {
    margin-bottom: var(--spacing-lg);
    color: var(--light-text-color);
    font-size: 0.9em;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive grid */
    gap: var(--spacing-xl);
}

/* Product Card */
.product-card {
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Pushes button to bottom */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-card .product-image {
    max-width: 170px;
    height: auto;
    margin-bottom: var(--spacing-md);
}

.product-card .product-title {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    color: var(--text-color);
}

.product-card .product-price {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
}

.product-card .product-price small {
    font-size: 0.7em;
    font-weight: normal;
    color: var(--light-text-color);
}

.add-to-cart-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease-in-out;
    width: 100%; /* Make button full width of card */
}

.add-to-cart-btn:hover {
    background-color: #218838;
}

/* List View for Products (toggled by JS) */
.product-listing.list-view .product-grid {
    grid-template-columns: 1fr; /* Single column for list view */
}

.product-listing.list-view .product-card {
    flex-direction: row; /* Horizontal layout for list items */
    text-align: left;
    padding: var(--spacing-md);
    align-items: center;
    gap: var(--spacing-md);
}

.product-listing.list-view .product-card .product-image {
    max-width: 100px; /* Smaller image in list view */
    margin-bottom: 0;
    flex-shrink: 0;
}

.product-listing.list-view .product-card .product-title {
    margin-bottom: var(--spacing-xs);
}
.product-listing.list-view .product-card .product-price {
    margin-bottom: var(--spacing-xs);
    flex-grow: 1; /* Pushes button to the right */
}

.product-listing.list-view .product-card .add-to-cart-btn {
    width: auto; /* Button doesn't need to be full width in list view */
    min-width: 120px;
    margin-left: auto; /* Push button to the far right */
}


/* Footer */
.main-footer {
    background-color: #333;
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer p {
    margin-bottom: var(--spacing-md);
    font-size: 0.9em;
    color: #bbb;
}

.main-footer ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-footer ul li a {
    color: white;
    font-size: 0.9em;
    transition: color 0.2s ease-in-out;
}

.main-footer ul li a:hover {
    color: var(--primary-color);
}

/* ======================================= */
/* Responsive Design (Media Queries) */
/* ======================================= */



.prodtop{display: -webkit-box;width: 100%;}


@media screen and (max-width: 478px) {
    .prodtop{display: block;}
}


/* Adjust for small screens (Mobile - max 768px) */
@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .main-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .header-left {
        width: 100%;
        justify-content: space-between; /* Logo and search bar */
    }

    .logo {
        margin-right: var(--spacing-md);
    }

    .search-bar {
        flex-grow: 1; /* Search bar takes available space */
    }

    .header-right {
        width: 100%;
        justify-content: center; /* Center cart info */
        margin-top: var(--spacing-md); /* Space below search */
        display: none; /* Hide header cart, use mobile menu cart instead */
    }

    .top-nav {
        padding: var(--spacing-sm) 0;
    }

    .desktop-nav-links {
        display: none; /* Hide desktop nav links on mobile */
    }

    .mobile-menu-toggle {
        display: block; /* Show mobile menu toggle */
        width: 100%; /* Make button full width */
    }

    .mobile-menu-toggle button {
        width: 100%;
        justify-content: center;
    }

    .breadcrumbs {
        padding: var(--spacing-md) var(--spacing-md);
    }

    .main-content {
        flex-direction: column; /* Stack sidebar and main content vertically */
        gap: var(--spacing-lg);
    }

    .sidebar {
        flex: auto; /* Sidebar takes full width */
        width: 100%;
        order: 2; /* Place sidebar below product listing */
        padding: var(--spacing-md);
    }

    .sidebar-title {
        text-align: center;
    }

    .product-listing {
        order: 1; /* Product listing comes first */
        padding: var(--spacing-md);
    }

    .product-listing h1 {
        font-size: 1.5em;
        text-align: center;
    }

    .product-controls {
        flex-direction: column; /* Stack controls vertically */
        align-items: center;
    }

    .sort-by, .view-options {
        width: 100%;
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Single column for products on mobile */
        gap: var(--spacing-md);
    }

    /* Adjust list view for very small screens */
    .product-listing.list-view .product-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg); /* More padding when stacked */
    }
    .product-listing.list-view .product-card .product-image {
        max-width: 150px; /* Larger image when stacked */
        margin-bottom: var(--spacing-md);
    }
    .product-listing.list-view .product-card .add-to-cart-btn {
        width: 100%; /* Full width button again */
        margin-left: 0;
    }

    .main-footer .footer-content {
        gap: var(--spacing-md);
    }
    .main-footer ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    .main-footer ul li {
        width: 100%;
    }

    /* Mobile Menu specific elements in overlay */
    .mobile-nav-links .mobile-search-item .search-bar,
    .mobile-nav-links .mobile-cart-item .cart-info {
        display: flex; /* Ensure these are visible in mobile menu */
        width: 100%;
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--border-color);
    }
     .mobile-nav-links .mobile-search-item .search-bar {
        border: none; /* Remove border from search bar within mobile menu */
        border-radius: 0;
     }
    .mobile-nav-links .mobile-search-item input {
        border: 1px solid var(--border-color);
        border-radius: 5px;
    }
    .mobile-nav-links .mobile-cart-item .cart-info {
        justify-content: flex-start;
        margin-left: 0;
    }
    .mobile-nav-links .mobile-cart-item .cart-info .cart-link {
        color: var(--text-color);
    }
    .mobile-nav-links .mobile-cart-item .cart-info .dropdown-arrow {
        display: none; /* Hide dropdown arrow in mobile menu cart */
    }
}

/* Adjust for medium screens (Tablets - max 1024px) */
@media screen and (max-width: 1024px) {
    .main-content {
        gap: var(--spacing-lg);
    }

    .sidebar {
        flex: 0 0 220px; /* Slightly smaller sidebar on tablets */
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Adjust for large screens where needed (min 1200px) */
@media screen and (min-width: 1200px) {
    /* Ensure desktop styles are fully applied and mobile overrides are removed */
    .desktop-nav-links {
        display: flex !important; /* Force display flex for desktop */
    }
    .mobile-menu-toggle {
        display: none !important; /* Hide mobile toggle on large screens */
    }
    .mobile-nav-overlay {
        display: none !important; /* Ensure overlay is hidden */
    }
    .main-header .header-right {
        display: flex !important; /* Ensure desktop cart is visible */
    }
}

.payment-methods{background-color: #fff;    border-radius: 8px;    padding: 10px;}


.produtos a{font-size: 22px; display: grid;float: left;text-decoration: none; position: relative;text-align: center;color:#000}
            .produtos a:hover{text-decoration: underline;}
                footer {
                        background-color: #20232a;
                        color: white;
                        text-align: center;
                        padding: 20px;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
                }
                footer .social-icons {
                        display: flex;
                        gap: 20px;
                }
                footer .social-icons a {
                        color: white;
                        text-decoration: none;
                        font-size: 1.5em;
                        transition: color 0.3s;
                }
                footer .social-icons a:hover {
                        color: #ffdd57;
                }
                footer p {margin:0 auto;}
                
                blockquote footer{width:74%;  margin-left: 250px;}
                
            .content img{float: left;   margin: 20px;}
            .preco{  font-size: 24px;  color: #83b736;display: inline-block; margin-right: 40px;     text-align: center;width: 100%;margin-bottom: 20px;font-family: monospace; }
            .produto button{padding:10px;background-color:#83b735;color:#fff;border:0;border: 0; cursor: pointer;color: #fff;}
            .produto p:first-child{ line-height: 1.5;}
            .Beneficios a{color:#000;text-decoration:none}
            .Beneficios a:hover{text-decoration:underline}
            .Beneficios{margin-left:290px}
            
            .desc{max-width: 61%;margin: 15px;}
            
            .depoimentos{    margin-top: 40px;}
            .footertext{margin-top:20px}
            .center{text-align: center;margin-top:40px}
            .logo{font-size: 30px;font-family: revert;}