/* ==========================================================================
   ISTORE  CSS
   ========================================================================== */


/* --- 1. RESET & BIẾN MÀU SẮC DÙNG CHUNG --- */
:root {
  --apple-blue: #0071e3;
  --apple-blue-hover: #005bb5;
  --apple-dark: #1d1d1f;
  --apple-gray-text: #86868b;
  --apple-bg: #fbfbfd;
  --apple-border: #e5e5ea;
}

* {
  box-sizing: border-box;
  font-family: "Sora", "Inter", sans-serif;
}

body {
  background-color: var(--apple-bg);
  margin: 0;
  padding: 0;
  color: var(--apple-dark);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}
.hidden {
  display: none !important;
}

/* --- 2. HEADER & THANH ĐIỀU HƯỚNG --- */
.top-bar {
  background-color: var(--apple-dark);
  color: #f5f5f7;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.top-bar a {
  color: #f5f5f7;
  transition: 0.2s;
}
.top-bar a:hover {
  color: var(--apple-blue);
}
.social-icons {
  display: flex;
  gap: 12px;
}

header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 20px;
  border-bottom: 1px solid var(--apple-border);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}
.main-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
}
.main-nav a:hover {
  color: var(--apple-blue);
}
.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}
.promo-btn {
  border: 2px solid var(--apple-blue);
  border-radius: 20px;
  padding: 6px 16px;
  color: var(--apple-blue);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.promo-btn:hover {
  background: var(--apple-blue);
  color: white;
}
.header-icons {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
  align-items: center;
}
.cart-icon-container {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #ff3b30;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* --- 3. FOOTER (CHÂN TRANG) --- */
.site-footer {
  background-color: var(--apple-dark);
  color: #f5f5f7;
  padding: 50px 20px 20px;
  margin-top: 60px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.footer-column h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-column p,
.footer-column li {
  color: var(--apple-gray-text);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column a:hover {
  color: white;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-form input {
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
}
.newsletter-form button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--apple-blue);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.newsletter-form button:hover {
  background: var(--apple-blue-hover);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  color: var(--apple-gray-text);
  font-size: 0.85rem;
}

/* --- 4. TRANG CHỦ (INDEX.HTML) --- */
.hero-banner {
  background: #2952e3;
  display: flex;
  align-items: center;
  padding: 60px 80px;
  gap: 40px;
}
.hero-content {
  flex: 1;
  color: white;
}
.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.hero-button-group {
  display: flex;
  gap: 15px;
}
.hero-btn {
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid white;
  transition: 0.3s;
  font-size: 1.1rem;
}
.hero-btn-primary {
  background: white;
  color: #2952e3;
}
.hero-btn-primary:hover {
  background: transparent;
  color: white;
}
.hero-btn-secondary {
  background: transparent;
  color: white;
}
.hero-btn-secondary:hover {
  background: white;
  color: #2952e3;
}
.hero-phone {
  flex: 1;
  height: 400px;
  background: #111;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 8px solid #333;
}

.services {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 60px auto;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}
.service-item {
  max-width: 250px;
}
.service-item .icon {
  font-size: 3rem;
  margin-bottom: 15px;
}
.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.service-item p {
  color: var(--apple-gray-text);
  font-size: 0.9rem;
}

.hero-compare {
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}
.hero-compare__row {
  display: flex;
  gap: 30px;
  position: relative;
}
.hero-compare__row::after {
  content: "VS";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--apple-blue);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 10;
}
.hero-compare__column {
  flex: 1;
  background: white;
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.hero-compare__column img {
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}
.hero-compare__highlights {
  text-align: left;
  line-height: 1.8;
  color: #555;
  font-size: 0.95rem;
}
.hero-compare__button {
  background: var(--apple-blue);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
}

.products {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}
.products h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

.categories-icon-section {
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}
.categories-icon-section h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}
.categories-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 15px 10px 25px 10px;
}
.category-icon-card {
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  min-width: 140px;
  padding: 30px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.category-icon-card:hover,
.category-icon-card.active {
  border-color: var(--apple-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 113, 227, 0.1);
}
.cate-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* Các khối Banner, Đánh giá, Tin tức (Từ Index) */
.promo-banners-section,
.testimonials-section,
.news-modern-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}
.promo-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.promo-card {
  position: relative;
  padding: 35px 30px;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s;
}
.promo-card:hover {
  transform: translateY(-5px);
}
.bg-gray {
  background-color: #f5f5f7;
}
.bg-peach {
  background-color: #f9ebe0;
}
.bg-mint {
  background-color: #e8f4ed;
}
.promo-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--apple-gray-text);
}
.promo-card h3 {
  font-size: 1.4rem;
  margin: 15px 0 30px 0;
  position: relative;
  z-index: 2;
}
.promo-link {
  color: var(--apple-blue);
  font-weight: 600;
  position: relative;
  z-index: 2;
}
.promo-icon {
  position: absolute;
  bottom: -10px;
  right: 10px;
  font-size: 100px;
  opacity: 0.15;
  z-index: 1;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
}

