/* css/style.css */

:root {
    --primary-color: #6A0DAD; /* Purple */
    --primary-hover: #4B0082;
    --secondary-color: #FF9900; /* Amazon Orange */
    --secondary-hover: #E68A00;
    --text-color: #0F1111;
    --text-light: #565959;
    --bg-color: #FFFFFF;
    --bg-light: #F3F3F3;
    --border-color: #D5D9D9;
    --success-color: #007600;
    --danger-color: #B12704;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
}

.btn-cart {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    width: 100%;
    margin-bottom: 10px;
}

.btn-cart:hover {
    background-color: #e7e6e6;
}

.btn-buy {
    background-color: var(--secondary-color);
    color: var(--text-color);
    width: 100%;
}

.btn-buy:hover {
    background-color: var(--secondary-hover);
}

/* Cookie Banner */
.cookie-banner {
    display: none; /* Hidden by default, shown via JS */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #232f3e;
    color: white;
    padding: 20px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-banner p {
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
}

.cookie-banner .btn {
    margin: 0 5px;
}

/* Header */
.site-header {
    background-color: #232f3e;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

.site-name {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.main-nav a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Product Hero */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 15px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
}

.thumb:hover, .thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: normal;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.stars {
    color: var(--secondary-color);
}

.review-link {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-current {
    font-size: 28px;
    font-weight: bold;
    color: var(--danger-color);
}

.price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
}

.price-discount {
    background-color: var(--danger-color);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-shipping {
    font-size: 14px;
}

.product-stock {
    font-size: 18px;
    font-weight: bold;
}

.in-stock {
    color: var(--success-color);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.quantity-selector select {
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.secure-transaction {
    font-size: 12px;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-meta p {
    font-size: 14px;
    margin-bottom: 5px;
}

/* Article / Description */
.product-article {
    padding: 40px 15px;
    border-top: 1px solid var(--border-color);
}

.product-article h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-list {
    margin-bottom: 30px;
    padding-left: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.article-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Features Section */
.features-section {
    padding: 40px 15px;
    background-color: var(--bg-light);
    text-align: center;
}

.features-section h2 {
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Reviews Section */
.reviews-section {
    padding: 40px 15px;
}

.reviews-section h2 {
    margin-bottom: 20px;
}

.review-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: bold;
}

.review-stars {
    color: var(--secondary-color);
}

.review-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.review-text {
    color: var(--text-light);
    font-size: 14px;
}

/* Privacy Page */
.privacy-page {
    padding: 40px 15px;
}

.privacy-page h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.privacy-page section {
    margin-bottom: 30px;
}

.privacy-page h2 {
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.privacy-page ul {
    padding-left: 20px;
    margin-top: 10px;
}

.privacy-page li {
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background-color: #232f3e;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-container h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #dddddd;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-contact address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #dddddd;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-contact a {
    color: #dddddd;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3a4553;
    padding-top: 20px;
    font-size: 12px;
    color: #999;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: black;
    text-decoration: none;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.modal-content .btn {
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-hero {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #232f3e;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .article-images {
        grid-template-columns: 1fr;
    }
}