* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f6f6f6;
  color: #111;
  overflow-x: hidden;
}

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

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

/* NAVBAR */

.navbar {
  width: 100%;
  padding: 20px 42px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-right {
  gap: 20px;
}

.cart-icon {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cart-icon:hover {
  transform: scale(1.08);
  opacity: 0.75;
}

.menu-btn,
#search-toggle {
  background: none;
  border: none;
  color: #111;
  font-size: 18px;
  cursor: pointer;
}

/* SIDEBAR MENU */

.menu-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 2000;
  padding: 80px 30px;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.08);
  transition: left 0.3s ease;
}

.menu-sidebar.show {
  left: 0;
}

.menu-sidebar a {
  display: block;
  padding: 18px 0;
  color: #111;
  font-size: 22px;
  border-bottom: 1px solid #eee;
}

.menu-sidebar a:hover {
  opacity: 0.6;
}

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

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 1500;
}

.menu-overlay.show {
  display: block;
}

/* HERO */

.hero {
  width: 100%;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 530px;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 530px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

/* SEARCH */

.search-section {
  width: 100%;
  padding: 44px 20px 16px;
  display: none;
  justify-content: center;
}

.search-section.active {
  display: flex;
}

#search-input {
  width: 100%;
  max-width: 760px;
  padding: 18px 28px;
  border-radius: 50px;
  border: 1px solid #cfcfcf;
  background: white;
  font-size: 17px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#search-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.navbar-search {
  display: none;
  width: 220px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 30px;
  outline: none;
}

.navbar-search.active {
  display: block;
}

/* PRODUCTS */

.products {
  width: 100%;
  padding: 34px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: white;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: white;
  padding: 14px;
}

