/* css/style.css - Application Stylesheet */

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f7f7f7;
    color: #0f1111;
    line-height: 1.5;
}

a {
    color: #007185;
    text-decoration: none;
}

a:hover {
    color: #c7511f;
    text-decoration: underline;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #6a1b9a;
    color: #ffffff;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
}

/* Header */
.main-header {
    background-color: #131921;
    color: #ffffff;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
}

.logo-icon {
    color: #ab47bc;
    font-size: 26px;
}

.brand-name {
    color: #ffffff;
}

.search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.btn-search {
    background-color: #ab47bc;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-search:hover {
    background-color: #8e24aa;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #ffffff;
    font-size: 14px;
}

.nav-link:hover {
    color: #e1bee7;
    text-decoration: none;
}

.cart-btn {
    background: transparent;
    border: 1px solid #ab47bc;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.cart-count {
    background-color: #e91e63;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 7px;
}

/* Page Layout */
.product-page-container {
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 15px;
}

.breadcrumb {
    font-size: 12px;
    color: #565959;
    margin-bottom: 15px;
}

/* Product Article Layout */
.product-article {
    display: grid;
    grid-template-columns: 35% 40% 23%;
    gap: 2%;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-wrapper {
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.main-image-wrapper img {
    max-width: 100%;
    height: 350px;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumb-btn {
    border: 1px solid #ccc;
    background: transparent;
    padding: 3px;
    border-radius: 4px;
    cursor: pointer;
}

.thumb-btn.active, .thumb-btn:hover {
    border-color: #8e24aa;
    outline: 1px solid #8e24aa;
}

.thumb-btn img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
}

/* Product Info */
.product-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f1111;
    margin-bottom: 10px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stars {
    color: #ffa41c;
}

.review-count {
    font-size: 13px;
}

.divider {
    height: 1px;
    background-color: #e7e7e7;
    margin: 15px 0;
}

.price-section {
    font-size: 14px;
    margin-bottom: 15px;
}

.price-amount {
    font-size: 24px;
    font-weight: bold;
    color: #b12704;
}

.price-cents {
    font-size: 14px;
    vertical-align: super;
    color: #b12704;
}

.free-returns {
    color: #565959;
    margin-left: 10px;
}

.key-features {
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.key-features li {
    margin-bottom: 8px;
}

.product-description-block h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-description-block p {
    font-size: 14px;
    color: #333;
}

/* Buy Box */
.buy-box {
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 15px;
    background-color: #fcfcfc;
    height: fit-content;
}

.buy-box-price {
    font-size: 22px;
    color: #b12704;
    font-weight: bold;
    margin-bottom: 10px;
}

.in-stock {
    color: #007600;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.delivery-info {
    font-size: 13px;
    color: #565959;
    margin-bottom: 15px;
}

.quantity-selector {
    margin-bottom: 15px;
    font-size: 14px;
}

.quantity-selector select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #888;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-primary {
    background-color: #8e24aa;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background-color: #6a1b9a;
}

.btn-secondary {
    background-color: #ffa41c;
    color: #0f1111;
    border: none;
    padding: 12px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #f29300;
}

.security-badge {
    font-size: 12px;
    color: #565959;
    text-align: center;
}

/* Reviews Section */
.reviews-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.reviews-section h2 {
    margin-bottom: 15px;
    font-size: 18px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.review-card {
    border: 1px solid #e7e7e7;
    padding: 15px;
    border-radius: 6px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    margin-bottom: 5px;
}

.review-rating {
    color: #ffa41c;
    font-size: 12px;
    margin-bottom: 5px;
}

/* Footer */
.main-footer {
    background-color: #131921;
    color: #dddddd;
    margin-top: 40px;
    padding: 40px 20px 10px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #dddddd;
}

.footer-col a:hover {
    color: #ffffff;
}

.compliance-text {
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #3a4553;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 12px;
    color: #999999;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #232f3e;
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.cookie-content a {
    color: #ab47bc;
    text-decoration: underline;
}

.btn-accept-cookies {
    background-color: #ab47bc;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2e7d32;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 4px;
    display: none;
    z-index: 3000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2500;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    background: #131921;
    color: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #e7e7e7;
    display: flex;
    gap: 10px;
}

/* Privacy Page Specifics */
.privacy-container {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.privacy-container h1 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #131921;
}

.privacy-container h2 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #6a1b9a;
}

.privacy-container p, .privacy-container ul {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

.privacy-container ul {
    padding-left: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-article {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}