@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-dark: #065f46;
  --primary-light: #d1fae5;
  --primary-bg: #f0fdf4;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  list-style: none;
  text-decoration: none;
  font-family: var(--font);
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

section {
  padding: 60px 10%;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 100px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar a {
  font-size: 0.9rem;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

#menu-icon {
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  color: var(--text);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar .dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 10px 14px;
  color: var(--text-secondary);
  display: block;
  border-radius: 6px;
  font-size: 0.85rem;
}

.dropdown-menu li a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

/* Secondary nav */
.secondary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.secondary-nav li a {
  padding: 8px 12px;
  display: flex;
  align-items: center;
}

.secondary-nav li a i {
  font-size: 1.3rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.secondary-nav li a:hover i {
  color: var(--primary);
}

/* ===== SEARCH FORM ===== */
.search-form {
  max-width: 220px;
  margin: 0;
}

.search-div {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: var(--transition);
}

.search-div:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-div input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  outline: none;
  color: var(--text);
}

.search-div input[type="search"]::placeholder {
  color: var(--text-muted);
}

.search-div button.search-btn {
  background: var(--primary);
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  transition: var(--transition);
}

.search-div button.search-btn:hover {
  background: var(--primary-hover);
}

.search-btn i {
  font-size: 1rem;
  color: #fff;
}

/* ===== HERO / SLIDER ===== */
.home {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  align-items: center;
}

.slide-content {
  padding: 40px 60px;
  color: #fff;
  max-width: 500px;
}

.slide-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.slide-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.slide-desc {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.5;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.slide-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.prev-btn:hover, .next-btn:hover {
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* ===== SECTION HEADINGS ===== */
.heading {
  text-align: center;
  margin-bottom: 40px;
}

.heading span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 8px;
}

.heading h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

/* ===== PRODUCT CARDS ===== */
.shop-container,
.new-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 0;
}

.box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.box .box-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.box .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.box:hover .box-img img {
  transform: scale(1.08);
}

/* Badge */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.badge-new {
  background: var(--primary);
}

/* Card body */
.box-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-price {
  display: flex;
  justify-content: space-between;
  padding: 0;
}

.title-price h3,
.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.old-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.discount-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #ef4444;
  padding: 2px 8px;
  border-radius: 4px;
}

.box span {
  font-size: inherit;
  font-weight: inherit;
  padding-left: 0;
  color: inherit;
}

.box .view {
  position: static;
  padding: 0;
  font-size: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 10px 18px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
  border: 1px solid transparent;
}

.view-btn:hover {
  background: var(--primary);
  color: #fff;
}

.box .bx-cart {
  display: none;
}

/* ===== ABOUT ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-text span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  display: inline-block;
  margin-bottom: 8px;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 12px 0 20px;
  line-height: 1.7;
}

.about-text .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.about-text .btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== FEATURES ===== */
.detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.detail-box {
  text-align: center;
  background: var(--card-bg);
  padding: 36px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.detail-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.detail-box img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 16px;
  transition: var(--transition);
}

.detail-box:hover img {
  transform: scale(1.15);
}

.detail-box p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== FOOTER ===== */
.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  background: #111827;
  color: #d1d5db;
  padding: 60px 10% 40px;
}

.footer-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.footer-box h2 span {
  color: var(--primary);
}

.footer-box .p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #9ca3af;
}

.footer-box h3 {
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1rem;
}

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

.footer-box li a {
  color: #9ca3af;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-box li a:hover {
  color: var(--primary);
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #d1d5db;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info span {
  color: #9ca3af;
  font-size: 0.88rem;
}

.copyright {
  padding: 20px;
  text-align: center;
  background: #0f172a;
  color: #6b7280;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Session Welcome ===== */
.session {
  margin-top: 5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  padding: 8px 10%;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--primary-bg);
  border-bottom: 1px solid var(--border);
}

/* ===== NEW ARRIVAL ===== */
.new-container .box {
  border-radius: var(--radius);
}

.new-container .box .box-img {
  border-radius: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  header {
    padding: 14px 4%;
  }
  section {
    padding: 50px 4%;
  }
  .slide-title {
    font-size: 2.2rem;
  }
  .slide-content {
    padding: 30px 40px;
  }
}

@media (max-width: 881px) {
  .shop-container,
  .new-container {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .home, .slider-container {
    min-height: 50vh;
    height: 50vh;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 5%;
  }
  #menu-icon {
    display: block;
  }
  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: top 0.3s ease;
    text-align: left;
    padding: 8px;
    gap: 0;
  }
  .navbar.active {
    top: 100%;
  }
  .navbar a {
    padding: 14px 16px;
    border-radius: 6px;
  }
  .navbar a:hover {
    color: #fff;
    background: var(--primary);
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    opacity: 1;
    transform: none;
  }
  .navbar .dropdown:hover .dropdown-menu {
    transform: none;
  }
  .about {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .about-img {
    order: 2;
  }
  .about-img img {
    max-width: 100%;
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .search-form {
    max-width: 160px;
  }
  .slide-title {
    font-size: 1.8rem;
  }
  .slide-content {
    padding: 20px 24px;
  }
  .slide-subtitle {
    font-size: 0.75rem;
  }
  .slide-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  .prev-btn, .next-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .heading h2 {
    font-size: 1.6rem;
  }
  .home, .slider-container {
    min-height: 40vh;
    height: 40vh;
  }
}

@media (max-width: 491px) {
  .shop-container,
  .new-container {
    grid-template-columns: 1fr;
  }
  .slide-title {
    font-size: 1.4rem;
  }
  .home, .slider-container {
    min-height: 35vh;
    height: 35vh;
  }
  .header {
    padding: 10px 4%;
  }
  .search-form {
    max-width: 120px;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .detail-box {
    padding: 24px 16px;
  }
}
