/* ====== GENERAL RESET ====== */

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

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #f8f9fc;
color: #333;
line-height: 1.6;
}

/* ====== NAVBAR ====== */
header {
background: #0b1c3a; /* Deep navy */
padding: 1rem 2rem;
position: sticky;
top: 0;
z-index: 1000;
}

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

.logo {
font-size: 22px;
font-weight: bold;
color: #0ABAB5;
}
.logo span {
color: #8A2BE2;
}

nav ul {
display: flex;
gap: 1.5rem;
list-style: none;
}

nav ul li a {
color: #fff;
text-decoration: none;
font-weight: 500;
transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
color: #FFD700; /* gold accent */
}


/* ===== NAVBAR TOGGLE BUTTON ===== */
.nav-toggle {
display: none;
font-size: 1.5rem;
background: transparent;
border: none;
color: #FFD700;
cursor: pointer;
margin-right: 10px;
}

/* ===== CART COUNTER ===== */
.cart-counter {
background: #FFD700;
color: #0b1c3a;
font-size: 0.75rem;
font-weight: bold;
border-radius: 50%;
padding: 3px 6px;
margin-left: 5px;
vertical-align: middle;
}


/* Cart counter badge */
.cart-counter {
  background: #ff9800;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 5px;
}


/* ===== CART PAGE BUTTONS ===== */
.cart-table td {
  text-align: center;
  vertical-align: middle;
}

.qty-btn {
  background: #0b1c3a;
  color: #fff;
  border: none;
  padding: 4px 8px;
  margin: 0 4px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.qty-btn:hover {
  background: #FFD700;
  color: #0b1c3a;
}

.remove-btn {
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.remove-btn:hover {
  background: #cc0000;
}

.cart-summary {
  margin-top: 20px;
  text-align: right;
}

.cart-summary .btn {
  background: #FFD700;
  color: #0b1c3a;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.cart-summary .btn:hover {
  background: #e6c200;
}


/* ===== CART TABLE RESPONSIVE ===== */
@media (max-width: 768px) {
  .cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table th,
  .cart-table td,
  .cart-table tr {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none; /* Hide table header on small screens */
  }

  .cart-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .cart-table td {
    text-align: right;
    padding: 8px 10px;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }

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

  .cart-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    color: #0b1c3a;
    text-align: left;
  }
}




/* ===== ACTIVE LINK STYLING ===== */
.navbar nav ul li a.active {
color: #FFD700;
font-weight: bold;
border-bottom: 2px solid #FFD700;
padding-bottom: 3px;
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 768px) {
.navbar {
flex-wrap: wrap;
}

.navbar nav ul {
display: none;
flex-direction: column;
width: 100%;
background: #0b1c3a;
padding: 10px 0;
margin: 0;
}

.navbar nav ul.open {
display: flex;
}

.navbar nav ul li {
text-align: center;
margin: 10px 0;
}

.nav-toggle {
display: block;
}
}


/* ====== HERO ====== */
.hero {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4rem 2rem;
background: linear-gradient(135deg, #0b1c3a, #122b56);
color: #fff;
}

.hero-text {
max-width: 50%;
}
.hero-text h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.hero-text p {
font-size: 1.1rem;
margin-bottom: 1.5rem;
}

.hero-text .btn {
background: #FFD700;
color: #0b1c3a;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 5px;
cursor: pointer;
transition: 0.3s;
}
.hero-text .btn:hover {
background: #e6c200;
}

.hero-image img {
max-width: 420px;
border-radius: 12px;
}

/* ====== PRODUCT GRID ====== */
.featured, .shop-grid {
padding: 3rem 2rem;
text-align: center;
}
.featured h2,
.shop-grid h1 {
font-size: 2rem;
margin-bottom: 2rem;
color: #0b1c3a;
}

.product-grid, .shop-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}

.product-card {
background: #fff;
border-radius: 12px;
padding: 1rem;
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
transition: 0.3s;
}
.product-card:hover {
transform: translateY(-5px);
}

.product-card img {
width: 100%;
height: 220px;
object-fit: cover;
border-radius: 10px;
margin-bottom: 1rem;
}

.product-card h3 {
font-size: 1.2rem;
margin-bottom: 0.5rem;
}
.product-card p {
color: #0b1c3a;
font-weight: bold;
margin-bottom: 1rem;
}

.product-card .btn {
background: #0b1c3a;
color: #fff;
padding: 0.6rem 1.2rem;
border-radius: 6px;
border: none;
transition: 0.3s;
}
.product-card .btn:hover {
background: #FFD700;
color: #0b1c3a;
}

/* ====== CART ====== */
.cart {
padding: 3rem 2rem;
}
.cart table {
width: 100%;
border-collapse: collapse;
}
.cart th, .cart td {
border: 1px solid #ddd;
padding: 1rem;
text-align: center;
}
.cart th {
background: #0b1c3a;
color: #fff;
}
.cart .btn {
margin-top: 1rem;
}

/* ====== CONTACT FORM ====== */
.contact {
padding: 3rem 2rem;
max-width: 700px;
margin: auto;
}
.contact form {
display: grid;
gap: 1.5rem;
}
.contact input,
.contact textarea {
padding: 0.8rem;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 1rem;
}
.contact button {
background: #0b1c3a;
color: #fff;
padding: 0.8rem;
border: none;
border-radius: 6px;
transition: 0.3s;
}
.contact button:hover {
background: #FFD700;
color: #0b1c3a;
}

/* ====== FOOTER ====== */
footer {
background: #0b1c3a;
color: #fff;
text-align: center;
padding: 1.5rem;
margin-top: 2rem;
}
