:root {
    --bg-color: #0d1117;
    --text-color: #f0f6fc;
    --accent-color: #58a6ff;
    --secondary-color: #8b949e;
    --code-bg: #161b22;
    --border-color: #30363d;
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

a:hover {
    color: #80bdff;
}

/* Header Styles */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.bracket {
    color: var(--accent-color);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    padding: 0.25rem 0;
}

nav a:hover {
    color: var(--text-color);
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover:after {
    width: 100%;
}

/* Hero Section (Aplicável ao index.html principalmente) */
.hero {
    padding: 4rem 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.highlight {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #80bdff;
    color: var(--bg-color);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.code-snippet {
    background-color: var(--code-bg);
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.code-keyword {
    color: #ff7b72;
}

.code-function {
    color: #d2a8ff;
}

.code-param {
    color: #ffa657;
}

.code-string {
    color: #a5d6ff;
}

.code-property {
    color: #79c0ff;
}

.code-line {
    margin-bottom: 0.25rem;
}

/* Features Section (Aplicável ao index.html principalmente) */
.features {
    padding: 4rem 0;
    background-color: rgba(13, 17, 23, 0.7);
    border-top: 1px solid var(--border-color);
}

.features .container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.feature-item {
    flex: 1;
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-item h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Estilos Gerais para outras páginas (Shop, Success, Cancel) */
main {
    padding: 2rem 0;
}

main .container h1,
main .container h2 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Estilos específicos para shop.html */
.products-grid {
    display: grid; /* Revertendo para Grid */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Garantir múltiplas colunas */
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* flex-basis, flex-grow, max-width, box-sizing removidos */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-card .price {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: #80bdff;
    transform: translateY(-2px);
}

.cart-section {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.cart-section h2 {
    border-bottom: none;
    margin-bottom: 1rem;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.9rem;
}

#cart-items li:last-child {
    border-bottom: none;
}

#cart-total {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

#checkout-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

#checkout-btn:hover {
    background: #80bdff;
    transform: translateY(-2px);
}

/* Estilos para success.html e cancel.html */
.status-message {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.status-message h1 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    border-bottom: none;
}

.status-message p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.status-message a {
    display: inline-block;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.7rem 1.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
    transition: all 0.2s ease;
}

.status-message a:hover {
    background: #80bdff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--text-color);
    transform: translateY(-3px);
}

.copyright {
    color: var(--secondary-color);
    font-size: 0.8rem;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 900px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        justify-content: center;
        margin-top: 2rem;
    }
    
    .features .container {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .logo a {
        font-size: 1.3rem;
    }
    nav a {
        font-size: 0.8rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.7rem 1.4rem;
    }
    .code-snippet {
        font-size: 0.8rem;
    }
    /* .products-grid {
        grid-template-columns: 1fr; /* Removido para manter a grade */
    /* } */
}



/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

.modal-content {
    background-color: var(--code-bg);
    margin: 10% auto; /* 10% from the top and centered */
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    color: var(--text-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-header h2 {
    margin: 0;
    border-bottom: none;
}

.close {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--text-color);
    text-decoration: none;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-details h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cart-item-details p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-item-actions button {
    background: var(--secondary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.cart-item-actions button:hover {
    background: var(--accent-color);
}

.cart-item-actions .remove-item {
    background: #ff7b72; /* Red for remove */
}

.cart-item-actions .remove-item:hover {
    background: #ff4d4d;
}

.cart-item-actions .item-quantity {
    min-width: 20px;
    text-align: center;
}

.cart-total {
    text-align: right;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Apply consistent button style to modal footer buttons */
.modal-footer button {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-footer button:hover {
    background: #80bdff;
    transform: translateY(-2px);
}

.modal-footer #clear-cart {
    background: var(--secondary-color);
}

.modal-footer #clear-cart:hover {
    background: #a0a8b1;
}




/* Cart Icon in Header */
.header-cart-icon {
    margin-left: 1rem; /* Adjust spacing as needed */
    color: var(--secondary-color);
    position: relative; /* Needed for potential badge positioning */
    transition: color 0.2s ease;
}

.header-cart-icon:hover {
    color: var(--text-color);
}

.header-cart-icon i {
    font-size: 1.1rem; /* Adjust icon size */
}

.header-cart-icon #cart-count {
    font-size: 0.8rem; /* Adjust count size */
    margin-left: 0.3rem;
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50%;
    padding: 0.1rem 0.4rem;
    position: relative;
    top: -5px; /* Adjust vertical position */
}




/* Product Image Gallery Styles */
.product-image-gallery {
    position: relative; /* Needed for absolute positioning of nav buttons */
    margin-bottom: 1rem;
    overflow: hidden; /* Ensure buttons stay within bounds if needed */
}

.product-main-image {
    display: block; /* Remove extra space below image */
    width: 100%;
    height: 200px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover; /* Cover the area without distortion */
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 17, 23, 0.7); /* Semi-transparent background */
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-gallery:hover .gallery-nav {
    opacity: 1; /* Show buttons on hover */
}

.gallery-nav:hover {
    background-color: rgba(88, 166, 255, 0.8); /* Accent color on hover */
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

/* Callout Box Styles */
.callout-box {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 0 0 2.5rem;
    max-width: 700px;
    border-radius: 4px;
    font-family: var(--font-mono);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.callout-box:hover {
    border-left-width: 6px;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.callout-box i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 2px;
}

.callout-box p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.callout-box a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.callout-box a:hover {
    color: #80bdff;
    text-decoration: underline;
}

.callout-box a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.callout-box a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.welcome-message {
    margin-bottom: 1.5rem;
    max-width: 700px;
    color: var(--secondary-color);
    line-height: 1.6;
}

