/* ============================================
   STORE DETAIL PAGE — store-detail.css
   Minimal / word-doc aesthetic.
   Only buttons, breadcrumb, and structural
   helpers are styled. Everything else is plain.
   ============================================ */

/* ---- Page wrapper ---- */
.sd-page-wrapper {
  padding: 40px 0 80px;
}

/* ============================================
   BREADCRUMB (matches site theme)
   ============================================ */
.sd-breadcrumb {
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 0;
}
.sd-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-family: var(--font-ui);
  color: #777;
}
.sd-breadcrumb-list a {
  color: var(--color-main);
  text-decoration: none;
}
.sd-breadcrumb-list a:hover {
  text-decoration: underline;
}
.sd-breadcrumb-list i {
  font-size: 9px;
  color: #aaa;
}
.sd-breadcrumb-list .active {
  color: #444;
}

/* ============================================
   STORE HEADER
   ============================================ */
.sd-store-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.sd-store-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.sd-store-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #111;
  line-height: 1.2;
}
.sd-store-tagline {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 14px 0;
}

/* ============================================
   UPDATED BY BAR
   ============================================ */
.sd-updated-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #555;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sd-editor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sd-editor-name {
  font-weight: 600;
  color: #222;
  display: block;
  line-height: 1.3;
}
.sd-editor-role {
  color: #888;
  font-size: 12px;
}
.sd-updated-date {
  margin-left: auto;
  color: #999;
  font-size: 12px;
}

/* ============================================
   SECTION TYPOGRAPHY (plain / word-doc)
   ============================================ */
.sd-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 32px 0;
}
.sd-section {
  margin-bottom: 10px;
}
.sd-section-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 18px 0;
}
.sd-sub-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin: 24px 0 10px 0;
}
.sd-body-text {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 14px;
}
.sd-ordered-list,
.sd-unordered-list {
  padding-left: 22px;
  margin-bottom: 16px;
}
.sd-ordered-list li,
.sd-unordered-list li {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 8px;
}

/* ============================================
   COUPON ITEMS
   ============================================ */
.sd-coupon-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sd-coupon-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.sd-coupon-item:last-child {
  border-bottom: none;
}
.sd-coupon-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 6px 0;
}
.sd-coupon-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 14px 0;
  line-height: 1.6;
}
.sd-coupon-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sd-terms-panel {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fafafa;
  border-left: 3px solid #ddd;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}
.sd-terms-panel p {
  margin: 0;
}

/* ============================================
   FAQ
   ============================================ */
.sd-faq-list {
  display: flex;
  flex-direction: column;
}
.sd-faq-item {
  border-bottom: 1px solid #f0f0f0;
}
.sd-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  text-align: left;
  cursor: pointer;
  gap: 12px;
}
.sd-faq-question i {
  color: #aaa;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sd-faq-question:hover {
  color: var(--color-main);
}
.sd-faq-answer {
  display: none;
  padding: 0 0 16px 0;
}
.sd-faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* ============================================
   RELATED STORES
   ============================================ */
.sd-related-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.sd-related-store-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  width: 80px;
  text-align: center;
}
.sd-related-store-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e5e5;
}
.sd-related-store-item:hover {
  color: var(--color-main);
}

/* ============================================
   POPULAR BRANDS
   ============================================ */
.sd-popular-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sd-brand-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #444;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.sd-brand-tag:hover {
  border-color: var(--color-main);
  color: var(--color-main);
}

/* ============================================
   RELATED BLOG POSTS (reuse from blog-detail)
   ============================================ */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.related-post-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}
.related-post-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.related-post-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-post-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
  width: fit-content;
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
}
.related-post-cat.fashion { background: #fff3e0; color: #d97706; }
.related-post-cat.beauty  { background: #fce7f3; color: #ec4899; }
.related-post-cat.travel  { background: #dbeafe; color: #0284c7; }
.related-post-cat.shopping { background: #f3e8ff; color: #a855f7; }
.related-post-cat.news    { background: #fee2e2; color: #dc2626; }
.related-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  flex: 1;
  color: #111;
}
.related-post-date {
  font-size: 0.8rem;
  color: #999;
}

/* ============================================
   NEWSLETTER BLOCK
   ============================================ */
.sd-newsletter {
  background: #f9f9f9;
  padding: 28px;
  border-left: 4px solid var(--color-gold);
}
.sd-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sd-newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}
.sd-newsletter-input:focus {
  border-color: var(--color-main);
}
.sd-newsletter-note {
  font-size: 0.8rem;
  color: #999;
  margin: 0;
}

/* ============================================
   EDITORIAL NOTE
   ============================================ */
.sd-editorial-note {
  margin-top: 40px;
  padding: 16px;
  border-top: 1px solid #eee;
  font-size: 0.82rem;
  color: #999;
  line-height: 1.6;
}
.sd-editorial-note p { margin: 0; }

/* ============================================
   SIDEBAR
   ============================================ */
.sd-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sd-sidebar-box {
  border: 1px solid #eee;
  padding: 22px;
}
.sd-sidebar-heading {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Store Summary List */
.sd-store-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sd-store-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  color: #555;
}
.sd-store-summary-list li:last-child { border-bottom: none; }
.sd-store-summary-list li strong { color: #222; font-weight: 600; }

/* Sidebar Store List */
.sd-sidebar-store-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sd-sidebar-store-list li {
  border-bottom: 1px solid #f5f5f5;
}
.sd-sidebar-store-list li:last-child { border-bottom: none; }
.sd-sidebar-store-list a {
  display: block;
  padding: 9px 0;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}
.sd-sidebar-store-list a:hover { color: var(--color-main); }

/* Sidebar Newsletter */
.sd-sidebar-newsletter {
  background: var(--color-main);
  border-color: var(--color-main);
}
.sd-sidebar-newsletter .sd-sidebar-heading {
  color: rgba(255,255,255,0.55);
  border-bottom-color: rgba(255,255,255,0.15);
}
.sd-sidebar-newsletter p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  line-height: 1.6;
}
.sd-sidebar-newsletter .sd-newsletter-input {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: white;
  width: 100%;
  margin-bottom: 0;
}
.sd-sidebar-newsletter .sd-newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* ============================================
   BUTTONS — the only heavily styled element
   ============================================ */
.sd-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  white-space: nowrap;
  line-height: 1.4;
}

/* Primary — site blue */
.sd-btn-primary {
  background: var(--color-main);
  color: #fff;
}
.sd-btn-primary:hover {
  background: #0a3155;
  color: #fff;
}

/* Outline — subtle secondary */
.sd-btn-outline {
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
  padding: 9px 18px;
}
.sd-btn-outline:hover {
  border-color: var(--color-main);
  color: var(--color-main);
}

/* Gold — newsletter accent */
.sd-btn-gold {
  background: var(--color-gold);
  color: #fff;
}
.sd-btn-gold:hover {
  background: #b8862e;
  color: #fff;
}

/* Code reveal */
.sd-btn-code {
  background: #1a7a3c;
  color: #fff;
  letter-spacing: 0.15em;
  font-size: 13px;
}
.sd-btn-code:hover {
  background: #155e30;
  color: #fff;
}

/* Width helper */
.w-100 { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .sd-sidebar {
    position: static;
    margin-top: 40px;
  }
  .sd-updated-date {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .sd-store-name { font-size: 1.6rem; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .sd-newsletter-form { flex-direction: column; }
  .sd-newsletter-form .sd-btn { width: 100%; text-align: center; }
  .sd-coupon-actions { flex-direction: column; align-items: flex-start; }
  .sd-coupon-actions .sd-btn { width: 100%; text-align: center; }
}