/* =========================================
   CosmoTopDeals — Dark Premium Theme
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --red-deal:      #e05252;
    --green-deal:    #52c97a;
    --radius-card:   14px;
    --radius-btn:    8px;
    --shadow-card:   0 4px 32px rgba(0,0,0,0.5);
    --shadow-glow:   0 0 40px rgba(201,163,82,0.08);
    --transition:    0.22s cubic-bezier(0.4,0,0.2,1);
    --border-glow:   rgba(201,163,82,0.35);
    --bg-base: #111315;
    --bg-card: #17191c;
    --bg-nav:  rgb(21 21 36 / 92%);
    --bg-card-hover: #1d2024;
    --border: rgba(255,255,255,0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #b1b5bb;
    --text-muted: #7b8189;
    --gold: #d4b26a;
    --gold-muted:    rgba(201,163,82,0.15);
    --gold-light: #e6c98b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

a.read_more{
    color: #0eff33;
}
.blog article{
    color: #646464;
    font-size: 1.1em;
    padding-bottom: 25px;
    margin-bottom: 33px;
    border-bottom: 4px solid #44ffac;
}

.blog h2, .blog h1{
    text-align: center;
    font-size: 2em;
    margin-bottom: 8px;
}
.blog h2{
  font-size: 1.5em;
}

.blog a h1, .blog a h2{
    color: #7b7bfa;
}
.blog .wrap_img{
    text-align: center;
    width: 100%;
}

.blog .wrap_img img{
    display: inline;
    border-radius: 4px;
    max-width: 350px;
}
.blog p{
    margin-bottom: 4px;
}


.affiliate_link{
    border-radius: 4px;
    padding: 8px;
    border: 1px solid #ccc;
}
.affiliate_link a{
    color: #03a9f4;
}

.price_note{
    font-size: 0.9em;
    color: #a8a8a8;
}

.post_price_info{
    width: fit-content;
    padding: 8px;
    margin-inline: auto;
    border-radius: 3px;
    font-size: 0.8em !important;
    color: #a8a8a8 !important;
    margin-top: 15px !important;
    border: 1px solid #854343;


}


.post img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 4px;
    margin: 0 auto 12px;
}
.post .desc{
    color: #727272;
    font-size: 0.9em;
}

.get_deal{
    padding: 8px;
    border-radius: 4px;
    background-color: #3d3d46;
    color: #ffffff;
}

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#contact{
    background-color: #111315;
    padding: 14px;
    border-radius: 3px;
    min-height: 250px;
}
#contact h1, #contact h2{
    text-align: center;
}
#contact button{
    padding: 4px 13px;
    background-color: #acb6b5;
    border-radius: 4px;
    color: #342408;
}
#contact form input,#contact form textarea{
    height: 30px;
    width: 300px;
    display: block;
    margin-top: 3px;
    margin-bottom: 12px;
    padding: 8px;
    border: none;
    border-radius: 4px;
}
#contact form textarea{
    min-height: 250px;
}
#tos a{
    color: #ababff !important;
}

/* ---- Background texture ---- */
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
            radial-gradient(ellipse 80% 60% at 20% -10%, rgba(201,163,82,0.06) 0%, transparent 60%),
            radial-gradient(ellipse 60% 50% at 80% 110%, rgba(100,80,200,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =========================================
   LAYOUT
   ========================================= */
.container {
    /* max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px; */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.page-wrapper { position: relative; z-index: 1; }

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex; align-items: center;
    justify-content: space-between;
    height: 68px; gap: 24px;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem; font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.nav-logo .logo-star {
    font-size: 1.1rem;
    color: var(--gold);
    animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.nav-links {
    display: flex; align-items: center; gap: 6px;
    list-style: none;
}

.nav-links a {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.nav-search {
    display: flex; align-items: center; gap: 10px;
}

.search-wrap {
    position: relative; display: flex; align-items: center;
}

.search-wrap input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit; font-size: 0.88rem;
    padding: 8px 14px 8px 38px;
    width: 220px;
    transition: border-color var(--transition), width var(--transition), background var(--transition);
    outline: none;
}

.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input:focus {
    border-color: var(--gold);
    background: rgba(201,163,82,0.06);
    width: 280px;
}

.search-wrap .search-icon {
    position: absolute; left: 12px;
    color: var(--text-muted); font-size: 0.9rem;
    pointer-events: none;
}

.nav-menu-toggle {
    display: none;
    flex-direction: column; gap: 5px; padding: 6px;
}
.nav-menu-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text-secondary); border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   HERO BANNER
   ========================================= */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative; overflow: hidden;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold-muted);
    border: 1px solid rgba(201,163,82,0.3);
    color: var(--gold-light);
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 100px;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3em;
    font-weight: 700; line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 520px; margin: 0 auto 40px;
}

.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    flex-wrap: wrap;
}

.hero-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 700;
    color: #27e767;
}

.hero-stat span {
    font-size: 0.82rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
}

/* =========================================
   AFFILIATE DISCLOSURE BANNER
   ========================================= */
.disclosure-bar {
    background: rgb(3 70 24);
    border-top: 1px solid rgba(201,163,82,0.15);
    border-bottom: 1px solid rgba(201,163,82,0.15);
    padding: 10px 0;
    text-align: center;
}

