/* Multi-vendor page styles */
.page-banner {
  background: linear-gradient(110deg, var(--navy-deep), var(--navy-mid));
  color: #fff;
  padding: 36px 0 28px;
}
.page-banner h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.page-banner p { color: #c8ceda; max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #aab3c5; margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: #fff; }

.page-wrap { padding: 36px 0 48px; }
.page-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.side-card, .content-card, .panel {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px;
}
.side-card h3, .panel h3 { font-size: 15px; margin-bottom: 14px; }
.filter-group { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { accent-color: var(--yellow); }
.price-row { display: flex; gap: 8px; align-items: center; }
.price-row input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px; }

.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.shop-toolbar select {
  border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; background: #fff;
}
.products-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card .vendor-line {
  font-size: 11px; color: var(--muted); margin-bottom: 6px;
}
.product-card .vendor-line a { color: var(--navy); font-weight: 600; }
.product-card .vendor-line a:hover { color: #c9a000; }
.product-actions { display: flex; gap: 6px; margin-top: 10px; }
.product-actions .btn, .product-actions .btn-outline {
  flex: 1; justify-content: center; padding: 8px 10px; font-size: 12px;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy);
  border: 1px solid var(--border); font-weight: 600; padding: 10px 16px; border-radius: 6px; cursor: pointer;
}
.btn-outline:hover { border-color: var(--yellow); background: #fff8e1; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-mid); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

.pagination {
  display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px;
  border: 1px solid var(--border); font-weight: 600; font-size: 13px;
}
.pagination a:hover, .pagination .active {
  background: var(--yellow); border-color: var(--yellow); color: var(--navy);
}

/* Product detail */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px;
}
.gallery-main {
  background: var(--bg-soft); border-radius: 12px; min-height: 380px;
  display: grid; place-items: center; border: 1px solid var(--border); overflow: hidden;
}
.gallery-main img { max-height: 360px; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumbs button {
  width: 70px; height: 70px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-soft); overflow: hidden; cursor: pointer; padding: 0;
}
.gallery-thumbs button.active { border-color: var(--yellow); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-meta .tag-row { display: flex; gap: 8px; margin-bottom: 10px; }
.pd-meta h1 { font-size: 26px; margin-bottom: 8px; }
.pd-vendor {
  display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border);
  border-radius: 10px; margin: 14px 0;
}
.pd-vendor .vlogo {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800;
}
.qty-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-box {
  display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.qty-box button {
  width: 36px; height: 40px; border: 0; background: var(--bg-soft); cursor: pointer; font-size: 16px;
}
.qty-box input {
  width: 48px; border: 0; text-align: center; outline: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs-content { margin-top: 8px; }
.tab-panels { border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: #fff; }
.tab-panels h3 { margin-bottom: 10px; }
.tab-panels p, .tab-panels li { color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.tab-panels ul { padding-left: 18px; list-style: disc; }

/* Cart / wishlist tables */
.table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  padding: 14px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle;
}
.cart-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cart-item { display: flex; align-items: center; gap: 12px; }
.cart-item img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--bg-soft);
}
.cart-summary {
  position: sticky; top: 16px;
}
.summary-row {
  display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px;
}
.summary-row.total { font-size: 18px; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--border); }
.two-col { display: grid; grid-template-columns: 1.6fr .9fr; gap: 22px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--yellow);
}
.pay-options {
  display: grid;
  gap: 8px;
}
.form-field .pay-options > label {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  background: #fff;
}
.form-field .pay-options > label:has(input:checked) {
  border-color: var(--yellow);
  background: #fffdf3;
}
.form-field .pay-options > label input[type="radio"] {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  flex-shrink: 0;
  accent-color: #c9a000;
}
.form-field .pay-options > label > span {
  display: block;
  text-align: left;
  flex: 1;
  line-height: 1.35;
}
.form-field .pay-options > label > span strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.form-field .pay-options > label > span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
#pay-extra { margin-top: 14px; }
[data-pay-panel][hidden] {
  display: none !important;
}

