/* ==========================================================================
   Gadgetbd Custom Theme Stylesheet - Matches Design Sketch
   ========================================================================== */

:root {
    --primary-red: #e00000;
    --primary-red-hover: #c40000;
    --dark-bg: #111111;
    --dark-surface: #1a1a1a;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --gold-star: #ff9800;
    --card-radius: 8px;
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #f6f7fb;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   1. TOP BAR
   ========================================================================== */
.gadget-topbar {
    background-color: var(--dark-bg);
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

.gadget-topbar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gadget-topbar a:hover {
    color: #ff4d4d;
}

.gadget-topbar .topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gadget-topbar .topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.gadget-topbar .topbar-phone i {
    color: var(--primary-red);
}

.gadget-topbar .topbar-center {
    text-align: center;
    font-weight: 400;
    color: #dddddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gadget-topbar .topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.gadget-topbar .topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   2. MAIN HEADER
   ========================================================================== */
.gadget-header {
    background-color: #ffffff;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.gadget-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gadget-header .header-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.gadget-header .header-search {
    flex: 1;
    max-width: 650px;
    position: relative;
    margin: 0 auto;
}

.gadget-header .search-form {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-red);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.gadget-header .search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.gadget-header .search-btn {
    background-color: var(--primary-red);
    color: #ffffff;
    border: none;
    padding: 0 22px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.gadget-header .search-btn:hover {
    background-color: var(--primary-red-hover);
}

.gadget-header .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gadget-header .header-cart-box {
    position: relative;
}

.gadget-header .header-cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #222;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.gadget-header .header-cart-link:hover {
    background: #f5f5f5;
}

.gadget-header .cart-icon-wrap {
    position: relative;
    font-size: 24px;
    color: #222;
}

.gadget-header .cart-badge-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.gadget-navbar {
    background-color: var(--primary-red);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 99;
}

.gadget-navbar .navbar-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.gadget-navbar .category-toggle-btn {
    background-color: var(--primary-red-hover);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    min-width: 260px;
    text-decoration: none;
    transition: background 0.2s;
}

.gadget-navbar .category-toggle-btn:hover {
    background-color: #a80000;
    color: #ffffff;
}

.gadget-navbar .nav-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gadget-navbar .nav-links li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 18px;
    transition: background 0.2s;
}

.gadget-navbar .nav-links li a:hover,
.gadget-navbar .nav-links li a.active {
    background-color: rgba(0, 0, 0, 0.12);
    color: #ffffff;
}

.gadget-navbar .nav-right-auth {
    display: flex;
    align-items: center;
}

.gadget-navbar .nav-right-auth a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.gadget-navbar .nav-right-auth a:hover {
    background-color: rgba(0, 0, 0, 0.12);
    color: #ffffff;
}

/* ==========================================================================
   4. HERO SECTION & VERTICAL CATEGORIES
   ========================================================================== */
.gadget-hero-section {
    padding-top: 15px;
    padding-bottom: 25px;
}

.gadget-category-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
    width: 100%;
}

.gadget-category-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
    width: 100% !important;
}

.gadget-category-sidebar > ul > li {
    position: relative;
    border-bottom: 1px solid #f2f2f2;
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.gadget-category-sidebar > ul > li:last-child {
    border-bottom: none;
}

.gadget-category-sidebar > ul > li > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    padding: 10px 16px;
    color: #333333;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
}

.gadget-category-sidebar > ul > li > a .cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gadget-category-sidebar > ul > li > a img.cat-icon-thumb {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.gadget-category-sidebar > ul > li > a i.fa-chevron-right {
    font-size: 11px;
    color: #999999;
    transition: transform 0.2s;
}

.gadget-category-sidebar > ul > li:hover > a {
    color: var(--primary-red);
    background-color: #fff8f8;
    padding-left: 20px;
}

.gadget-category-sidebar > ul > li:hover > a i.fa-chevron-right {
    color: var(--primary-red);
    transform: translateX(3px);
}

/* Flyout Submenu */
.gadget-category-sidebar .sidebar-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    width: 250px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
    z-index: 100;
}

.gadget-category-sidebar > ul > li:hover > .sidebar-submenu {
    display: block;
}

.gadget-category-sidebar .sidebar-submenu li a {
    display: block;
    padding: 9px 16px;
    color: #444;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #f6f6f6;
    transition: background 0.2s;
}

.gadget-category-sidebar .sidebar-submenu li a:hover {
    background: #fff8f8;
    color: var(--primary-red);
}

/* Main Slider */
.gadget-hero-slider {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gadget-hero-slider .slider-item img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* 3 Promo Banners (Full-width 3 Large Banners below Hero, matching UI) */
.bottoads_area {
    display: block !important;
    padding: 18px 0 10px 0;
    margin-bottom: 5px;
    background: transparent;
}

.bottoads_inner {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 16px !important;
    width: 100% !important;
}

.ads_item {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
}

.ads_item a {
    display: block;
    width: 100%;
}

.ads_item img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ads_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .bottoads_inner {
        grid-template-columns: 1fr !important;
        grid-gap: 10px !important;
    }
}

/* ==========================================================================
   5. CATEGORY ICONS ROW / CAROUSEL ("Categories")
   ========================================================================== */
.gadget-categories-section {
    padding: 20px 0 10px;
}

.gadget-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    position: relative;
}

.gadget-section-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--primary-red);
}

.gadget-section-heading h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #222222;
}

.gadget-section-heading .view-more-black-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gadget-section-heading .view-more-black-btn:hover {
    background-color: var(--primary-red);
    color: #ffffff;
}

