/* Cart Page Advanced Styling */
.cart-table-wrap {
  margin: 0 0 24px 0;
}
.cart-table {
  width: 100%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(27,31,35,0.07);
  overflow: hidden;
}
.cart-table th, .cart-table td {
  border-bottom: 1px solid #eaeef2;
}
.cart-table th {
  background: #f6f8fa;
  color: #24292f;
  font-weight: 600;
  padding: 14px 10px;
  font-size: 1.05rem;
}
.cart-table td {
  padding: 14px 10px;
  font-size: 1.05rem;
  color: #24292f;
}
.cart-item-row img {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
}
.cart-summary {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
    background: var(--bg-card);
  border-radius: 8px;
  padding: 18px 28px;
  box-shadow: 0 1px 4px 0 rgba(27,31,35,0.04);
    border: 1px solid var(--border-default);
}
.cart-summary .btn-primary {
  font-size: 1.1rem;
  padding: 12px 32px;
}
@media (max-width: 700px) {
  .cart-summary {
    flex-direction: column;
    gap: 18px;
    padding: 12px 8px;
  }
  .cart-table th, .cart-table td {
    padding: 10px 4px;
    font-size: 0.98rem;
  }
}
/* Cart Icon in Header */
.cart-header-icon svg {
  transition: stroke 0.15s;
}
.cart-header-icon:hover svg {
  stroke: #0969da;
}
#cartCountBadge {
  background: #f85149;
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  min-width: 22px;
  text-align: center;
  box-shadow: 0 1px 4px 0 rgba(27,31,35,0.10);
  border: 2px solid #fff;
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  letter-spacing: 0.01em;
}
/* GitHub-style Demo Button */
.btn-github-demo {
  background: #24292f;
  color: #fff;
  border: 1px solid #24292f;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 0;
  transition: background 0.15s, color 0.15s, border 0.15s;
  box-shadow: 0 1px 4px 0 rgba(27,31,35,0.08);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-github-demo:hover {
  background: #57606a;
  color: #fff;
  border-color: #57606a;
  text-decoration: none;
}
.site-media {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  box-shadow: 0 1px 4px 0 rgba(27,31,35,0.04);
  padding: 18px 12px 18px 12px;
  margin-bottom: 0;
}
/* Site Details Page Advanced Styling */
.site-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.site-media {
  flex: 1 1 340px;
  max-width: 420px;
}
.site-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 1px 4px 0 rgba(27,31,35,0.08);
  margin-bottom: 0;
}
#siteGif {
  margin-top: 18px;
  height: 180px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #d0d7de;
}
.site-info {
  flex: 2 1 340px;
  min-width: 280px;
}
.site-info .badge {
  font-size: 1.2rem;
  padding: 6px 18px;
  margin-bottom: 10px;
  margin-top: 55px;
}
.site-info h4 {
  color: #24292f;
  font-size: 1.1rem;
  font-weight: 600;
}
.site-info ul {
  margin: 0 0 0 18px;
  padding: 0;
}
@media (max-width: 700px) {
  .site-details-grid {
    flex-direction: column;
    gap: 18px;
  }
  .site-media img, #siteGif {
    height: 120px;
  }
}
/* GitHub-inspired background and card style */
body.listings-page {
  background: #f6f8fa;
  color: #24292f;
}
.listings-main {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(27,31,35,0.07);
  margin: 32px auto;
  max-width: 1100px;
  padding: 32px 24px 24px 24px;
}
.section-title h2 {
  color: #24292f;
  font-weight: 700;
  font-size: 2.1rem;
  margin-bottom: 0.2em;
  letter-spacing: -1px;
}
.section-title p {
  color: #57606a;
  font-size: 1.1rem;
  margin-bottom: 1.5em;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  place-items: stretch center;
}

/* Center single card and optimize gap for two cards */
.features:has(.feature:only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}
.features:has(.feature:nth-child(2)):not(:has(.feature:nth-child(3))) {
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  justify-items: center;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    gap: 18px;
    place-items: center;
  }
}

/* Center single card on large screens */
.features:only-child, .features:has(.feature:only-child) {
  justify-items: center;
  align-items: center;
}

