/* ==========================================================================
   REVIT BIM STORE - SOFT PEACH & WARM CREAM STOREFRONT STYLES
   ========================================================================== */

/* Site Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 243, 238, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-light);
  padding: 14px 32px;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(212, 143, 56, 0.28);
  border: 1px solid rgba(212, 143, 56, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(212, 143, 56, 0.42);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--gradient-peach);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.3rem;
  box-shadow: var(--shadow-peach);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-pure);
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item {
  padding: 8px 18px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.nav-item:hover {
  color: var(--text-pure);
  background: rgba(255, 107, 74, 0.08);
}

.nav-item.active {
  color: var(--text-pure);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  border: 1px solid #EAE0D7;
}

/* Nav Actions & Auth Button on Top Right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  background: #FFFFFF;
  border: var(--border-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.cart-btn:hover {
  border-color: var(--primary);
  background: #FFF9F5;
  color: var(--primary);
}

.cart-count {
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.btn-auth-top {
  background: var(--gradient-peach);
  color: #FFFFFF;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-peach);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-auth-top:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* ==========================================================================
   3 BIG PILLAR CARDS (TOOLS, FAMILY & TEMPLATE, CUSTOM SERVICES)
   ========================================================================== */
.pillars-section {
  max-width: 1400px;
  margin: 24px auto 36px;
  padding: 0 32px;
}

.pillars-header {
  text-align: center;
  margin-bottom: 24px;
}

.pillars-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #EAE0D7;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.pillars-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-pure);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pillar-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #FFFFFF;
  border: var(--border-light);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(255, 107, 74, 0.15);
}

.pillar-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #F3EAE3;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-media img {
  transform: scale(1.06);
}

.pillar-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.95) 100%);
}

.pillar-badge-float {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.pillar-icon-box {
  position: absolute;
  bottom: 12px;
  left: 20px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 2;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(180, 120, 90, 0.15);
  border: 1px solid #F0E6DE;
}

.pillar-content {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.pillar-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #F3EAE3;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--primary);
}

/* ==========================================================================
   CATALOG SECTION & ADMIN PRODUCT MANAGEMENT BAR
   ========================================================================== */
.catalog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px 80px;
}

.catalog-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.catalog-section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-pure);
}

/* Nút Thêm Sản Phẩm Mới & Niêm Yết Giá Dành Cho Admin */
.btn-admin-add-product {
  background: var(--gradient-peach);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-peach);
  transition: all var(--transition-smooth);
}

.btn-admin-add-product:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.toolbar-card {
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #FFFFFF;
  border: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: #FAF3EE;
  border: 1px solid #EAE0D7;
  border-radius: var(--radius-full);
  color: var(--text-pure);
  font-size: 0.94rem;
  outline: none;
  transition: all var(--transition-smooth);
}

.search-box input:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.15);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #FAF3EE;
  border: 1px solid #EAE0D7;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.filter-btn:hover {
  background: #FFF0EB;
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.25);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.product-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #FFFFFF;
  border: var(--border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg), 0 8px 24px rgba(255, 107, 74, 0.12);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F3EAE3;
}

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

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

.media-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #F3EAE3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.current-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-deep);
}

/* Nút Admin trên từng Card sản phẩm */
.admin-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #F0E6DE;
}

/* ==========================================================================
   VIDEO REVIEW PLAYER TRONG MODAL CHI TIẾT SẢN PHẨM
   ========================================================================== */
.video-review-box {
  background: #18191A;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.video-review-box iframe,
.video-review-box video {
  width: 100%;
  height: 100%;
  border: none;
}

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.detail-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #EAE0D7;
  background: #FAF3EE;
  color: var(--text-muted);
  transition: all var(--transition-smooth);
}

.detail-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================================
   CUSTOM SERVICES & REQUEST FORM
   ========================================================================== */
.custom-services-container {
  max-width: 1400px;
  margin: 20px auto 80px;
  padding: 0 32px;
}

.custom-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  padding: 50px 44px;
  background: linear-gradient(135deg, rgba(255, 126, 95, 0.15) 0%, rgba(254, 180, 123, 0.05) 100%), #FFFFFF;
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
}

.custom-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.custom-banner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.workflow-card {
  background: #FFFFFF;
  border: var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.workflow-step {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.workflow-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.workflow-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.request-form-card {
  background: #FFFFFF;
  border: var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #FAF3EE;
  border: 1px solid #EAE0D7;
  border-radius: var(--radius-md);
  color: var(--text-pure);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-smooth);
}

.form-control:focus {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.15);
}

/* ==========================================================================
   AUTH MODAL STYLES
   ========================================================================== */
.auth-modal {
  max-width: 460px;
}

.auth-tabs {
  display: flex;
  background: #FAF3EE;
  padding: 4px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

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

/* ==========================================================================
   HOMEPAGE PILLAR CARDS ADMIN EDITING & CUSTOMIZATION STYLES
   ========================================================================== */
.pillar-quick-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pillar-quick-edit-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: scale(1.05);
}

.pillar-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid #EAE0D7;
  background: #FAF3EE;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.pillar-tab-btn:hover {
  border-color: var(--primary);
  color: var(--text-pure);
}

.pillar-tab-btn.active {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(224, 90, 43, 0.15);
}

.emoji-chip {
  background: #FAF3EE;
  border: 1px solid #EAE0D7;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.emoji-chip:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  transform: scale(1.2);
}