.gadget-cat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    margin: 5px;
}

.gadget-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    border-color: #ffd0d0;
}

.gadget-cat-card .cat-img-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gadget-cat-card .cat-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gadget-cat-card .cat-name-box {
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    line-height: 1.3;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ==========================================================================
   6. FULL WIDTH PROMOTIONAL BANNERS
   ========================================================================== */
.gadget-wide-banner-section {
    padding: 15px 0;
}

.gadget-wide-banner-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: block;
    transition: transform 0.2s;
}

.gadget-wide-banner-card:hover {
    transform: scale(1.01);
}

.gadget-wide-banner-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   7. 5-COLUMN PRODUCT GRID & PRODUCT CARD (MATCHING SKETCH)
   ========================================================================== */
.gadget-product-section {
    padding: 15px 0 25px;
}

/* 5-Column Grid on Desktop */
.gadget-5-col-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .gadget-5-col-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .gadget-5-col-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gadget-5-col-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gadget-5-col-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Product Card */
.gadget-product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    height: 100%;
}

.gadget-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #ffdada;
}

/* Sale Discount Badge (Red Circle in Top Right) */
.gadget-product-card .card-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-red);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(224, 0, 0, 0.35);
}

/* Image */
.gadget-product-card .card-image-wrap {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.gadget-product-card .card-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Product Info */
.gadget-product-card .card-body-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gadget-product-card .card-title {
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: #222222;
    margin-bottom: 6px;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    transition: color 0.2s;
}

.gadget-product-card .card-title:hover {
    color: var(--primary-red);
}

/* Star Rating */
.gadget-product-card .card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--gold-star);
}

/* Prices */
.gadget-product-card .card-price-box {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.gadget-product-card .card-price-box .old-price {
    font-size: 13px;
    color: #999999;
    text-decoration: line-through;
}

.gadget-product-card .card-price-box .new-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-red);
}

/* FULL-WIDTH RED ORDER BUTTON (EXACTLY AS IN SKETCH) */
.gadget-product-card .card-action-box {
    margin-top: auto;
}

.gadget-order-btn {
    width: 100%;
    background-color: var(--primary-red);
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.gadget-order-btn:hover {
    background-color: var(--primary-red-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.gadget-order-btn:active {
    transform: translateY(1px);
}

/* ==========================================================================
   8. HOT DEALS SECTION SPECIFIC STYLES
   ========================================================================== */
.gadget-hot-deals-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    position: relative;
}

.gadget-hot-deals-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary-red);
}

.gadget-hot-deals-heading h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.gadget-hot-deals-heading .carousel-nav-arrows {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gadget-hot-deals-heading .carousel-nav-arrows button {
    background-color: var(--primary-red);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.gadget-hot-deals-heading .carousel-nav-arrows button:hover {
    background-color: var(--primary-red-hover);
}

/* ==========================================================================
   9. CUSTOMER REVIEWS SECTION ("Positive reviews from valued customers")
   ========================================================================== */
.gadget-reviews-section {
    padding: 30px 0 25px;
}

.gadget-reviews-pill-header {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 12px 25px;
    border-radius: 6px;
    max-width: 600px;
    margin: 0 auto 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.gadget-reviews-pill-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gadget-review-screenshot-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    margin: 5px;
}

.gadget-review-screenshot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.gadget-review-screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   10. BOTTOM 2 PROMOTIONAL BANNERS
   ========================================================================== */
.gadget-bottom-banners-2 {
    padding: 10px 0 30px;
}

.gadget-bottom-banners-2 .banner-card-2 {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: block;
    transition: transform 0.25s ease;
}

.gadget-bottom-banners-2 .banner-card-2:hover {
    transform: translateY(-3px);
}

.gadget-bottom-banners-2 .banner-card-2 img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   11. FOOTER (DARK THEME - MATCHING SKETCH)
   ========================================================================== */
.gadget-dark-footer {
    background-color: var(--dark-bg);
    color: #e0e0e0;
    padding-top: 45px;
    font-size: 13.5px;
    line-height: 1.7;
}

.gadget-dark-footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s;
}

.gadget-dark-footer a:hover {
    color: #ffffff;
}

.gadget-dark-footer .footer-col-title {
    color: var(--primary-red);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.gadget-dark-footer .footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-red);
}

.gadget-dark-footer .footer-brand-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.gadget-dark-footer .footer-brand-title span {
    color: var(--primary-red);
}

.gadget-dark-footer .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gadget-dark-footer .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: #cccccc;
}

.gadget-dark-footer .footer-contact-list li i {
    color: var(--primary-red);
    margin-top: 4px;
}

.gadget-dark-footer .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gadget-dark-footer .footer-nav-list li {
    margin-bottom: 8px;
}

.gadget-dark-footer .footer-social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.gadget-dark-footer .social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #262626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gadget-dark-footer .social-icon-btn:hover {
    background-color: var(--primary-red);
    color: #ffffff;
    transform: translateY(-2px);
}

.gadget-dark-footer .footer-app-badges img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.gadget-dark-footer .footer-copyright-bar {
    border-top: 1px solid #222222;
    padding: 18px 0;
    margin-top: 35px;
    text-align: center;
    color: #888888;
    font-size: 13px;
}

.gadget-dark-footer .footer-copyright-bar a {
    color: #aaaaaa;
}

.gadget-dark-footer .footer-copyright-bar a:hover {
    color: var(--primary-red);
}

/* Floating WhatsApp Button (Bottom Left) */
.gadget-whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gadget-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
