/* Store Detail Page Styles */

/* Breadcrumb */
.breadcrumb-section {
  background: color-mix(in srgb, var(--surface-color), transparent 50%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.breadcrumb {
  background: none;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--accent-color);
  font-weight: bold;
}

.breadcrumb-item a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--default-color);
  font-weight: 600;
}

/* Store Header */
.store-header {
  background: linear-gradient(135deg, 
    var(--surface-color) 0%, 
    color-mix(in srgb, var(--accent-color), transparent 95%) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.store-logo-large {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 90%);
}

.store-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-info-header {
  padding-left: 30px;
}

.store-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.store-description {
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Store Stats */
.store-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-top: 5px;
  font-weight: 500;
}

/* Store Actions */
.store-actions {
  margin-top: 20px;
}

.visit-store-btn {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 10%));
  color: var(--contrast-color);
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.visit-store-btn:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), black 10%), color-mix(in srgb, var(--accent-color), black 20%));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent-color), transparent 60%);
  color: var(--contrast-color);
  text-decoration: none;
}

.visit-store-btn i {
  font-size: 18px;
}

/* Store Deals Section */
.store-deals {
  background: var(--background-color);
}

.deals-header {
  text-align: center;
  margin-bottom: 40px;
}

.deals-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.deals-header p {
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/* Deals Grid */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
}

.deal-card {
  background: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px color-mix(in srgb, var(--default-color), transparent 92%);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px color-mix(in srgb, var(--default-color), transparent 85%);
}

.deal-card.featured-deal {
  border: 2px solid var(--accent-color);
  background: linear-gradient(135deg, 
    var(--surface-color) 0%, 
    color-mix(in srgb, var(--accent-color), transparent 97%) 100%);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #333;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2s infinite;
}

.featured-badge i {
  font-size: 14px;
}

/* Deal Content */
.deal-content {
  padding: 30px;
}

.deal-header {
  margin-bottom: 20px;
  position: relative;
  padding-right: 120px; /* Space for featured badge */
}

.deal-card:not(.featured-deal) .deal-header {
  padding-right: 0;
}

.deal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.deal-category {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.deal-body {
  margin-bottom: 25px;
}

.deal-description {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.deal-meta .expiry-info {
  display: flex;
  align-items: center;
  gap: 8px;
  /*color: color-mix(in srgb, var(--default-color), transparent 30%);*/
  font-size: 14px;
}

.deal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
}

.coupon-code-section {
  flex: 1;
}

.coupon-code-section label {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
  display: block;
  font-weight: 600;
}

.code-display {
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  border: 2px dashed var(--accent-color);
  border-radius: 8px;
  padding: 10px 15px;
  text-align: center;
}

.code-text {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-color);
  letter-spacing: 1px;
}

/* No Deals State */
.no-deals {
  text-align: center;
  padding: 80px 40px;
  background: var(--surface-color);
  border-radius: 20px;
  border: 2px dashed color-mix(in srgb, var(--default-color), transparent 85%);
}

.no-deals-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.no-deals h3 {
  font-size: 24px;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.no-deals p {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-back-to-stores {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-back-to-stores:hover {
  background: color-mix(in srgb, var(--accent-color), black 10%);
  transform: translateY(-2px);
  color: var(--contrast-color);
  text-decoration: none;
}

/* Store Info Section */
.store-info-section {
  background: color-mix(in srgb, var(--surface-color), transparent 50%);
}

.store-details h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.store-details p {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  line-height: 1.7;
  margin-bottom: 25px;
}

.store-website {
  margin-top: 30px;
}

.store-website h4 {
  font-size: 18px;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.website-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.website-link:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  text-decoration: none;
}

.website-link i {
  font-size: 18px;
}

/* Store Sidebar */
.store-sidebar {
  padding-left: 30px;
}

.sidebar-card {
  background: var(--surface-color);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--default-color), transparent 95%);
}

.sidebar-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 20px;
  text-align: center;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 95%);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-icon {
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.stat-text {
  flex: 1;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-weight: 500;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .deals-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .store-info-header {
    padding-left: 0;
    margin-top: 20px;
    text-align: center;
  }
  
  .store-stats {
    justify-content: center;
  }
  
  .store-sidebar {
    padding-left: 0;
    margin-top: 30px;
  }
  
  .deal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .copy-visit-btn {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .store-title {
    font-size: 32px;
  }
  
  .store-description {
    font-size: 16px;
  }
  
  .deals-header h2 {
    font-size: 28px;
  }
  
  .deals-header p {
    font-size: 16px;
  }
  
  .deals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .deal-content {
    padding: 25px;
  }
  
  .deal-title {
    font-size: 18px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  .store-logo-large {
    width: 120px;
    height: 120px;
  }
  
  .visit-store-btn {
    padding: 12px 25px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .store-header .row {
    flex-direction: column;
    text-align: center;
  }
  
  .store-logo-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
  }
  
  .store-title {
    font-size: 28px;
  }
  
  .store-stats {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  .deal-content {
    padding: 20px;
  }
  
  .deal-header {
    padding-right: 0;
    text-align: center;
  }
  
  .featured-badge {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 auto 15px;
    align-self: center;
  }
  
  .deal-footer {
    text-align: center;
  }
  
  .code-display {
    margin-bottom: 15px;
  }
  
  .no-deals {
    padding: 60px 20px;
  }
  
  .no-deals h3 {
    font-size: 20px;
  }
  
  .sidebar-card {
    margin-top: 30px;
  }
}

/* Copy & Visit Button (reuse from promotions.css with modifications) */
.deal-card .copy-visit-btn {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 10%));
  color: var(--contrast-color);
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 140px;
  justify-content: center;
}
.deal-card .copy-visit-btn.get-deal{
    background: #007bff;
    box-shadow: none;
}
.deal-card .copy-visit-btn.copy-btn{
    background: #28a745;
}
.deal-card .copy-visit-btn.copy-btn i{
    color: #fff!important;
}
.deal-card .copy-visit-btn:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), black 10%), color-mix(in srgb, var(--accent-color), black 20%));
  transform: translateY(-2px);
 }

