/* Premium shop layout — keeps theme colors (--theme, --header, etc.) */

#penny-shop-section.shop-section {
  padding-top: 48px;
  padding-bottom: 72px;
}

#penny-shop-section .gt-shop-notices-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.04);
}

#penny-shop-section .gt-shop-showing p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4b5563;
  letter-spacing: 0.01em;
}

#penny-shop-section .gt-shop-showing strong {
  color: var(--header, #111);
  font-weight: 600;
}

#penny-shop-section .gt-shop-notices-wrapper .form-clt {
  margin: 0;
  min-width: min(100%, 240px);
}

#penny-shop-section .gt-shop-notices-wrapper .form-clt .form,
#penny-shop-section .gt-shop-notices-wrapper .nice-select {
  width: 100%;
  margin: 0;
  float: none;
}

/* Keep the real <select> hidden — nice-select replaces it visually */
#penny-shop-section .gt-shop-notices-wrapper select.single-select,
#penny-shop-section .gt-shop-notices-wrapper select#shop-sort-preset {
  display: none !important;
}

#penny-shop-section .gt-shop-notices-wrapper .nice-select,
#penny-shop-section .gt-shop-notices-wrapper .form .nice-select.single-select {
  display: flex !important;
  align-items: center;
  width: 100%;
  margin: 0;
  float: none;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  height: 46px !important;
  min-height: 46px;
  line-height: 1 !important;
  padding: 0 40px 0 14px !important;
  font-size: 0.9rem;
  font-weight: 500;
  background-color: #fafafa;
  box-sizing: border-box;
}

#penny-shop-section .gt-shop-notices-wrapper .nice-select .current {
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#penny-shop-section .gt-shop-notices-wrapper .nice-select::after {
  top: 50%;
  right: 16px;
  margin-top: -4px;
  width: 7px;
  height: 7px;
}

#penny-shop-section .shop-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.15rem;
}

#penny-shop-section .shop-active-chips[hidden] {
  display: none !important;
}

#penny-shop-section .shop-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 145, 77, 0.12);
  color: var(--header, #111);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid rgba(255, 145, 77, 0.28);
}

#penny-shop-section .shop-active-chip a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  font-size: 0.85rem;
  line-height: 1;
}

#penny-shop-section .shop-active-chip a:hover {
  opacity: 1;
  color: var(--theme, #ff914d);
}

/* Sticky filter column */
#penny-shop-section .shop-sidebar-area {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 1.25rem 1.15rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(17, 17, 17, 0.045);
  scrollbar-width: thin;
}

#penny-shop-section .shop-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

#penny-shop-section .shop-filters-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--header, #111);
  letter-spacing: -0.01em;
}

#penny-shop-section .shop-filters-head .shop-filters-reset {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme, #ff914d);
  text-decoration: none;
  white-space: nowrap;
}

#penny-shop-section .shop-filters-head .shop-filters-reset:hover {
  color: var(--header, #111);
}

#penny-shop-section .shop-sidebar-area .shop-sidebar-widget {
  border-top: none;
  padding-top: 0;
  margin-bottom: 1.35rem;
}

#penny-shop-section .shop-sidebar-area .shop-sidebar-widget:not(:last-child) {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

#penny-shop-section .shop-sidebar-area .shop-sidebar-widget .widget-title {
  margin-bottom: 0.85rem;
}

#penny-shop-section .shop-sidebar-area .shop-sidebar-widget .widget-title h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

#penny-shop-section .shop-sidebar-area .product-type-box ul li label .text {
  font-size: 0.95rem;
}

#penny-shop-section .shop-sidebar-area .product-type-box ul li label input:checked ~ .checkmark {
  background-color: var(--theme, #ff914d);
  border-color: var(--theme, #ff914d);
}

#penny-shop-section .shop-sidebar-area .price-filter-box .input-field {
  border-radius: 8px;
  background: #fafafa;
}

#penny-shop-section .shop-sidebar-area .price-filter-box .range-slider .slider-track {
  background-color: var(--theme, #ff914d);
  border-radius: 999px;
  height: 3px;
}

/* Product grid */
#penny-shop-section #shop-product-grid {
  --shop-card-gap: 1.25rem;
}

#penny-shop-section #shop-product-grid > [class*="col-"] {
  display: flex;
}

#penny-shop-section .shop-card-items {
  width: 100%;
  margin-top: 0;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

#penny-shop-section .shop-card-items:hover {
  border-color: rgba(255, 145, 77, 0.35);
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
  transform: translateY(-3px);
}

#penny-shop-section .shop-card-items .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f7f7f7 0%, #efefef 100%);
  overflow: hidden;
}

/* Instagram-style swipe gallery on cards */
#penny-shop-section .shop-card-gallery {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#penny-shop-section .shop-card-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

#penny-shop-section .shop-card-gallery-track::-webkit-scrollbar {
  display: none;
}

#penny-shop-section .shop-card-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: block;
}

#penny-shop-section .shop-card-gallery-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

#penny-shop-section .shop-card-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

#penny-shop-section .shop-card-items:hover .shop-card-gallery-dots {
  bottom: 62px;
}

#penny-shop-section .shop-card-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

