/* ==========================================
   Olaitan Gadget Store — Premium Light Theme
   ========================================== */

/* Custom scrollbar hide */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tab bar transition */
#tabBar {
    transition: top 0.3s ease;
}

/* ==========================================
   Instagram-Style Reels Mode
   ========================================== */
body.reels-mode {
    overflow: hidden;
}

body.reels-mode #reelsView {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: #000;
}

body.reels-mode .reels-scroll {
    height: 100dvh;
    height: 100vh;
}

body.reels-mode .reel-item {
    height: 100dvh;
    height: 100vh;
}

body.reels-mode #whatsappBtn {
    display: none;
}

body.reels-mode #topNav {
    display: none;
}

/* Reels header hide/show */
#reelsHeader.header-hidden {
    transform: translateY(-100%);
}

/* Double-tap heart animation */
.double-tap-heart {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    animation: doubleTapHeart 0.9s ease-out forwards;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@keyframes doubleTapHeart {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 1;
    }
    15% {
        transform: scale(1.4) rotate(5deg);
        opacity: 1;
    }
    30% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* Reel like burst particles */
.like-burst {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 19;
    animation: likeBurst 0.6s ease-out forwards;
}

@keyframes likeBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ==========================================
   Premium Product Cards
   ========================================== */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f3f4f6;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08), 0 4px 10px -4px rgba(0,0,0,0.06);
}

.product-card:active {
    transform: scale(0.97);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-info {
    padding: 10px 12px 12px;
}

.product-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 15px;
    font-weight: 800;
    color: #16a34a;
    margin-top: 4px;
}

.product-card-stock {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 2px;
}

.product-card-stock.new-tag {
    color: #3b82f6;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.02em;
}

.product-save-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.product-save-btn:active {
    transform: scale(0.85);
}

.product-video-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Hot Deal Cards */
.hot-deal-card {
    flex-shrink: 0;
    width: 200px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #fef2f2;
    transition: all 0.3s ease;
}

.hot-deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.hot-deal-card:active {
    transform: scale(0.97);
}

.hot-deal-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f9fafb;
}

.hot-deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-deal-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}

.hot-deal-info {
    padding: 10px 12px 12px;
}

.hot-deal-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-deal-price {
    font-size: 16px;
    font-weight: 800;
    color: #16a34a;
    margin-top: 2px;
}

.hot-deal-stock {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 2px;
}

.hot-deal-order-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 7px 0;
    background: #16a34a;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.hot-deal-order-btn:hover {
    background: #15803d;
}

/* Social Proof Review Cards */
.review-card {
    flex-shrink: 0;
    width: 260px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
}

.review-card-stars {
    color: #f59e0b;
    font-size: 13px;
    margin-bottom: 6px;
}

.review-card-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.review-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.review-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.review-card-product {
    font-size: 11px;
    color: #9ca3af;
}

/* Skeleton Loaders */
.skeleton-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

.skeleton-image {
    aspect-ratio: 1;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 12px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    margin: 10px 12px 6px;
}

.skeleton-text-short {
    width: 60%;
    height: 14px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    margin: 4px 12px 12px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Legacy product-item (for saved items grid) */
.product-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    border-radius: 16px;
    background: #f9fafb;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover img {
    transform: scale(1.05);
}

/* Tab active state */
.tab-active {
    border-bottom-color: #16a34a !important;
    color: #16a34a !important;
}

/* Category pill active */
.category-pill.active {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

/* Category pill overflow fix */
.category-pill {
    overflow: hidden;
    max-height: 32px;
    line-height: 1.4;
}

.category-pill span {
    line-height: 1.4;
}

/* Reel card */
.reel-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9/16;
    max-height: 500px;
}