/* KHÚC NÀY THẺ CAO THẺ THẤP */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.testi-card {
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}
.testi-card.active {
  border-color: var(--apple-blue);
  box-shadow: 0 10px 25px rgba(0, 113, 227, 0.1);
  transform: translateY(-5px);
}
.stars {
  color: #ff9500;
  margin-bottom: 15px;
}

/* KHÚC NÀY ÉP AVATAR XUỐNG ĐÁY & CHỮ GỌN LẠI */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto; /* Lệnh ma thuật đẩy xuống đáy */
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--apple-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.bg-blue {
  background: var(--apple-blue);
}
.bg-dark {
  background: var(--apple-dark);
}
.bg-gray-dark {
  background: var(--apple-gray-text);
}
.user-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.user-text h4 {
  font-size: 0.95rem;
  margin: 0 0 3px 0 !important;
  color: var(--apple-dark);
}
.user-text span {
  font-size: 0.8rem;
  color: var(--apple-gray-text);
  line-height: 1.3;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.news-modern-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}
.news-main-card {
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: 20px;
  overflow: hidden;
}
.news-main-img-box {
  position: relative;
  height: 300px;
  background: #f5f5f7;
}
.news-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--apple-blue);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.news-main-content {
  padding: 30px;
}
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.news-small-card {
  display: flex;
  background: white;
  border: 1px solid var(--apple-border);
  border-radius: 16px;
  overflow: hidden;
}
.news-small-card img {
  width: 130px;
  object-fit: cover;
  background: #f5f5f7;
}
.news-small-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-features {
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 60px auto;
  text-align: center;
  gap: 30px;
  padding: 0 20px;
}
.feature-item {
  flex: 1;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* --- 5. CÁC TRANG DANH MỤC (MAC, IPHONE, IPAD...) --- */
.category-page {
  padding: 40px 0;
}
.category-page-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 0 20px;
}
.category-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  height: fit-content;
}
.filter-group {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.filter-group h3 {
  font-size: 1rem;
  margin-bottom: 15px;
}
.filter-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #555;
}
.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: 0.2s;
}
.color-swatch:hover {
  transform: scale(1.1);
  border-color: var(--apple-blue);
}

.category-products-section {
  flex: 1;
}
.category-products-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.category-subtitle {
  color: var(--apple-gray-text);
  margin-bottom: 30px;
  font-size: 1.05rem;
}
.category-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-product-card {
  background: white;
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f0f0f0;
}
.category-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--apple-blue);
}
.product-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  background: var(--apple-bg);
  border-radius: 12px;
  padding: 10px;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-colors {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
  width: 100%;
}
.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ddd;
}
.category-product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.product-slogan {
  color: var(--apple-gray-text);
  font-size: 0.85rem;
  margin-bottom: 15px;
}
.btn-buy {
  background: var(--apple-blue);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  margin-top: auto;
  transition: 0.2s;
  border: none;
  display: inline-block;
  cursor: pointer;
}
.btn-buy:hover {
  background: var(--apple-blue-hover);
}