#penny-shop-section .shop-card-dot.is-active {
  width: 16px;
  background: #fff;
}

#penny-shop-section .shop-card-items .shop-card-media {
  display: none;
}

#penny-shop-section .shop-card-items .thumb img.font-image,
#penny-shop-section .shop-card-items .thumb img.back-image {
  display: none;
}

#penny-shop-section .shop-card-items .shop-content {
  padding: 1.05rem 1.1rem 1.2rem;
  align-items: flex-start;
  flex: 1;
}

#penny-shop-section .shop-card-items .shop-content .content {
  width: 100%;
}

#penny-shop-section .shop-card-items .shop-content .content span.shop-card-cat,
#penny-shop-section .shop-card-items .shop-content .content span:not(.compare-price) {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

#penny-shop-section .shop-card-items .shop-content .content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

#penny-shop-section .shop-card-items .shop-content .content h3 a {
  color: var(--header, #111);
  text-decoration: none;
}

#penny-shop-section .shop-card-items .shop-content .content h3 a:hover {
  color: var(--theme, #ff914d);
}

#penny-shop-section .shop-card-items .shop-content .price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

#penny-shop-section .shop-card-items .shop-content .content h4 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--header, #111);
}

#penny-shop-section .shop-card-items .shop-content .compare-price {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  text-transform: none;
  letter-spacing: 0;
}

#penny-shop-section .shop-card-items .shop-card-stock {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#penny-shop-section .shop-card-items .shop-card-stock.in-stock {
  color: #15803d;
}

#penny-shop-section .shop-card-items .shop-card-stock.out-of-stock {
  color: #b45309;
}

#penny-shop-section .shop-card-items .thumb .discount-text {
  z-index: 6;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: auto !important;
  min-height: 28px;
  line-height: 1 !important;
  padding: 0 0.75rem !important;
  background-color: var(--theme, #ff914d);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  box-sizing: border-box;
}

#penny-shop-section .shop-card-items .thumb .discount-text.is-sold {
  background: #374151;
}

#penny-shop-section .shop-card-items .thumb .discount-text.is-hot {
  background: #111;
}

#penny-shop-section .shop-card-items .thumb .theme-btn.shop-card-cta {
  z-index: 6;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  overflow: hidden;
  min-height: 44px;
  height: 44px;
  line-height: 1 !important;
  padding: 0 1.15rem !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}

/* Clip the theme hover wipe so it follows the pill shape */
#penny-shop-section .shop-card-items .thumb .theme-btn.shop-card-cta::before {
  border-radius: 999px 999px 0 0;
}

#penny-shop-section .shop-card-items .thumb .theme-btn.shop-card-cta::after {
  border-radius: 0 0 999px 999px;
}

#penny-shop-section .shop-card-items .thumb .theme-btn.shop-card-cta i {
  margin: 0 !important;
  line-height: 1;
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 0;
  transform: none;
}

#penny-shop-section .shop-card-items .thumb .gt-shop-icon {
  z-index: 6;
}

#penny-shop-section .shop-card-items.is-out-of-stock .thumb .font-image {
  filter: grayscale(0.15);
}

#penny-shop-section .shop-empty-state {
  padding: 3.5rem 1.5rem;
  background: #fff;
  border: 1px dashed rgba(17, 17, 17, 0.14);
  border-radius: 14px;
}

#penny-shop-section .shop-empty-state p {
  color: #6b7280;
  font-size: 1rem;
}

/* Load More */
#penny-shop-section .shop-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding-top: 0.25rem;
}

#penny-shop-section .shop-load-more-wrap[hidden] {
  display: none !important;
}

#penny-shop-section .shop-load-more-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

#penny-shop-section .shop-load-more-meta strong {
  color: var(--header, #111);
  font-weight: 700;
}

#penny-shop-section .shop-load-more-btn {
  position: relative;
  z-index: 1;
  min-width: 180px;
  border-radius: 999px;
  overflow: hidden;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  line-height: 1;
  box-sizing: border-box;
}

/* Same pill hover wipe as Add to Cart */
#penny-shop-section .shop-load-more-btn::before {
  border-radius: 999px 999px 0 0;
}

#penny-shop-section .shop-load-more-btn::after {
  border-radius: 0 0 999px 999px;
}

#penny-shop-section .shop-load-more-btn[hidden] {
  display: none !important;
}

#penny-shop-section .shop-load-more-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

#penny-shop-section .shop-load-more-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: shop-spin 0.7s linear infinite;
}

#penny-shop-section .shop-load-more-btn.is-loading .shop-load-more-spinner {
  display: inline-block;
}

@keyframes shop-spin {
  to {
    transform: rotate(360deg);
  }
}

#penny-shop-section .shop-results-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 991.98px) {
  #penny-shop-section .shop-sidebar-area {
    position: static;
    max-height: none;
    margin-bottom: 0.5rem;
  }

  #penny-shop-section .gt-shop-notices-wrapper {
    padding: 0.9rem 1rem;
  }

  #penny-shop-section .shop-card-items .shop-content .content h3 {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #penny-shop-section .shop-card-items,
  #penny-shop-section .shop-card-items .thumb img,
  #penny-shop-section .shop-load-more-spinner {
    transition: none !important;
    animation: none !important;
  }
}
