.cd-store-page,
.cd-store-page *,
.cd-store-page *::before,
.cd-store-page *::after {
  box-sizing: border-box;
}

.cd-store-page {
  background: #f9fafb;
  overflow-x: hidden;
  padding: 48px 0 72px;
}

.cd-store-wrap {
  width: 100%;
}

.cd-store-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cd-store-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 32px;
  min-width: 0;
}

.cd-section__heading {
  margin-bottom: 20px;
}

.cd-section__title {
  color: #101828;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin: 0 0 8px;
}

.cd-section__subtitle {
  color: #6a7282;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.cd-section__subtitle--md {
  color: #4a5565;
  font-size: 16px;
  line-height: 24px;
  margin-top: 8px;
}

.cd-section__subtitle--shop {
  color: #4a5565;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  margin: 0 0 12px;
}

.cd-section__empty {
  color: #6a7282;
  font-size: 14px;
  line-height: 20px;
  margin: 8px 0 0;
}

/* Store Gallery */
.cd-store-gallery .cd-store-gallery__wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cd-store-gallery__grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
  .cd-store-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cd-store-gallery__item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.cd-store-gallery__item--hidden {
  display: none;
}

.cd-store-gallery__trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cd-store-gallery__trigger:hover {
  opacity: 0.9;
}

.cd-store-gallery__trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery pagination arrows */
.cd-store-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #101828;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cd-store-gallery__nav:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cd-store-gallery__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cd-store-gallery__nav--prev {
  left: -20px;
}

.cd-store-gallery__nav--next {
  right: -20px;
}

@media (max-width: 767px) {
  .cd-store-gallery__nav--prev {
    left: 4px;
  }
  .cd-store-gallery__nav--next {
    right: 4px;
  }
}

/* Lightbox */
.cd-store-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
}

