:root {
    --bg: #ffffff;
    --text: #111111;
    --text-sec: #444444;
    --border: #dddddd;
    --accent: #2c2c2c;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-tap-highlight-color: transparent;
}

.container { 
    max-width: 1240px; 
    margin: 0 auto; 
    padding: 0 16px; 
}

/* Slim Top Bar */
.top-bar {
    background: #1f1f1f;
    color: #eeeeee;
    text-align: center;
    padding: 7px 0;
    font-size: 0.84rem;
}

/* Slim Sticky Header */
.sticky-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    gap: 12px;
}

.logo {
    font-size: 1.42rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.search-bar {
    flex: 1;
    max-width: 460px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 9px 18px 9px 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f9f9f9;
    font-size: 0.98rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}

.search-bar::before {
    content: "🔍";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.05rem;
    color: #888;
}

.icons {
    display: flex;
    gap: 22px;
    flex-shrink: 0;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.52rem;
    color: #666;
    cursor: pointer;
}

/* Hero */
.hero {
    background: #ffffff;
    color: var(--accent);
    text-align: center;
    padding: 45px 20px 35px;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero p {
    font-size: 1.02rem;
    color: #555;
    max-width: 680px;
    margin: 0 auto 30px;
}

/* Quick Tip & Guides */
.quick-tip-section, .guides-section {
    background: #f8f8f8;
    padding: 60px 0;
}

.quick-tip-section h3 {
    text-align: center;
    margin-bottom: 12px;
    color: #2c2c2c;
    font-size: 1.45rem;
}

.quick-tip-section p, .guides-section p {
    font-size: 1.08rem;
    color: #444;
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.65;
    text-align: center;
}

.tip-btn {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Products Section */
#products h2 {
    text-align: center;
    margin: 48px 0 40px;
    font-size: 1.85rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}

/* Product Cards */
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.product-img {
    height: 220px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-body {
    padding: 20px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 16px;
    min-height: 68px;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0.25;
    pointer-events: none;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: scale(1.03);
    opacity: 1;
}

/* Footer */
.site-footer {
    background: #f9f9f9;
    border-top: 1px solid #eeeeee;
    padding: 60px 0 50px;
    margin-top: 80px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent-hover);
}

.footer-cta {
    text-align: center;
    margin-bottom: 50px;
}

.shop-btn {
    display: inline-block;
    background: #2c2c2c;
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.shop-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Centered Disclaimer & Copyright */
.footer-disclaimer {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.82rem;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .footer-nav {
        gap: 16px;
        font-size: 0.95rem;
    }
    
    .shop-btn {
        padding: 14px 32px;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    overflow: hidden;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    padding: 18px 24px;
    background: #2c2c2c;
    color: white;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-body {
    padding: 24px;
}

.modal-image {
    width: 100%;
    height: 280px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.modal-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 16px;
        padding: 14px 12px;
    }
    
    .search-bar {
        max-width: 100%;
        order: 3;
    }
    
    .logo {
        font-size: 1.55rem;
    }
    
    .hero {
        padding: 80px 20px 70px;
    }
}

@media (max-width: 640px) {
    .grid {
        gap: 20px;
    }
}