/* public/css/style.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Styling */
.main-header {
    background-color: #2c3e50; /* Dark blue/grey background */
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-bottom: 20px; /* Space below the header */
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes logo to left, nav/title to right */
    padding: 0 20px; /* Internal padding for header content */
}

.header-logo {
    height: 60px; /* Adjust based on your logo's aspect ratio */
    width: auto;
    vertical-align: middle;
}

.shop-title {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #ecf0f1; /* Light grey text */
    text-decoration: none; /* In case it's an anchor tag */
}

.shop-title a {
    color: inherit; /* Inherit color from parent .shop-title */
    text-decoration: none;
}

.shop-title a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 20px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-image-placeholder {
    width: 100%;
    height: 180px; /* Adjust as needed */
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.product-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* Ensures image covers the area */
}

.product-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows description to take up available space */
}

.product-price {
    font-size: 1.1em;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #218838;
}

/* Cart Summary & Checkout Button */
.cart-summary {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cart-summary button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.2s ease;
}

.cart-summary button:hover {
    background-color: #0056b3;
}

/* Checkout Page */
.cart-items-list {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-details span {
    display: block;
    font-size: 0.9em;
    color: #555;
}

.item-details strong {
    font-size: 1.1em;
    color: #333;
}

.item-quantity-controls {
    display: flex;
    align-items: center;
}

.item-quantity-controls button {
    background-color: #ccc;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin: 0 5px;
}

.item-quantity-controls button:hover {
    background-color: #bbb;
}

.item-quantity-controls span {
    min-width: 20px;
    text-align: center;
}

.remove-item-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 15px;
}

.remove-item-btn:hover {
    background-color: #c82333;
}

.order-summary-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.order-summary-table th, .order-summary-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.order-summary-table th {
    background-color: #f8f8f8;
    font-weight: normal;
}

.order-summary-table td:last-child,
.order-summary-table th:last-child {
    text-align: right;
    font-weight: bold;
}

.checkout-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.checkout-form button {
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    width: 100%;
    transition: background-color 0.2s ease;
}

.checkout-form button:hover {
    background-color: #0056b3;
}

/* Confirmation Page */
.confirmation-message {
    text-align: center;
    padding: 50px 20px;
    background-color: #e6ffe6;
    border: 1px solid #a8e6a8;
    border-radius: 8px;
    margin-top: 50px;
}

.confirmation-message h2 {
    color: #28a745;
    margin-bottom: 20px;
}

.confirmation-message p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.confirmation-message strong {
    color: #0056b3;
}

.confirmation-message strong[style="color: #dc3545;"] {
    color: #dc3545;
}


