/*
* Zahya Store - Page Specific Styles
* Version: 1.0
*/

/*--------------------------------------------------------------
# Page Header
--------------------------------------------------------------*/
.page-header {
  background-color: var(--bg-light);
  padding: 40px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item.active {
  color: var(--primary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/*--------------------------------------------------------------
# Store Page
--------------------------------------------------------------*/
.store-sidebar {
  margin-bottom: 30px;
}

.sidebar-widget {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
}

.sidebar-title {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-item {
  margin-bottom: 10px;
}

.category-link {
  display: block;
  padding: 8px 0;
  color: var(--text-color);
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.category-link:hover, 
.category-link.active {
  color: var(--primary-color);
  text-decoration: none;
  padding-left: 5px;
}

.category-link.active {
  font-weight: 600;
}

.subcategory-list {
  padding-left: 15px;
  margin-top: 5px;
  display: none;
}

.subcategory-list.show {
  display: block;
}

.subcategory-item {
  margin-bottom: 5px;
}

.subcategory-link {
  color: var(--text-color);
  font-size: 14px;
  padding: 5px 0;
  display: block;
  transition: all var(--transition-speed) ease;
}

.subcategory-link:hover,
.subcategory-link.active {
  color: var(--primary-color);
  text-decoration: none;
  padding-left: 5px;
}

.price-filter {
  padding: 10px 0;
}

.price-slider {
  margin: 20px 0;
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 500;
}

.sort-options {
  padding: 10px 0;
}

.store-search .search-form {
  position: relative;
}

.store-search .form-control {
  border-radius: 6px 0 0 6px;
  height: 46px;
}

.store-search .btn {
  border-radius: 0 6px 6px 0;
  height: 46px;
}

.search-results-info h4 {
  font-size: 18px;
  color: var(--text-muted);
}

.store-pagination .page-link {
  color: var(--text-color);
  background-color: var(--bg-color);
  border-color: var(--border-color);
}

.store-pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.store-pagination .page-link:hover {
  color: var(--primary-color);
  background-color: var(--bg-light);
}

.no-products-found {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

/*--------------------------------------------------------------
# Product Detail Page
--------------------------------------------------------------*/
.product-gallery {
  margin-bottom: 30px;
}

.product-main-image-container {
  position: relative;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.product-main-image {
  width: 100%;
  border-radius: 10px;
  transition: transform var(--transition-speed) ease;
}

.product-detail-img {
  cursor: zoom-in;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnail:hover {
  opacity: 0.8;
}

.product-thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.product-info-main {
  padding: 0 0 0 20px;
}

.product-title {
  font-size: 28px;
  margin-bottom: 15px;
}

.product-category-link {
  color: var(--text-muted);
  transition: all var(--transition-speed) ease;
}

.product-category-link:hover {
  color: var(--primary-color);
}

.product-discount-label {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 10px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  margin-bottom: 10px;
}

.product-meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.product-meta-item {
  display: flex;
  margin-bottom: 5px;
}

.meta-label {
  font-weight: 600;
  width: 120px;
}

.product-tabs .nav-tabs {
  border-bottom: 1px solid var(--border-color);
}

.product-tabs .nav-link {
  color: var(--text-color);
  border: 1px solid transparent;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  padding: 12px 20px;
  font-weight: 500;
}

.product-tabs .nav-link:hover {
  border-color: transparent;
}

.product-tabs .nav-link.active {
  color: var(--primary-color);
  background-color: var(--card-bg);
  border-color: var(--border-color);
  border-bottom-color: transparent;
}

.product-tabs .tab-content {
  background-color: var(--card-bg);
}

.product-description {
  line-height: 1.8;
}

.product-description img {
  max-width: 100%;
  border-radius: 8px;
  margin: 15px 0;
}

.product-description h2,
.product-description h3,
.product-description h4 {
  margin-top: 20px;
  margin-bottom: 15px;
}

.product-description ul,
.product-description ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.product-description ul li,
.product-description ol li {
  margin-bottom: 10px;
}

.related-products .section-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# Authentication Pages
--------------------------------------------------------------*/
.auth-section {
  background-color: var(--bg-light);
  min-height: calc(100vh - var(--header-height) - 400px);
  display: flex;
  align-items: center;
}

.auth-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  margin-bottom: 30px;
}

.auth-header {
  margin-bottom: 30px;
}

.auth-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.auth-header p {
  color: var(--text-muted);
}

.auth-body {
  padding: 0 10px;
}

.btn-discord {
  background-color: #5865F2;
  color: #fff;
  padding: 12px 20px;
  font-weight: 500;
}

.btn-discord:hover {
  background-color: #4752c4;
  color: #fff;
}

.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
}

.divider span {
  position: relative;
  background-color: var(--card-bg);
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-info a {
  color: var(--primary-color);
}

.auth-footer {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-footer a {
  color: var(--primary-color);
}

/*--------------------------------------------------------------
# Checkout Pages
--------------------------------------------------------------*/
.checkout-section {
  padding: 60px 0;
}

.checkout-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
}

.checkout-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
}

.checkout-header h2 {
  font-size: 24px;
  margin-bottom: 0;
}

.checkout-body {
  padding: 30px;
}

.checkout-product {
  display: flex;
  margin-bottom: 30px;
}

.checkout-product-img {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  margin-right: 20px;
}

.checkout-product-info {
  flex: 1;
}

.checkout-product-title {
  font-size: 18px;
  margin-bottom: 5px;
}

.checkout-product-category {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.checkout-product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
}

.checkout-summary {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-label {
  font-weight: 500;
}

.summary-value {
  font-weight: 600;
}

.summary-total {
  font-size: 18px;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.payment-options {
  margin-top: 30px;
}

.payment-options-title {
  font-size: 18px;
  margin-bottom: 20px;
}

.payment-nav {
  margin-bottom: 20px;
}

.payment-tab {
  background-color: var(--bg-light);
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.payment-tab:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.payment-tab.active {
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-left: 3px solid var(--primary-color);
}

.payment-tab-icon {
  font-size: 24px;
  margin-right: 15px;
  color: var(--primary-color);
}

.payment-tab-content {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.bank-transfer-details {
  background-color: var(--bg-light);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.bank-detail-item {
  margin-bottom: 10px;
}

.bank-detail-label {
  font-weight: 600;
}

.reference-number {
  background-color: var(--bg-light);
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  text-align: center;
  margin: 10px 0;
  font-size: 16px;
  letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Error Pages
--------------------------------------------------------------*/
.error-section {
  padding: 100px 0;
  text-align: center;
}

.error-title {
  font-size: 120px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.error-subtitle {
  font-size: 24px;
  margin-bottom: 20px;
}

.error-text {
  max-width: 500px;
  margin: 0 auto 30px;
  color: var(--text-muted);
}