/**
 * Amazon Affiliate Store - Frontend Styles
 */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: #ff9900;
}
.logo i { font-size: 28px; }
.nav {
    display: flex;
    gap: 25px;
}
.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: #ff9900; }
.search-form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
}
.search-form input {
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    width: 250px;
}
.search-form button {
    background: #ff9900;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}
.search-form button:hover { background: #e68a00; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}
.hero p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
}
.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.hero-search input {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 16px;
}
.hero-search button {
    background: #ff9900;
    color: #fff;
    border: none;
    padding: 18px 30px;
    font-size: 16px;
    cursor: pointer;
}
.hero-search button:hover { background: #e68a00; }

/* Sections */
.section {
    padding: 50px 0;
}
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.category-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #ff9900;
}
.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9900, #ff6600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 24px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #fff;
    padding: 20px;
}
.product-info {
    padding: 15px;
}
.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
}
.product-brand {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 8px;
}
.product-price {
    margin-top: 10px;
}
.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #b12704;
}
.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}
.product-rating {
    margin-top: 8px;
    font-size: 12px;
}
.stars { color: #ff9900; }
.rating-count { color: #007185; }
.product-views {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}
.btn-buy {
    display: block;
    background: linear-gradient(180deg, #ffe589 0%, #ff9900 100%);
    color: #111;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}
.btn-buy:hover {
    background: linear-gradient(180deg, #f7dfa5 0%, #f0c14b 100%);
}

/* Breadcrumb */
.breadcrumb {
    background: #fff;
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}
.breadcrumb a {
    color: #007185;
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* Product Detail */
.product-detail {
    padding: 40px 0;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}
.main-image {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}
.main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}
.image-thumbnails {
    display: flex;
    gap: 10px;
}
.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}
.thumbnail.active { border-color: #ff9900; }
.product-title-detail {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
}
.product-brand-detail {
    color: #666;
    margin-bottom: 15px;
}
.product-rating-detail {
    margin-bottom: 20px;
}
.stars-large {
    font-size: 20px;
    color: #ff9900;
}
.rating-value {
    font-weight: 600;
    margin-left: 10px;
}
.rating-count {
    color: #007185;
}
.product-price-detail {
    margin-bottom: 25px;
}
.price-current-large {
    font-size: 32px;
    font-weight: 700;
    color: #b12704;
}
.price-original-large {
    font-size: 20px;
    color: #999;
    margin-left: 15px;
}
.price-savings {
    background: #c45500;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}
.buy-section {
    margin-bottom: 25px;
}
.btn-buy-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #ffe589 0%, #ff9900 100%);
    color: #111;
    padding: 18px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
}
.btn-buy-large:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255,153,0,0.3);
}
.buy-links {
    margin-top: 15px;
}
.buy-links a {
    color: #007185;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
}
.buy-links a:hover { text-decoration: underline; }
.product-features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.product-features h3 {
    font-size: 16px;
    margin-bottom: 15px;
}
.product-features ul {
    padding-left: 20px;
}
.product-features li {
    margin-bottom: 8px;
    font-size: 14px;
}
.product-asin {
    color: #999;
    font-size: 12px;
}
.product-description {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}
.product-description h3 {
    margin-bottom: 15px;
}

/* 404 */
.error-page {
    text-align: center;
    padding: 100px 20px;
}
.error-page h1 {
    font-size: 72px;
    color: #ff9900;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    margin-bottom: 20px;
    color: #ff9900;
}
.footer-col p {
    color: #999;
    font-size: 14px;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #999;
    text-decoration: none;
}
.footer-col a:hover { color: #ff9900; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.pagination a, .pagination span {
    padding: 10px 15px;
    background: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}
.pagination .current {
    background: #ff9900;
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 2; }
    .product-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; }
    .nav { display: none; }
    .hero h1 { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
}

.site-logo{width:42px;height:42px;object-fit:contain;border-radius:10px;display:block;background:#fff;padding:4px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.alert{padding:14px 16px;border-radius:10px;margin-bottom:16px}.alert-success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.alert-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
