/* ===================================================
   MAAIKA Deals - Modern Tech Deals Stylesheet
   Clean, Fast, Responsive, cPanel Shared Hosting Optimized
=================================================== */

:root {
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --accent: #d97706;
    --accent-hover: #b45309;
    --accent-light: #fef3c7;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
    --container: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------------------------
   Header & Navigation
--------------------------------------------------- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: #e2e8f0;
    font-size: 12px;
    padding: 6px 0;
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #cbd5e1;
    margin-left: 14px;
    transition: color 0.15s;
}

.header-top a:hover {
    color: #ffffff;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-logo span.tagline {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: normal;
}

.search-bar-header {
    flex: 1;
    max-width: 480px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    background: #f1f5f9;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.search-form input:focus {
    background: #ffffff;
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

/* ---------------------------------------------------
   Hero Section
--------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: #ffffff;
    padding: 60px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #fbbf24;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-title span {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 17px;
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-search {
    max-width: 580px;
    margin: 0 auto;
}

.hero-search-form {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-search-form input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
    border-radius: 50px 0 0 50px;
}

.hero-search-form button {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.hero-search-form button:hover {
    background: var(--accent-hover);
}

.hero-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.15s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-pill:hover {
    background: #ffffff;
    color: var(--primary);
}

/* ---------------------------------------------------
   Promo Banner
--------------------------------------------------- */
.promo-banner {
    background: linear-gradient(90deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 36px 0;
    color: #ffffff;
    flex-wrap: wrap;
}

.promo-banner-badge {
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.promo-banner-text {
    flex: 1;
    font-size: 14px;
    color: #cbd5e1;
}

.promo-banner-text strong {
    color: #ffffff;
}

.promo-banner-btn {
    background: #ffffff;
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.promo-banner-btn:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ---------------------------------------------------
   Sections General
--------------------------------------------------- */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.15s;
}

.section-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ---------------------------------------------------
   Deal Cards & Grid
--------------------------------------------------- */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.deal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.deal-card-img-wrap {
    position: relative;
    background: #ffffff;
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-card-img-wrap img {
    max-height: 170px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.deal-card:hover .deal-card-img-wrap img {
    transform: scale(1.05);
}

.deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.deal-badge.hot {
    background: #ef4444;
}

.deal-store-pill {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.deal-store-pill img {
    height: 14px;
    width: auto;
    max-width: 45px;
    object-fit: contain;
}

.deal-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.deal-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.deal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.deal-title:hover {
    color: var(--accent);
}

.deal-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 14px;
}

.deal-current-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.deal-old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.deal-discount-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.deal-card-footer {
    display: flex;
    gap: 8px;
}

.btn-cta {
    flex: 1;
    background: var(--accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-cta:hover {
    background: var(--accent-hover);
    color: #ffffff;
}

.btn-details {
    background: #f1f5f9;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: background 0.15s ease;
}

.btn-details:hover {
    background: #e2e8f0;
}

/* ---------------------------------------------------
   Categories & Stores Grid
--------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.category-icon-box {
    width: 52px;
    height: 52px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--accent);
    transition: background 0.2s;
}

.category-card:hover .category-icon-box {
    background: var(--accent-light);
}

.category-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 110px;
}

.store-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.store-card img {
    max-height: 38px;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.2s;
}

.store-card:hover img {
    filter: grayscale(0%);
}

.store-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.store-deals-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------------------------------------------------
   Deal Detail Page
--------------------------------------------------- */
.deal-detail-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 40px;
}

.deal-gallery-main {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.deal-gallery-main img {
    max-height: 360px;
    max-width: 100%;
    object-fit: contain;
}

.deal-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.deal-thumb {
    width: 68px;
    height: 68px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
    background: #ffffff;
}

.deal-thumb.active {
    border-color: var(--accent);
}

.deal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deal-detail-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.deal-meta-pill {
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.deal-detail-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.deal-detail-price-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.price-main-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 8px;
}

.price-huge {
    font-size: 34px;
    font-weight: 900;
    color: var(--primary);
}

.price-old-huge {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.savings-tag {
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.deal-store-merchant-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.deal-store-merchant-line img {
    height: 20px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.deal-action-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.btn-large-cta {
    flex: 1;
    background: var(--accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-large-cta:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-share {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-share:hover {
    background: #e2e8f0;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.specs-table th, .specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.specs-table tr:nth-child(even) td {
    background: #f8fafc;
}

.specs-table th {
    width: 35%;
    font-weight: 600;
    color: var(--text-muted);
}

.specs-table td {
    color: var(--text-main);
    font-weight: 500;
}

/* ---------------------------------------------------
   Browse & Filter Layout
--------------------------------------------------- */
.browse-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}

.filter-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    font-size: 14px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    transition: color 0.15s;
}

.filter-list a:hover, .filter-list a.active {
    color: var(--accent);
    font-weight: 600;
}

.filter-count {
    color: var(--text-muted);
    font-size: 12px;
}

/* ---------------------------------------------------
   Newsletter Box
--------------------------------------------------- */
.newsletter-section {
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    margin: 48px 0;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.newsletter-form button:hover {
    background: var(--accent-hover);
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.site-footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 60px 0 30px;
    border-top: 1px solid #1e293b;
    margin-top: 60px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #94a3b8;
    transition: color 0.15s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ---------------------------------------------------
   Responsive Breakpoints
--------------------------------------------------- */
@media (max-width: 992px) {
    .browse-layout {
        grid-template-columns: 1fr;
    }
    .deal-detail-layout {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    .search-bar-header {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
        border-top: 1px solid var(--border-color);
    }
    .nav-links.show {
        display: flex;
    }
    .hero-title {
        font-size: 30px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
