/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, Arial, sans-serif; color: #222; background: #fff; line-height: 1.5; }


/* Header */
.main-header { background: #0a3d62; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.logo { display: flex; align-items: center; font-weight: bold; text-decoration: none; color: #fff; font-size: 1.4em; }
.logo img { height: 100px; margin-right: 8px; }
.main-nav a { color: #fff; margin-left: 20px; text-decoration: none; font-weight: 500; }
.main-nav a:hover { text-decoration: underline; }


/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.hero { text-align: center; padding: 60px 20px; background: linear-gradient(135deg, #82ccdd, #60a3bc); color: #fff; border-radius: 12px; margin-bottom: 40px; }
.hero h1 { font-size: 2.2em; margin-bottom: 10px; }
.hero p { font-size: 1.1em; }


/* Category grid */
.categories h2 { text-align: center; font-size: 1.8em; margin-bottom: 20px; }
.category-page h1 { text-align: center; font-size: 2em; margin: 20px 0 30px; }
.category-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.category-card { position: relative; overflow: hidden; border-radius: 10px; text-decoration: none; color: #fff; }
.category-card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s ease; }
.category-card span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); text-align: center; padding: 10px; font-size: 1.2em; }
.category-card:hover img { transform: scale(1.05); }


/* Weekly Top Section */
.weekly-top { text-align: center; margin: 60px 0; }
.weekly-top h2 { font-size: 1.8em; margin-bottom: 8px; }
.weekly-top a { color: #0a3d62; text-decoration: none; font-weight: bold; }
.weekly-top a:hover { text-decoration: underline; }


/* Footer */
.site-footer { background: #0a3d62; color: #fff; padding: 20px 0; margin-top: 40px; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-nav { margin-top: 10px; }
.footer-nav a { color: #fff; text-decoration: none; margin: 0 10px; }
.footer-nav a:hover { text-decoration: underline; }

/* Product grid */
.category-page h1 { text-align: center; font-size: 2em; margin: 20px 0 30px; }
.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); justify-content: center; max-width: 1000px; margin: 0 auto; }
.product-card { display: flex; flex-direction: column; text-decoration: none; color: #222; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.1); transition: transform 0.2s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-card img { width: 100%; height: 200px; object-fit: scale-down; }
.product-card .info { padding: 12px; }
.product-card h3 { font-size: 1.1em; margin-bottom: 6px; }
.product-card p { font-size: 0.9em; color: #444; }

/* Landing page styles */
.landing { max-width: 900px; margin: 40px auto; }
.landing-card { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.landing-info { padding: 20px; }
.landing-info h1 { margin-bottom: 10px; font-size: 1.6em; }
.landing-info p { color: #444; line-height: 1.5; margin-bottom: 15px; }
.landing-info img { width: 300; height: 200px; object-fit: scale-down; }
.landing-buttons { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: background 0.2s ease; }
.btn.amazon { background: #ff9900; color: #000; }
.btn.amazon:hover { background: #e68a00; }
.btn.home { background: #0a3d62; color: #fff; }
.btn.home:hover { background: #072b46; }
.expired-box, .active-box { text-align: center; padding: 15px; border-radius: 8px; }
.expired-box { background: #ffe9e9; border: 1px solid #ffb3b3; }
.active-box { background: #e6fff2; border: 1px solid #a3f3c5; }

/* Admin styles */
.admin table { border-collapse: collapse; margin-top: 20px; width: 100%; }
.admin th, .admin td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
.admin th { background: #f7f7f7; }
.admin form input[type=text],
.admin form textarea { width: 100%; padding: 6px; margin-bottom: 10px; }
.admin button { background: #0a3d62; color: #fff; border: none; padding: 8px 14px; border-radius: 4px; cursor: pointer; }
.admin button.delete-btn { background: #b02a37; }
.admin a.button { background: #ccc; padding: 7px 12px; border-radius: 4px; text-decoration: none; color: #000; }

.text { max-width: 900px; margin: 40px auto; padding: 20px; background: #ffffff; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); line-height: 1.6; color: #333; }
.text h1 { font-size: 2em; margin-bottom: 20px; text-align: center; }
.text h2 { font-size: 1.4em; margin-top: 30px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #eee; color: #222; }
.text p { margin-bottom: 15px; }
.text ul { margin: 10px 0 20px 20px; }
.text ul li { margin-bottom: 6px; }
.text em { color: #666; }
.text a { color: #0a3d62; text-decoration: underline; }
.text a:hover { color: #062237; text-decoration: none; }

@media (min-width: 768px) {
.footer-content { flex-direction: row; justify-content: space-between; }
.landing-card { flex-direction: row; } .landing-img { width: 50%; height: auto; } .landing-info { width: 50%; } 
}