.reel-card video,
.reel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-card .reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Stagger children animation */
.stagger-item {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Shimmer loading effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.pulse-dot {
    animation: pulse-dot 2s infinite;
}

/* Modal slide animations */
.modal-open {
    transform: translateY(0) !important;
}

/* Price tag gradient */
.price-tag {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff !important;
}

/* Product detail image */
.product-detail-image {
    aspect-ratio: 1;
    object-fit: cover;
}

/* Badge */
.badge-new {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white !important;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
}

/* Highlight card animation */
.highlight-card {
    transition: transform 0.3s ease;
}

.highlight-card:active {
    transform: scale(0.95);
}

/* Custom backdrop blur for older browsers */
@supports not (backdrop-filter: blur(12px)) {
    .backdrop-blur-xl {
        background-color: rgba(10, 10, 10, 0.95);
    }
    .backdrop-blur-sm {
        background-color: rgba(0, 0, 0, 0.6);
    }
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Better touch targets */
button, a {
    min-height: 44px;
    min-width: 44px;
}

/* Fix for small icons in buttons */
button i, a i {
    min-width: unset;
    min-height: unset;
}

/* WhatsApp button pulse */
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

#whatsappBtn {
    animation: wa-pulse 2s infinite;
}

/* Saved indicator */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.heart-beat {
    animation: heartBeat 0.6s ease-in-out;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* Selection color */
::selection {
    background: rgba(34, 197, 94, 0.2);
    color: #111827;
}

/* ==========================================
   Instagram-Style Reels
   ========================================== */

.reels-scroll {
    height: calc(100dvh - 100px);
    height: calc(100vh - 100px);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body.reels-mode .reels-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.reels-scroll::-webkit-scrollbar {
    display: none;
}

.reel-item {
    position: relative;
    height: calc(100dvh - 100px);
    height: calc(100vh - 100px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: #000;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    will-change: transform;
}

.reel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Play icon overlay (shown when paused) */
.reel-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.reel-play-icon .play-circle {
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Gradient overlay at bottom */
.reel-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Mute button */
.reel-mute-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    min-width: unset;
    min-height: unset;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: none;
    z-index: 10;
    transition: background 0.2s;
}

.reel-mute-btn:active {
    background: rgba(0, 0, 0, 0.7);
}

/* Right side action buttons */
.reel-actions {
    position: absolute;
    right: 10px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 10;
}

.reel-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    min-width: unset;
    min-height: unset;
    padding: 4px;
    transition: transform 0.15s;
}

.reel-action-btn:active {
    transform: scale(0.85);
}

.reel-action-btn span {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.reel-action-btn i {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* Liked state */
.reel-action-btn.liked i {
    color: #ef4444 !important;
    fill: #ef4444 !important;
}

.reel-action-btn.saved i {
    color: #D4AF37 !important;
    fill: #D4AF37 !important;
}

/* Bottom info */
.reel-info {
    position: absolute;
    left: 12px;
    right: 56px;
    bottom: 16px;
    color: white;
    z-index: 10;
}

.reel-reviewer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.reel-reviewer-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #000;
    border: 2px solid rgba(255,255,255,0.3);
    background: linear-gradient(135deg, #D4AF37 0%, #8B7200 100%);
}

.reel-reviewer-name {
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.reel-reviewer-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-left: 2px;
}

.reel-product-name {
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    line-height: 1.3;
}

.reel-product-price {
    font-size: 17px;
    font-weight: 900;
    color: #D4AF37;
    margin-top: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.reel-review-text {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Progress bar for video */
.reel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.15);
    z-index: 10;
}

.reel-progress-bar {
    height: 100%;
    background: #D4AF37;
    width: 0%;
    transition: width 0.3s linear;
}

/* Empty reels state */
.reel-empty {
    height: calc(100dvh - 100px);
    height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.reels-mode .reel-empty {
    height: 100dvh;
    height: 100vh;
}

/* YouTube reel card */
.reel-youtube-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reel-youtube-bg:active {
    opacity: 0.9;
}

.reel-youtube-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.reel-youtube-play-btn {
    width: 68px;
    height: 68px;
    background: rgba(255, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
    transition: transform 0.15s;
}

.reel-youtube-play-btn:active {
    transform: scale(0.9);
}

/* Video error state */
.reel-error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.reel-error.hidden {
    display: none;
}

/* Video wrapper (video + loader + fallback) */
.reel-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.reel-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading spinner */
.reel-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s;
}

.reel-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.reel-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: white;
    border-radius: 50%;
    animation: reelSpin 0.8s linear infinite;
}

@keyframes reelSpin {
    to { transform: rotate(360deg); }
}

/* Fallback image container */
.reel-fallback {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.reel-fallback.hidden {
    display: none;
}

/* Swipe up indicator */
.reel-swipe-indicator {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    animation: swipeUpHint 2.2s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.5s ease;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.reel-swipe-indicator.hidden {
    opacity: 0;
}

@keyframes swipeUpHint {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
    50% { transform: translateX(-50%) translateY(-10px); opacity: 1; }
}

/* View Product button */
.reel-view-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    min-width: unset;
    min-height: unset;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(22,163,74,0.35);
}

.reel-view-product-btn:active {
    transform: scale(0.92);
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

/* Reel counter */
.reel-counter {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Network quality badge */
.reel-quality-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    z-index: 10;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Offline overlay */
.reel-offline {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    pointer-events: none;
}

.reel-offline.hidden {
    display: none;
}

/* ==========================================
   Customer Comments Section
   ========================================== */

.comment-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    animation: commentSlideIn 0.4s ease-out forwards;
}

.comment-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@keyframes commentSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.comment-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.comment-time {
    font-size: 11px;
    color: #9ca3af;
}

.comment-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.55;
    margin-top: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    min-width: unset;
    min-height: unset;
    transition: color 0.2s;
}

.comment-action-btn:hover {
    color: #16a34a;
}

.comment-action-btn.liked {
    color: #ef4444;
}

.comment-action-btn.liked i {
    fill: #ef4444;
    color: #ef4444;
}

.comment-delete-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    min-width: unset;
    min-height: unset;
    transition: color 0.2s;
    margin-left: auto;
}

.comment-delete-btn:hover {
    color: #ef4444;
}

.comment-reply-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.comment-reply-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-reply-input input {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    color: #374151;
    outline: none;
    transition: border-color 0.2s;
}

.comment-reply-input input:focus {
    border-color: #16a34a;
}

.comment-reply-input button {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-reply-input button:hover {
    background: #15803d;
}

.comment-reply {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 12px;
}

.comment-reply .comment-avatar {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    font-size: 10px;
}

.comment-reply-text {
    font-size: 12px;
    color: #374151;
    line-height: 1.45;
}

.comment-reply-name {
    font-size: 11px;
    font-weight: 700;
    color: #111827;
}

.comment-reply-time {
    font-size: 10px;
    color: #9ca3af;
}