/* Global Styles */
:root {
    --primary-color: #0071e3; /* classic Apple blue */
    --secondary-color: #1d1d1f; /* dark gray */
    --accent-color: #f5f5f7; /* light gray/white */
    --text-color: #f5f5f7;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --success-color: #28a745;
    --transition-speed: 0.3s;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(29, 29, 31, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

#header-logo {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.9rem;
    color: #ccc;
}

nav a:hover {
    color: #fff;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: 80px; 
    overflow: hidden;
    background: url('hero_banner_iphone.png') no-repeat center center/cover; 
}

/* Dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 20px;
    animation: fadeInUs 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    background: -webkit-linear-gradient(#fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color var(--transition-speed), transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: scale(1.05);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ddd;
    margin-bottom: 20px;
}

.btn-add {
    background-color: #2c2c2e;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
}

.btn-add:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.footer-brand p {
    color: #888;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: #888;
    margin-bottom: 10px;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.instagram-btn:hover {
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #555;
    font-size: 0.8rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: #1c1c1e;
    z-index: 2000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.7);
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    animation: fadeIn 0.3s;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: bold;
    color: #bbb;
    font-size: 0.9rem;
}

.btn-remove {
    color: #ff453a;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #333;
}

.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-checkout {
    background-color: var(--success-color);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: #218838;
}

.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.empty-cart-msg {
    text-align: center;
    color: #777;
    margin-top: 50px;
}

/* Modals */
.modal {
    display: none; 
    position: fixed; 
    z-index: 3000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

.success-content {
    text-align: center;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #ccc;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2c2c2e;
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.payment-title {
    margin: 20px 0 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.pix-container {
    text-align: center;
    background-color: #2c2c2e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.qrcode-placeholder {
    margin-bottom: 15px;
}

.qrcode-placeholder i {
    font-size: 4rem;
    color: #fff;
    opacity: 0.3;
}

.qrcode-placeholder img {
    margin: 0 auto;
    border: 5px solid white;
    border-radius: 5px;
}

.pix-instructions {
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 10px;
}

.btn-confirm-payment {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-confirm-payment:hover {
    background-color: #0077ec;
}

.btn-copy {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9rem;
}

.btn-copy:hover {
    background-color: var(--primary-color);
    color: white;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeInUs {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }
}
