/* styles.css/*
/* =============================
   Base / Layout
   ============================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

main {
    width: 100%;
    margin: 0;
    padding: 0 20px;
}

/* Force full-width layout (override any centering) */
body,
main,
.page-wrapper,
.page {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* IMPORTANT:
   Do NOT override .container globally.
   landing.css uses .container to center and constrain layout properly. */


/* =============================
   Header (LEGACY ONLY)
   ============================= */

/* This applies ONLY if you use <header class="site-header"> somewhere.
   It will NOT touch the landing topbar header. */
header.site-header {
    background-color: #f4f4f4;
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

header.site-header h1 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

header.site-header nav a {
    margin-right: 10px;
    text-decoration: none;
    color: #333;
}

header.site-header nav a:hover {
    text-decoration: underline;
}

/* =============================
   Typography / Links / Lists
   ============================= */
a {
    color: #0b4dff;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* =============================
   Forms
   ============================= */
form {
    margin: 15px 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 12px 16px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #2f80ff, #0b4dff);
    color: #fff;
    cursor: pointer;
    border-radius: 14px;
    font-weight: 850;
}

button:hover {
    filter: brightness(1.03);
}

/* Readable content wrapper (forms, auth, text) */
.content-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =============================
   Product Cards / Tiles
   ============================= */
.product-card,
.trending-tile {
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.product-card:hover,
.trending-tile:hover {
    transform: scale(1.03);
}

.product-card img,
.trending-tile img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
}

.tile-title {
    font-weight: bold;
    margin: 0.5rem 0;
}

.tile-footer {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem 0.5rem;
    font-size: 0.85rem;
}

/* =============================
   Grids (Shop / Home / Dashboard)
   ============================= */
.product-grid,
.trending-row {
    display: grid;
    gap: 20px;
    margin: 1rem 0;
    width: 100%;
    padding: 0 10px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .product-grid,
    .trending-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid,
    .trending-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid,
    .trending-row {
        grid-template-columns: 1fr;
    }
}

/* =============================
   Trending Header
   ============================= */
.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.trending-header a {
    font-size: 0.9rem;
}

/* =============================
   Blurring / Overlay
   ============================= */
.blurred {
    filter: blur(8px);
    position: relative;
    pointer-events: none;
    user-select: none;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    pointer-events: auto;
}

/* =============================
   Page Wrappers
   ============================= */
.page-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.page {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}


/* =============================
   Info Icon
   ============================= */
.info-icon {
    display: inline-block;
    margin-left: 5px;
    color: #ff4d4d;
    cursor: pointer;
    font-weight: bold;
}

.info-popup {
    background: #ff9999;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    width: fit-content;
    max-width: 250px;
}

/* =============================
   Buy Now / Checkout / Download
   ============================= */
.buy-now-btn {
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.buy-now-btn:hover {
    background: #0056b3;
}


/* ==================================
   Input / Textarea / Select / Button
   ================================== */
   
/* Make form fields match site typography (no monospace textarea) */
input, textarea, select, button {
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    line-height: 1.5;
}