/* --- 6. TRANG CHI TIẾT SẢN PHẨM (DETAIL) --- */
.product-detail-container {
  max-width: 1100px;
  margin: 60px auto;
  display: flex;
  gap: 60px;
  padding: 0 20px;
}
.product-detail-left {
  flex: 1;
  text-align: center;
}
.main-product-img {
  width: 100%;
  max-width: 450px;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  object-fit: contain;
}
.thumbnail-list {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}
.thumbnail-list img {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 12px;
  padding: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  object-fit: contain;
}
.thumbnail-list img:hover {
  border-color: var(--apple-blue);
}
.product-detail-right {
  flex: 1;
}
.product-detail-right h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}
.product-price-large {
  font-size: 2rem;
  color: #e30000;
  font-weight: bold;
  margin-bottom: 30px;
}
.selection-group {
  margin-bottom: 25px;
}
.selection-title {
  display: block;
  font-weight: bold;
  margin-bottom: 15px;
}
.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.btn-option {
  background: white;
  border: 1px solid var(--apple-border);
  padding: 12px 25px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.2s;
}
.btn-option:hover {
  border-color: var(--apple-blue);
}
.btn-option.active {
  border-color: var(--apple-blue);
  color: var(--apple-blue);
  background: #f0f7ff;
}
.specs-box {
  background: white;
  padding: 25px;
  border-radius: 16px;
  margin: 30px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}
.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.specs-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  font-size: 0.95rem;
}
.specs-list li:last-child {
  border-bottom: none;
}
.btn-add-to-cart {
  width: 100%;
  background: var(--apple-blue);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-add-to-cart:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
}
.product-features {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}
.features-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.feature-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  text-align: left;
}
/* --- CỤM NÚT MUA HÀNG Ở TRANG CHI TIẾT --- */
.action-buttons {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-top: 10px;
}

/* Nút Mua Ngay (Nổi bật nhất) */
.btn-buy-now {
  flex: 1; /* Chia đều 50% chiều rộng */
  background: var(--apple-blue);
  color: white;
  border: none;
  padding: 18px 10px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-buy-now:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.3);
}

/* Nút Thêm Vào Giỏ (Nút phụ, màu nền nhạt) */
.btn-add-cart {
  flex: 1; /* Chia đều 50% chiều rộng */
  background: rgba(0, 113, 227, 0.08); /* Màu xanh lam cực kỳ nhạt */
  color: var(--apple-blue);
  border: 1px solid rgba(0, 113, 227, 0.2);
  padding: 18px 10px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-add-cart:hover {
  background: rgba(0, 113, 227, 0.15);
  transform: translateY(-2px);
}

/* Ép xuống 1 cột trên điện thoại cho nút khỏi bị ép chữ */
@media (max-width: 480px) {
  .action-buttons {
    flex-direction: column;
  }
}

/* --- 7. TRANG GIỎ HÀNG (CART) --- */
.stitch-cart-container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}
.bag-title {
  font-size: 3rem;
  margin-bottom: 40px;
}
.cart-layout {
  display: flex;
  gap: 40px;
}
.cart-items-col {
  flex: 6;
}
.cart-product {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--apple-border);
  padding: 25px 0;
}
.cart-img {
  width: 130px;
  height: 130px;
  background: white;
  border-radius: 12px;
  padding: 15px;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.cart-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cart-product-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.cart-product-desc {
  color: var(--apple-gray-text);
  margin-bottom: auto;
  font-size: 0.95rem;
}
.cart-product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}
.qty-box {
  display: flex;
  gap: 15px;
  align-items: center;
  background: white;
  border: 1px solid var(--apple-border);
  padding: 5px 15px;
  border-radius: 20px;
}
.qty-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--apple-blue);
  font-weight: bold;
}
.btn-remove {
  color: #ff3b30;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.cart-summary-col {
  flex: 4;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  height: fit-content;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #555;
  font-size: 0.95rem;
}
.summary-divider {
  border: none;
  border-top: 1px solid var(--apple-border);
  margin: 20px 0;
}
.total-line {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--apple-dark);
}
.promo-code {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}
.promo-code input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--apple-border);
  border-radius: 8px;
  font-size: 0.95rem;
}
.promo-code button {
  background: var(--apple-dark);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 600;
}
.btn-checkout-black {
  width: 100%;
  background: var(--apple-dark);
  color: white;
  padding: 18px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}
