/* ==================== MR SHOP — STORE PAGE STYLES ==================== */

/* Announcement Bar */
.store-announcement {
    background: linear-gradient(135deg, var(--orange), #ff6600);
    color: #fff; text-align: center; padding: 10px 20px;
    font-size: 14px; font-weight: 600;
    display: none;
}
.store-announcement i { margin-right: 8px; }

/* Live Status */
.live-status { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 8px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #00c853; display: inline-block; animation: livePulse 2s infinite; }
.offline-dot { width: 8px; height: 8px; border-radius: 50%; background: #999; display: inline-block; }
.online-text { color: #00c853; font-weight: 600; }
.offline-text { color: #999; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Story Section */
.story-section { line-height: 1.8; color: #555; font-size: 15px; }
.story-section p { margin-bottom: 12px; }

/* Video Section */
.video-section { position: relative; border-radius: 12px; overflow: hidden; background: #000; }

/* Behind the Scenes */
.bts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.bts-card {
    position: relative; border-radius: 12px; overflow: hidden;
    cursor: pointer; aspect-ratio: 4/3; background: #f0f0f0;
}
.bts-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.bts-card:hover img { transform: scale(1.05); }
.bts-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff; padding: 12px; font-size: 12px; font-weight: 500;
}

/* Collections */
.collections-grid { display: flex; flex-direction: column; gap: 20px; }
.collection-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
}
.collection-header {
    padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
}
.collection-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.collection-header p { font-size: 13px; color: #666; }
.collection-products {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px; padding: 16px;
}
.mini-product-card {
    display: block; text-align: center; text-decoration: none; color: inherit;
    padding: 10px; border-radius: 8px; transition: all 0.2s;
}
.mini-product-card:hover { background: #f8f9fa; transform: translateY(-2px); }
.mini-product-card img { width: 100%; height: 120px; object-fit: contain; border-radius: 6px; }
.mini-product-name { font-size: 12px; font-weight: 500; margin-top: 8px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-product-price { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 4px; }

/* Coupons */
.coupons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.coupon-card {
    background: linear-gradient(135deg, #fff8f0, #fff);
    border: 2px dashed var(--orange); border-radius: 12px;
    padding: 20px; text-align: center; position: relative;
}
.coupon-discount {
    font-size: 28px; font-weight: 800; color: var(--orange);
    margin-bottom: 8px;
}
.coupon-code {
    font-size: 16px; font-weight: 700; color: var(--text);
    background: #f0f0f0; padding: 6px 16px; border-radius: 6px;
    display: inline-block; letter-spacing: 2px; margin-bottom: 8px;
}
.coupon-info { font-size: 12px; color: #666; margin-bottom: 4px; }
.coupon-copy-btn {
    margin-top: 10px; padding: 8px 20px; border-radius: 6px;
    background: var(--orange); color: #fff; border: none;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.coupon-copy-btn:hover { background: #e68a00; transform: translateY(-1px); }

/* Seller Reply */
.seller-reply {
    margin-top: 12px; padding: 12px 16px;
    background: #f0f6ff; border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
}
.seller-reply-header {
    font-size: 12px; font-weight: 700; color: var(--blue);
    margin-bottom: 4px;
}
.seller-reply-text { font-size: 13px; color: #555; line-height: 1.6; }

/* Delivery Districts */
.districts-list { display: flex; flex-wrap: wrap; gap: 8px; }
.district-tag {
    background: #f0f6ff; border: 1px solid #d0e3f7;
    padding: 6px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 500; color: var(--blue);
}

/* Review Avatar Placeholder */
.review-avatar-placeholder {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0;
}

/* Logo Placeholder */
.seller-logo-placeholder {
    width: 130px; height: 130px; border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    background: var(--darker);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; font-weight: 800; color: var(--orange);
}

/* Store Error/Loading */
.store-error {
    text-align: center; padding: 80px 20px;
    color: var(--red); font-size: 16px; display: none;
}
.store-loading {
    text-align: center; padding: 80px 20px;
    color: #565959;
}
.store-loading .spinner {
    width: 40px; height: 40px; border: 4px solid #e3e6e6;
    border-top-color: var(--orange); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .bts-grid { grid-template-columns: repeat(2, 1fr); }
    .collection-products { grid-template-columns: repeat(2, 1fr); }
    .coupons-grid { grid-template-columns: 1fr; }
    .seller-logo, .seller-logo-placeholder { width: 100px; height: 100px; font-size: 36px; }
}