.cd-store-lightbox[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.cd-store-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.cd-store-lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-store-lightbox__img-wrap {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cd-store-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cd-store-lightbox__close,
.cd-store-lightbox__prev,
.cd-store-lightbox__next {
  position: absolute;
  padding: 12px 16px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.cd-store-lightbox__close:hover,
.cd-store-lightbox__prev:hover,
.cd-store-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.cd-store-lightbox__close {
  top: -48px;
  right: 0;
  font-size: 32px;
}

.cd-store-lightbox__prev {
  left: -56px;
  top: 50%;
  transform: translateY(-50%);
}

.cd-store-lightbox__next {
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .cd-store-lightbox__prev,
  .cd-store-lightbox__next {
    left: 8px;
    right: auto;
    bottom: 8px;
    top: auto;
    transform: none;
  }
  .cd-store-lightbox__next {
    left: auto;
    right: 8px;
  }
  .cd-store-lightbox__close {
    top: 8px;
    right: 8px;
  }
}

.cd-prose {
  color: #4a5565;
  font-size: 16px;
  line-height: 26px;
}

.cd-prose p {
  margin: 0 0 12px;
}

.cd-prose p:last-child {
  margin-bottom: 0;
}

.cd-prose--policies p {
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
}

.cd-prose--policies p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cd-store-hero__grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  min-width: 0;
}

.cd-store-hero__logo {
  align-items: center;
  background: #f3f4f6;
  border-radius: 16px;
  display: flex;
  height: 128px;
  justify-content: center;
  overflow: hidden;
  width: 128px;
  flex-shrink: 0;
}

.cd-store-hero__logo img,
.cd-store-hero__logo .wp-post-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cd-logo-placeholder {
  align-items: center;
  background: #f3f4f6;
  color: #6a7282;
  display: flex;
  font-size: 32px;
  font-weight: 600;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.cd-store-hero__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cd-store-hero__title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.cd-store-hero__title-block {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.cd-store-hero__rating {
  color: inherit;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cd-store-hero__rating:hover {
  opacity: 0.85;
}

.cd-store-rating__empty {
  color: #6a7282;
  font-weight: 500;
}

#store-reviews {
  scroll-margin-top: 1rem;
}

.cd-store-hero__title {
  color: #101828;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  margin: 0;
  overflow-wrap: anywhere;
}

.cd-store-title {
  color: #101828;
}

.cd-store-hero__status-detail {
  color: #6a7282;
  font-size: 14px;
  line-height: 20px;
  margin-top: -8px;
}

.cd-store-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cd-store-hero__address {
  color: #6a7282;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  overflow-wrap: anywhere;
}

.cd-store-hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cd-contact-chip {
  align-items: center;
  background: #f9fafb;
  border-radius: 14px;
  color: #364153;
  display: inline-flex;
  gap: 8px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  min-width: 0;
}

.cd-contact-chip__text {
  overflow-wrap: anywhere;
}

.cd-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
  line-height: 20px;
  padding: 4px 12px;
}

.cd-chip--status::before {
  background: #00c950;
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}

.cd-chip--status.cd-chip--open {
  background: #f0fdf4;
  color: #008236;
}

.cd-chip--status.cd-chip--closed {
  background: #fef2f2;
  color: #b91c1c;
}

.cd-chip--status.cd-chip--closed::before {
  background: #ef4444;
}

.cd-chip--muted {
  background: #f3f4f6;
  color: #364153;
}

.cd-chip--neutral {
  background: #f3f4f6;
  color: #364153;
}

.cd-store-rating {
  align-items: center;
  color: #101828;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  gap: 6px;
  line-height: 24px;
}

.cd-store-rating__value {
  font-weight: 600;
}

.cd-store-rating__star {
  color: #f59e0b;
}

.cd-store-rating__count {
  color: #6a7282;
  font-weight: 400;
}

.cd-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.cd-store-actions .cd-btn--primary {
  background: #101828;
  color: #ffffff;
}

.cd-store-actions .cd-btn--primary + .cd-btn--primary {
  background: #101828;
  color: #ffffff;
}

.cd-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  line-height: 24px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.cd-btn--primary {
  background: #101828;
  color: #ffffff;
}

.cd-btn--secondary {
  background: #f3f4f6;
  color: #101828;
}

.cd-btn--ghost {
  background: #ffffff;
  border-color: #d1d5dc;
  color: #364153;
}

.cd-btn--ghost-muted {
  background: #ffffff;
  border-color: #f3f4f6;
  color: #99a1af;
}

.cd-store-products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.cd-store-products__cta {
  margin-top: 16px;
}

.pn-vendor-item-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.pn-vendor-item-card__cover {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
}

.pn-vendor-item-card__cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pn-vendor-item-card__cover-placeholder {
  display: block;
  height: 100%;
  width: 100%;
}

.pn-vendor-item-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 2px 0;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.pn-vendor-item-card h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  margin: 0;
  overflow-wrap: anywhere;
}

.pn-vendor-item-card h3 a {
  color: inherit;
  text-decoration: none;
}

.pn-vendor-item-card__price {
  color: #101828;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.pn-vendor-item-card__footer {
  padding: 10px 2px 0;
  margin-top: auto;
}

.cd-store-products .pn-vendor-item-card__footer .button,
.cd-store-products .pn-vendor-item-card__footer a.button,
.cd-store-products .pn-vendor-item-card__footer button.button {
  align-items: center;
  appearance: none;
  background: #101828;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  line-height: 20px;
  padding: 10px 14px;
  text-decoration: none;
  width: 100%;
  white-space: nowrap;
}

.cd-store-products .pn-vendor-item-card__footer .button::before,
.cd-store-products .pn-vendor-item-card__footer a.button::before,
.cd-store-products .pn-vendor-item-card__footer button.button::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 6h15l-2 9H8L6.5 6Z' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M8 6 7.3 3H3' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M9.5 21a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z' fill='white'/%3E%3Cpath d='M18 21a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z' fill='white'/%3E%3C/svg%3E");
  opacity: 0.9;
}

.cd-store-products .pn-vendor-item-card__footer .button:hover,
.cd-store-products .pn-vendor-item-card__footer a.button:hover,
.cd-store-products .pn-vendor-item-card__footer button.button:hover {
  background: #0f172a;
  color: #ffffff;
}

.cd-store-products .pn-vendor-item-card__footer .button:focus,
.cd-store-products .pn-vendor-item-card__footer a.button:focus,
.cd-store-products .pn-vendor-item-card__footer button.button:focus {
  outline: 2px solid rgba(16, 24, 40, 0.2);
  outline-offset: 2px;
}

.cd-store-products .pn-vendor-item-card__footer .button.added::after,
.cd-store-products .pn-vendor-item-card__footer a.button.added::after {
  display: none;
}

.cd-product-cta {
  align-items: center;
  background: #101828;
  border-radius: 14px;
  color: #ffffff;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  line-height: 20px;
  padding: 8px 12px;
  text-decoration: none;
  width: 100%;
}

.cd-product-cta__icon {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: inline-block;
  height: 16px;
  width: 16px;
}

.cd-store-products__shop {
  border-top: 1px solid #eef0f3;
  margin-top: 24px;
  padding-top: 24px;
}

.cd-store-reviews__summary {
  align-items: center;
  color: #4a5565;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
}

.cd-store-reviews__summary-text {
  overflow-wrap: anywhere;
}

.cd-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.cd-store-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.cd-review-card {
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.cd-review-card__head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cd-review-card__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 27px;
  margin: 0;
}

.cd-review-card__date {
  color: #6a7282;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.cd-review-card__stars {
  color: #f59e0b;
  font-size: 16px;
  line-height: 24px;
}

.cd-review-card__text {
  color: #4a5565;
  font-size: 16px;
  line-height: 26px;
  margin: 0;
}

.cd-store-reviews__header + .cd-store-reviews__form {
  margin-top: 12px;
}

.cd-store-reviews__form {
  margin: 16px 0 18px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #eef0f3;
  background: #f9fafb;
}

.cd-review-notice {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f4f6;
  font-weight: 600;
}

.cd-review-empty {
  margin: 12px 0 0;
  color: #6a7282;
}

.cd-review-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.cd-review-form__row {
  display: grid;
  gap: 6px;
}

.cd-review-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

.cd-review-form__input,
.cd-review-form__textarea {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  width: 100%;
  background: #fff;
}

.cd-review-form__textarea {
  min-height: 120px;
  resize: vertical;
}

.cd-review-form__submit {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  background: #101828;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 8px 18px rgba(16,24,40,.12);
}

.cd-review-form__submit:hover {
  background: #0f172a;
}

.cd-store-reviews__tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cd-store-reviews__tab {
  appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  background: #f9fafb;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.cd-store-reviews__tab.is-active {
  background: #101828;
  color: #fff;
  border-color: #101828;
}

.cd-store-reviews__panel {
  display: block;
}

.cd-store-reviews__panel.is-active {
  display: block;
}

.cd-store-reviews__tabs + .cd-store-reviews__panel {
  margin-top: 12px;
}

.cd-review-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #101828;
}