.btn-checkout-black:hover {
  background: #333;
}

/* Modal Giỏ Hàng & Form */
#checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.checkout-form {
  background: white;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Nút bấm trang Labs */
.btn-lab {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background-color: var(--apple-blue);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 25px;
  transition: 0.3s;
}
.btn-lab:hover {
  background-color: var(--apple-blue-hover);
}

/* --- 8. RESPONSIVE (DÀNH CHO ĐIỆN THOẠI & TABLET) --- */
@media (max-width: 992px) {
  .category-page-container {
    flex-direction: column;
  }
  .category-sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 15px;
  }
  .filter-group {
    border-bottom: none;
    min-width: 150px;
    border-right: 1px solid #eee;
    padding-right: 20px;
  }
  .category-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-banners-grid,
  .testimonials-grid,
  .news-modern-layout,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cart-layout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-compare__row {
    flex-direction: column;
  }
  .product-detail-container {
    flex-direction: column;
    gap: 30px;
  }
  .promo-banners-grid,
  .testimonials-grid,
  .news-modern-layout,
  .features-grid,
  .service-features {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }
  .main-nav ul {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  .top-bar {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .category-product-grid,
  .product-grid {
    grid-template-columns: 1fr;
  } /* Trên điện thoại chỉ còn 1 cột */
}
/* =========================================
   TRANG THANH TOÁN (CHECKOUT PAGE)
   ========================================= */
.checkout-page-container {
  max-width: 1000px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

/* Thanh tiến trình */
.checkout-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  gap: 15px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--apple-gray-text);
}
.step.active {
  color: var(--apple-blue);
  font-weight: bold;
}
.step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e5ea;
  color: #86868b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.step.active .step-icon {
  background: var(--apple-blue);
  color: white;
}
.step-line {
  height: 2px;
  width: 150px;
  background: #e5e5ea;
  margin-bottom: 25px; /* Cân chỉnh lại cho nằm giữa icon */
}

/* Layout 2 cột */
.checkout-layout {
  display: flex;
  gap: 60px;
}
.checkout-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
}
.checkout-form-col {
  flex: 1.2;
}
.checkout-summary-col {
  flex: 1;
}

/* Khung Form */
.shipping-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-row {
  display: flex;
  gap: 15px;
}
.form-row .form-group {
  flex: 1;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--apple-gray-text);
  margin-bottom: 5px;
  font-weight: 600;
}
.form-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--apple-border);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: 0.2s;
}
.form-group input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}
.btn-continue-payment {
  background: var(--apple-blue);
  color: white;
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s;
}
.btn-continue-payment:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-2px);
}

