/* ============================================
   NewLuck.store - Minimal White Premium Style
   Pure Static B2C E-Commerce
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: #111;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 40px;
}

/* === Promotion Banner (top bar) === */
.promo-bar {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.promo-bar span {
  font-weight: 600;
}

/* === Header / Navigation === */
.header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #111;
  text-transform: uppercase;
}

.logo span {
  color: #999;
  font-weight: 300;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  padding: 5px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #111;
}

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

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 8px 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: #555;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f9f9f9;
  color: #111;
}

/* Header Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions .icon-btn {
  position: relative;
  font-size: 1.1rem;
  color: #555;
  padding: 5px;
  transition: color 0.2s;
}

.header-actions .icon-btn:hover {
  color: #111;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #111;
  color: #fff;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Search */
.search-box {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-radius: 4px;
  z-index: 100;
}

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

.search-box input {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  width: 250px;
  outline: none;
  border-radius: 3px;
  font-size: 0.85rem;
}

.search-box input:focus {
  border-color: #111;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  transition: 0.3s;
}

/* === Hero Banner / Slider === */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #f8f8f8;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #111;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  padding: 12px 35px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.3s;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
  color: #fff;
}

.btn-outline {
  border: 1.5px solid #111;
  color: #111;
  background: transparent;
}

.btn-outline:hover {
  background: #111;
  color: #fff;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dot.active {
  background: #111;
}

.slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  font-size: 1.1rem;
  color: #333;
  transition: background 0.3s;
}

.slider-arrow:hover {
  background: #fff;
}

/* === Category Grid === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1;
  background: #f5f5f5;
  cursor: pointer;
}

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

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

.category-card .category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.4));
  color: #fff;
}

.category-card .category-label h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.category-card .category-label p {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}

.product-card .product-img {
  position: relative;
  aspect-ratio: 1;
  background: #f5f5f5;
  overflow: hidden;
}

.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-img img {
  transform: scale(1.03);
}

.product-card .add-to-cart-btn {
  position: absolute;
  bottom: -45px;
  left: 0;
  right: 0;
  background: rgba(17,17,17,0.9);
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: bottom 0.3s;
}

.product-card:hover .add-to-cart-btn {
  bottom: 0;
}

.product-card .product-info {
  padding: 15px;
}

.product-card .product-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
}

.product-card .product-price .original-price {
  text-decoration: line-through;
  color: #aaa;
  font-weight: 400;
  margin-left: 8px;
  font-size: 0.85rem;
}

/* Badge */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
}

.badge-sale {
  background: #c0392b;
}

/* Horizontal scroll section */
.scroll-section {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-section::-webkit-scrollbar {
  height: 4px;
}

.scroll-section::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.scroll-section::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.scroll-section .product-card {
  min-width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* === Free Shipping Banner === */
.shipping-banner {
  background: #f9f9f9;
  border: 1px solid #eee;
  text-align: center;
  padding: 20px;
  border-radius: 6px;
  margin: 40px 0;
}

.shipping-banner h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.shipping-banner p {
  font-size: 0.85rem;
  color: #888;
  margin-top: 5px;
}

/* === Page Hero (inner pages) === */
.page-hero {
  background: #f8f8f8;
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #111;
  text-transform: uppercase;
}

.breadcrumb {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #999;
}

.breadcrumb a {
  color: #666;
}

.breadcrumb a:hover {
  color: #111;
}

/* === List Page === */
.list-layout {
  display: flex;
  gap: 30px;
  padding: 40px 0;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.sidebar h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  padding: 6px 0;
  cursor: pointer;
}

.filter-group label:hover {
  color: #111;
}

.filter-group input[type="checkbox"] {
  accent-color: #111;
}

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.sort-bar .result-count {
  font-size: 0.85rem;
  color: #888;
}

.sort-bar select {
  border: 1px solid #e0e0e0;
  padding: 8px 15px;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #555;
  outline: none;
  background: #fff;
}

.product-list {
  flex: 1;
}

/* === Detail Page === */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px 0;
}

.detail-images .main-image {
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
}

.detail-images .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-images .thumb-list {
  display: flex;
  gap: 10px;
}

.detail-images .thumb-list .thumb {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background: #f5f5f5;
}

.detail-images .thumb-list .thumb.active,
.detail-images .thumb-list .thumb:hover {
  border-color: #111;
}

.detail-info h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.detail-info .detail-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
}

.detail-info .detail-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
}

.option-group {
  margin-bottom: 20px;
}

.option-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-group .options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-group .option-btn {
  padding: 8px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #555;
  transition: all 0.2s;
  background: #fff;
}

.option-group .option-btn:hover,
.option-group .option-btn.selected {
  border-color: #111;
  color: #111;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 25px;
}

.quantity-control button {
  width: 40px;
  height: 40px;
  border: 1.5px solid #e0e0e0;
  font-size: 1.1rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.quantity-control button:hover {
  border-color: #111;
  color: #111;
}

.quantity-control input {
  width: 60px;
  height: 40px;
  border: 1.5px solid #e0e0e0;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 0.9rem;
  outline: none;
}

.detail-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.detail-actions .btn {
  flex: 1;
  text-align: center;
}

/* Related Products */
.related-section {
  padding: 50px 0;
  border-top: 1px solid #f0f0f0;
}

/* === Cart Page === */
.cart-layout {
  padding: 40px 0;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.cart-table thead th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.cart-table tbody td {
  padding: 20px 15px;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.cart-item-variant {
  font-size: 0.8rem;
  color: #999;
  margin-top: 3px;
}

.cart-table .qty-control {
  display: flex;
  align-items: center;
}

.cart-table .qty-control button {
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-table .qty-control input {
  width: 45px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 0.85rem;
  outline: none;
}

.cart-remove {
  font-size: 0.8rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-remove:hover {
  color: #c0392b;
}

.cart-summary {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 6px;
  max-width: 400px;
  margin-left: auto;
}

.cart-summary h3 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}

.cart-summary .summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  padding-top: 15px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.cart-empty {
  text-align: center;
  padding: 80px 0;
}

.cart-empty h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: #888;
  margin-bottom: 20px;
}

/* === Policy Pages === */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}

.policy-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #111;
  margin: 30px 0 15px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.policy-content ul {
  margin: 10px 0 15px 20px;
}

.policy-content ul li {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
  list-style: disc;
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

.faq-question .faq-toggle {
  font-size: 1.2rem;
  color: #999;
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding-top: 15px;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
}

/* === Contact === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px 0;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  border-radius: 3px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #111;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-block p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 10px;
}

.contact-info-block .info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-info-block .info-item .info-icon {
  font-size: 1.2rem;
  color: #111;
  width: 24px;
  text-align: center;
}

/* === Footer === */
.footer {
  background: #f9f9f9;
  border-top: 1px solid #eee;
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: #888;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #111;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #666;
  transition: all 0.2s;
}

.social-icons a:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* Payment Icons */
.payment-icons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.payment-icons .pay-icon {
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  background: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #aaa;
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #555;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* === Toast Notification === */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    height: 350px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .sidebar {
    display: none;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody tr {
    display: block;
    padding: 15px 0;
  }

  .cart-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: none;
  }

  .cart-table tbody td::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .cart-summary {
    max-width: 100%;
  }

  .detail-actions {
    flex-direction: column;
  }

  .scroll-section .product-card {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 280px;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .header-actions {
    gap: 12px;
  }
}
