/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Poppins", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #212121;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== Layout ===== */
.inside {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Header ===== */
header {
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

header.scrolled {
  border-bottom-color: #e7e7e7;
}

/* Row 1: Logo */
.header-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.logo a {
  font-family: "Poppins", sans-serif;
  font-size: 50px;
  font-weight: bold;
  color: #212121;
  display: block;
}

/* Row 2: Nav */
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background: #fff;
}

.nav-menu {
  display: flex;
  align-items: center;
  height: 90px;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  height: 90px;
  padding: 0 50px;
  font-family: "Poppins", "Apple SD Gothic Neo", sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #212121;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: rgba(33, 33, 33, 0.5);
}

.nav-menu li a.active {
  color: #363636;
}

/* ===== Mobile Header ===== */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 49px;
  background: #fff;
  padding: 0 15px;
}

.mobile-logo a {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #212121;
}

.mobile-cart {
  width: 40px;
  text-align: right;
  font-size: 18px;
  color: #212121;
}

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

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  transition: left 0.3s ease;
  padding: 30px 20px;
  overflow-y: auto;
}

.mobile-nav-panel.open {
  left: 0;
}

.mobile-nav-panel .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  color: #212121;
}

.mobile-nav-panel ul {
  margin-top: 40px;
}

.mobile-nav-panel ul li a {
  display: block;
  padding: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #212121;
  border-bottom: 1px solid #eee;
}

/* Mobile Carousel Nav */
.mobile-carousel-nav {
  display: none;
  background: #fff;
  border-bottom: 1px solid #eee;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.mobile-carousel-nav a {
  display: inline-block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  color: rgba(33, 33, 33, 0.5);
  transition: color 0.2s;
}

.mobile-carousel-nav a.active {
  color: #212121;
}

/* ===== Footer ===== */
footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 40px 0 30px;
  font-size: 13px;
  color: #212121;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.foot-info {
  flex: 1;
  min-width: 280px;
}

.foot-info p {
  line-height: 1.8;
  color: rgba(33, 33, 33, 0.7);
}

.foot-info p strong {
  color: #212121;
  font-size: 14px;
}

.foot-nav {
  display: flex;
  gap: 30px;
}

.foot-nav a {
  color: rgba(33, 33, 33, 0.6);
  font-size: 13px;
  transition: color 0.2s;
}

.foot-nav a:hover {
  color: #212121;
}

.foot-social {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: #212121;
  font-size: 16px;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.foot-social a:hover {
  border-color: #212121;
}

.foot-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.copyright {
  margin-top: 30px;
  color: rgba(33, 33, 33, 0.4);
  font-size: 12px;
}

.foot-policy {
  margin-top: 12px;
  display: flex;
  gap: 20px;
}

.foot-policy a {
  color: rgba(33, 33, 33, 0.5);
  font-size: 12px;
}

.foot-policy a.bold {
  font-weight: bold;
}

/* ===== Responsive (Common) ===== */
@media (max-width: 991px) {
  .logo a {
    font-size: 36px;
  }

  .nav-menu li a {
    padding: 0 30px;
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .desktop-header {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
  }

  .mobile-carousel-nav {
    display: block !important;
  }

  .footer-wrap {
    flex-direction: column;
    gap: 24px;
  }

  .foot-nav {
    flex-direction: column;
    gap: 10px;
  }
}