.back-to-shop-btn {
    display: inline-block;
    margin-top: 30px;
    background-color: #6c757d;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.back-to-shop-btn:hover {
    background-color: #5a6268;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

.menu-toggle { align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); border-radius: 9px; cursor: pointer; display: flex; flex-direction: column; gap: 5px; height: 46px; justify-content: center; margin-left: auto; padding: 0; width: 50px; }
.menu-toggle:hover { background: rgba(255,255,255,.16); }
.menu-toggle span { background: #fff; border-radius: 2px; display: block; height: 3px; width: 23px; }
.menu-backdrop { background: rgba(8, 25, 39, .62); inset: 0; position: fixed; z-index: 998; }
.side-menu { background: #fff; box-shadow: -12px 0 35px rgba(0,0,0,.22); box-sizing: border-box; display: flex; flex-direction: column; height: 100vh; max-width: 420px; overflow-y: auto; padding: 26px; position: fixed; right: 0; top: 0; transform: translateX(105%); transition: transform .24s ease; width: min(92vw, 420px); z-index: 999; }
.side-menu.is-open { transform: translateX(0); }
.side-menu-header { align-items: flex-start; border-bottom: 1px solid #dce5ec; display: flex; justify-content: space-between; padding-bottom: 17px; }
.side-menu-header h2 { color: #102a43; margin: 3px 0 0; text-align: left; }
.side-menu-eyebrow { color: #007b83; font-size: .7rem; font-weight: 800; letter-spacing: .12em; margin: 0; }
.menu-close { background: #eef4f7; border: 0; border-radius: 50%; color: #24445c; cursor: pointer; font-size: 1.8rem; height: 42px; line-height: 1; width: 42px; }
.side-menu-links { display: grid; gap: 8px; padding: 20px 0; }
.side-menu-links a { background: #f6f9fb; border: 1px solid transparent; border-radius: 8px; color: #102a43; display: flex; flex-direction: column; padding: 12px 14px; text-decoration: none; }
.side-menu-links a:hover { background: #eef8f7; border-color: #addbd4; transform: translateX(-2px); }
.side-menu-links span { font-weight: 800; }
.side-menu-links small { color: #627484; margin-top: 3px; }
.side-menu-social { border-top: 1px solid #dce5ec; padding-top: 19px; }
.side-menu-social h3 { color: #102a43; margin: 0 0 7px; text-align: left; }
.side-menu-social p { color: #627484; font-size: .88rem; line-height: 1.45; }
.social-placeholders { display: flex; flex-wrap: wrap; gap: 7px; }
.social-placeholders span { background: #edf2f6; border-radius: 999px; color: #657887; font-size: .8rem; font-weight: 700; padding: 7px 10px; }
.side-menu-note { background: #eef8f7; border-left: 4px solid #007b83; color: #476370; font-size: .82rem; line-height: 1.5; margin-top: auto; padding: 11px; }
body.menu-open { overflow: hidden; }

.header-links { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.product-title a, .product-details-link { color: inherit; }
.product-details-link { display: inline-block; margin: 0.3rem 0; color: #0056b3; }
.product-detail { max-width: 900px; margin: 2rem auto; }
.product-detail-image { max-width: 460px; width: 100%; border-radius: 8px; }
.product-detail-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.form-success { color: #216e39; margin-top: 1rem; }
.website-field { display: none; }
.contact-hero { background: linear-gradient(135deg, #eef8f7, #eef4fb); padding: 55px 20px; text-align: center; }
.contact-hero h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 12px; }
.contact-hero p:last-child { color: #415466; line-height: 1.65; margin: 0 auto; max-width: 720px; }
.contact-layout { align-items: start; display: grid; gap: 30px; grid-template-columns: minmax(230px, .7fr) minmax(0, 1.7fr); margin-top: 38px; }
.contact-sidebar { display: grid; gap: 16px; }
.contact-card, .contact-form-panel { background: #fff; border: 1px solid #dce5ec; border-radius: 10px; box-shadow: 0 5px 20px rgba(31, 56, 76, .07); padding: 22px; }
.contact-card { border-left: 5px solid #007b83; }
.contact-card h3, .contact-form-panel h2 { margin: 0 0 10px; text-align: left; }
.contact-card p { color: #52606d; line-height: 1.55; margin: 6px 0; overflow-wrap: anywhere; }
.contact-form-panel form > label, .contact-form-grid label { display: block; font-weight: 700; margin: 16px 0 7px; }
.contact-form-panel input[type="text"], .contact-form-panel input[type="email"], .contact-form-panel select, .contact-form-panel textarea { background: #fff; border: 1px solid #b8c7d1; border-radius: 6px; box-sizing: border-box; font: inherit; padding: 11px 12px; width: 100%; }
.contact-form-panel input:focus, .contact-form-panel select:focus, .contact-form-panel textarea:focus { border-color: #007b83; box-shadow: 0 0 0 3px rgba(0, 123, 131, .15); outline: 0; }
.contact-form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.message-help { color: #647482; display: flex; font-size: .88rem; justify-content: space-between; margin-top: 5px; }
.contact-consent { align-items: flex-start; display: flex !important; font-weight: 400 !important; gap: 9px; line-height: 1.45; }
.contact-consent input { margin-top: 4px; }
.contact-form-panel button { background: #007b83; border: 0; border-radius: 6px; color: #fff; cursor: pointer; font-size: 1.05rem; font-weight: 700; margin-top: 10px; padding: 13px 20px; width: 100%; }
.contact-form-panel button:hover { background: #005f66; }
.contact-form-panel button:disabled { cursor: wait; opacity: .65; }
.contact-result { border-radius: 6px; padding: 12px; text-align: left; }
.contact-faq { margin: 45px auto 60px; max-width: 900px; }
.contact-faq details { border-bottom: 1px solid #dce5ec; padding: 15px 4px; }
.contact-faq summary { color: #12344d; cursor: pointer; font-weight: 700; }
.contact-faq details p { color: #52606d; line-height: 1.6; }
@media (max-width: 760px) { .contact-layout, .contact-form-grid { grid-template-columns: 1fr; } .header-links { gap: .55rem; } }

.product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.buy-now-btn { background: #0056b3; color: #fff; border: 0; border-radius: 4px; padding: 0.65rem 1rem; cursor: pointer; }
.buy-now-btn:hover { background: #003f80; }
.product-delivery { color: #306b3d; font-size: 0.9rem; }
.product-type-navigation { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.25rem 0 2rem; }
.product-type-navigation a { background: #eef4fb; border-radius: 999px; color: #0056b3; padding: 0.45rem 0.8rem; text-decoration: none; }
.product-type-group { margin: 2.5rem 0; scroll-margin-top: 1rem; }
.product-type-group > p { margin-top: -0.3rem; color: #555; }
.free-downloads-section { background: linear-gradient(180deg, #f2fbf8, #fff); border-bottom: 1px solid #dcebe7; border-top: 1px solid #dcebe7; margin-top: 45px; padding: 50px 0; scroll-margin-top: 1rem; }
.free-download-item { border-top-color: #21a179; position: relative; }
.free-badge { background: #157f5b; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 800; padding: 5px 10px; position: absolute; right: 16px; top: 14px; }
.free-download-button { background: #157f5b; border: 0; border-radius: 6px; color: #fff; display: inline-block; font-weight: 700; margin: 12px 0; padding: 11px 16px; text-align: center; text-decoration: none; }
.free-download-button:disabled { background: #8aa39a; cursor: not-allowed; }
.payment-methods { border: 1px solid #d4d4d4; margin: 1rem 0; padding: 0.8rem; }
.payment-methods label { display: block; margin: 0.4rem 0; }
.payment-method-disabled { color: #6b7280; }

/* Product-roadmap storefront */
.header-link { color: #fff; text-decoration: none; font-weight: bold; }
.header-link:hover { text-decoration: underline; }
.hero { background: linear-gradient(130deg, #102a43, #007b83); color: #fff; padding: 88px 20px; text-align: center; }
.hero-content { max-width: 720px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; margin: 8px 0 20px; }
.hero p { font-size: 1.15rem; line-height: 1.65; }
.eyebrow { color: #007b83; font-size: .78rem; font-weight: 800; letter-spacing: .14em; margin: 0; }
.hero .eyebrow { color: #9bf0e5; }
.primary-link { display: inline-block; background: #fff; border-radius: 6px; color: #005a65; font-weight: bold; margin-top: 16px; padding: 13px 20px; text-decoration: none; }
.catalog-section, .promise-section { margin-top: 38px; }
.section-intro { color: #52606d; line-height: 1.6; margin: 0 auto 20px; max-width: 760px; text-align: center; }
.product-item { border-top: 5px solid #007b83; padding: 22px; text-align: left; }
.product-image { align-items: center; background: #f7fafc; border-radius: 6px; display: flex; height: 180px; justify-content: center; margin: -4px -4px 18px; overflow: hidden; }
.product-image img { display: block; height: 100%; object-fit: cover; width: 100%; }
.product-category { color: #007b83; font-size: .78rem; font-weight: bold; letter-spacing: .08em; margin: 0 0 10px; text-transform: uppercase; }
.product-sku { color: #64748b; font-size: .78rem; font-weight: 700; margin: -4px 0 10px; }
.product-title { color: #102a43; font-size: 1.3rem; margin: 0 0 10px; text-align: left; }
.product-format { color: #52606d; font-size: .9rem; line-height: 1.5; }
.product-status { align-self: flex-start; background: #e2f6f4; border-radius: 99px; color: #00666d; font-size: .85rem; font-weight: bold; padding: 6px 10px; }
.promise-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.promise-grid > div { background: #f0f7f7; border-radius: 7px; padding: 20px; }
.promise-grid h3 { color: #102a43; margin-top: 0; text-align: left; }
.promise-grid p { color: #52606d; line-height: 1.55; margin-bottom: 0; }
.site-footer { color: #d9e2ec; background: #102a43; margin-top: 40px; padding: 25px 20px; text-align: center; }
.catalog-error { color: #a61b1b; grid-column: 1 / -1; text-align: center; }
@media (max-width: 650px) {
    .header-content { gap: 10px; flex-wrap: nowrap; justify-content: flex-start; }
    .header-logo { height: 48px; }
    .shop-title { font-size: 1.4rem; }
    .header-link { display: none; }
    .menu-toggle { flex: 0 0 46px; height: 43px; width: 46px; }
    .promise-grid { grid-template-columns: 1fr; }
}

/* Digital-first storefront */
.header-cart-link {
    align-items: center;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    gap: 7px;
    margin-left: auto;
    text-decoration: none;
}
.cart-count {
    align-items: center;
    background: #ffca3a;
    border-radius: 999px;
    color: #102a43;
    display: inline-flex;
    font-size: .75rem;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 5px;
}
.digital-product { border-top-color: #157f5b; }
.digital-preview-product { border-top-color: #6b5bd2; }
.physical-preview { border-top-color: #8a6d3b; }
.add-to-cart-btn,
.buy-now-btn,
.product-details-button {
    border: 0;
    border-radius: 7px;
    box-sizing: border-box;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    padding: 11px 15px;
    text-align: center;
    text-decoration: none;
}
.add-to-cart-btn {
    background: #fff;
    border: 2px solid #007b83;
    color: #00666d;
}
.add-to-cart-btn:hover { background: #eef8f7; }
.add-to-cart-btn:disabled {
    background: #eef2f4;
    border-color: #9aa8b2;
    color: #586873;
    cursor: not-allowed;
}
.buy-now-btn {
    background: #007b83;
    color: #fff;
}
.buy-now-btn:hover { background: #005f66; }
.product-details-button {
    background: #eef4fb;
    color: #0056b3;
}
.product-actions {
    align-items: center;
    margin: 15px 0;
}
.product-status.is-available {
    background: #e4f7ec;
    color: #176b3a;
}
.product-status.is-preview {
    background: #fff4db;
    color: #765321;
}
.product-status.is-coming-soon {
    background: #efedff;
    color: #5140a8;
}
.price-pending {
    color: #765321;
    font-size: 1rem;
}
.physical-review-note {
    background: #fff8e8;
    border-left: 4px solid #b4812b;
    color: #644b23;
    padding: 12px 14px;
}
.supplier-source-link { color: #0056b3; font-weight: 700; }
.more-products-section {
    background: linear-gradient(145deg, #eef8f7, #f4f1ff);
    margin-top: 55px;
    padding: 58px 20px;
    scroll-margin-top: 1rem;
}
.more-products-section h2 { color: #102a43; margin-top: 7px; }
.more-products-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.more-products-grid > div {
    background: rgba(255,255,255,.9);
    border: 1px solid #dce5ec;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(31,56,76,.06);
    padding: 22px;
}
.more-products-grid h3 { color: #102a43; margin: 0 0 9px; text-align: left; }
.more-products-grid p { color: #52606d; line-height: 1.55; margin: 0; }
.more-products-contact {
    background: #007b83;
    border-radius: 7px;
    color: #fff;
    display: inline-block;
    font-weight: 800;
    margin-top: 24px;
    padding: 12px 18px;
    text-decoration: none;
}
.more-products-contact:hover { background: #005f66; }
.product-detail-card {
    align-items: start;
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(31, 56, 76, .09);
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.2fr);
    padding: 28px;
}
.product-detail-copy h2 {
    color: #102a43;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 8px 0 16px;
    text-align: left;
}
.product-detail-copy > p { line-height: 1.6; }
.digital-delivery-note {
    background: #eef8f7;
    border-left: 4px solid #157f5b;
    color: #315b50;
    padding: 12px 14px;
}
.back-to-catalog-link {
    color: #0056b3;
    display: inline-block;
    font-weight: 700;
    margin-top: 12px;
}
@media (max-width: 760px) {
    .product-detail-card { grid-template-columns: 1fr; padding: 18px; }
    .header-cart-link { font-size: .9rem; }
    .more-products-grid { grid-template-columns: 1fr; }
}