/* Vendors */
.vendor-hero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 22px;
}
.vendor-hero .big-logo {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 28px; font-weight: 800;
}
.vendor-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.vendor-stats b { color: var(--text); }
.vendors-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vendor-list-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: #fff;
  display: flex; flex-direction: column; gap: 12px; transition: .2s;
}
.vendor-list-card:hover { box-shadow: 0 10px 28px rgba(15,21,36,.08); border-color: #f5d76e; }
.vendor-list-card .top { display: flex; gap: 12px; align-items: center; }
.vendor-list-card p { font-size: 13px; color: var(--muted); flex: 1; }

/* Account */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; }
.account-nav a {
  display: block; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; font-weight: 500;
}
.account-nav a.active, .account-nav a:hover { background: #fff8e1; color: var(--navy); }
.auth-box {
  max-width: 460px; margin: 0 auto; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; background: #fff;
}
.auth-box h1 { font-size: 24px; margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); margin-bottom: 18px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13px; }
.auth-switch a { color: #c9a000; font-weight: 600; }
.order-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
}
.status {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.status.delivered { background: #dcfce7; color: #166534; }
.status.shipped { background: #dbeafe; color: #1e40af; }
.status.processing { background: #fef3c7; color: #92400e; }
.status.cancelled { background: #fee2e2; color: #991b1b; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff;
  transition: .2s;
}
.blog-card:hover { box-shadow: 0 10px 28px rgba(15,21,36,.08); }
.blog-card .thumb { height: 180px; background: var(--bg-soft); overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .body { padding: 16px; }
.blog-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 16px; margin-bottom: 8px; }
.blog-card p { font-size: 13px; color: var(--muted); }

/* Content pages */
.prose { max-width: 860px; }
.prose h2 { font-size: 20px; margin: 22px 0 10px; }
.prose h3 { font-size: 16px; margin: 18px 0 8px; }
.prose p, .prose li { color: var(--muted); line-height: 1.75; margin-bottom: 10px; }
.prose ul { padding-left: 18px; list-style: disc; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-info-item .ico {
  width: 42px; height: 42px; border-radius: 50%; background: #fff8e1; color: #c9a000;
  display: grid; place-items: center; flex-shrink: 0;
}
.empty-state {
  text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: 12px;
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 16px; }

.faq details {
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; background: #fff;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.step-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: #fff; text-align: center;
}
.step-card .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; margin: 0 auto 10px;
}
.alert {
  padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px;
}
.alert.success { background: #dcfce7; color: #166534; }
.alert.info { background: #eff6ff; color: #1e40af; }

.dept-menu {
  position: absolute; top: 100%; left: 0; width: 260px; background: #fff; border: 1px solid var(--border);
  border-radius: 0 0 10px 10px; box-shadow: 0 12px 30px rgba(15,21,36,.12); display: none; z-index: 60;
}
.dept-menu.open { display: block; }
.dept-menu a {
  display: block; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--border); font-size: 13px;
}
.dept-menu a:hover { background: #fff8e1; }
.btn-departments-wrap { position: relative; }
.pages-dropdown { position: relative; }
.pages-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 24px rgba(15,21,36,.1); z-index: 60;
}
.pages-dropdown:hover .pages-menu, .pages-dropdown:focus-within .pages-menu { display: block; }
.pages-menu a { display: block; padding: 10px 14px; color: var(--text); font-size: 13px; }
.pages-menu a:hover { background: #fff8e1; }

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

@media (max-width: 1100px) {
  .page-grid, .account-layout, .two-col, .checkout-grid, .contact-grid, .product-detail {
    grid-template-columns: 1fr;
  }
  .products-4, .blog-grid, .vendors-list, .help-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .vendor-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 760px) {
  .products-4, .blog-grid, .vendors-list, .form-grid, .help-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
