/* Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #232f3e;
    color: white;
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 a {
    color: white;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
}

/* Main Content */
main {
    padding: 2rem 0;
}

article h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #232f3e;
}

.intro {
    background: #f7f7f7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #b12704;
    margin-bottom: 0.5rem;
}

.rating {
    color: #ffa41c;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #ff9900;
    color: black;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #e47911;
}

/* Content */
.content {
    margin-top: 3rem;
}

.content h2 {
    margin-bottom: 1rem;
    color: #232f3e;
}

.content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.rich-content {
    margin-top: 2rem;
    line-height: 1.7;
    color: #333;
}

.rich-content h2, .rich-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #232f3e;
}

.rich-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 0.5rem;
}

.rich-content h3 {
    font-size: 1.25rem;
    color: #ff9900;
}

.rich-content ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.rich-content li {
    margin-bottom: 0.5rem;
}

.rich-content p {
    margin-bottom: 1rem;
}

.products-review-table {
    margin: 2rem 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.products-review-table h3 {
    margin-bottom: 20px;
    color: #232f3e;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 10px;
}

.product-review-item {
    background: white;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-review-item:last-child {
    margin-bottom: 0;
}

.product-review-image {
    margin-bottom: 10px;
}

.product-review-content h4 {
    margin: 0 0 10px 0;
    color: #232f3e;
    font-size: 1.1rem;
}

.product-review-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #b12704;
    margin-bottom: 10px;
}

.product-review-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
}

.product-review-content .buy-button {
    background: #ff9900;
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.product-review-content .buy-button:hover {
    background: #e47911;
}

.product-thumbnails {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.product-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.product-thumbnails img:hover {
    transform: scale(1.1);
}

.product-thumbnails img.active {
    border-color: #ff9900;
}

.product-specs {
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0;
}

.spec-item {
    margin-right: 10px;
}

.full-view-link {
    margin-top: 6px;
    font-size: 0.9rem;
}

.full-view-link a {
    color: #007185;
    text-decoration: underline;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 900px;
    width: 90%;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.modal-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.modal-info h3 {
    margin-bottom: 12px;
    color: #232f3e;
}

.modal-price {
    font-size: 1.3rem;
    color: #b12704;
    margin-bottom: 16px;
}

/* Footer */
footer {
    background: #232f3e;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}
