/* Reset & Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    background-color: #fdf7f2;
    color: #333;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6f61;
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #ff6f61;
}

.cart-icon {
    cursor: pointer;
    margin-left: 20px;
    font-size: 1.2rem;
    position: relative;
}

#cart-count {
    background: #ff6f61;
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Hero Section */
.hero {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffdde1, #ee9ca7);
    color: #fff;
    gap: 15px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    padding: 10px 20px;
    background-color: #fff;
    color: #ff6f61;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}

.hero .btn:hover {
    transform: scale(1.05);
}

/* Products */
.products {
    padding: 50px 20px;
    text-align: center;
}

.products h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ff6f61;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card img {
    width: 150px;
    margin-bottom: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
    color: #ff6f61;
}

.product-card p {
    margin-bottom: 15px;
    font-weight: bold;
}

.product-card button {
    padding: 10px 15px;
    border: none;
    background-color: #ff6f61;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.product-card button:hover {
    background-color: #e05550;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    padding: 20px;
    transition: right 0.3s;
    z-index: 1001;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar h3 {
    margin-bottom: 20px;
    color: #ff6f61;
}

.cart-sidebar .cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-sidebar .cart-item span {
    font-weight: bold;
}

.cart-sidebar .cart-total {
    font-size: 1.2rem;
    margin-top: 20px;
}

.cart-sidebar button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background-color: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cart-sidebar button:hover {
    background-color: #e05550;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    color: #333;
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.nav-links li a.active {
    color: #ff6f61;
    font-weight: bold;
}










.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 999;
}

.cart-sidebar.active {
  right: 0;
}

.close-cart {
  background: none;
  border: none;
  font-size: 20px;
  float: right;
  cursor: pointer;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.checkout-btn {
  background: #ff6f61;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}
