/* --------------------------------------------------
   GLOBAL RESET & BASE
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #0f0f0f;
  color: #e6e6e6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------
   LAYOUT CONTAINERS
-------------------------------------------------- */
.page {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 48px;
  height: auto;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.main-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

/* --------------------------------------------------
   CART ICON
-------------------------------------------------- */
.cart-icon {
  background: #222;
  border: 1px solid #333;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  transition: 0.2s;
}

.cart-icon:hover {
  background: #333;
}

/* --------------------------------------------------
   PRODUCT PAGE LAYOUT
-------------------------------------------------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.product-media img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #222;
  transition: 0.2s;
}

.product-media img:hover {
  border-color: #444;
}

.product-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.product-description {
  margin-bottom: 20px;
  color: #cfcfcf;
}

.product-price {
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 600;
}

/* --------------------------------------------------
   FORM ELEMENTS
-------------------------------------------------- */
label {
  display: block;
  margin-bottom: 20px;
  font-weight: 500;
}

select {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  margin-top: 8px;
  cursor: pointer;
  transition: 0.2s;
}

select:hover {
  border-color: #555;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
  text-align: center;
}

.btn-primary {
  background: #0077ff;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: #0a5fcc;
}

.btn-secondary {
  background: #222;
  border: 1px solid #333;
  color: #fff;
}

.btn-secondary:hover {
  background: #333;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid #222;
  color: #888;
}

/* --------------------------------------------------
   CART DRAWER
-------------------------------------------------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100%;
  background: #111;
  border-left: 1px solid #222;
  padding: 20px;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.cart-footer {
  border-top: 1px solid #222;
  padding-top: 20px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 600;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav a {
    margin-left: 10px;
  }
}