/* Khung Tóm tắt đơn hàng */
.summary-box {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--apple-border);
}
.summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.summary-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--apple-bg);
  border-radius: 8px;
  padding: 5px;
}
.summary-item-info h4 {
  margin: 0 0 5px 0;
  font-size: 0.95rem;
}
.summary-item-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--apple-gray-text);
}
.summary-item-price {
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}
.summary-divider {
  border: none;
  border-top: 1px solid var(--apple-border);
  margin: 20px 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  margin-top: 20px;
}
.summary-total strong {
  font-size: 1.5rem;
}
.secure-checkout {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #34c759; /* Màu xanh lá báo an toàn */
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-layout {
    flex-direction: column-reverse; /* Đẩy giỏ hàng lên trên form trên mobile */
    gap: 40px;
  }
  .form-row {
    flex-direction: column;
  }
}
/* --- PHƯƠNG THỨC THANH TOÁN --- */
.payment-section {
  margin-top: 30px;
  margin-bottom: 20px;
  border-top: 1px solid var(--apple-border);
  padding-top: 20px;
}
.payment-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--apple-border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.payment-option:hover {
  border-color: var(--apple-blue);
  background-color: var(--apple-bg);
}
.payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--apple-blue); /* Đổi màu nút tròn thành xanh Apple */
  cursor: pointer;
}
.payment-option span {
  font-size: 0.95rem;
  font-weight: 500;
}
/* =========================================
   TRANG DỊCH VỤ & VỀ CHÚNG TÔI (SERVICES PAGE)
   ========================================= */

.about-main {
  font-family: "Inter", sans-serif;
  color: #1d1d1f;
  background-color: #f5f5f7; /* Màu nền xám nhạt đặc trưng Apple */
}

/* Hero Banner */
.services-hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
}
.services-hero__kicker {
  font-size: 0.9rem;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.services-hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.services-hero__subtext {
  font-size: 1.3rem;
  color: #515154;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

/* Nút bấm kiểu Apple */
.apple-btn {
  display: inline-block;
  background-color: #0071e3;
  color: #fff;
  padding: 12px 24px;
  border-radius: 980px; /* Bo tròn hoàn toàn */
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.apple-btn:hover {
  background-color: #0077ed;
  transform: scale(1.02);
}
.apple-btn--primary {
  background-color: #1d1d1f;
}
.apple-btn--primary:hover {
  background-color: #434344;
}

/* Storytelling Section */
.services-story {
  padding: 80px 20px;
  background-color: #fff;
  text-align: center;
}
.services-story__title {
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.services-story__content {
  max-width: 800px;
  margin: 0 auto;
}
.services-story__paragraph {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
}

/* Grid Dịch Vụ */
.services-grid-section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.services-grid-section__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.services-grid-section__subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #86868b;
  margin-bottom: 60px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.services-card {
  background-color: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.services-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.services-card__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.services-card__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.services-card__desc {
  color: #515154;
  line-height: 1.6;
}

/* Final CTA */
.services-final-cta {
  background-color: #fff;
  padding: 100px 20px;
  text-align: center;
  border-top: 1px solid #e5e5ea;
}
.services-final-cta__title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.services-final-cta__sub {
  font-size: 1.2rem;
  color: #86868b;
  margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .services-hero__title {
    font-size: 2.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   TRANG ĐẶT HÀNG THÀNH CÔNG (SUCCESS PAGE)
   ========================================= */
.success-page-container {
  max-width: 650px;
  margin: 60px auto;
  padding: 0 20px;
}

.success-card {
  background: white;
  border-radius: 24px;
  padding: 45px 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--apple-border);
  text-align: center;
}

.success-icon-box {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-headline {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--apple-dark);
  margin-bottom: 15px;
}

.success-subtext {
  color: var(--apple-gray-text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  padding: 0 10px;
}

/* Khung thông tin đơn hàng */
.order-meta-box {
  background: var(--apple-bg);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid var(--apple-border);
  text-align: left;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 0.95rem;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-row span {
  color: var(--apple-gray-text);
}

.status-badge {
  color: #0071e3;
}

/* Khung các bước tiếp theo */
.next-steps-box {
  text-align: left;
  background: #f0f7ff; /* Nền xanh lam cực nhẹ */
  border-left: 4px solid var(--apple-blue);
  padding: 20px;
  border-radius: 0 16px 16px 0;
  margin-bottom: 35px;
}

.next-steps-box h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--apple-dark);
}

.next-steps-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.next-steps-box li {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 10px;
}

.next-steps-box li:last-child {
  margin-bottom: 0;
}

/* Nút quay lại trang chủ */
.btn-back-home {
  display: block;
  background: var(--apple-dark);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.05rem;
  transition: 0.3s;
}

.btn-back-home:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================================================== */
/* FLASH SALE                                            */
/* ========================================================================== */

.flash-sale-section {
  background: #0b0b0f;
  padding: 60px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.flash-sale-section::before {
  content: "";
  position: absolute;
  inset: -200px -100px auto -100px;
  height: 420px;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 59, 48, 0.35),
      transparent 60%
    ),
    radial-gradient(circle at 70% 10%, rgba(255, 120, 0, 0.25), transparent 55%);
  filter: blur(0.2px);
  pointer-events: none;
}

.flash-sale-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.flash-sale-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.flash-sale-title {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 80, 40, 0.35);
}

.flash-sale-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 59, 48, 0.7),
    transparent
  );
}

.flash-sale-countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin-bottom: 35px;
}

