/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.shop-hero {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
  color: var(--bs-highlight-color);
  padding: 1rem 1rem;
  text-align: center;
}

.shop-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.shop-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ---------------------------------------------------------
   FILTERS
--------------------------------------------------------- */

.shop-filters {
  padding: 0.5rem 0;
  background: var(--bs-primary-bg-subtle);
  border-bottom: 1px solid var(--bs-focus-ring-color);
}

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.filter-btn {
  padding: 0.7rem 0.5rem;
  border-color: var(--bs-focus-ring-color);
  background: var(--bs-secondary-bg-subtle);
  color: var(--bs-highlight-color);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-btn:hover {
  border-color: var(--bs-focus-ring-color);
  color: var(--bs-highlight-color);
  transform: translateY(-2px);
  background: var(--bs-secondary);
}

.filter-btn.active {
  background: var(--bs-secondary);
  color: var(--bs-highlight-color);
  border-color: var(--bs-focus-ring-color);
}

/* ---------------------------------------------------------
   PRODUCTS GRID
--------------------------------------------------------- */

.shop-products {
  padding: 3rem 0;
  min-height: 60vh;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* ---------------------------------------------------------
   PRODUCT CARD
--------------------------------------------------------- */

.shop-product-card {
  width: 100%;
  min-height: 450px;
  height: auto;
  background: var(--bs-primary-bg-subtle);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: scale(0.95);
  transition: box-shadow 0.5s, transform 0.5s;
  cursor: pointer;
}

.shop-product-card:hover {
  box-shadow: 5px 20px 30px rgba(0,0,0,0.2);
}

.shop-card-container {
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------
   IMAGE (PERFECT SQUARE)
--------------------------------------------------------- */

.shop-card-top {
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.shop-card-top::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.shop-card-top {
  position: relative;
  overflow: hidden;
}

.shop-card-top::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.shop-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
  will-change: transform;
}

.shop-product-card:hover .shop-card-img {
  transform: scale(1.12);
}

/* ---------------------------------------------------------
   BADGES
--------------------------------------------------------- */

.shop-badge-row {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.shop-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shop-badge-bundle {
  background: var(--bs-danger);
  color: var(--bs-light);
  cursor: pointer;
}

.shop-badge-custom {
  background: var(--bs-secondary);
  color: var(--bs-light);
}

/* ---------------------------------------------------------
   BOTTOM SLIDER
--------------------------------------------------------- */

.shop-card-bottom {
  width: 200%;
  height: 100px;
  display: flex;
  transition: transform 0.5s;
}

.shop-card-bottom.clicked {
  transform: translateX(-50%);
}

.shop-card-left {
  height: 100%;
  width: 50%;
  background: var(--bs-carousel-caption-color);
  display: flex;
  float: left;
}

.shop-product-details {
  padding: 20px;
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-product-category {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.shop-product-name {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bs-highlight-color);
  margin-bottom: 8px;
}

.shop-product-price {
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bs-primary);
}

.shop-card-buy {
  width: 30%;
  height: 100%;
  background: var(--bs-primary-bg-subtle);
  transition: background 0.5s;
  border-left: solid thin rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.shop-card-buy svg {
  font-size: 40px;
  color: var(--bs-primary);
  transition: transform 0.5s;
}

.shop-card-buy:hover {
  background: var(--bs-primary);
}

.shop-card-buy:hover svg {
  color: var(--bs-primary-bg-subtle);
}

/* ---------------------------------------------------------
   RIGHT PANEL
--------------------------------------------------------- */

.shop-card-right {
  width: 50%;
  background: var(--bs-primary);
  color: white;
  float: right;
  height: 201%;
  overflow: hidden;
}

.shop-card-right .shop-product-details {
  padding: 32px;
  width: 70%;
}

.shop-card-done {
  width: 30%;
  float: left;
  transition: transform 0.5s;
  border-right: solid thin rgba(255,255,255,0.3);
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-success);
}

.shop-card-done svg {
  font-size: 40px;
  color: white;
}

.shop-card-remove {
  width: 30%;
  clear: both;
  border-right: solid thin rgba(255,255,255,0.3);
  height: 50%;
  background: #BC3B59;
  transition: transform 0.5s, background 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.shop-card-remove:hover {
  background: #9B2847;
}

.shop-card-remove svg {
  transition: transform 0.5s;
  font-size: 40px;
  color: var(--bs-white);
}

.shop-card-right:hover .shop-card-remove, .shop-card-right:hover .shop-card-done {
  transform: translateY(-100%);
}

/* ---------------------------------------------------------
   INFO PANEL
--------------------------------------------------------- */

.shop-card-info-panel {
  z-index: 9;
  background: var(--bs-primary-bg-subtle);
  width: 140px;
  height: 140px;
  position: absolute;
  top: -70px;
  right: -70px;
  border-radius: 0px 0px 200px 200px;
  transition: all 0.5s, border-radius 2s, top 1s;
  overflow: hidden;
}

.shop-info-icon {
  position: absolute;
  right: 85px;
  top: 80px;
  color: var(--bs-primary);
  opacity: 1;
  font-size: 24px;
  cursor: pointer;
}

.shop-card-info-panel:hover {
  width: 100%;
  right: 0;
  top: 0;
  border-radius: 0;
  height: 100%;
  background: var(--bs-primary);
}

.shop-card-info-panel:hover .shop-info-icon {
  opacity: 0;
  right: 15px;
  top: 15px;
}

.shop-info-contents {
  padding: 5%;
  opacity: 0;
  transform: scale(0.5) translateY(-200%);
  transition: opacity 0.2s, transform 0.8s;
}

.shop-card-info-panel:hover .shop-info-contents {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.shop-info-contents h2, .shop-info-contents p {
  color: var(--bs-dark);
}

.shop-info-contents h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.shop-info-contents p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.shop-info-contents table {
  text-align: left;
  width: 100%;
  font-size: 0.9rem;
}

.shop-info-contents table th {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.shop-info-contents table td {
  padding: 8px 4px;
}

.shop-info-contents ul {
  color: var(--bs-primary-bg-subtle);
}

/* ---------------------------------------------------------
   LOADING + EMPTY
--------------------------------------------------------- */

.loading, .empty-state {
  text-align: center;
  padding: 3rem;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.empty-state p {
  color: #888;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .shop-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .filter-row {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .shop-card-bottom {
    position: relative;
    z-index: 5;
  }
}

@media (max-width: 480px) {
  .shop-product-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .shop-product-price {
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------
   ANIMATIONS
--------------------------------------------------------- */

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-badge-bundle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 23px rgba(var(--bs-primary-rgb), 0.45);
}