.cd-review-card__foot {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  color: #6a7282;
}

.cd-review-card__rating {
  font-weight: 700;
  color: #111827;
}

.cd-review-badge {
  display: inline-flex;
  align-items: center;
  background: #ecfeff;
  color: #0e7490;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
  font-size: 0.75rem;
}

.cd-store-reviews__footer {
  margin-top: 16px;
}

.cd-store-reviews__more {
  color: #4a5565;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.cd-store-connect__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.cd-store-info-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cd-hours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.cd-hours-item {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
}

.cd-hours-day {
  color: #4a5565;
  font-weight: 500;
}

.cd-hours-time {
  color: #101828;
  font-weight: 500;
}

.cd-store-location__address {
  color: #6a7282;
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 16px;
}

.cd-map {
  background: #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
}

.cd-map iframe {
  border: 0;
  display: block;
  height: 300px;
  width: 100%;
}

.cd-faq-list {
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}

.cd-faq-accordion {
  border-top: 1px solid #e5e7eb;
  margin-top: 16px;
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.cd-faq-accordion .cd-faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.cd-faq-accordion .cd-faq-item__summary {
  align-items: center;
  color: #101828;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 500;
  justify-content: space-between;
  line-height: 24px;
  padding: 16px 0;
  gap: 16px;
  list-style: none;
}

.cd-faq-accordion .cd-faq-item__summary::-webkit-details-marker {
  display: none;
}

.cd-faq-accordion .cd-faq-item__q {
  flex: 1;
  min-width: 0;
}

.cd-faq-accordion .cd-faq-item__answer {
  padding: 0 0 16px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: #374151;
  line-height: 1.6;
}

.cd-faq-accordion .cd-faq-item__answer p:first-child {
  margin-top: 0;
}

.cd-faq-item {
  align-items: stretch;
  border-bottom: 1px solid #e5e7eb;
  color: #101828;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  padding: 16px 0;
  gap: 0;
}

.cd-faq-icon {
  color: #99a1af;
  font-size: 20px;
  flex-shrink: 0;
}

.cd-store-page img {
  max-width: 100%;
}

@media (min-width: 1024px) {
  .cd-store-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cd-store-page {
    padding: 32px 0 56px;
  }

  .cd-store-card {
    border-radius: 14px;
    padding: 24px;
  }

  .cd-store-hero__grid {
    flex-direction: column;
  }

  .cd-store-hero__logo {
    height: 96px;
    width: 96px;
  }

  .cd-store-actions,
  .cd-store-connect__actions {
    flex-direction: column;
    width: 100%;
  }

  .cd-store-actions .cd-btn,
  .cd-store-connect__actions .cd-btn {
    width: 100%;
  }
}