.disclosure-bar p {
    font-size: 0.8rem; color: #6889b6;
    line-height: 1.5;
}

.disclosure-bar a { color: var(--gold); border-bottom: 1px solid rgba(201,163,82,0.4); }
.disclosure-bar a:hover { color: var(--gold-light); }

/* =========================================
   FILTERS / CATEGORY TABS
   ========================================= */
.filters-section {
    padding: 36px 0 24px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    transition: all var(--transition);
}

.filter-tab:hover {
    border-color: rgba(201,163,82,0.4);
    color: var(--text-primary);
    background: rgba(201,163,82,0.06);
}

.filter-tab.active {
    border-color: #4CAF50;
    color: #4caf50;
    font-weight: 600;
}

.sort-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit; font-size: 0.85rem;
    padding: 8px 32px 8px 14px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239a9590' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.sort-select:focus { border-color: var(--gold); }

/* =========================================
   PRODUCT GRID
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

/* =========================================
   PRODUCT CARD
   ========================================= */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    animation: fadeInUp 0.45s ease both;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: #19ff60;
    color: #111111; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 100px;
}

.card-image-wrap {
    background: #1a1a22;
    padding: 24px;
    display: flex; align-items: center; justify-content: center;
    height: 210px; overflow: hidden;
    position: relative;
}

.card-image-wrap img {
    max-height: 200px;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover .card-image-wrap img {
    transform: scale(1.06);
}

.card-body {
    padding: 18px 18px 0;
    flex: 1; display: flex; flex-direction: column;
}

.card-category {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.card-title {
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-primary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}

.card-pricing {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 16px; flex-wrap: wrap;
}

.price-current {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--gold-light);
}

.price-original {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-savings {
    font-size: 0.78rem; font-weight: 600;
    color: var(--green-deal);
    background: rgba(82,201,122,0.1);
    padding: 2px 8px; border-radius: 100px;
}

.card-footer {
    padding: 0 18px 18px;
}

.btn-deal {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    /*    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); */
    background: linear-gradient(267deg, #6ef37ee6 0%, #ffca2b 100%);
    color: #0a0a0c;
    font-family: inherit; font-size: 0.88rem; font-weight: 700;
    letter-spacing: 0.03em;
    padding: 12px 20px;
    border-radius: var(--radius-btn);
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(201,163,82,0.25);
    position: relative; overflow: hidden;
}

.btn-deal::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0; transition: opacity var(--transition);
}

.btn-deal:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201,163,82,0.35); }
.btn-deal:hover::before { opacity: 1; }
.btn-deal:active { transform: translateY(0); }

.btn-deal .ama-icon { font-size: 1rem; }

/* =========================================
   EMPTY / LOADING STATES
   ========================================= */
.state-message {
    grid-column: 1 / -1;
    text-align: center; padding: 80px 20px;
    color: var(--text-muted);
}

.state-message .icon { font-size: 2.5rem; margin-bottom: 16px; }
.state-message h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    animation: pulse 1.6s ease-in-out infinite;
}

.skeleton-img { background: #1a1a22; height: 210px; }
.skeleton-body { padding: 18px; }
.skeleton-line {
    background: rgba(255,255,255,0.05);
    border-radius: 4px; margin-bottom: 10px;
}
.skeleton-line.s1 { height: 10px; width: 40%; }
.skeleton-line.s2 { height: 14px; width: 100%; }
.skeleton-line.s3 { height: 14px; width: 85%; }
.skeleton-line.s4 { height: 20px; width: 50%; margin-top: 16px; }
.skeleton-btn { height: 42px; background: rgba(201,163,82,0.08); border-radius: 8px; margin-top: 16px; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 48px; padding: 56px 0 40px;
}

.footer-brand .nav-logo { margin-bottom: 16px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 280px; line-height: 1.7; }

.footer-col h4 {
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
    font-size: 0.88rem; color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8rem; color: var(--text-muted);
}

.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--gold-light); }

.footer-ama-badge {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--text-muted);
}

/* =========================================
   PAGES (Terms / Privacy)
   ========================================= */
.page-header {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, #f0ece4 30%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-header .last-updated {
    font-size: 0.82rem; color: var(--text-muted);
}

.legal-content {
    max-width: 760px;
    margin-bottom: 80px;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 600;
    color: var(--text-primary);
    margin: 36px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.legal-content p, .legal-content li {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 14px;
}

.legal-content ul { padding-left: 20px; }
.legal-content ul li { margin-bottom: 8px; }
.legal-content a { color: var(--gold); border-bottom: 1px solid rgba(201,163,82,0.3); }
.legal-content a:hover { color: var(--gold-light); }

.legal-content .notice-box {
    background: var(--gold-muted);
    border: 1px solid rgba(201,163,82,0.3);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 0.88rem; color: var(--gold-light);
    line-height: 1.7;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-stats { gap: 28px; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    .nav-menu-toggle { display: flex; }
    .search-wrap input { width: 160px; }
    .search-wrap input:focus { width: 200px; }
    .footer-main { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .filters-section { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .nav-search {
       /*  display: none; */
    }

    .search-wrap input {
        width: 120px;
    }
    .search-wrap input:focus {
        width: 150px;
    }

    .navbar-inner {
        gap: 8px;
        padding: 0 12px;
    }
    .hero-stats {
        gap: 16px;
    }
}


