/* ── FCommerce Frontend Styles ─────────────────────────────────────────────── */

.fc-wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .fc-wrap { padding: 8px; }
}

/* ── Shop Banner ── */
.fc-shop-banner { width: calc(100% + 80px); min-height: 120px; position: relative; overflow: hidden; margin-bottom: 0; margin-left: -40px; margin-right: -40px; }
.fc-shop-banner-gradient { background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #f5a623 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.fc-shop-banner-img { background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background-color: rgba(0,0,0,.35); background-blend-mode: darken; }
.fc-shop-banner-default { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.fc-shop-banner-shortcode { background: #fff; color: #333; display: flex; align-items: center; justify-content: center; }
.fc-shop-banner-shortcode-content { width: 100%; max-width: 1100px; padding: 6px 12px; color: #333; }
.fc-shop-banner-slider { background: #fff; color: #333; }
.fc-shop-banner-slider-inner { position: relative; width: 100%; height: 100%; }
.fc-shop-banner-slider-track { display: flex; height: 100%; transition: transform .45s ease; }
.fc-shop-banner-slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.fc-shop-banner-slide-media { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.fc-shop-banner-slide-link { display: block; width: 100%; height: 100%; text-decoration: none; background-color: #f3f4f6; position: relative; flex: 1 1 auto; min-height: 0; }
.fc-shop-banner-slide-caption { flex: 0 0 auto; padding: 6px 12px 14px; color: #333; font-size: 16px; line-height: 1.25; text-align: center; background: #fff; }
.fc-shop-banner-slide-caption p { margin: 0; }
.fc-shop-banner-category-slider,
.fc-shop-banner-slider {
    --scdev1-banner-arrow-bg-current: var(--scdev1-banner-arrow-bg-day, rgba(255,255,255,.92));
    --scdev1-banner-arrow-color-current: var(--scdev1-banner-arrow-color-day, #333);
}
.scdev1-shop-banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: var(--scdev1-banner-arrow-bg-current, rgba(255,255,255,.92)); color: var(--scdev1-banner-arrow-color-current, #333); border: 1px solid rgba(255,255,255,.38); border-radius: 9999px; cursor: pointer; padding: 6px 12px; line-height: 1; font-size: 22px; box-shadow: 0 8px 18px rgba(0,0,0,.16); transition: transform .15s ease, filter .15s ease, background .15s ease, color .15s ease; }
.scdev1-shop-banner-arrow:hover { filter: brightness(1.05); }
.scdev1-shop-banner-prev { left: 6px; }
.scdev1-shop-banner-next { right: 6px; }
.fc-shop-banner-dots { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; justify-content: center; gap: 6px; z-index: 3; padding: 0 12px 2px; }
.fc-shop-banner-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.fc-shop-banner-dot.is-active { background: #fff; }
.fc-shop-banner-title { color: #fff; font-size: 26px !important; font-weight: 700; letter-spacing: .5px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.fc-shop-banner-tagline { color: rgba(255,255,255,.9); font-size: 14px; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.5); max-width: 600px; padding: 0 16px; }

body.dark-mode .fc-shop-banner-shortcode,
body.night-mode .fc-shop-banner-shortcode,
body.dark-mode .fc-shop-banner-slider,
body.night-mode .fc-shop-banner-slider {
    background: #171717;
    color: #f3f4f6;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
body.dark-mode .fc-shop-banner-shortcode-content,
body.night-mode .fc-shop-banner-shortcode-content,
body.dark-mode .fc-shop-banner-slide-caption,
body.night-mode .fc-shop-banner-slide-caption {
    background: #1f1f1f;
    color: #f3f4f6;
}
body.dark-mode .fc-shop-banner-slide-link,
body.night-mode .fc-shop-banner-slide-link {
    background-color: #232323;
}
body.dark-mode .fc-shop-banner-dot,
body.night-mode .fc-shop-banner-dot {
    background: rgba(255,255,255,.35);
}
body.dark-mode .fc-shop-banner-dot.is-active,
body.night-mode .fc-shop-banner-dot.is-active {
    background: #fff;
}
body.dark-mode .scdev1-shop-banner-arrow,
body.night-mode .scdev1-shop-banner-arrow {
    --scdev1-banner-arrow-bg-current: var(--scdev1-banner-arrow-bg-night, #3a3a3a);
    --scdev1-banner-arrow-color-current: var(--scdev1-banner-arrow-color-night, #fff);
    border-color: rgba(255,255,255,.28);
}
body.dark-mode .scdev1-shop-banner-arrow:hover,
body.night-mode .scdev1-shop-banner-arrow:hover {
    filter: brightness(1.08);
}
body.dark-mode .fc-shop-banner-slide-caption p,
body.night-mode .fc-shop-banner-slide-caption p {
    color: inherit;
}

/* ── Toolbar ── */
.fc-shop-toolbar { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px; row-gap: 8px; margin-bottom: 16px; }
.fc-shop-search-panel { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.fc-shop-search-input { flex: 1 1 280px; min-width: 0; padding: 8px 10px; border: 1px solid #d7d7d7; border-radius: 8px; font-size: 14px; color: #333; background: #fff; }
.fc-shop-search-input:focus { outline: none; border-color: #87a4d5; box-shadow: 0 0 0 2px rgba(135,164,213,.15); }
.fc-shop-search-clear { width: 32px; height: 32px; border: 1px solid #d7d7d7; border-radius: 8px; background: #fff; color: #666; font-size: 20px; line-height: 1; padding: 0; cursor: pointer; }
.fc-shop-search-clear:hover { color: #111; border-color: #bbb; }
.fc-shop-search-empty { margin: 0 0 10px; font-size: 13px; color: #666; }
.fc-toolbar-main-actions { flex: 0 0 auto; }
.fc-toolbar-category-actions { flex: 1 1 260px; min-width: 0; margin-left: auto; justify-content: flex-end; }
.fc-toolbar-category-actions .fc-chip { white-space: nowrap; }
.fc-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-cat-chips { margin-bottom: 0; }
.fc-product-grid { margin-top: 12px; }
.fc-shop-toolbar .fc-chip,
.fc-shop-toolbar .fc-btn-primary {
    padding: 4px 8px;
    font-size: 14px;
}
.fc-chip { padding: 5px 14px; border-radius: 20px; border: 1px solid #ccc; background: #f5f5f5; color: #333; font-size: 13px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.fc-chip:hover, .fc-chip-active { background: #cad9ef; color: #5d5a5a; border-color: #111; }

/* ── Buttons ── */
.fc-wrap button,
.fc-wrap button:not(.fc-btn) {
    background: none !important;
    border: none !important;
    padding: 8px !important;
    margin: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.fc-btn { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 5px !important; 
    padding: 8px 16px !important; 
    border-radius: 6px !important; 
    border: none !important; 
    cursor: pointer !important; 
    font-size: 14px !important; 
    font-weight: 500 !important; 
    transition: opacity .15s !important; 
    line-height: 1 !important; 
    height: 32px !important; 
    background: none !important;
    color: inherit !important;
    margin: 0 !important;
    text-decoration: none !important;
}
.fc-btn:hover { opacity: .85 !important; }
.fc-btn-primary { background: #87a4d5 !important; color: #fff !important; }
.fc-btn-icon-only {
    justify-content: center !important;
    gap: 0 !important;
    min-width: 0 !important;
    background: #fff !important;
    color: #3b3b3b !important;
    border: 1px solid #dcdcdc !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}
.fc-toolbar-main-actions .fc-chip-icon-only {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 4px 8px !important;
}
.fc-toolbar-main-actions .fc-chip-icon-only.fc-chip-active,
.fc-toolbar-main-actions .fc-chip-icon-only:hover {
    box-shadow: none !important;
    border: none !important;
}
.fc-btn-secondary { background: #f0f0f0 !important; color: #333 !important; border: 1px solid #ccc !important; }
.fc-product-images-button {
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
}
.fc-btn-cart { background: #2563eb !important; color: #fff !important; font-size: 13px !important; padding: 6px 12px !important; border: 1px solid rgba(128,128,128,.55) !important; font-weight: 500 !important; line-height: 1 !important; height: 28px !important; box-shadow: none !important; }
.fc-btn-cart.fc-in-cart { background: #16a34a !important; font-size: 12px !important; padding: 5px 10px !important; cursor: pointer !important; width:40% !important;}
.fc-btn-info { background: #7c3aed !important; color: #fff !important; font-size: 13px !important; padding: 6px 12px !important; border: 1px solid rgba(128,128,128,.55) !important; font-weight: 500 !important; line-height: 1 !important; height: 28px !important; box-shadow: none !important; }
.fc-btn-info:hover { opacity: .85 !important; }
.fc-btn-icon { background: transparent !important; color: #999 !important; padding: 5px 7px !important; font-size: 15px !important; }
.fc-btn-icon:hover { color: #e00 !important; }
.fc-chip-icon-only {
    justify-content: center !important;
    gap: 0 !important;
    background: #fff !important;
    color: #3b3b3b !important;
    border-color: #dcdcdc !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}
.fc-chip-icon { font-size: 14px !important; line-height: 1 !important; }
.fc-btn-full { width: 100% !important; justify-content: center !important; }
.fc-btn-danger { background: #dc2626 !important; color: #fff !important; }
.fc-btn-paypal { background: #ffc439 !important; color: #003087 !important; font-weight: 700 !important; }

/* ── Product Grid ── */
.fc-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Cap at 2 columns when content area is under 1000px */
@media (max-width: 999px) {
    .fc-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
    .fc-product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .fc-shop-search-panel { flex-wrap: wrap; }
    .fc-shop-search-input { flex-basis: 100%; }
    .fc-toolbar-category-actions {
        flex-basis: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}
.fc-product-card { border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.fc-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.fc-card-img-wrap { display: block; position: relative; height: var(--fc-archive-card-image-height, 180px); overflow: hidden; background: #f0f0f0; margin-top: 10px; border-radius: 8px; margin-left: 10px; margin-right: 10px; }
.fc-card-img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.fc-card-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 40px; color: #ccc; }
.fc-badge-digital { position: absolute; top: 8px; left: 8px; background: #7c3aed; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 12px; }

/* Archive card author badge - positioned at bottom-left */
.fc-card-img-wrap .fc-badge-author { 
  position: absolute !important; 
  bottom: 8px !important; 
  left: 8px !important; 
  background: rgba(0,0,0,.55) !important; 
  color: #fff !important; 
  font-size: 11px !important; 
  padding: 4px 8px !important; 
  border-radius: 12px !important; 
  text-decoration: none !important;
  z-index: 1 !important; 
  font-weight: 400 !important;
  height: auto !important;
  line-height: 1 !important;
}
.fc-card-img-wrap .fc-badge-author:hover { background: rgba(0,0,0,.8) !important; }

.fc-card-body { padding: 10px 12px; }
.fc-card-meta-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.fc-card-author { font-size: 12px; color: #666; text-decoration: none; }
.fc-card-author:hover { color: #111; text-decoration: underline; }
.fc-card-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.fc-card-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fc-card-price { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; justify-content: center; }
.fc-card-actions { display: flex; gap: 4px; align-items: center; width: 100%; justify-content: center; }
.fc-price-coins { background: #fef3c7; color: #92400e; font-size: 12px; padding: 2px 8px; border-radius: 12px; }
.fc-price-usd { background: #dcfce7; color: #166534; font-size: 12px; padding: 2px 8px; border-radius: 12px; }

/* ── Single Product ── */
.fc-back-link { display: inline-block; margin-bottom: 16px; font-size: 13px; color: #666; text-decoration: none; }
.fc-back-link:hover { color: #111; }

/* Top row: featured image + info */
.fc-product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; align-items: start; }
@media (max-width: 640px) { .fc-product-top { grid-template-columns: 1fr; } }

.fc-product-info { display: flex; flex-direction: column; gap: 8px; align-self: start; border: 1px solid #e5e5e5; border-radius: 8px; padding: 16px; }
.fc-featured-img { width: 100%; height: 250px !important; object-fit: cover; border-radius: 10px; cursor: pointer; display: block; aspect-ratio: unset; }
.fc-no-img { display: flex; align-items: center; justify-content: center; font-size: 48px; color: #ccc; background: #f0f0f0; border-radius: 10px; height: 250px; }
.fc-product-title { font-size: 22px !important; font-weight: 700 !important; margin: 0 !important; line-height: 1.2 !important; display: block !important; }
.fc-product-excerpt { font-size: 10px; line-height: 1.0; color: #666; margin-top: 2px; margin-bottom: 8px; }
.fc-product-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fc-product-meta-badges { display: flex; gap: 12px; align-items: center; margin: 20px 0; padding: 16px 0; border-bottom: 1px solid #eee; justify-content: flex-start; flex-wrap: nowrap; }

/* Badge styling - used in both archive and single product pages */
.fc-badge-category, .fc-badge-author { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; font-size: 13px; text-decoration: none !important; cursor: pointer; transition: all .2s; border: 1px solid transparent; white-space: nowrap; flex-shrink: 0; height: 28px; line-height: 1; }

/* Archive card badges - smaller padding */
.fc-card-img-wrap .fc-badge-category,
.fc-card-img-wrap .fc-badge-author { padding: 4px 8px !important; position: absolute !important; }

/* Single product page badges - larger padding */
.fc-product-meta-badges .fc-badge-category,
.fc-product-meta-badges .fc-badge-author { padding: 6px 12px !important; position: static !important; }

.fc-badge-category { background: #dbeafe; color: #1e40af; }
.fc-badge-category:hover { background: #bfdbfe; border-color: #1e40af; }
.fc-badge-author { background: #f3e8ff; color: #7e22ce; }
.fc-badge-author:hover { background: #e9d5ff; border-color: #7e22ce; }
.fc-product-price-block { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-product-price-block .fc-price-coins,
.fc-product-price-block .fc-price-usd { font-size: 15px; padding: 4px 12px; }
.fc-purchased-badge { color: #16a34a; font-weight: 600; }
.fc-product-img-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; clear: both; width: 100%; }
.fc-strip-img { width: 90px; height: 90px !important; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color .15s, opacity .15s; flex-shrink: 0; }
.fc-strip-img:hover { border-color: #111; opacity: .9; }

/* Description — full width below gallery */
.fc-product-description-wrap { width: 100%; margin-top: 4px; }
.fc-product-description-label { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.fc-product-description { font-size: 14px; line-height: 1.6; color: #444; }
.fc-product-description .scdev-columns { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; width: 100%; margin: 0 0 12px; box-sizing: border-box; }
.fc-product-description .scdev-columns.scdev-mt-0 { margin-top: 0 !important; }
.fc-product-description .scdev-columns.scdev-mt-2 { margin-top: 2px !important; }
.fc-product-description .scdev-columns.scdev-mt-4 { margin-top: 4px !important; }
.fc-product-description .scdev-columns.scdev-mt-6 { margin-top: 6px !important; }
.fc-product-description .scdev-columns.scdev-mt-8 { margin-top: 8px !important; }
.fc-product-description .scdev-columns.scdev-mt-10 { margin-top: 10px !important; }
.fc-product-description .scdev-columns.scdev-mt-12 { margin-top: 12px !important; }
.fc-product-description .scdev-columns.scdev-mt-14 { margin-top: 14px !important; }
.fc-product-description .scdev-columns.scdev-mt-16 { margin-top: 16px !important; }
.fc-product-description .scdev-columns.scdev-mt-18 { margin-top: 18px !important; }
.fc-product-description .scdev-columns.scdev-mt-20 { margin-top: 20px !important; }
.fc-product-description .scdev-columns.scdev-mt-22 { margin-top: 22px !important; }
.fc-product-description .scdev-columns.scdev-mt-24 { margin-top: 24px !important; }
.fc-product-description .scdev-columns.scdev-mb-0 { margin-bottom: 0 !important; }
.fc-product-description .scdev-columns.scdev-mb-2 { margin-bottom: 2px !important; }
.fc-product-description .scdev-columns.scdev-mb-4 { margin-bottom: 4px !important; }
.fc-product-description .scdev-columns.scdev-mb-6 { margin-bottom: 6px !important; }
.fc-product-description .scdev-columns.scdev-mb-8 { margin-bottom: 8px !important; }
.fc-product-description .scdev-columns.scdev-mb-10 { margin-bottom: 10px !important; }
.fc-product-description .scdev-columns.scdev-mb-12 { margin-bottom: 12px !important; }
.fc-product-description .scdev-columns.scdev-mb-14 { margin-bottom: 14px !important; }
.fc-product-description .scdev-columns.scdev-mb-16 { margin-bottom: 16px !important; }
.fc-product-description .scdev-columns.scdev-mb-18 { margin-bottom: 18px !important; }
.fc-product-description .scdev-columns.scdev-mb-20 { margin-bottom: 20px !important; }
.fc-product-description .scdev-columns.scdev-mb-22 { margin-bottom: 22px !important; }
.fc-product-description .scdev-columns.scdev-mb-24 { margin-bottom: 24px !important; }
.fc-product-description .scdev-columns,
.fc-product-description .scdev-columns * { box-sizing: border-box; }
.fc-product-description .scdev-gap-0,
.fc-product-description .scdev-gap-0 .scdev-col-stack { gap: 0; }
.fc-product-description .scdev-gap-1,
.fc-product-description .scdev-gap-1 .scdev-col-stack { gap: 1px; }
.fc-product-description .scdev-gap-2,
.fc-product-description .scdev-gap-2 .scdev-col-stack { gap: 2px; }
.fc-product-description .scdev-gap-3,
.fc-product-description .scdev-gap-3 .scdev-col-stack { gap: 3px; }
.fc-product-description .scdev-gap-4,
.fc-product-description .scdev-gap-4 .scdev-col-stack { gap: 4px; }
.fc-product-description .scdev-gap-5,
.fc-product-description .scdev-gap-5 .scdev-col-stack { gap: 5px; }
.fc-product-description .scdev-gap-6,
.fc-product-description .scdev-gap-6 .scdev-col-stack { gap: 6px; }
.fc-product-description .scdev-gap-7,
.fc-product-description .scdev-gap-7 .scdev-col-stack { gap: 7px; }
.fc-product-description .scdev-gap-8,
.fc-product-description .scdev-gap-8 .scdev-col-stack { gap: 8px; }
.fc-product-description .scdev-gap-9,
.fc-product-description .scdev-gap-9 .scdev-col-stack { gap: 9px; }
.fc-product-description .scdev-gap-10,
.fc-product-description .scdev-gap-10 .scdev-col-stack { gap: 10px; }
.fc-product-description .scdev-gap-11,
.fc-product-description .scdev-gap-11 .scdev-col-stack { gap: 11px; }
.fc-product-description .scdev-gap-12,
.fc-product-description .scdev-gap-12 .scdev-col-stack { gap: 12px; }
.fc-product-description .scdev-gap-13,
.fc-product-description .scdev-gap-13 .scdev-col-stack { gap: 13px; }
.fc-product-description .scdev-gap-14,
.fc-product-description .scdev-gap-14 .scdev-col-stack { gap: 14px; }
.fc-product-description .scdev-gap-15,
.fc-product-description .scdev-gap-15 .scdev-col-stack { gap: 15px; }
.fc-product-description .scdev-gap-16,
.fc-product-description .scdev-gap-16 .scdev-col-stack { gap: 16px; }
.fc-product-description .scdev-gap-17,
.fc-product-description .scdev-gap-17 .scdev-col-stack { gap: 17px; }
.fc-product-description .scdev-gap-18,
.fc-product-description .scdev-gap-18 .scdev-col-stack { gap: 18px; }
.fc-product-description .scdev-gap-19,
.fc-product-description .scdev-gap-19 .scdev-col-stack { gap: 19px; }
.fc-product-description .scdev-gap-20,
.fc-product-description .scdev-gap-20 .scdev-col-stack { gap: 20px; }
.fc-product-description .scdev-col { min-width: 0; padding: 6px 12px; border: none; box-shadow: none; background: #fff; color: #333; overflow-wrap: anywhere; }
.fc-product-description .scdev-cols-boxed > .scdev-col { border: 1px solid #ddd; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.fc-product-description .scdev-col img,
.fc-product-description .scdev-col video,
.fc-product-description .scdev-col iframe,
.fc-product-description .scdev-col table { max-width: 100% !important; }
.fc-product-description .scdev-col img { display: block; }
.fc-product-description .scdev-col img.scdev-custom-size { max-width: none !important; }
.fc-product-description .scdev-col video { display: block; height: auto !important; }
.fc-product-description .scdev-col img.scdev-thumb-wide { width: 100% !important; aspect-ratio: 2 / 1; object-fit: cover; cursor: pointer; }
.fc-product-description .scdev-col img.scdev-thumb-square { width: 100% !important; aspect-ratio: 1 / 1; object-fit: cover; cursor: pointer; }
.fc-product-description .scdev-columns .wp-caption { max-width: 100% !important; width: auto !important; margin: 0; display: inline-block; }
.fc-product-description .scdev-columns .wp-caption img { max-width: 100% !important; }
.fc-product-description .scdev-col > p:first-child { margin-top: 0; }
.fc-product-description .scdev-col > p:last-child { margin-bottom: 0; }
.fc-product-description .scdev-col-empty::before { content: none; }
.fc-product-description .scdev-cols-1 { justify-content: center; }
.fc-product-description .scdev-cols-1 .scdev-col { width: 100%; }
.fc-product-description .scdev-cols-2 > .scdev-col,
.fc-product-description .scdev-cols-3 > .scdev-col { flex: 1 1 0; }
.fc-product-description .scdev-cols-25-75 > .scdev-col:first-child { flex: 0 1 25%; }
.fc-product-description .scdev-cols-25-75 > .scdev-col:last-child { flex: 1 1 75%; }
.fc-product-description .scdev-cols-75-25 > .scdev-col:first-child { flex: 1 1 75%; }
.fc-product-description .scdev-cols-75-25 > .scdev-col:last-child { flex: 0 1 25%; }
.fc-product-description .scdev-cols-tall-left > .scdev-col-tall,
.fc-product-description .scdev-cols-tall-right > .scdev-col-tall,
.fc-product-description .scdev-col-stack { flex: 1 1 0; min-width: 0; }
.fc-product-description .scdev-col-stack { display: flex; flex-direction: column; }
.fc-product-description .scdev-col-short { flex: 0 0 auto; }
.fc-product-description .scdev-col-resize-handle { display: none !important; }

/* ── Lightbox ── */
.fc-related-products-wrap { margin: 28px 0 10px; }
.fc-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}
@media (max-width: 980px) {
    .fc-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 640px) {
    .fc-related-grid {
        grid-template-columns: 1fr !important;
    }
}
.fc-related-card {
    display: block !important;
    text-decoration: none !important;
    color: #333 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fc-related-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
    border-color: #cfd6df !important;
}
.fc-related-card > div:first-child {
    background: #f5f5f5 !important;
}
.fc-related-card > div:last-child {
    background: #fff !important;
}
.fc-related-card img {
    display: block;
}
body.night-mode .fc-related-products-wrap {
    color: #e0e0e0;
}
body.night-mode .fc-related-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
body.night-mode .fc-related-card:hover {
    border-color: #555 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
body.night-mode .fc-related-card > div:first-child {
    background: #2a2a2a !important;
}
body.night-mode .fc-related-card > div:last-child {
    background: #1e1e1e !important;
}
body.night-mode .fc-related-card [style*="font-size:13px;font-weight:600"] {
    color: #e0e0e0 !important;
}
body.night-mode .fc-related-card [style*="margin-top:6px;font-size:12px"] {
    color: #aaa !important;
}
.fc-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.fc-lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.88); }
.fc-lightbox-img { position: relative; max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 6px; z-index: 1; }
.fc-lightbox-close { position: absolute; top: 16px; right: 20px; z-index: 2; background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.fc-lightbox-prev, .fc-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 36px; cursor: pointer; padding: 8px 14px; border-radius: 6px; line-height: 1; }
.fc-lightbox-prev { left: 16px; }
.fc-lightbox-next { right: 16px; }

/* ── Cart ── */
.fc-cart-layout { display: flex; flex-direction: column; gap: 20px; }
.fc-cart-items { display: flex; flex-direction: column; gap: 12px; }
.fc-cart-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #eee; border-radius: 10px; }
.fc-cart-item-img { flex-shrink: 0; width: 150px; height: 150px; }
.fc-cart-item-img img { width: 150px !important; height: 150px !important; object-fit: cover; border-radius: 8px; display: block; }
.fc-cart-item-img-placeholder { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; font-size: 40px; background: #f0f0f0; border-radius: 8px; color: #ccc; }
.fc-cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fc-cart-item-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-cart-item-type { font-size: 12px; color: #666; }
.fc-cart-item-price { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.fc-cart-remove { flex-shrink: 0; background: none; border: none; color: #999; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: color .15s; }
.fc-cart-remove:hover { color: #e00; }
.fc-cart-summary {border-radius: 10px; padding: 16px 20px; }
.fc-summary-box { display: flex; flex-direction: column; gap: 10px; }
.fc-summary-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.fc-summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.fc-balance-row { font-size: 13px; color: #666; }
.fc-ok { color: #16a34a; font-weight: 600; }
.fc-warn { color: #dc2626; font-weight: 600; }
.fc-cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.fc-cart-table th, .fc-cart-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.fc-cart-table th { background: #f9f9f9; font-weight: 600; }
.fc-cart-img { width: 56px; height: 56px !important; object-fit: cover; border-radius: 6px; }
.fc-cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.fc-cart-summary-total { font-weight: 700; font-size: 16px; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 4px; }

/* ── Checkout ── */
.fc-checkout-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 700px) { .fc-checkout-layout { grid-template-columns: 1fr; } }
.fc-section-title { font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.fc-checkout-items { display: flex; flex-direction: column; gap: 0; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; }
.fc-co-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eee; }
.fc-co-item:last-of-type { border-bottom: none; }
.fc-co-img { width: 56px; height: 56px !important; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.fc-co-img-placeholder { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; border-radius: 6px; font-size: 22px; color: #ccc; flex-shrink: 0; }
.fc-co-info { flex: 1; min-width: 0; }
.fc-co-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-co-type { font-size: 12px; color: #666; margin-top: 2px; }
.fc-co-price { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.fc-co-totals { padding: 12px 14px; border-top: 2px solid #eee; background: #fafafa; }
.fc-co-total-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.fc-co-total-row:last-child { margin-bottom: 0; }
.fc-section-title-wrap { padding: 12px 14px 0; }

/* Payment box */
.fc-payment-box { border: 1px solid #e5e5e5; border-radius: 10px; padding: 18px; position: sticky; top: 20px; }
.fc-pay-total-display { margin-bottom: 16px; }
.fc-pay-total-line { font-size: 18px; font-weight: 700; margin-bottom: 4px; }

/* Payment modal internals */
.fc-pay-modal-totals { background: #f5f5f5; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.fc-pay-modal-total-row { font-size: 14px; margin-bottom: 4px; }
.fc-pay-modal-total-row:last-child { margin-bottom: 0; }
.fc-pay-method-block { border: 1px solid #e5e5e5; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.fc-pay-method-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.fc-pay-method-balance { font-size: 13px; color: #666; margin-bottom: 10px; }

/* Shipping */
.fc-shipping-display { font-size: 13px; color: #444; line-height: 1.6; }
.fc-shipping-display p { margin: 0; }
.fc-shipping-form-fields { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* Success */
.fc-order-success { text-align: center; padding: 40px 16px; }
.fc-success-icon { font-size: 56px; margin-bottom: 12px; color: #16a34a; }
.fc-download-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* Legacy compat */
.fc-order-item { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.fc-order-item img { width: 44px; height: 44px !important; object-fit: cover; border-radius: 6px; }

/* ── Tables ── */
.fc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fc-table th, .fc-table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; }
.fc-table th { background: #f9f9f9; font-weight: 600; }
.fc-table tr:last-child td { border-bottom: none; }
.fc-earnings-summary { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fc-stat-card { flex: 1; min-width: 140px; background: #f9f9f9; border-radius: 10px; padding: 16px; text-align: center; }
.fc-stat-card .fc-stat-val { font-size: 22px; font-weight: 700; }
.fc-stat-card .fc-stat-label { font-size: 12px; color: #666; margin-top: 4px; }

/* ── Buy Coins ── */
.fc-coin-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.fc-coin-pkg { border: 2px solid #e5e5e5; border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; transition: border-color .15s; }
.fc-coin-pkg:hover, .fc-coin-pkg.selected { border-color: #111; }
.fc-coin-pkg .fc-pkg-coins { font-size: 20px; font-weight: 700; }
.fc-coin-pkg .fc-pkg-price { font-size: 13px; color: #666; margin-top: 4px; }

/* ── Modal ── */
.fc-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998; }
.fc-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 9999; width: 850px !important; max-width: 95vw !important; max-height: 90vh; background: #fff; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.fc-modal-inner { padding: 18px; width: 100%; overflow-y: auto; flex: 1; }
.fc-modal-title { margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.0; }
.fc-modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 18px; cursor: pointer; color: #666; padding: 4px 8px; }

/* ── Info Modal ── */
.fc-info-modal-overlay { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); }
.fc-info-modal-overlay.is-open { display: flex; }
.fc-info-modal-content { background: #fff; border-radius: 12px; padding: 24px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.fc-info-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.fc-info-modal-title { margin: 0; font-size: 18px; font-weight: 700; color: #1f2937; }
.fc-info-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #666; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.fc-info-modal-close:hover { color: #333; }
.fc-info-modal-excerpt { font-size: 14px; line-height: 1.0; color: #555; white-space: pre-wrap; word-break: break-word; }

/* ── Form fields ── */
.fc-field { margin-bottom: 10px; }
.fc-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 3px; line-height: 1.0; }
.fc-field input[type="text"], .fc-field input[type="number"], .fc-field input[type="email"],
.fc-field select, .fc-field textarea { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; box-sizing: border-box; line-height: 1.0; }
.fc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-radio-group { display: flex; gap: 14px; }
.fc-radio-group label { font-weight: 400; font-size: 12px; display: flex; align-items: center; gap: 4px; line-height: 1.0; }
.fc-req { color: #e00; }

/* ── Upload area ── */
.fc-upload-area { border: 2px dashed #ccc; border-radius: 8px; padding: 16px; cursor: pointer; min-height: 80px; transition: border-color .15s; }
.fc-upload-area:hover, .fc-drag-over { border-color: #111; }
.fc-upload-placeholder { text-align: center; color: #999; font-size: 13px; padding: 12px 0; }
.fc-upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fc-preview-item { position: relative; width: 72px; height: 72px; }
.fc-preview-item img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 6px; }
.fc-preview-remove { position: absolute; top: -6px; right: -6px; background: #e00; color: #fff; border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.fc-featured-badge { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 9px; text-align: center; border-radius: 0 0 6px 6px; padding: 2px 0; }

/* ── Misc ── */
.fc-seller-filter-label { font-size: 13px; color: #666; margin-bottom: 12px; }
.fc-seller-filter-label a { color: #2563eb; text-decoration: none; }
.fc-empty { text-align: center; color: #999; padding: 40px 0; font-size: 15px; }
.fc-msg { padding: 8px 12px; border-radius: 6px; font-size: 13px; background: #fee2e2; color: #991b1b; }
.fc-msg.fc-msg-ok { background: #dcfce7; color: #166534; }
.fc-badge { display: inline-block; background: #e00; color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; text-align: center; line-height: 18px; margin-left: 4px; }


/* ── Night Mode ─────────────────────────────────────────────────────────────── */


/* General text & backgrounds */
body.night-mode .fc-wrap { color: #e0e0e0; }
body.night-mode .fc-back-link { color: #aaa; }
body.night-mode .fc-back-link:hover { color: #e0e0e0; }
body.night-mode .fc-empty { color: #666; }
body.night-mode .fc-seller-filter-label { color: #aaa; }
body.night-mode .fc-seller-filter-label a { color: #7aadff; }
body.night-mode .fc-balance-row { color: #aaa; }

/* Chips / filters */
body.night-mode .fc-chip { background: #1e1e1e; border-color: #444; color: #ccc; }
body.night-mode .fc-chip:hover,
body.night-mode .fc-chip-active { background: #e0e0e0; color: #111; border-color: #e0e0e0; }

/* Buttons */
body.night-mode .fc-btn-primary { background: #e0e0e0 !important; color: #111 !important; }
body.night-mode .fc-btn-icon-only {
    background: #1c1c1c !important;
    color: #f3f4f6 !important;
    border-color: #444 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.35) !important;
}
body.night-mode .fc-btn-secondary { background: #2a2a2a !important; color: #ccc !important; border-color: #555 !important; }
body.night-mode .fc-btn-info { background: #8b5cf6 !important; color: #fff !important; border-color: rgba(128,128,128,.55) !important; box-shadow: none !important; }
body.night-mode .fc-btn-cart { background: #1e7bc4 !important; color: #fff !important; border-color: rgba(128,128,128,.55) !important; padding:4px 8px !important; box-shadow: none !important; }
body.night-mode .fc-btn-cart.fc-in-cart { background: #107a4b !important; }

/* Night mode badges - unified styles */
body.night-mode .fc-badge-category { background: #1e3a8a !important; color: #93c5fd !important; }
body.night-mode .fc-badge-category:hover { background: #1e40af !important; border-color: #93c5fd !important; }
body.night-mode .fc-badge-author { background: #581c87 !important; color: #d8b4fe !important; }
body.night-mode .fc-badge-author:hover { background: #6b21a8 !important; border-color: #d8b4fe !important; }

body.night-mode .fc-btn-icon { color: #777 !important; }
body.night-mode .fc-btn-icon:hover { color: #ff6b6b !important; }
body.night-mode .fc-chip-icon-only {
    background: #1c1c1c !important;
    color: #f3f4f6 !important;
    border-color: #444 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.35) !important;
}
body.night-mode .fc-btn-icon-only .fc-chip-icon,
body.night-mode .fc-chip-icon-only .fc-chip-icon { color: inherit !important; }

/* Product cards */
body.night-mode .fc-product-card { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
body.night-mode .fc-product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.4); }
body.night-mode .fc-card-img-wrap { background: #2a2a2a; }
body.night-mode .fc-card-img-placeholder { background: #2a2a2a; color: #555; }
body.night-mode .fc-card-author { color: #aaa; }
body.night-mode .fc-card-author:hover { color: #e0e0e0; }
body.night-mode .fc-price-coins { background: #3a2e00; color: #fcd34d; }
body.night-mode .fc-price-usd { background: #052e16; color: #4ade80; }

/* Single product */
body.night-mode .fc-product-info { border-color: #333; background: #1e1e1e; }
body.night-mode .fc-product-title { color: #e0e0e0; }
body.night-mode .fc-product-excerpt { color: #aaa; }
body.night-mode .fc-product-meta-badges { border-bottom-color: #333; }
body.night-mode .fc-product-description { color: #bbb; }
body.night-mode .fc-product-description-wrap { border-color: #333; background: #1e1e1e; }
body.night-mode .fc-product-description .scdev-col { background: #1e1e1e; color: #ddd; border: none; box-shadow: none; }
body.night-mode .fc-product-description .scdev-cols-boxed > .scdev-col { border: 1px solid #444; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
body.night-mode .fc-product-description .scdev-col-resize-handle { display: none !important; }
body.night-mode .fc-no-img { background: #2a2a2a; color: #555; }
body.night-mode .fc-strip-img:hover { border-color: #e0e0e0; }
body.night-mode .fc-purchased-badge { color: #4ade80; }

/* Cart */
body.night-mode .fc-cart-item { background: #1e1e1e; border-color: #333; }
body.night-mode .fc-cart-item-title { color: #e0e0e0; }
body.night-mode .fc-cart-item-type { color: #888; }
body.night-mode .fc-cart-item-img-placeholder { background: #2a2a2a; color: #555; }
body.night-mode .fc-cart-remove { color: #666; }
body.night-mode .fc-cart-remove:hover { color: #ff6b6b; }
body.night-mode .fc-cart-summary { background: #1e1e1e; border-color: #333; }
body.night-mode .fc-summary-title { color: #e0e0e0; }
body.night-mode .fc-summary-row { color: #ccc; }
body.night-mode .fc-cart-summary-total { border-color: #444; color: #e0e0e0; }
body.night-mode .fc-cart-table th { background: #161616; color: #ccc; border-color: #333; }
body.night-mode .fc-cart-table td { border-color: #333; color: #ccc; }

/* Checkout */
body.night-mode .fc-checkout-items { border-color: #333; background: #1e1e1e; }
body.night-mode .fc-co-item { border-color: #333; }
body.night-mode .fc-co-title { color: #e0e0e0; }
body.night-mode .fc-co-type { color: #888; }
body.night-mode .fc-co-totals { background: #161616; border-color: #333; color: #ccc; }
body.night-mode .fc-co-img-placeholder { background: #2a2a2a; color: #555; }
body.night-mode .fc-payment-box { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
body.night-mode .fc-pay-modal-totals { background: #161616; color: #ccc; }
body.night-mode .fc-pay-method-block { background: #1e1e1e; border-color: #333; }
body.night-mode .fc-pay-method-title { color: #e0e0e0; }
body.night-mode .fc-pay-method-balance { color: #888; }
body.night-mode .fc-shipping-display { color: #bbb; }

/* Tables (earnings, orders) */
body.night-mode .fc-table th { background: #161616; color: #ccc; border-color: #333; }
body.night-mode .fc-table td { border-color: #333; color: #ccc; }
body.night-mode .fc-table tr:hover td { background: rgba(255,255,255,.03); }

/* Stat cards */
body.night-mode .fc-stat-card { background: #1e1e1e; border: 1px solid #333; }
body.night-mode .fc-stat-card .fc-stat-val { color: #e0e0e0; }
body.night-mode .fc-stat-card .fc-stat-label { color: #888; }

/* Buy coins */
body.night-mode .fc-coin-pkg { background: #1e1e1e; border-color: #333; color: #e0e0e0; }
body.night-mode .fc-coin-pkg:hover,
body.night-mode .fc-coin-pkg.selected { border-color: #e0e0e0; }
body.night-mode .fc-coin-pkg .fc-pkg-price { color: #888; }

/* Modal */
body.night-mode .fc-modal { background: #1e1e1e; color: #e0e0e0; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
body.night-mode .fc-modal-title { color: #e0e0e0; }
body.night-mode .fc-modal-close { color: #888; }
body.night-mode .fc-modal-close:hover { color: #e0e0e0; }
body.night-mode .fc-info-modal-content { background: #1e1e1e; color: #e0e0e0; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
body.night-mode .fc-info-modal-title { color: #e0e0e0; }
body.night-mode .fc-info-modal-close { color: #888; }
body.night-mode .fc-info-modal-close:hover { color: #e0e0e0; }
body.night-mode .fc-info-modal-excerpt { color: #bbb; }

/* Form fields */
body.night-mode .fc-field label { color: #ccc; }
body.night-mode .fc-field input[type="text"],
body.night-mode .fc-field input[type="number"],
body.night-mode .fc-field input[type="email"],
body.night-mode .fc-field select,
body.night-mode .fc-field textarea { background: #161616; border-color: #444; color: #e0e0e0; }
body.night-mode .fc-field input::placeholder,
body.night-mode .fc-field textarea::placeholder { color: #555; }
body.night-mode .fc-upload-area { border-color: #444; background: #161616; }
body.night-mode .fc-upload-placeholder { color: #666; }
body.night-mode .fc-drag-over { border-color: #e0e0e0; }

/* Messages */
body.night-mode .fc-msg { background: #3b0a0a; color: #fca5a5; }
body.night-mode .fc-msg.fc-msg-ok { background: #052e16; color: #4ade80; }

/* Reviews */
body.night-mode .fc-reviews-wrap { border-color: #333; }
body.night-mode .fc-reviews-title { color: #e0e0e0; }
body.night-mode .fc-avg-num { color: #888; }
body.night-mode .fc-review-form-wrap { background: #1e1e1e; border: 1px solid #333; }
body.night-mode .fc-review-form-title { color: #e0e0e0; }
body.night-mode .fc-review-textarea { border-color: #444; background: #161616; color: #e0e0e0; }
body.night-mode .fc-review-textarea::placeholder { color: #555; }
body.night-mode .fc-review-gate { color: #666; }
body.night-mode .fc-review-item { background: #1e1e1e; border-color: #333; }
body.night-mode .fc-review-author { color: #e0e0e0; }
body.night-mode .fc-review-date { color: #666; }
body.night-mode .fc-review-text { color: #bbb; }
body.night-mode .fc-reviews-empty { color: #666; }
body.night-mode .fc-star { color: #444; }
body.night-mode .fc-star.fc-star-on { color: #f5a623; }
body.night-mode .fc-star-pick { color: #444; }
body.night-mode .fc-star-pick.fc-star-on { color: #f5a623; }

/* Profile injected orders */
body.night-mode .fc-profile-orders h4 { color: #e0e0e0; }
body.night-mode .fc-profile-orders .order-card { border-color: #333 !important; background: #1e1e1e; }
body.night-mode .fc-profile-orders .order-header strong { color: #e0e0e0; }
body.night-mode .fc-profile-orders .order-items > div { border-color: #333 !important; color: #ccc; }

/* ── Product Reviews ── */
.fc-reviews-wrap { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e5e5e5; }
.fc-reviews-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.fc-reviews-title { font-size: 18px; font-weight: 700; }
.fc-reviews-avg { display: flex; align-items: center; gap: 4px; }
.fc-avg-num { font-size: 13px; color: #666; margin-left: 4px; }
.fc-star { color: #ddd; font-size: 18px; }
.fc-star.fc-star-on { color: #f5a623; }
.fc-review-form-wrap { background: #f9f9f9; border-radius: 10px; padding: 16px; margin-bottom: 24px; }
body.night-mode .fc-review-form-wrap { background: rgba(255,255,255,.06); }
.fc-review-form-title { font-weight: 600; margin-bottom: 10px; }
.fc-star-picker { display: flex; gap: 4px; margin-bottom: 10px; cursor: pointer; }
.fc-star-pick { font-size: 26px; color: #ddd; transition: color .1s; }
.fc-star-pick.fc-star-on { color: #f5a623; }
.fc-review-textarea { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 8px 10px; font-size: 14px; resize: vertical; box-sizing: border-box; margin-bottom: 10px; background: transparent; color: inherit; }
.fc-review-msg { font-size: 13px; margin-left: 10px; color: #16a34a; }
.fc-review-gate { font-size: 13px; color: #888; margin-bottom: 16px; }
.fc-reviews-list { display: flex; flex-direction: column; gap: 16px; }
.fc-review-item { border: 1px solid #e5e5e5; border-radius: 8px; padding: 12px 14px; }
body.night-mode .fc-review-item { border-color: rgba(255,255,255,.1); }
.fc-review-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.fc-review-author { font-weight: 600; font-size: 14px; }
.fc-review-stars { display: flex; gap: 2px; }
.fc-review-date { font-size: 12px; color: #888; margin-left: auto; }
.fc-review-text { font-size: 14px; line-height: 1.5; }
.fc-reviews-empty { color: #888; font-size: 13px; }

/* ── Cart qty control ── */
.fc-qty-control { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.fc-qty-btn { width: 28px; height: 28px; border: 1px solid #888; background: #444; color: #fff; border-radius: 4px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.fc-qty-btn:hover { background: #222; }
.fc-qty-input { width: 44px; height: 28px; text-align: center; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; padding: 0; }

/* ── Day / Night mode ── */
:root {
    --fc-bg: #fff;
    --fc-bg2: #f9f9f9;
    --fc-text: #111;
    --fc-text2: #555;
    --fc-border: #e5e5e5;
    --fc-card-bg: #fff;
    --fc-input-bg: #fff;
    --fc-input-border: #ccc;
    --fc-badge-bg: #f0f0f0;
    --fc-badge-text: #333;
    --fc-summary-bg: #f9f9f9;
}

body.dark-mode, body.night-mode {
    --fc-bg: #1a1a2e;
    --fc-bg2: #16213e;
    --fc-text: #e0e0e0;
    --fc-text2: #aaa;
    --fc-border: #333;
    --fc-card-bg: #1e1e2e;
    --fc-input-bg: #2a2a3e;
    --fc-input-border: #444;
    --fc-badge-bg: #2a2a3e;
    --fc-badge-text: #ccc;
    --fc-summary-bg: #16213e;
}

.fc-wrap { background: var(--fc-bg); color: var(--fc-text); }
.fc-product-card { background: var(--fc-card-bg); border-color: var(--fc-border); color: var(--fc-text); }
.fc-card-title { color: var(--fc-text); }
.fc-card-author { color: var(--fc-text2); }
.fc-cart-item { background: var(--fc-card-bg); border-color: var(--fc-border); color: var(--fc-text); }
.fc-cart-item-title { color: var(--fc-text); }
.fc-cart-item-type { color: var(--fc-text2); }
.fc-summary-box { background: var(--fc-summary-bg); border-color: var(--fc-border); color: var(--fc-text); }
.fc-modal { background: var(--fc-card-bg); color: var(--fc-text); }
.fc-modal-inner { background: var(--fc-card-bg); }
.fc-field input, .fc-field select, .fc-field textarea { background: var(--fc-input-bg); border-color: var(--fc-input-border); color: var(--fc-text); }
.fc-field label { color: var(--fc-text); }
.fc-upload-area { border-color: var(--fc-input-border); background: var(--fc-input-bg); }
.fc-upload-placeholder { color: var(--fc-text2); }
.fc-desc-editor { border-color: var(--fc-input-border); }
.fc-desc-tabs { background: var(--fc-bg2); border-color: var(--fc-border); }
.fc-desc-tab { color: var(--fc-text2); }
.fc-desc-tab.active { color: var(--fc-text); background: var(--fc-card-bg); }
.fc-desc-visual { color: var(--fc-text); background: var(--fc-input-bg); }
.fc-desc-editor textarea { background: var(--fc-input-bg); color: var(--fc-text); }
.fc-qty-input { background: var(--fc-input-bg); border-color: var(--fc-input-border); color: var(--fc-text); }
.fc-table th { background: var(--fc-bg2); color: var(--fc-text); }
.fc-table td { color: var(--fc-text); border-color: var(--fc-border); }
.fc-stat-card { background: var(--fc-bg2); color: var(--fc-text); }
.fc-page-title { color: var(--fc-text); }



/* ── Category Banner Slider ── */
.fc-category-banner-wrap { margin: 28px 0; }
.fc-category-banner-top { margin: 0 auto 24px; width: 75%; max-width: 1000px; }
.fc-category-banner-slider { position: relative; height: 90px; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; padding: 0 40px; }
.fc-category-banner-track { display: flex; height: 100%; position: relative; align-items: center; justify-content: center; width: 100%; }
.fc-category-banner-item { flex: 0 0 100%; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; padding: 12px 16px; text-decoration: none !important; color: inherit !important; cursor: pointer; transition: opacity .5s ease; opacity: 0; position: absolute; gap: 16px; inset: 0; }
.fc-category-banner-item.active { opacity: 1; z-index: 2; }
.fc-category-banner-item.prev { opacity: 0; z-index: 0; pointer-events: none; }
.fc-category-banner-item-image { flex: 0 0 auto; }
.fc-category-banner-img { width: 75px; height: 75px; object-fit: cover; border-radius: 8px; display: block; }
.fc-category-banner-placeholder { width: 75px; height: 75px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: #f0f0f0; border-radius: 8px; flex-shrink: 0; }
.fc-category-banner-item-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fc-category-banner-title { font-size: 13px; font-weight: 600; line-height: 1.2; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-category-banner-excerpt { font-size: 10px; color: #666; line-height: 1.1; word-wrap: break-word; white-space: normal; text-decoration: none !important; }
.fc-category-banner-price { display: flex; gap: 6px; flex-wrap: nowrap; font-size: 12px; }
.fc-category-banner-price-coins { background: #fef3c7; color: #92400e; padding: 2px 6px; border-radius: 8px; white-space: nowrap; }
.fc-category-banner-price-usd { background: #dcfce7; color: #166534; padding: 2px 6px; border-radius: 8px; white-space: nowrap; }
.fc-category-banner-arrow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 10; background: rgba(255,255,255,.9); border: 1px solid rgba(0,0,0,.1); border-radius: 50%; width: 32px; height: 32px; padding: 0; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all .2s; line-height: 1; }
.fc-category-banner-arrow:hover { background: #fff; border-color: rgba(0,0,0,.2); }
.fc-category-banner-prev { left: 8px; right: auto; transform: translate(0, -50%); }
.fc-category-banner-next { right: 8px; left: auto; transform: translate(0, -50%); }

/* Night mode category banner */
body.night-mode .fc-category-banner-slider { background: rgba(0,0,0,.1); border-color: rgba(255,255,255,.1); }
body.night-mode .fc-category-banner-title { color: #e0e0e0; }
body.night-mode .fc-category-banner-excerpt { color: #aaa; }
body.night-mode .fc-category-banner-placeholder { background: #2a2a2a; color: #666; }
body.night-mode .fc-category-banner-arrow { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.1); color: #fff; }
body.night-mode .fc-category-banner-arrow:hover { background: rgba(0,0,0,.5); border-color: rgba(255,255,255,.2); }

/* ── Animated Emojis ── */
.fc-animated-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55em;
    height: 1.55em;
    margin: 0 0.08em;
    font-size: 1.35em;
    line-height: 1;
    vertical-align: -0.18em;
    transform-origin: center;
    will-change: transform, filter, opacity;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
}

.fc-animated-emoji-orbit { animation: fcEmojiOrbit 3.2s ease-in-out infinite !important; }
.fc-animated-emoji-float { animation: fcEmojiFloat 2.8s ease-in-out infinite !important; }
.fc-animated-emoji-ring { animation: fcEmojiRing 1.6s ease-in-out infinite !important; }
.fc-animated-emoji-rise { animation: fcEmojiRise 2.4s ease-in-out infinite !important; }
.fc-animated-emoji-glow { animation: fcEmojiGlow 2s ease-in-out infinite !important; }
.fc-animated-emoji-pop { animation: fcEmojiPop 1.8s ease-in-out infinite !important; }
.fc-animated-emoji-twinkle { animation: fcEmojiTwinkle 2s ease-in-out infinite !important; }
.fc-animated-emoji-spin { animation: fcEmojiSpin 3.8s linear infinite !important; }
.fc-animated-emoji-rocket { animation: fcEmojiRocket 2.6s ease-in-out infinite !important; }
.fc-animated-emoji-heart { animation: fcEmojiHeart 1.45s ease-in-out infinite !important; }
.fc-animated-emoji-chat { animation: fcEmojiChat 2s ease-in-out infinite !important; }
.fc-animated-emoji-flip { animation: fcEmojiFlip 3s ease-in-out infinite !important; }
.fc-animated-emoji-signal { animation: fcEmojiSignal 1.8s ease-in-out infinite !important; }
.fc-animated-emoji-scan { position: relative; animation: fcEmojiPulse 2s ease-in-out infinite !important; }
.fc-animated-emoji-scan::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 18%;
    height: 2px;
    border-radius: 999px;
    background: rgba(0, 180, 255, 0.75);
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.65);
    animation: fcEmojiScanLine 1.45s ease-in-out infinite !important;
    animation-play-state: running !important;
}
.fc-animated-emoji-target { animation: fcEmojiTarget 1.9s ease-in-out infinite !important; }
.fc-animated-emoji-shake { animation: fcEmojiShake 1.4s ease-in-out infinite !important; }
.fc-animated-emoji-trend { animation: fcEmojiTrend 1.7s ease-in-out infinite !important; }

@keyframes fcEmojiOrbit {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); filter: drop-shadow(0 0 0 rgba(76, 132, 255, 0)); }
    35% { transform: translate(2px, -4px) rotate(8deg) scale(1.06); filter: drop-shadow(0 4px 8px rgba(76, 132, 255, 0.25)); }
    70% { transform: translate(-2px, 2px) rotate(-8deg) scale(0.98); }
}
@keyframes fcEmojiFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fcEmojiRing {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
}
@keyframes fcEmojiRise { 0%, 100% { transform: translateY(2px) scale(1); } 50% { transform: translateY(-5px) scale(1.08); } }
@keyframes fcEmojiGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 214, 66, 0)); transform: scale(1); } 50% { filter: drop-shadow(0 0 10px rgba(255, 214, 66, 0.8)); transform: scale(1.08); } }
@keyframes fcEmojiPop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.16); } 65% { transform: scale(0.96); } }
@keyframes fcEmojiTwinkle { 0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); } 50% { transform: scale(1.16) rotate(10deg); filter: brightness(1.3); } }
@keyframes fcEmojiSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fcEmojiRocket { 0%, 100% { transform: translate(0, 0) rotate(-8deg); } 50% { transform: translate(5px, -7px) rotate(8deg); filter: drop-shadow(-3px 5px 5px rgba(255, 108, 55, 0.35)); } }
@keyframes fcEmojiHeart { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.22); } 55% { transform: scale(0.96); } }
@keyframes fcEmojiChat { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-4px) scale(1.06); } }
@keyframes fcEmojiFlip { 0%, 100% { transform: perspective(160px) rotateY(0deg); } 50% { transform: perspective(160px) rotateY(180deg); } }
@keyframes fcEmojiSignal { 0%, 100% { opacity: 0.72; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 7px rgba(28, 136, 255, 0.4)); } }
@keyframes fcEmojiPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes fcEmojiScanLine { 0%, 100% { top: 18%; opacity: 0.15; } 50% { top: 78%; opacity: 1; } }
@keyframes fcEmojiTarget { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 55, 55, 0)); } 50% { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(255, 55, 55, 0.45)); } }
@keyframes fcEmojiShake { 0%, 100% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(-2px) rotate(-4deg); } 50% { transform: translateX(2px) rotate(4deg); } 75% { transform: translateX(-1px) rotate(-2deg); } }
@keyframes fcEmojiTrend { 0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(255, 90, 0, 0)); } 50% { transform: translateY(-4px) scale(1.12); filter: drop-shadow(0 0 9px rgba(255, 90, 0, 0.6)); } }