.count-box {
  width: 92px;
  height: 92px;
  background:
    linear-gradient(180deg, rgba(255, 90, 60, 0.16), rgba(0, 0, 0, 0.35)),
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 50%
    );
  border: 1px solid rgba(255, 80, 40, 0.45);
  border-radius: 16px;
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(255, 80, 40, 0.12),
    inset 0 0 12px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.count-box::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.16),
    transparent 60%
  );
  transform: rotate(10deg);
  opacity: 0.7;
}

.count-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 80, 40, 0.45);
}

.count-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 8px;
  font-weight: 600;
}

.count-sep {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.65);
  transform: translateY(-4px);
}

.flash-sale-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.flash-product-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.35)
  );
  border: 1px solid rgba(255, 80, 40, 0.25);
  border-radius: 20px;
  padding: 22px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(255, 80, 40, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.flash-product-card:hover {
  border-color: rgba(255, 80, 40, 0.55);
}

.flash-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #ff3b30;
  color: #fff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 0 25px rgba(255, 59, 48, 0.35);
}

.flash-product-img {
  height: 140px;
  border-radius: 16px;
  margin-top: 42px;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255, 255, 255, 0.18),
      transparent 55%
    ),
    radial-gradient(circle at 70% 70%, rgba(255, 90, 0, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(255, 59, 48, 0.18), rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.flash-product-img.alt-2 {
  background:
    radial-gradient(
      circle at 25% 30%,
      rgba(255, 255, 255, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at 75% 60%,
      rgba(255, 140, 0, 0.22),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(255, 80, 40, 0.18), rgba(0, 0, 0, 0.22));
}

.flash-product-img.alt-3 {
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.14),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 59, 48, 0.22),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(255, 120, 0, 0.18), rgba(0, 0, 0, 0.22));
}

.flash-product-shine {
  position: absolute;
  inset: -30px -60px auto -60px;
  height: 200px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: rotate(18deg);
  animation: shineSweep 1.8s ease-in-out infinite;
}

@keyframes shineSweep {
  0%,
  100% {
    transform: translateX(-25%) rotate(18deg);
    opacity: 0.35;
  }
  50% {
    transform: translateX(25%) rotate(18deg);
    opacity: 0.75;
  }
}

.flash-product-name {
  margin: 18px 0 10px 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.flash-product-desc {
  margin: 0 0 18px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.flash-product-price {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 0 18px rgba(255, 80, 40, 0.25);
}

.flash-product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff3b30, #ff6a00);
  color: #fff;
  font-weight: 900;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  box-shadow: 0 14px 35px rgba(255, 59, 48, 0.28);
  transition: 0.2s;
}

.flash-product-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
  .cam-vu-tru-container {
    grid-template-columns: 1fr;
  }
  .cam-vu-tru-stage {
    height: 360px;
  }
  .flash-sale-products {
    grid-template-columns: 1fr;
  }
  .flash-sale-countdown {
    margin-bottom: 22px;
  }
  .count-box {
    width: 86px;
    height: 86px;
  }
}
