/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* Variáveis e Reset Básico */
:root {
    --primary-color: #363636; /* Marrom suave (Chocolate) */
    --secondary-color: #000; /* Fundo principal (Ghost White/Clean) */
    --accent-color: #FFB6C1; /* Rosa suave (Light Pink/Destaque) */
    --success-color: #4CAF50; /* Verde para sucesso/botões */
    --card-bg: #FFFFFF;
    --shadow-light: 0 3px 8px rgba(0, 0, 0, 0.08); /* Sombra mais suave */
    --transition-duration: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--secondary-color);
    line-height: 1.6;
    color: #333;
    position: relative;
    font-family: "Manrope", sans-serif;
    
}

/* Header */
.header {
    color: var(--primary-color);
    padding: 20px 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header .logo-loja { 
    max-width: 450px;
    width: 70%;
}

.header h1 {
    font-size: 1.8em;
    font-weight: normal;
}

/* Botões Gerais e Transições */
button {
    cursor: pointer;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color var(--transition-duration), transform var(--transition-duration), box-shadow var(--transition-duration);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart-button {
    background-color: var(--primary-color);
    color: var(--card-bg);
    font-size: 1em;
    position: fixed;
    top: 8%;
    right: 18px;
    z-index: 3;
}

.cart-button:hover {
    background-color: #8B4513; /* Chocolate mais escuro */
}

/* Container principal */
.container-slider {
    padding: 40px 30px;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 44px;
}

.flex-home {
    display: flex;
    flex-direction: column;
    flex: 0 0 350px;
    justify-content: center;
    color: #fff;
}

.flex-home p { 
    margin-bottom: 2rem;
}

.flex-home a {
    color: #fff;
    padding: 8px 0;
    text-decoration: none;
    font-size: 22px;
}

.flex-home h1 {
    font-weight: 500;
    line-height: 2.5rem;
    font-size: 2rem 32px;
    margin-bottom: 2rem;
}
.glider-dot {
    transition: all .2s ease;
}
.glider-dot:hover { 
    transform: unset !important;
}
.glider-dot.active { 
    width: 28px !important;
}
.glider-contain { 
    width: calc(100% - 350px) !important;
}
h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 35px;
    font-size: 2em;
    font-weight: 300;
}

/* Cards de Produto (O foco do "gourmet") */
.product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    text-align: center;
    margin: 10px;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-duration), transform var(--transition-duration);
    overflow: hidden;
    justify-content: space-between !important;
}

.product-card:hover {
    transform: translateY(-5px); /* Efeito de elevação sutil */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 105%;
    max-width: 105% !important; /* Altura ligeiramente maior */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    top: -5px;
    left: -5px;
    height: 320px;
}

.product-card h3 {
    color: var(--primary-color);
    margin: 0 12px 5px 12px;
    font-size: 1rem;
    font-weight: 600;
}

.product-card p.price {
    font-weight: bold;
    color: #000; 
    font-size: 1.4em;
    margin-bottom: 20px;
}
.product-card .desc {
    font-size: .8rem;
    line-height: 1rem;
    max-width: 80%;
    margin: 0 auto;
}

.size-selector {
    width: fit-content;
    padding: 8px;
    border-radius: 4px;
    background: #000;
    text-align: center;
    border: 0;
    color: #fff;
}
.size-selection label {
    font-size: 14px;
    font-weight: 700;
}
/* Controles de Quantidade */
.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.quantity-controls button {
    color: var(--primary-color);
    border: none;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    border-radius: 50%; /* Botões circulares */
}

.quantity-controls button:hover {
    background-color: #ff99aa;
    transform: scale(1.05);
}

.add-to-cart-btn {
    background: linear-gradient(to bottom, #cfc09f 22%,#634f2c 24%, #cfc09f 26%, #cfc09f 27%,#ffecb3 40%,#3a2c0f 78%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    color: white;
    padding: 16px 0;
    font-size: 1rem;
    margin-top: auto; 
    margin: 0 12px 12px;
    position: relative;
    border: 1px solid #000;
}

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

/* Glider.js customização */
.glider-prev, .glider-next {
    background: var(--primary-color);
    color: white;
    opacity: 0.9;
    height: 40px;
    width: 40px;
    line-height: 40px;
    font-size: 1.5em;
    border-radius: 50%;
    z-index: 10;
    transition: opacity var(--transition-duration), background-color var(--transition-duration);
}
.glider-prev, .glider-next { 
    background: #000;
    top: 40% !important;
    border-radius: 51px;
    overflow: hidden;
}
.glider-next {
    transform: rotate(180deg);
}
.glider-next:hover { 
    transform: rotate(180deg);
}


/* Carrinho Lateral (Sidebar) */
.sidebar-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px; /* Largura levemente maior */
    height: 100%;
    background-color: var(--card-bg);
    box-shadow: -6px 0 15px rgba(0, 0, 0, 0.15);
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva de transição mais agradável */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0 18px;
}

.sidebar-cart.open {
    transform: translateX(0); 
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fcfcfc;
}

.sidebar-header h3 {
    color: var(--primary-color);
    font-weight: 600;
}

#close-cart-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #aaa;
    transition: color var(--transition-duration);
}
#close-cart-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: unset !important;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

/* Item no Carrinho */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    transition: background-color 0.2s;
}

.cart-item-info h4 {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.cart-item-info p {
    font-size: .7rem;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-controls button {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    padding: 0;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
}

.remove-item-btn {
    background-color: #f44336 !important;
    color: white !important;
    padding: 5px 10px;
    font-size: 0.9em;
    margin-left: 10px;
    border-radius: 4px;
}
.remove-item-btn:hover {
    background-color: #d32f2f;
}

/* Resumo do Carrinho */
.cart-summary {
    padding: 20px 0;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.cart-summary p {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
}
.cart-summary #discount-amount {
    text-decoration: line-through;
}
.total-line {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    border-top: 1px solid #000;
    padding-top: 15px;
    margin-top: 15px;
}

.checkout-btn {
    width: 100%;
    background-color: var(--success-color);
    color: white;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.2em;
}

/* Barra de Progresso */
.progress-bar-container {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.progress-bar-container p { 
    font-size: 14px;
}
.progress-bar-wrapper {
    height: 8px;
    background-color: #ffeef2;
    border-radius: 4px;
    overflow: hidden;
    margin: 5px 0;
}
.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.6s ease-out; /* Transição mais suave e perceptível */
}
#discount-message {
    font-size: 0.7em;
    font-weight: 500;
    color: #000;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Fundo mais transparente */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out;
}

.overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Media Queries para responsividade de layout (mantidas) */
@media (max-width: 890px) {
    .header {
        padding: 15px 20px;
    }
    .container-slider {
        flex-direction: column;
        max-width: 100%;
        padding-top: 0;
    }
    .header .logo-loja {
        width: 50%;
    }
    .cart-button {
        top: 4%;
    }
    .flex-home {
        justify-content: flex-start;
        padding: 24px 12px;
        padding-top: 0;
        flex: unset
    }
    .flex-home h1 {
        margin-bottom: 1rem;
    }
    .glider-contain {
        width: 100% !important;
    }
    .sidebar-cart {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 574px) {
    .product-card img {
        height: 240px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .sidebar-cart {
        width: 400px;
    }
    
}