.card-content {
  padding: 14px 18px 18px;
  min-height: 170px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-content h3 {
  font-size: 24px;
  line-height: 1.08;
  margin-bottom: 10px;
  font-weight: 700;
}

.color-preview {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.color-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #d2d2d2;
}

.price {
  font-size: 26px;
  font-weight: 700;
}

/* PRODUCT PAGE */

.product-page {
  width: 100%;
  max-width: 1220px;
  margin: 34px auto;
  padding: 30px;

  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 54px;
}

.image-box {
  position: relative;
  background: white;
  border-radius: 34px;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 650px;
  object-fit: contain;
  background: white;
  padding: 18px;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.arrow-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: white;
}

.arrow-left {
  left: 16px;
}

.arrow-right {
  right: 16px;
}

.product-info h2 {
  font-size: 46px;
  line-height: 1.05;
  margin-bottom: 16px;
  font-weight: 700;
}

.product-info h3 {
  font-size: 30px;
  margin-bottom: 30px;
  font-weight: 700;
}

.product-info h4 {
  font-size: 20px;
  margin-bottom: 14px;
  margin-top: 24px;
}

.colors,
.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.color-btn,
.sizes button {
  position: relative;
  overflow: hidden;
  padding: 13px 26px;
  border-radius: 40px;
  border: 2px solid #222;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.color-btn:hover,
.sizes button:hover {
  transform: translateY(-2px);
}

.color-btn.selected,
.sizes button.selected {
  background: #111;
  color: white;
}

/* ADD TO CART / CHECKOUT BUTTONS */

.add-btn,
.checkout-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 30px;
  padding: 17px 24px;

  border: 1px solid #111;
  border-radius: 999px;

  background: #111;
  color: white;

  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.6px;

  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.add-btn:hover,
.checkout-btn:hover {
  background: white;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.add-btn:active,
.checkout-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.add-btn:focus-visible,
.checkout-btn:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.22);
  outline-offset: 4px;
}

.add-btn:disabled,
.checkout-btn:disabled {
  background: #d8d8d8;
  color: #888;
  border-color: #d8d8d8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* OUT OF STOCK */

.sizes button.out-of-stock {
  color: #999;
  border-color: #ddd;
  background: #fff;
  cursor: not-allowed;
}

.sizes button.out-of-stock::after {
  content: "";
  position: absolute;
  width: 150%;
  height: 2px;
  background: #777;
  top: 50%;
  left: -25%;
  transform: rotate(-28deg);
}

.sizes button.out-of-stock:hover {
  transform: none;
  background: #fff;
}

.sizes button.out-of-stock.selected {
  background: #fff;
  color: #999;
}

/* PRODUCT ACCORDION */

.product-accordion {
  margin-top: 35px;
  border-top: 1px solid #ddd;
}

.product-accordion details {
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
}

.product-accordion summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-accordion summary::-webkit-details-marker {
  display: none;
}

.product-accordion summary::after {
  content: "›";
  font-size: 22px;
  transition: transform 0.25s ease;
}

.product-accordion details[open] summary::after {
  transform: rotate(90deg);
}

.details-content {
  padding-top: 14px;
  line-height: 1.7;
  color: #444;
  font-size: 15px;
}

.details-content p {
  margin-bottom: 10px;
}

.size-guide-img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
}

/* DROPDOWN */

.dropdown-content {
  display: none;
}

.dropdown-content.show {
  display: block;
}

.dropdown:hover .dropdown-content {
  display: none;
}

/* CART */

.cart-img {
  width: 120px;
  height: 140px;
  object-fit: contain;
  background: white;
  padding: 8px;
  border-radius: 16px;
}

/* POLICY PAGE */

.policy-page {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 25px;
  line-height: 1.8;
}

.policy-page h1 {
  margin-bottom: 30px;
  text-align: center;
}

.policy-page h2 {
  margin-top: 35px;
  margin-bottom: 10px;
}

/* FOOTER */

.footer {
  margin-top: 80px;
  padding: 60px 20px;
  background: #111;
  color: white;
  text-align: center;
}

.footer h3 {
  margin-bottom: 24px;
  font-size: 24px;
  letter-spacing: 4px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-links i {
  font-size: 24px;
}

/* TABLET */

@media (max-width: 1000px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .card img {
    height: 270px;
  }

  .product-page {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 30px;
  }

  .image-box img {
    height: 520px;
  }

  .product-info h2 {
    font-size: 36px;
  }

  .product-info h3 {
    font-size: 28px;
  }

  .slider,
  .slide {
    height: 500px;
  }
}

/* PHONE */

@media (max-width: 600px) {
  .navbar {
    padding: 18px;
    position: sticky;
  }

  .logo {
    position: static;
    transform: none;
    font-size: 20px;
    letter-spacing: 2px;
  }

  .nav-right {
    gap: 12px;
  }

  .slider,
  .slide {
    height: 280px;
  }

  .search-section {
    padding: 22px 14px 8px;
  }

  #search-input {
    padding: 14px 18px;
    font-size: 16px;
  }

  .navbar-search {
    width: 150px;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
  }

  .card {
    border-radius: 22px;
  }

  .card img {
    height: 210px;
    object-fit: contain;
    padding: 8px;
  }

  .card-content {
    padding: 10px 12px 12px;
    min-height: 120px;
  }

  .card-content h3 {
    font-size: 17px;
    line-height: 1.08;
    margin-bottom: 6px;
  }

  .color-preview {
    gap: 6px;
    margin-bottom: 8px;
  }

  .color-circle {
    width: 16px;
    height: 16px;
  }

  .price {
    font-size: 18px;
  }

  .product-page {
    padding: 14px;
    gap: 20px;
    margin: 10px auto;
  }

  .image-box {
    border-radius: 24px;
  }

  .image-box img {
    height: 340px;
  }

  .product-info h2 {
    font-size: 28px;
  }

  .product-info h3 {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .product-info h4 {
    font-size: 17px;
  }

  .colors,
  .sizes {
    gap: 10px;
  }

  .color-btn,
  .sizes button {
    padding: 10px 18px;
    font-size: 14px;
  }

  .add-btn,
  .checkout-btn {
    min-height: 54px;
    margin-top: 24px;
    padding: 15px 18px;
    font-size: 16px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-img {
    width: 120px;
    height: 140px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-links a span {
    display: none;
  }
}