@media (max-width: 700px) {
  .features,
  .features:has(.feature:nth-child(2)):not(:has(.feature:nth-child(3))),
  .features:has(.feature:only-child) {
    grid-template-columns: 1fr !important;
    place-items: center;
  }
}
.feature {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  box-shadow: 0 1px 4px 0 rgba(27,31,35,0.04);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, border 0.18s;
}
.feature:hover {
  border-color: #0969da;
  box-shadow: 0 4px 16px 0 rgba(9,105,218,0.10);
}
.feature h3 {
  color: #0969da;
  font-size: 1.25rem;
  margin: 12px 0 6px 0;
  font-weight: 600;
}
.dark-theme .feature h3 {
  color: #58a6ff !important;
}
.feature p {
  color: #57606a;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.listing-demo-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(27,31,35,0.04);
}
.badge {
  display: inline-block;
  background: var(--badge-bg, #ddf4ff);
  color: var(--badge-color, #0969da);
  font-weight: 600;
  border-radius: 5px;
  padding: 4px 14px;
  font-size: 1rem;
  margin-top: 6px;
  border: 1px solid var(--badge-border, #b6e3ff);
}
/* Dark theme overrides for site-details and listings */
.dark-theme .listings-main,
.dark-theme .site-media,
.dark-theme .feature {
  background: var(--bg-card) !important;
  border-color: var(--border-default) !important;
}
.dark-theme body.listings-page {
  background: var(--bg-main) !important;
  color: var(--text-main) !important;
}
.dark-theme .section-title h2,
.dark-theme .site-info h4 {
  color: var(--text-main) !important;
}
.dark-theme .section-title p,
.dark-theme .feature p {
  color: var(--text-muted) !important;
}
.dark-theme .badge {
  --badge-bg: #23272e;
  --badge-color: #58a6ff;
  --badge-border: #30363d;
}
.dark-theme .listing-demo-img,
.dark-theme #siteGif {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-default) !important;
}
.btn-primary {
  background: #0969da;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 1px 4px 0 rgba(27,31,35,0.04);
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: #035fc7;
  box-shadow: 0 2px 8px 0 rgba(9,105,218,0.10);
}
.btn-secondary {
  background: #fff;
  color: #0969da;
  border: 1px solid #0969da;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover {
  background: #eaeef2;
  color: #035fc7;
}
@media (max-width: 700px) {
  .listings-main {
    padding: 12px 2vw 18px 2vw;
    margin: 12px 0;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feature {
    padding: 14px 8px 12px 8px;
  }
  .listing-demo-img {
    height: 120px;
  }
}
/* Stylish Pagination Bar */
.pagination-bar {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.pagination-btn {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  color: #24292f;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  min-width: 38px;
}
.pagination-btn:hover:not(:disabled) {
  background: #0969da;
  color: #fff;
  border-color: #0969da;
}
.pagination-btn.active {
  background: #24292f;
  color: #fff;
  border-color: #24292f;
  font-weight: bold;
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Listing demo images */
.listing-demo-img {
  width: 100%;
  max-width: 320px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(36,41,47,0.08);
  background: #eaeef2;
  display: block;
}
/* Advanced GitHub-inspired style for site-listings.php */

body.listings-page {
  background: #f5f8fa;
}

.listings-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 12px 60px 12px;
}

.section-title {
  margin-bottom: 36px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

.feature {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(36,41,47,0.10);
  border: 1px solid #e1e4e8;
  padding: 32px 28px 28px 28px;
  transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  box-shadow: 0 8px 40px rgba(36,41,47,0.18);
  border: 1.5px solid #58a6ff;
  transform: translateY(-4px) scale(1.02);
}
.feature h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1b1f23;
  margin-bottom: 10px;
}
.feature p {
  color: #57606a;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.badge {
  background: linear-gradient(90deg, #58a6ff 60%, #1f6feb 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  padding: 4px 16px;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(88,166,255,0.10);
  position: absolute;
  top: 24px;
  right: 24px;
}
.btn-primary {
  background: #24292f;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  padding: 12px 28px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(36,41,47,0.10);
  border: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary:hover {
  background: #58a6ff;
  color: #fff;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .listings-main {
    padding: 18px 2px 40px 2px;
  }
}
