/* --- FIXED LIGHT MODE PALETTE --- */
:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: #e1e1e1;
    --accent-blue: #0071e3;
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.product-card, .specs-box, .description-box, .ad-native-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* --- HERO SECTION STYLES --- */
.hero {
    padding-top: 20px;
    padding-bottom: 50px;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 20px;
    color: #86868b;
}

/* --- PRODUCTS SECTION STYLES --- */
.products-section {
    padding: 40px 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.product-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 12px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-price {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 15px;
}

.view-btn {
    display: inline-block;
    background-color: #0071e3;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
/* --- FOOTER STYLES --- */
.footer {
    padding: 40px 20px;
    border-top: 1px solid #d2d2d7; /* A subtle grey line separating the footer */
    text-align: center;
    margin-top: 20px;
}

.footer-links {
    display: flex; /* Flexbox is another layout superpower like Grid */
    flex-wrap: wrap; /* Allows links to move to the next line if screen is small */
    justify-content: center; /* Centers the links */
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #515154; /* Dark grey color for links */
    text-decoration: none;
    font-size: 13px;
}

.copyright {
    color: #86868b;
    font-size: 12px;
}
/* --- PRODUCT DETAIL PAGE STYLES --- */
.product-detail {
    /* We add 100px padding to the top so the navbar doesn't cover the image */
    padding: 100px 20px 50px 20px; 
    text-align: center;
}

.detail-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.detail-price {
    font-size: 24px;
    font-weight: 600;
    color: #0071e3; /* Apple Blue for the price */
    margin-bottom: 30px;
}

.specs-box, .description-box {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left; /* We push the text to the left so it's easier to read */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.specs-box h2, .description-box h2 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e1e1; /* A neat line under the heading */
    padding-bottom: 10px;
}

.specs-list {
    list-style-type: none; /* This removes the ugly standard bullet points */
}

.specs-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f7; /* A faint line separating each spec */
    font-size: 15px;
}

.specs-list li:last-child {
    border-bottom: none; /* Removes the line from the very last item */
}

.description-box p {
    font-size: 15px;
    line-height: 1.5; /* Adds breathing room between lines of text */
    color: #515154;
}
/* --- NATIVE AD CONTAINER STYLES --- */
.ad-native-container {
    margin-top: 65px; /* Keeps the ad below the fixed navbar */
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px dashed #d2d2d7; /* Soft border showing ad boundary */
}

.ad-placeholder-text {
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
}
/* --- SEARCH AND FILTER STYLES --- */
.controls-container {
    max-width: 500px;
    margin: 0 auto 25px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background-color: #0071e3;
    color: #ffffff;
    border-color: #0071e3;
}
/* --- ORDER CONTAINER & FORM STYLES --- */
.order-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.order-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-blue);
}

.order-btn {
    width: 100%;
    padding: 14px;
    background-color: #0071e3;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.order-btn:active {
    transform: scale(0.98);
    background-color: #005bb5;
}