.deal-card .copy-visit-btn i {
  font-size: 16px;
}

/* Animation Classes */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Featured deal glow effect */
.featured-deal::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 20%));
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-deal:hover::before {
  opacity: 0.1;
}

/* Deals Filter Tabs */
.deals-tabs-wrapper {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.deals-tabs {
  display: flex;
  background: var(--surface-color);
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 8px 25px color-mix(in srgb, var(--default-color), transparent 92%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.deals-tabs::-webkit-scrollbar {
  display: none;
}

.deals-tabs .nav-item {
  flex: 1;
  min-width: max-content;
}

.deals-tabs .nav-link {
  background: transparent;
  border: none;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  padding: 12px 24px;
  border-radius: 35px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.deals-tabs .nav-link:hover {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
}

.deals-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 10%));
  color: var(--contrast-color);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--accent-color), transparent 70%);
  transform: translateY(-1px);
}

.deals-tabs .nav-link i {
  font-size: 16px;
}

.deals-tabs .badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deals-tabs .nav-link.active .badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--contrast-color) !important;
}

/* Tab Content */
.tab-content {
  position: relative;
  min-height: 200px;
}

.tab-pane {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Coupon Type Specific Styling */
.coupon-type {
  border-left: 4px solid #28a745;
}

.coupon-type .deal-title::before {
  content: "\f0a0"; /* Scissors icon */
  font-family: "Bootstrap Icons";
  margin-right: 8px;
  color: #28a745;
  font-size: 16px;
}

.coupon-code-preview {
  background: color-mix(in srgb, #28a745, transparent 95%);
  border: 2px dashed #28a745;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 15px 0;
  text-align: center;
}

.code-label {
  font-size: 12px;
  color: #28a745;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-value {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #28a745;
  letter-spacing: 2px;
  background: rgba(40, 167, 69, 0.1);
  padding: 4px 8px;
  border-radius: 5px;
  display: inline-block;
}

/* Deal Type Specific Styling */
.deal-type {
  border-left: 4px solid #007bff;
}

.deal-type .deal-title::before {
  content: "\f235"; /* Tag icon */
  font-family: "Bootstrap Icons";
  margin-right: 8px;
  color: #007bff;
  font-size: 16px;
}



/* Empty state for filtered tabs */
.empty-tab-content {
  text-align: center;
  padding: 60px 40px;
  background: var(--surface-color);
  border-radius: 20px;
  border: 2px dashed color-mix(in srgb, var(--default-color), transparent 85%);
  margin: 20px 0;
}

.empty-tab-content .empty-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
  opacity: 0.6;
}

.empty-tab-content h4 {
  font-size: 20px;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.empty-tab-content p {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}

/* Responsive design for tabs */
@media (max-width: 768px) {
  .deals-tabs {
    flex-wrap: wrap;
    border-radius: 15px;
    padding: 6px;
    gap: 6px;
  }
  
  .deals-tabs .nav-link {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 25px;
  }
  
  .deals-tabs .badge {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .coupon-code-preview {
    margin: 12px 0;
    padding: 10px 12px;
  }
  
  .code-value {
    font-size: 14px;
    letter-spacing: 1px;
  }
}

@media (max-width: 576px) {
  .deals-tabs-wrapper {
    padding: 0 10px;
    margin-bottom: 20px;
  }
  
  .deals-tabs {
    flex-direction: column;
    border-radius: 12px;
    padding: 8px;
    gap: 4px;
  }
  
  .deals-tabs .nav-item {
    flex: none;
    width: 100%;
  }
  
  .deals-tabs .nav-link {
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
  }
  
  .empty-tab-content {
    padding: 40px 20px;
  }
  
  .empty-tab-content .empty-icon {
    font-size: 36px;
  }
  
  .empty-tab-content h4 {
    font-size: 18px;
  }
}

/* Loading states for dynamic content */
.loading-skeleton {
  background: linear-gradient(90deg, 
    color-mix(in srgb, var(--default-color), transparent 95%) 25%, 
    color-mix(in srgb, var(--default-color), transparent 90%) 50%, 
    color-mix(in srgb, var(--default-color), transparent 95%) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
