/* CSS Variables */
:root {
    --primary-dark: #2c2c2c;
    --accent-yellow: #fdd835;
    --accent-blue: #5b6abf;
    --accent-green: #4caf50;
    --bg-light: #f9f9f9;
    --text-gray: #666;
    --border-color: #ddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Simulating the Desktop Screen */
.desktop-container {
    background: white;
    width: 100%;
    max-width: 1200px;
    min-height: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    background: var(--primary-dark);
    color: white;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
}

nav a:hover {
    color: var(--accent-blue);
}

.btn-template {
    background: var(--primary-dark);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 40px;
    position: relative;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--primary-dark);
    max-width: 500px;
}

.hero-img img {
    max-width: 250px;
    filter: grayscale(100%);
}

/* Page Views Logic */
.page-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Product Grid (Page 1) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    background: #fff;
}

.product-card h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-card p {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.btn-add-cart {
    background: var(--accent-yellow);
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.75rem;
    border-radius: 20px;
    transition: transform 0.2s;
}

.btn-add-cart:hover {
    transform: scale(1.05);
}

/* Contact & Cart Layout (Page 2) */
.split-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

/* Form Styles */
.contact-form {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.contact-form h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
}

.btn-send {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

/* Cart Styles */
.cart-section {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.cart-section h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
}

.cart-item-details h4 {
    font-size: 0.8rem;
}

.cart-item-details p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.cart-total {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
}

.btn-pay {
    background: var(--accent-green);
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons span {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid { grid-template-columns: 1fr; }
    .split-layout { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; }
}