:root {
  --primary: #102542;
  --accent: #f87060;
  --light: #f8f8fa;
  --dark: #22223b;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(16,37,66,0.07);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
  scroll-behavior: smooth;
}

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

header {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem 0;
}

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

.logo {
  font-size: 1.7rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s, background 0.2s;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
}
nav a:hover, nav button:hover {
  color: var(--accent);
  background: #203052;
}

#cart-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  margin-left: 0.6rem;
  position: relative;
  padding: 0.3rem 0.9rem;
  border-radius: 3px;
  transition: background 0.2s;
}
#cart-btn:focus {
  outline: 2px solid var(--accent);
}
#cart-count {
  background: #fff;
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.95rem;
  padding: 0.1rem 0.5rem;
  position: relative;
  top: -3px;
  left: -3px;
  font-weight: 600;
}

main section {
  margin-top: 2.3rem;
}

h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}

.product {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.17s, box-shadow 0.17s;
  border: 2px solid var(--primary);
}
.product:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 8px 32px rgba(16, 37, 66, 0.13);
  border: 2px solid var(--accent);
}
.product img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--light);
}
.product h3 {
  margin: 0.8rem 0 0.38rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}
.product p {
  color: #444;
  font-size: 1rem;
  margin: 0 0 0.8rem 0;
  flex: 1 1 auto;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  background: var(--primary);
  color: #fff;
  padding: 0.27rem 1.1rem;
  border-radius: 25px;
  font-size: 1.07rem;
  font-weight: 600;
}
.add-to-cart {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.47rem 1.1rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.19s;
  font-weight: 600;
}
.add-to-cart:hover {
  background: var(--primary);
  color: #fff;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 370px;
  max-width: 96vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 16px rgba(16,37,66,0.11);
  z-index: 2002;
  padding: 0;
  transition: right 0.25s;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--accent);
}
.cart-sidebar.open {
  right: 0;
}
#cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16,37,66,0.18);
  z-index: 2001;
}
#cart-overlay.active {
  display: block;
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem 0.7rem 1.4rem;
  border-bottom: 1px solid var(--primary);
}
.cart-header h2 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--primary);
}
#close-cart {
  background: transparent;
  border: none;
  color: var(--dark);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.19s;
}
#close-cart:hover { color: var(--accent); }
#cart-items {
  flex: 1 1 auto;
  padding: 1rem 1.4rem;
  overflow-y: auto;
}
.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
}
.cart-item img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0.9rem;
  background: var(--light);
}
.cart-item-info {
  flex: 1 1 auto;
  min-width: 0;
}
.cart-item-title {
  font-size: 1.07rem;
  margin: 0 0 0.18rem 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-qty {
  font-size: 0.99rem;
  color: #888;
  margin-bottom: 0.2rem;
}
.cart-item-remove {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.34rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.99rem;
  transition: background 0.2s;
  margin-left: 0.7rem;
}
.cart-item-remove:hover {
  background: var(--primary);
  color: #fff;
}
.cart-footer {
  border-top: 1px solid #f0f0f0;
  padding: 1rem 1.4rem 1.2rem 1.4rem;
}
#cart-summary {
  font-size: 1.07rem;
  font-weight: 600;
  color: var(--primary);
}

/* Info Sections */
#about, #contact, #privacy-policy, #refund-policy, #disclaimer {
  margin-top: 3rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow);
}
footer {
  margin-top: 4rem;
  text-align: center;
  padding: 1.1rem 0;
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
}

@media (max-width: 900px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .cart-sidebar {
    width: 300px;
  }
}
@media (max-width: 600px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  nav {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  main section {
    margin-top: 1.3rem;
  }
  .cart-sidebar {
    width: 99vw;
    max-width: 99vw;
  }
}
::-webkit-scrollbar { width: 8px; background: #eee; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 6px; }