* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #090a0c;
  color: #f6f2e9;
  font-family: Montserrat, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #292725;
  position: sticky;
  top: 0;
  background: #090a0cf2;
  z-index: 5;
}

.brand {
  font-weight: 800;
  letter-spacing: 2px;
}

.brand span,
.eyebrow,
h1 span,
h2 span {
  color: #d8b46a;
}

.brand small {
  display: block;
  font-size: 8px;
  color: #888;
  letter-spacing: 2px;
  margin-top: 4px;
}

nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  color: #ccc;
}

.admin {
  font-size: 10px;
  color: #d8b46a;
  border: 1px solid #645333;
  padding: 12px;
}

.hero {
  min-height: 530px;
  padding: 65px 9%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  background: radial-gradient(ellipse at 75% 45%, #252018, #090a0c 65%);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 57px);
  line-height: 1.2;
}

.sub {
  color: #aaa;
  font-size: 13px;
  line-height: 1.9;
  max-width: 420px;
}

.btn,
.outline {
  display: inline-block;
  background: #d8b46a;
  color: #111;
  border: 0;
  padding: 15px 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 16px;
}

.outline {
  background: none;
  border: 1px solid #806c43;
  color: #e4c87e;
}

.tag {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #777;
  margin-top: 48px;
}

.art {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ring {
  width: 300px;
  height: 300px;
  border: 1px solid #665536;
  border-radius: 50%;
  position: absolute;
}

.strap {
  position: absolute;
  width: 75px;
  height: 235px;
  border-radius: 18px;
  background: linear-gradient(90deg, #111, #63543b, #111);
  border: 2px solid #a58b55;
}

.face {
  z-index: 1;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  border: 7px solid #b89b5e;
  background: radial-gradient(
    circle,
    #202124,
    #070809 68%,
    #b79a5d 70%,
    #161616 77%
  );
  position: relative;
  box-shadow: 0 20px 30px #000;
}

.face b {
  position: absolute;
  top: 37px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 3px;
  color: #ddc27f;
}

.face i,
.face em {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 48px;
  width: 3px;
  background: #e2c478;
  transform-origin: bottom;
  transform: translate(-50%, -100%) rotate(40deg);
}

.face em {
  height: 60px;
  width: 2px;
  transform: translate(-50%, -100%) rotate(140deg);
}

.art small {
  position: absolute;
  bottom: 0;
  right: 4%;
  color: #88764f;
  font-size: 8px;
  letter-spacing: 3px;
}

.intro {
  text-align: center;
  padding: 70px 20px 35px;
}

.intro h2,
.contact h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.intro p:last-child,
.contact p {
  color: #999;
  font-size: 12px;
  line-height: 1.8;
}

.products {
  padding: 45px 8% 80px;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.head h2 {
  font-size: 25px;
}

.head input,
input,
textarea {
  background: #111214;
  border: 1px solid #393939;
  color: #fff;
  padding: 13px;
  font: inherit;
  font-size: 12px;
}

.head input {
  min-width: 230px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #121315;
  border: 1px solid #282828;
  cursor: pointer;
}

.photo {
  height: 230px;
  background: linear-gradient(145deg, #252321, #090a0c);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch {
  font-size: 80px;
  color: #b79a5d;
}

.info {
  padding: 20px;
}

.info h3 {
  font-size: 14px;
}

.info p {
  font-size: 11px;
  color: #999;
  line-height: 1.7;
  min-height: 35px;
}

.price {
  color: #e2c37b;
  font-size: 17px;
  font-weight: 800;
}

.old {
  color: #777;
  text-decoration: line-through;
  font-size: 11px;
  margin-left: 8px;
}

.contact {
  margin: 0 8% 70px;
  padding: 40px;
  background: #151513;
  border: 1px solid #413621;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

footer {
  padding: 25px 8%;
  border-top: 1px solid #292929;
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 9px;
  letter-spacing: 1px;
}

/* --- HỆ THỐNG MODAL CHUNG --- */
.modal {
  position: fixed;
  inset: 0;
  background: #000d;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.hidden {
  display: none !important;
}

.box {
  max-width: 760px;
  width: 100%;
  background: #111214;
  border: 1px solid #5b4a2b;
  padding: 25px;
  position: relative;
}

.close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  color: white;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

.box label {
  display: block;
  font-size: 10px;
  color: #aaa;
  margin-top: 10px;
}

.box input,
.box textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
}

.box textarea {
  min-height: 55px;
}

/* --- TỐI ƯU KHUNG POPUP CHI TIẾT SẢN PHẨM (2 CỘT DESKTOP) --- */
.product-detail-box {
  max-width: 820px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 25px;
  align-items: start;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.product-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image-wrap {
  width: 100%;
  height: 330px;
  background: #090a0c;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #282828;
}

.main-image-wrap img,
#mimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.gallery-thumbs img,
.gallery-thumbs .thumb-item {
  width: 55px !important;
  height: 55px !important;
  border-radius: 4px;
  border: 1px solid #333;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gallery-thumbs img:hover,
.gallery-thumbs .thumb-item:hover,
.gallery-thumbs .thumb-item.active {
  opacity: 1;
  border-color: #d8b46a;
  transform: scale(1.05);
}

.product-info-wrap {
  text-align: left;
}

.modal-product-title,
#mname {
  font-size: 20px;
  line-height: 1.35;
  margin: 6px 0 10px;
  color: #fff;
}

.modal-product-price,
#mprice {
  color: #d8b46a;
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 12px;
}

.modal-product-desc,
#mdesc {
  font-size: 12px;
  color: #bbb;
  line-height: 1.6;
  margin-bottom: 14px;
  white-space: pre-line;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions button,
.action-btn {
  flex: 1;
  padding: 13px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-top: 0;
  text-align: center;
}

/* --- BẢNG THÔNG SỐ KỸ THUẬT (SPECS) --- */
.specs-table {
  width: 100%;
  margin: 15px 0;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.specs-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #222;
}

.specs-table td:first-child {
  color: #888;
  width: 40%;
}

.specs-table td:last-child {
  color: #e0c37b;
  font-weight: 600;
}

/* --- GIAO DIỆN TÌM KIẾM & BỘ LỌC --- */
.search-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin: 20px auto 30px;
}

.search-filter-wrapper input,
.search-filter-wrapper select {
  background: #141619;
  border: 1px solid #383121;
  color: #e0c37b;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.search-filter-wrapper input {
  flex: 2;
  min-width: 220px;
  color: #fff;
}

.search-filter-wrapper select {
  flex: 1;
  min-width: 140px;
}

.search-filter-wrapper input:focus,
.search-filter-wrapper select:focus {
  border-color: #d8b46a;
  box-shadow: 0 0 8px rgba(216, 180, 106, 0.25);
}

/* --- SOCIAL PROOF: SAO & ĐÃ BÁN --- */
.rating-sold {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #888;
  margin: 5px 0 8px;
}

.rating-sold .stars {
  color: #f5a623;
}

/* --- KHỐI CAM KẾT CHÍNH SÁCH --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.feature-item {
  background: #121316;
  border: 1px solid #28241b;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.feature-item .icon {
  font-size: 26px;
  margin-bottom: 8px;
  display: block;
}

.feature-item h4 {
  margin: 0 0 5px;
  color: #e0c37b;
  font-size: 14px;
}

.feature-item p {
  margin: 0;
  font-size: 12px;
  color: #888;
}

/* --- HEADER NÚT GIỎ HÀNG --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  color: #d8b46a;
  font-weight: 700;
  border: 1px solid #d8b46a;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(216, 180, 106, 0.08);
}

/* --- NÚT LIÊN HỆ NỔI (FLOATING WIDGET) --- */
.floating-contact {
  position: fixed;
  bottom: 70px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-zalo {
  background: #0068ff;
}

.float-phone {
  background: #28a745;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* --- POPUP HÓA ĐƠN & CẢM ƠN (THANK YOU MODAL) --- */
.thankyou-box {
  background: #0f1115;
  border: 1px solid #d8b46a;
  box-shadow: 0 10px 30px rgba(216, 180, 106, 0.2);
  border-radius: 10px;
  padding: 25px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  color: #fff;
}

.thankyou-icon {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
}

.order-receipt {
  background: #17191e;
  border: 1px dashed #3a3a3a;
  padding: 15px;
  border-radius: 6px;
  margin: 15px 0;
  text-align: left;
  font-size: 12px;
}

/* --- RESPONSIVE MOBILE (< 768px) --- */
@media (max-width: 768px) {
  header {
    padding: 0 12px;
  }

  nav {
    display: none;
  }

  .brand {
    font-size: 13px;
  }

  .header-actions {
    gap: 6px;
  }

  .cart-btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .cart-text {
    display: none;
  }

  .admin {
    padding: 6px 8px;
    font-size: 9px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 45px 22px 25px;
  }

  .art {
    height: 280px;
  }

  .ring {
    width: 250px;
    height: 250px;
  }

  .face {
    width: 140px;
    height: 140px;
  }

  .products {
    padding: 35px 16px;
  }

  .head {
    display: block;
  }

  .head input {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .photo {
    height: 160px;
  }

  .contact {
    margin: 0 16px 40px;
    padding: 25px;
    display: block;
  }

  footer {
    padding: 20px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .search-filter-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  /* Modal chi tiết trên di động: thu về 1 cột dọc */
  .product-detail-box {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    max-height: 88vh;
    gap: 16px;
  }

  .main-image-wrap {
    height: 230px;
  }

  .gallery-thumbs img,
  .gallery-thumbs .thumb-item {
    width: 48px !important;
    height: 48px !important;
  }

  .modal-product-title,
  #mname {
    font-size: 17px;
  }

  .modal-product-price,
  #mprice {
    font-size: 20px;
  }

  .modal-actions {
    gap: 8px;
  }

  .modal-actions button,
  .action-btn {
    padding: 11px 8px;
    font-size: 10px;
  }
}

/* Ẩn badge Netlify nếu xuất hiện */
#netlify-badge,
[data-netlify-deploy-id] {
  display: none !important;
}