/* 
   Premium Category Page Redesign 
   Matches the high-fidelity mockups for marine/fishing categories
*/

/* --- Base Layout --- */
.premium-category-page {
  background-color: var(--soft);
}

.premium-layout {
  display: flex;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* --- Premium Sidebar --- */
.premium-sidebar {
  width: 280px;
  background-color: var(--ink); /* Dark Blue */
  flex-shrink: 0;
  color: #fff;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  padding-bottom: 40px;
}

.premium-sidebar .sidebar-accordion {
  border: none;
  margin: 0;
}

.premium-sidebar summary {
  background-color: var(--ink);
  color: #fff;
  padding: 24px;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-sidebar summary .summary-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-sidebar .sidebar-links {
  background-color: #f8fafc; /* Very light grey/white background for list items */
  padding: 12px;
}

.premium-sidebar .sidebar-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 12px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.premium-sidebar .sidebar-links a:hover {
  background-color: #e2e8f0;
}

.premium-sidebar .sidebar-links a.is-active {
  background-color: #eff6ff; /* Light blue */
  color: var(--marine);
}

.premium-sidebar .sidebar-links a .link-icon {
  width: 20px;
  height: 20px;
  background-color: currentColor;
  opacity: 0.2;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24"><path d="M12 2L2 22l10-3 10 3z"/></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24"><path d="M12 2L2 22l10-3 10 3z"/></svg>') no-repeat center;
}

.premium-sidebar .sidebar-links a.is-active .link-icon {
  opacity: 1;
}

.premium-sidebar .sidebar-links a .link-arrow {
  margin-left: auto;
  font-family: monospace;
  font-size: 16px;
  color: var(--muted);
}
.premium-sidebar .sidebar-links a.is-active .link-arrow {
  color: var(--marine);
}

/* Second summary (FISHING) at bottom */
.premium-sidebar details:nth-child(2) summary {
  background-color: var(--marine);
  margin: 12px;
  border-radius: 12px;
  border: none;
  padding: 16px;
}

/* --- Premium Main Content --- */
.premium-main {
  flex: 1;
  background-color: var(--soft);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dark Hero Section */
.premium-hero {
  background: var(--ink) url('bg_catalogue_explorer.png') no-repeat center right;
  background-size: cover;
  padding: 40px 60px 100px;
  color: #fff;
}

.premium-breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  font-weight: 500;
}
.premium-breadcrumbs a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.premium-breadcrumbs a:hover {
  color: #fff;
}
.premium-breadcrumbs span {
  color: #fff;
}

.premium-title {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.premium-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  line-height: 1.5;
}

/* White Overlapping Body */
.premium-body {
  background-color: #fff;
  border-top-left-radius: 30px;
  margin-top: -40px;
  padding: 40px 60px;
  min-height: 500px;
}

/* --- Subcategory Grid --- */
.premium-subcategory-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.premium-subcategory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 130px;
  height: 110px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 12px;
}

.premium-subcategory-card:hover,
.premium-subcategory-card.is-active {
  border-color: #0284c7; /* Brand Blue */
}

.premium-subcategory-card.is-active {
  /* Only border change for active in the screenshot, no background change for the whole card */
}

.subcat-icon {
  width: 42px;
  height: 42px;
  background-color: #f0f9ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

.subcat-icon svg {
  width: 20px;
  height: 20px;
}

.subcat-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  line-height: 1.3;
}


/* --- Premium Products Grid --- */
.premium-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.premium-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.premium-product-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

/* Card Top Bar */
.ppc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ppc-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ppc-badge svg {
  width: 12px;
  height: 12px;
}

.ppc-wishlist {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.ppc-wishlist:hover {
  color: #ef4444; /* Red */
}
.ppc-wishlist svg {
  width: 24px;
  height: 24px;
}

/* Image Area */
.ppc-image {
  position: relative;
  display: block;
  text-align: center;
  margin-bottom: 24px;
  height: 200px;
}
.ppc-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ppc-model {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--soft);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

/* Body / Details */
.ppc-body {
  flex: 1;
}

.ppc-body h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.ppc-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Actions Row */
.ppc-actions {
  display: flex;
  gap: 12px;
}

.ppc-btn-quote {
  flex: 1;
  background-color: var(--ink);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: background-color 0.2s;
}
.ppc-btn-quote:hover {
  background-color: #0d2040;
}
.ppc-btn-quote svg {
  width: 18px;
  height: 18px;
}

.ppc-btn-stats {
  width: 48px;
  height: 48px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--marine);
  cursor: pointer;
  transition: all 0.2s;
}
.ppc-btn-stats:hover {
  border-color: var(--marine);
  background-color: var(--soft);
}
.ppc-btn-stats svg {
  width: 20px;
  height: 20px;
}


/* --- Pagination --- */
.premium-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-load-more {
  background-color: var(--marine);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-load-more:hover {
  background-color: #004fb3;
}
.btn-load-more svg {
  width: 18px;
  height: 18px;
}

.pagination-info {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}


/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .premium-layout {
    flex-direction: column;
  }
  .premium-sidebar {
    display: none !important;
  }
  .premium-hero {
    padding: 30px 20px 80px;
  }
  .premium-body {
    padding: 30px 20px;
  }
}
