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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: #f9fafc;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: #111;
}

p.muted {
  color: #777;
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn.primary {
  background: linear-gradient(45deg, #ff6b00, #ff9800);
  color: #fff;
}

.btn.primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid #ddd;
}

.btn.ghost:hover {
  border-color: #ff6b00;
  color: #ff6b00;
}

.btn.icon {
  background: none;
  font-size: 20px;
}

/* ---------------------------
   HEADER / NAVBAR
----------------------------*/
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #ff6b00;
  text-decoration: none;
}

.logo span {
  color: #333;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: "";
  width: 0%;
  height: 2px;
  background: #ff6b00;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-count {
  background: #ff6b00;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 5px;
}

.burger {
  display: none;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
}

.mobile-menu a {
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

/* ---------------------------
   HERO SECTION
----------------------------*/
.hero {
  background: linear-gradient(90deg, #fff 50%, #f9f3ef 50%);
  padding: 60px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  margin-bottom: 20px;
  color: #555;
}

.hero-art img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ---------------------------
   PRODUCTS
----------------------------*/
.section {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-5px);
}

.card-media img {
  height: 220px;
  object-fit: cover;
  transition: 0.3s;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.price {
  font-size: 16px;
  color: #ff6b00;
  font-weight: 600;
}

.card-actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

/* ---------------------------
   HIGHLIGHTS
----------------------------*/
.highlights .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: center;
}

.feature h4 {
  margin-bottom: 8px;
  color: #ff6b00;
}

/* ---------------------------
   TESTIMONIALS
----------------------------*/
.testimonials h3 {
  text-align: center;
  margin-bottom: 30px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

.testimonial {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  font-style: italic;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ---------------------------
   NEWSLETTER
----------------------------*/
.newsletter {
  background: #ff6b00;
  color: #fff;
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  padding: 10px 15px;
  border: none;
  border-radius: 30px 0 0 30px;
  outline: none;
}

.newsletter-form button {
  border-radius: 0 30px 30px 0;
}

/* ---------------------------
   FOOTER
----------------------------*/
.site-footer {
  background: #111;
  color: #ddd;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: #ff6b00;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #ddd;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ff6b00;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #333;
  padding-top: 15px;
}

/* ---------------------------
   MODAL
----------------------------*/
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-panel {
  background: #fff;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  font-size: 20px;
  border: none;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-media img {
  border-radius: 10px;
}

.modal-actions {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-actions input {
  width: 60px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ---------------------------
   CART DRAWER
----------------------------*/
.cart-drawer {
  position: fixed;
  top: 0; right: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-drawer[aria-hidden="false"] {
  right: 0;
}

.cart-header, .cart-footer {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.cart-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
}

/* Overlay */
.overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.5);
  display:none;
  z-index:1500;
}

.overlay.active {
  display:block;
}

/* ---------------------------
   RESPONSIVE
----------------------------*/
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .modal-body {
    grid-template-columns: 1fr;
  }
  .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
}
