@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --beige: #f5f5dc;
    --olive: #808000;
    --light-blue: #add8e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Hero */
.hero {
    height: 80vh;
    background-image: url('../../for web/3.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c0392b;
}

/* Sections */
.products {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.color-options {
    display: flex;
    margin-bottom: 1rem;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option.active {
    border-color: var(--dark);
}

.color-beige { background-color: var(--beige); }
.color-black { background-color: black; }
.color-blue { background-color: blue; }
.color-light-blue { background-color: var(--light-blue); }
.color-olive { background-color: var(--olive); }

.add-to-cart {
    width: 100%;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #1a252f;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display:block; margin-bottom:0.5rem; font-weight:500; }
.form-control { width:100%; padding:0.8rem; border:1px solid #ddd; border-radius:4px; font-size:1rem; }
.form-row { display:flex; gap:1rem; }
.form-row .form-group { flex:1; }

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.footer-section p, .footer-section a { color:#bbb; margin-bottom:0.8rem; display:block; text-decoration:none; }
.footer-section a:hover { color:#fff; }
.social-links { display:flex; gap:1rem; }
.social-links a { display:inline-block; width:40px; height:40px; background-color:rgba(255,255,255,0.1); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:background-color 0.3s; }
.social-links a:hover { background-color: var(--secondary); }
.copyright { text-align:center; padding-top:2rem; border-top:1px solid rgba(255,255,255,0.1); color:#bbb; font-size:0.9rem; }

/* Cart/Checkout Shared */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #eee;
}
.cart-item-info {
    display: flex;
    gap: 15px;
    align-items: center;
}
.cart-item-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}
.cart-item-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.cart-item-actions {
    text-align: right;
}

.cart-item-quantity {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.quantity-btn {
    padding: 4px 10px;
    cursor: pointer;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 4px;
}

.quantity-input {
    width: 45px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-item {
    background: red;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
}

.checkout-btn {
    display: block;
    margin-top: 15px;
    background:#000;
    color:#fff;
    padding:12px 18px;
    text-align:center;
    border-radius:5px;
}
.checkout-btn { width:100%; padding:1rem; background-color: var(--secondary); color:#fff; border:none; border-radius:4px; font-size:1.1rem; font-weight:bold; cursor:pointer; transition:background-color 0.3s; }
.checkout-btn:hover { background-color:#c0392b; }

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; }
    nav ul { margin-top: 1rem; justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    .cart-item { flex-direction: column; align-items: flex-start; }
    .cart-item-info { margin-bottom: 1rem; }
    .cart-item-actions { width: 100%; display: flex; justify-content: space-between; }
}



