/**
 * Gadgetz Theme Core Stylesheet
 * High-performance styling and layout fallback
 */

/* Container */
.gadgetz-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Header & Announcement */
.gadgetz-top-announcement {
    transition: background-color 0.2s, color 0.2s;
}

.gadgetz-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.gadgetz-navbar .gadgetz-container {
    height: 100%;
}

/* Brand Logo (Desktop & Mobile) */
.gadgetz-brand {
    display: flex;
    align-items: center;
    max-height: 50px;
    min-width: 0;
}

.gadgetz-brand a,
.gadgetz-brand-link {
    display: inline-flex;
    align-items: center;
    max-height: 48px;
    text-decoration: none;
}

.gadgetz-brand img,
.gadgetz-logo,
.custom-logo,
.custom-logo-link img {
    max-height: 44px !important;
    height: 44px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 768px) {
    .gadgetz-navbar {
        height: 60px;
    }

    .gadgetz-brand {
        max-width: calc(100% - 100px);
        justify-content: center;
    }

    .gadgetz-brand img,
    .gadgetz-logo,
    .custom-logo,
    .custom-logo-link img {
        max-height: 36px !important;
        height: 36px !important;
        max-width: 150px !important;
    }
}

/* Hero Section */
.gadgetz-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #172554 100%);
    position: relative;
    overflow: hidden;
}

.gadgetz-gradient-text {
    background: linear-gradient(90deg, #60a5fa 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Countdown Bar */
.gadgetz-countdown-bar {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gadgetz-timer-digits {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Product Cards */
.gadgetz-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.gadgetz-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.gadgetz-badge-flash {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    text-transform: uppercase;
}

/* Mobile Drawer */
#gadgetz-mobile-drawer.hidden {
    display: none !important;
}

#gadgetz-mobile-drawer:not(.hidden) {
    display: flex !important;
}

/* Single Product Styles */
.gadgetz-single-product img {
    max-width: 100%;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .gadgetz-hero {
        padding-top: 32px;
        padding-bottom: 32px;
    }
}

/* ==========================================================================
   Thank You / Order Confirmation Page (Clodzup Style)
   ========================================================================== */
.woocommerce-order {
    max-width: 580px;
    margin: 0 auto;
    padding: 32px 16px;
    text-align: center;
}

.woocommerce-order-details {
    margin-bottom: 24px;
    text-align: left;
}

.woocommerce-order-details .bg-white,
.woocommerce-order .bg-white {
    background-color: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gadgetz-whatsapp-thankyou-box {
    margin: 24px 0;
    padding: 24px 20px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px -2px rgba(34, 197, 94, 0.15);
}

/* ==========================================================================
   Customer Reviews & Photo Testimonials Section
   ========================================================================== */
.gadgetz-reviews-wrap {
    width: 100%;
}

.gadgetz-review-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gadgetz-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.gadgetz-lightbox-trigger {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gadgetz-lightbox-trigger:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

#gadgetz-reviews-lightbox {
    z-index: 999999;
}
