/* ===========================================
   Brandstore Skin - Destoon Member Shop Template
   Based on Astra Brandstore design
   =========================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

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

/* ---------- Header ---------- */
.brand-header {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}
.brand-logo { font-size: 24px; font-weight: 700; color: #111827; letter-spacing: -0.5px; }

/* Navigation */
.brand-nav { display: flex; align-items: center; gap: 32px; }
.brand-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.2s;
  position: relative;
}
.brand-nav a:hover, .brand-nav a.active { color: #2563eb; }
.brand-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
}



/* ---------- Hero / Banner ---------- */
.brand-hero { overflow:hidden; }
.banner-wrap { width:100%; position:relative; }
.banner-swiper { width:100%; }
.banner-swiper .swiper-slide img { width:100%; display:block; }
.banner-swiper .swiper-pagination { bottom:16px !important; }
.banner-swiper .swiper-pagination-bullet { background:rgba(255,255,255,0.6); }
.banner-swiper .swiper-pagination-bullet-active { background:#fff; }
.banner-single { width:100%; }
.banner-single img { width:100%; display:block; }
.banner-fallback {
  background:linear-gradient(135deg,#1e3a5f,#2563eb);
  color:#fff; padding:80px 20px; text-align:center;
}
.banner-fallback h1 { font-size:42px; font-weight:700; margin-bottom:16px; }
.banner-fallback p { font-size:18px; color:rgba(255,255,255,0.85); max-width:600px; margin:0 auto 32px; }
.brand-btn {
  display:inline-block; padding:14px 36px; background:#fff; color:#2563eb;
  font-size:16px; font-weight:600; border-radius:8px; white-space:nowrap;
  transition:transform 0.2s,box-shadow 0.2s;
}
.brand-btn:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,0.15); }
/* ---------- Section Common ---------- */
.section { padding: 60px 0; }
.section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px; color: #111827; }
.section-subtitle { font-size: 15px; color: #6b7280; text-align: center; margin-bottom: 40px; }

/* ---------- Category Grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.cat-card img { width: 48px; height: 48px; margin-bottom: 12px; }
.cat-card h3 { font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.cat-card p { font-size: 13px; color: #9ca3af; }

/* ---------- Product Grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.product-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.product-card-body { padding: 14px; }
.product-card-body h4 { font-size: 14px; font-weight: 500; color: #1f2937; margin-bottom: 6px; line-height: 1.4; }
.product-card-body .price { font-size: 18px; font-weight: 700; color: #2563eb; }
.product-card-body .old-price { font-size: 13px; color: #9ca3af; text-decoration: line-through; margin-left: 6px; }

/* ---------- Features Section ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.feature-card img { width: 40px; height: 40px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: #6b7280; }

/* ---------- Footer ---------- */
.brand-footer {
  background: #111827;
  color: #d1d5db;
  padding: 48px 0 24px;
}
.brand-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.brand-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.brand-footer a { display: block; font-size: 13px; color: #9ca3af; margin-bottom: 8px; transition: color 0.2s; }
.brand-footer a:hover { color: #fff; }
.brand-footer-bottom { text-align: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid #374151; font-size: 13px; color: #6b7280; }

/* ---------- Contact Form ---------- */
.contact-form { max-width: 600px; margin: 0 auto; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  background: #2563eb;
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover { background: #1d4ed8; }

/* ---------- Product Detail ---------- */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.prod-detail .gallery img { width: 100%; border-radius: 12px; }
.prod-detail .info h1 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.prod-detail .info .price { font-size: 28px; font-weight: 700; color: #2563eb; margin-bottom: 20px; }
.prod-detail .info .desc { font-size: 14px; color: #6b7280; line-height: 1.8; margin-bottom: 24px; }

/* ---------- Product List (Category Page) ---------- */
.prod-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.prod-list-header h1 { font-size: 22px; font-weight: 700; }
.prod-list-sort { display: flex; gap: 8px; }
.prod-list-sort a {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #6b7280;
  transition: all 0.2s;
}
.prod-list-sort a:hover, .prod-list-sort a.active { border-color: #2563eb; color: #2563eb; }

/* ---------- Page Numbers ---------- */
.pages { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pages a, .pages strong {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #4b5563;
  transition: all 0.2s;
}
.pages a:hover { border-color: #2563eb; color: #2563eb; }
.pages strong { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ---------- Sidebar ---------- */
.sidebar { width: 260px; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #2563eb; }
.sidebar-section a { display: block; font-size: 13px; color: #6b7280; padding: 6px 0; transition: color 0.2s; }
.sidebar-section a:hover { color: #2563eb; }
.sidebar-section .contact-item { font-size: 13px; color: #6b7280; padding: 4px 0; }

/* ---------- Online Badge ---------- */
.online-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; color: #fff; background: #22c55e; vertical-align: middle; }


/* ---------- Banner Overlay ---------- */
.banner-swiper .swiper-slide { position:relative; }
.banner-swiper .swiper-slide::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(30,58,95,0.5),rgba(37,99,235,0.4));
}
.banner-overlay {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  z-index:10; text-align:center; color:#fff; width:90%; max-width:700px;
  pointer-events:none;
}
.banner-overlay * { pointer-events:auto; }
.banner-overlay h1 { font-size:42px; font-weight:700; margin-bottom:12px; text-shadow:0 2px 8px rgba(0,0,0,0.3); }
.banner-overlay p { font-size:18px; margin-bottom:24px; opacity:0.9; }
.banner-fallback { display:none; }
/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .brand-nav { display: none; }
  .product-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .brand-footer-inner { grid-template-columns: 1fr 1fr; }
  .prod-detail { grid-template-columns: 1fr; }
  .brand-hero h1 { font-size: 28px; }
}
@media (max-width: 480px) {
  .product-grid, .cat-grid { grid-template-columns: 1fr; }
  .brand-footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Top Bar ---------- */
.top-bar { background:#fff; border-bottom:1px solid #f3f4f6; font-size:12px; color:#6b7280; }
.top-bar .container { display:flex; justify-content:space-between; align-items:center; height:36px; }
.top-bar a { color:#6b7280; transition:color .2s; }
.top-bar a:hover { color:#2563eb; }
.top-bar .sep { margin:0 8px; color:#d1d5db; }
.top-bar .cart { margin-left:12px; font-size:14px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background:#f9fafb; padding:12px 0; font-size:13px; color:#6b7280; border-bottom:1px solid #f3f4f6; }
.breadcrumb a { color:#4b5563; }
.breadcrumb a:hover { color:#2563eb; }
.breadcrumb .sep { margin:0 8px; color:#d1d5db; }

/* ---------- Main Wrap ---------- */
.main-wrap { min-height:400px; }

/* ---------- Section Variants ---------- */
.section-gray { background:#f9fafb; }

/* ---------- Brand Logo ---------- */
.brand-logo { display:flex; align-items:center; gap:10px; }
.brand-logo .logo-img { height:36px; width:auto; border-radius:6px; }
.brand-logo span { font-size:20px; font-weight:700; color:#111827; }

/* ---------- Contact Grid ---------- */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.contact-icons { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.ci-item { display:flex; flex-direction:column; align-items:center; padding:20px; background:#f9fafb; border-radius:10px; transition:transform .2s,box-shadow .2s; }
.ci-item:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.08); }
.ci-item img { width:40px; height:40px; margin-bottom:8px; }
.ci-item span { font-size:12px; color:#4b5563; }
.contact-info table { width:100%; border-collapse:collapse; }
.contact-info td { padding:10px 12px; border-bottom:1px solid #f3f4f6; font-size:14px; }
.contact-info .label { font-weight:600; color:#374151; width:100px; }

/* ---------- Icon Colors ---------- */
.cat-icon { font-size:32px; color:#2563eb; margin-bottom:12px; display:block; }
.feature-icon { font-size:36px; color:#2563eb; margin-bottom:12px; }

/* ---------- Info Table ---------- */
.info-table { width:100%; border-collapse:collapse; margin-bottom:20px; }
.info-table td { padding:8px 0; border-bottom:1px solid #f3f4f6; font-size:14px; color:#4b5563; }
.info-table td:first-child { font-weight:600; color:#374151; width:80px; }
.info-table .num { color:#2563eb; font-weight:600; }
.info-table .muted { color:#9ca3af; }

/* ---------- Product Actions ---------- */
.prod-actions { display:flex; gap:12px; margin-top:20px; }
.btn { display:inline-flex; align-items:center; gap:6px; padding:12px 28px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; transition:all .2s; border:none; text-decoration:none; }
.btn-primary { background:#2563eb; color:#fff; }
.btn-primary:hover { background:#1d4ed8; }
.btn-cart { background:#f3f4f6; color:#374151; }
.btn-cart:hover { background:#e5e7eb; }
.btn-outline { background:transparent; color:#2563eb; border:2px solid #2563eb; }
.btn-outline:hover { background:#2563eb; color:#fff; }
.btn-disabled { background:#e5e7eb; color:#9ca3af; cursor:not-allowed; }

/* ---------- Page Header ---------- */
.page-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.page-header h1 { font-size:20px; font-weight:700; }

/* ---------- List View ---------- */
.list-item { display:flex; gap:16px; padding:16px 0; border-bottom:1px solid #f3f4f6; }
.list-item img { width:80px; height:80px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.list-item-info { flex:1; }
.list-item-info h4 { font-size:14px; font-weight:500; margin-bottom:4px; }
.list-item-info h4 a { color:#1f2937; }
.list-item-info h4 a:hover { color:#2563eb; }
.list-item-info .price { font-size:16px; font-weight:600; color:#2563eb; }
.list-item-info .muted { font-size:12px; color:#9ca3af; }

/* ---------- Empty ---------- */
.empty { text-align:center; padding:60px 0; color:#9ca3af; font-size:15px; }

/* ---------- Sidebar ---------- */
.sidebar-box { margin-bottom:24px; }
.sidebar-box h3 { font-size:14px; font-weight:600; margin-bottom:10px; padding-bottom:6px; border-bottom:2px solid #2563eb; color:#1f2937; }
.sidebar-box a { display:block; font-size:13px; color:#6b7280; padding:5px 0; }
.sidebar-box a:hover { color:#2563eb; }
.sidebar-box p { font-size:13px; color:#6b7280; padding:3px 0; }
.sidebar-box p i { width:16px; }
.sidebar-search { display:flex; gap:4px; }
.sidebar-search input { flex:1; padding:6px 10px; border:1px solid #d1d5db; border-radius:6px; font-size:13px; outline:none; }
.sidebar-search input:focus { border-color:#2563eb; }
.sidebar-search button { background:#2563eb; color:#fff; border:none; border-radius:6px; padding:6px 10px; cursor:pointer; }
.sidebar-search button:hover { background:#1d4ed8; }

/* ---------- Main Head ---------- */
.main-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; padding-bottom:10px; border-bottom:2px solid #2563eb; }
.main-head strong { font-size:16px; font-weight:700; color:#1f2937; }
.main-head .more { font-size:12px; color:#2563eb; }
.main-head .more:hover { text-decoration:underline; }

/* ---------- Brand Item ---------- */
.brand-item { display:inline-block; margin:4px; padding:4px 12px; background:#f3f4f6; border-radius:4px; font-size:12px; color:#4b5563; }
.brand-item:hover { background:#2563eb; color:#fff; }

/* ---------- Product Detail Gallery ---------- */
.main-img { margin-bottom:12px; cursor:pointer; border-radius:10px; overflow:hidden; }
.main-img img { width:100%; display:block; }
.thumbs { display:flex; gap:8px; overflow-x:auto; }
.thumbs img { width:60px; height:60px; object-fit:cover; border:2px solid transparent; border-radius:6px; cursor:pointer; }
.thumbs img.on, .thumbs img:hover { border-color:#2563eb; }

/* ---------- Responsive ---------- */
@media (max-width:768px) {
  .contact-grid { grid-template-columns:1fr; }
  .contact-icons { grid-template-columns:repeat(2,1fr); }
  .brand-nav { display:none; }
  .top-bar .top-bar-right .sep { display:none; }
}
@media (max-width:480px) {
  .contact-icons { grid-template-columns:1fr; }
}
/* ---------- Navigation Fix ---------- */
.brand-nav {
  display:flex; align-items:center; gap:16px; overflow-x:auto;
  scrollbar-width:none; -ms-overflow-style:none; white-space:nowrap;
}
.brand-nav::-webkit-scrollbar { display:none; }
.brand-nav a {
  font-size:13px; font-weight:500; color:#4b5563;
  transition:color 0.2s; flex-shrink:0;
}
.brand-nav a:hover, .brand-nav a.active { color:#2563eb; }
.brand-nav a.active::after {
  content:""; display:block; height:2px; background:#2563eb; margin-top:2px;
}

/* ---------- Layout fix ---------- */
.brand-header-inner { flex-wrap:nowrap; }

/* ---------- No Records ---------- */
.empty { text-align:center; padding:60px 0; color:#9ca3af; font-size:15px; }

/* ---------- Contact form fix ---------- */
.contact-form input, .contact-form textarea {
  width:100%; padding:12px 16px; border:1px solid #d1d5db; border-radius:8px;
  font-size:14px; margin-bottom:16px; outline:none; box-sizing:border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,0.1);
}
.contact-form textarea { min-height:120px; resize:vertical; }
.contact-form button {
  background:#2563eb; color:#fff; padding:12px 32px; border:none;
  border-radius:8px; font-size:15px; font-weight:600; cursor:pointer;
}
.contact-form button:hover { background:#1d4ed8; }
