/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5efeb;
    color: #2f4156;
}

/* Assets Grid (for assets page) */
.assets-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.asset-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(47, 65, 86, 0.1);
    transition: transform 0.3s ease;
}

.asset-card:hover {
    transform: translateY(-5px);
}

.asset-preview {
    height: 180px;
    background-color: #f5efeb;
    overflow: hidden;
}

.asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-info {
    padding: 20px;
}

.asset-title {
    color: #2f4156;
    font-size: 20px;
    margin: 0 0 8px 0;
}

.asset-description {
    color: #567c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.asset-price {
    color: #2f4156;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

h1, h2 {
    color: #2f4156;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2f4156;
    padding: 10px 20px;
    border-bottom: 2px solid #567c8d;
}

.navbar a {
    color: #c8d9e6;
    padding: 10px 20px;
    text-align: center;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #567c8d;
    color: #ffffff;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Button Styles */
.custom-button {
    background-color: #567c8d;
    color: #ffffff;
    border: none;
    border: 2px solid transparent;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, border 0.3s;
}

.custom-button:hover {
    border-color: #2f4156;
}

.custom-button:active {
    background-color: #2f4156;
}

/* Footer Styling */
footer {
    text-align: center;
    background-color: #2f4156;
    color: #c8d9e6;
    padding: 10px;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

/* About Page Styles */
.about-container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(47, 65, 86, 0.1);
}

.about-container h1 {
    font-size: 2.5em;
    color: #2f4156;
    margin-bottom: 20px;
}

.about-container p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #567c8d;
    margin-bottom: 15px;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* Services Page Styles */
.services-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(47, 65, 86, 0.1);
    border-radius: 8px;
}

.services-container h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: #2f4156;
}

.services-container p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    color: #567c8d;
}

/* Service Item */
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid #c8d9e6;
    padding-bottom: 20px;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h2 {
    font-size: 28px;
    color: #2f4156;
    margin-right: 20px;
    flex: 1;
}

.service-item p {
    font-size: 16px;
    color: #567c8d;
    flex: 3;
}

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.service-item:hover {
    background-color: #f5efeb;
    transition: background-color 0.3s ease;
}

/* Call to Action (CTA) */
.cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background-color: #567c8d;
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(47, 65, 86, 0.1);
}

.cta p {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta a.cta-button {
    font-size: 20px;
    padding: 12px 30px;
    background-color: #2f4156;
    color: #ffffff;
    border-radius: 5px;
}

.cta a.cta-button:hover {
    background-color: #c8d9e6;
    color: #2f4156;
}

/* Categories Container and Hover Functionality */
.categories-container {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0px 5px rgba(47, 65, 86, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    padding-top: 60px;
}

.hover-zone:hover + .categories-container {
    left: 0;
}

.categories {
    padding: 20px;
    overflow-y: auto;
}

/* Category Sections */
section {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(47, 65, 86, 0.1);
}

section h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2f4156;
}

section p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #567c8d;
}

section ul {
    list-style-type: none;
    padding: 0;
}

section ul li {
    margin: 5px 0;
}

section ul li a {
    font-size: 16px;
    color: #567c8d;
    transition: color 0.3s ease;
}

section ul li a:hover {
    color: #2f4156;
}

/* Hover Zone */
.hover-zone {
    position: fixed;
    left: 0;
    top: 0;
    width: 150px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    cursor: pointer;
}

/* Categories Container Additional Styles */
.categories-container {
    position: fixed;
    left: -250px;
    top: 0;
    width: 200px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(47, 65, 86, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: left;
}

/* Category Links */
.categories h2 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: normal;
}

.categories a {
    color: #2f4156;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.categories a:hover {
    background-color: #567c8d;
    color: #ffffff;
}

/* Previews Section */
.previews-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f5efeb;
}

.previews-section h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2f4156;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preview-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(47, 65, 86, 0.1);
    overflow: hidden;
    width: 80%;
    max-width: 800px;
    text-align: center;
    transition: transform 0.3s ease;
}

.preview-item:hover {
    transform: scale(1.03);
}

.preview-image img {
    width: 100%;
    height: auto;
}

.preview-button {
    margin: 15px;
    padding: 12px 30px;
    background-color: #567c8d;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.preview-button a {
    color: #ffffff;
    text-decoration: none;
}

.preview-button:hover {
    background-color: #2f4156;
}

/* After your existing styles, add this new section for font catalogue styles */

/* Font Catalogue Layout
   This section handles the overall structure of the font catalogue page */
   .font-catalogue {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    /* Using our existing color scheme for consistency */
    background-color: #f5efeb;
}

.font-grid {
    display: grid;
    /* This creates a responsive grid that adjusts based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Individual Font Card Styling
   Each font card is a self-contained unit with preview and info sections */
.font-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    /* Using our existing shadow style for consistency */
    box-shadow: 0 4px 8px rgba(47, 65, 86, 0.1);
    transition: transform 0.3s ease;
}

.font-card:hover {
    transform: translateY(-5px);
}

/* Font Preview Section
   This area shows how the font looks in action */
.font-preview {
    height: 200px;
    background-color: #f5efeb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 32px;
}

/* Font Information Section
   Contains the title, description, and pricing details */
.font-info {
    padding: 20px;
}

.font-title {
    color: #2f4156;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.font-description {
    color: #567c8d;
    margin-bottom: 20px;
}

.font-price {
    color: #2f4156;
    font-size: 24px;
    font-weight: bold;
}

/* Font Card Button
   Consistent with our existing button styles but specific to font cards */
.buy-button {
    background-color: #567c8d;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #2f4156;
}

/* Bundle Card Styling
   Special styling for the bundle offer section */
.bundle-card {
    grid-column: 1 / -1;
    background-color: #2f4156;
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.bundle-card::before {
    content: "BUNDLE · SAVE 25%";
    position: absolute;
    top: 16px;
    right: -42px;
    background: #f5a623;
    color: #2f4156;
    padding: 5px 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    transform: rotate(35deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bundle-title {
    font-size: 32px;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.bundle-description {
    color: #c8d9e6;
    font-size: 18px;
    margin-bottom: 30px;
}

/* Bundle Features Grid
   Organizes the included fonts in a responsive grid */
.bundle-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bundle-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8d9e6;
}

.bundle-price {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Bundle Button Styling
   Inverted colors for better contrast on dark background */
.bundle-button {
    background-color: #ffffff;
    color: #2f4156;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.bundle-button:hover {
    background-color: #c8d9e6;
}

/* Savings Tag
   Highlights the discount amount on the bundle */
.savings-tag {
    background-color: #567c8d;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 10px;
}
/* Cart Icon */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #567c8d;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.cart-icon:hover {
    background-color: #2f4156;
}

/* Cart Count Badge */
#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.show {
    right: 0;
}

/* Cart Header */
.cart-header {
    padding: 20px;
    background-color: #2f4156;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    font-size: 24px;
}

.cart-header button {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0 5px;
}

/* Cart Items Container */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.cart-item:hover {
    background-color: #f5f5f5;
}

.item-details {
    flex-grow: 1;
    padding-right: 15px;
}

.item-details h3 {
    margin: 0;
    font-size: 16px;
    color: #2f4156;
}

.item-details p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #567c8d;
}

/* Remove Item Button */
.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #cc0000;
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    color: #2f4156;
    margin-bottom: 15px;
}

/* Cart Buttons */
#checkout-button {
    width: 100%;
    padding: 12px;
    background-color: #567c8d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

#checkout-button:hover {
    background-color: #2f4156;
}

.clear-cart-button {
    width: 100%;
    padding: 12px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.clear-cart-button:hover {
    background-color: #cc0000;
}

/* Notification */
.notification {
    position: fixed;
    bottom: -50px;
    right: 20px;
    background-color: #567c8d;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    z-index: 1002;
}

.notification.show {
    bottom: 20px;
    opacity: 1;
}

/* Empty Cart State */
.cart-empty {
    text-align: center;
    padding: 30px 20px;
    color: #567c8d;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .notification {
        width: 80%;
        right: 10%;
        text-align: center;
    }
}

/* ── Mobile Nav ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #c8d9e6;
    font-size: 26px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a {
    color: #c8d9e6;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #567c8d;
    color: #ffffff;
}

.nav-links a.nav-login {
    border: 1px solid #567c8d;
    border-radius: 4px;
    margin-left: 8px;
}

.nav-links a.nav-register {
    background-color: #567c8d;
    border-radius: 4px;
    margin-left: 4px;
    color: #fff;
}

.nav-links a.nav-register:hover {
    background-color: #c8d9e6;
    color: #2f4156;
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background-color: #2f4156;
        padding: 8px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 20px;
        border-radius: 0;
        margin: 0;
        border: none;
    }

    .nav-links a.nav-login,
    .nav-links a.nav-register {
        margin: 0;
        border: none;
        border-radius: 0;
        background: none;
        color: #c8d9e6;
    }
}

/* ── Button loading state ── */
.buy-button.loading,
.bundle-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.buy-button.loading::after {
    content: ' …';
}

/* ── Card dual-button row ── */
.card-btn-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.card-btn-row .buy-button {
    flex: 1;
    margin-top: 0;
}

.preview-demo-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    background: none;
    border: 2px solid #567c8d;
    border-radius: 6px;
    color: #567c8d;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.preview-demo-btn:hover {
    background-color: #567c8d;
    color: #fff;
}

/* ── Asset card meta chips ── */
.asset-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.asset-meta-chip {
    background-color: #f0f4f7;
    color: #567c8d;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ── Products loading state ── */
#products-loading {
    text-align: center;
    padding: 60px 20px;
    color: #567c8d;
    font-size: 16px;
}

/* ── Demo modal overlay ── */
.demo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

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

.demo-modal {
    background: #fff;
    border-radius: 14px;
    padding: 36px;
    max-width: 680px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.demo-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #567c8d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.demo-close:hover { color: #2f4156; }

/* Modal header */
.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.demo-title {
    font-size: 26px;
    color: #2f4156;
    margin: 0 0 4px 0;
}

.demo-meta {
    color: #567c8d;
    font-size: 14px;
    margin: 0;
}

.demo-price {
    font-size: 28px;
    font-weight: bold;
    color: #2f4156;
    white-space: nowrap;
    padding-left: 20px;
}

/* ── Font demo specifics ── */
.font-demo-preview {
    background: #f5efeb;
    border-radius: 10px;
    padding: 30px 24px;
    font-size: 52px;
    text-align: center;
    color: #2f4156;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    transition: font-family 0.2s;
}

.font-demo-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.font-demo-input-row label {
    font-size: 13px;
    color: #567c8d;
    white-space: nowrap;
}

.font-custom-input {
    flex: 1;
    border: 1px solid #c8d9e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.font-custom-input:focus { border-color: #567c8d; }

.font-size-samples {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.font-size-samples p {
    margin: 8px 0;
    color: #2f4156;
}

/* ── Asset demo specifics ── */
.asset-demo-player {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #111;
}

.asset-demo-thumb {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    opacity: 0.75;
}

.asset-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.asset-play-btn {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #2f4156;
    cursor: default;
    padding-left: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.asset-play-label {
    color: #fff;
    font-size: 13px;
    font-style: italic;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.asset-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.demo-stat {
    background: #f5efeb;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.demo-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #567c8d;
    font-weight: bold;
}

.demo-stat span:last-child {
    font-size: 14px;
    color: #2f4156;
    font-weight: bold;
}

/* ── Shared modal info ── */
.demo-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.demo-info-block {
    margin-bottom: 16px;
}

.demo-info-block h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #567c8d;
    margin: 0 0 8px 0;
}

.demo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.demo-tag {
    background: #e8f0f5;
    color: #2f4156;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
}

.demo-badge {
    background: #2f4156;
    color: #c8d9e6;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
}

.demo-description {
    color: #567c8d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.demo-add-btn {
    width: 100%;
    padding: 14px;
    background-color: #567c8d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.demo-add-btn:hover { background-color: #2f4156; }

@media (max-width: 600px) {
    .demo-modal { padding: 24px 18px; }
    .demo-header { flex-direction: column; gap: 6px; }
    .demo-price { padding-left: 0; font-size: 22px; }
    .font-demo-preview { font-size: 36px; }
    .demo-info-row { flex-direction: column; gap: 10px; }
}
/* Authentication Pages Styles */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(47, 65, 86, 0.1);
    text-align: center;
}

.auth-container h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2f4156;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #567c8d;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #c8d9e6;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #567c8d;
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me, .terms-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #567c8d;
}

.remember-me input, .terms-checkbox input {
    margin: 0;
}

.forgot-password {
    color: #567c8d;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #2f4156;
    text-decoration: underline;
}

.auth-button {
    background-color: #567c8d;
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #2f4156;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #c8d9e6;
    color: #567c8d;
}

.auth-footer a {
    color: #2f4156;
    text-decoration: none;
    font-weight: bold;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Password Strength Meter */
.password-strength-meter {
    height: 5px;
    background-color: #f5efeb;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.password-hint {
    font-size: 12px;
    color: #567c8d;
    margin-top: 5px;
}

/* Responsive Design for Auth Pages */
@media (max-width: 600px) {
    .auth-container {
        width: 90%;
        padding: 20px;
        margin: 40px auto;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ── Transitions Page ───────────────────────────────────────────────────────── */

.transition-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px 60px;
}

.transition-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(47,65,86,.1);
    transition: transform .3s ease;
}
.transition-card:hover { transform: translateY(-5px); }

.transition-preview {
    height: 180px;
    background: #2f4156;
    overflow: hidden;
    position: relative;
}

.transition-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .7;
}

.transition-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(47,65,86,.85);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 10px;
    border-radius: 20px;
}

.transition-info { padding: 20px; }

.transition-title {
    font-size: 18px;
    color: #2f4156;
    margin: 0 0 8px;
}

.transition-description {
    font-size: 13.5px;
    color: #567c8d;
    line-height: 1.6;
    margin: 0 0 12px;
}

.transition-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.transition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

/* ── Profile Page ───────────────────────────────────────────────────────────── */

.profile-hero {
    background: #2f4156;
    padding: 48px 24px 40px;
}

.profile-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #567c8d;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,.2);
}

.profile-hero-info {
    flex: 1;
    min-width: 0;
}

.profile-hero-info h1 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 4px;
}

.profile-hero-email {
    color: #c8d9e6;
    font-size: 14px;
    margin: 0 0 2px;
}

.profile-hero-since {
    color: #8aa8bb;
    font-size: 12px;
    margin: 0;
}

.profile-signout-btn {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.profile-signout-btn:hover { background: rgba(255,255,255,.2); }

.profile-tabs-bar {
    background: #2f4156;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.profile-tabs {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    padding: 0 24px;
}

.profile-tab {
    background: none;
    border: none;
    color: #c8d9e6;
    padding: 14px 18px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}

.profile-tab:hover { color: #fff; }
.profile-tab.active { color: #fff; border-bottom-color: #fff; }

.profile-body {
    max-width: 820px;
    margin: 36px auto 60px;
    padding: 0 24px;
}

.profile-panel { display: none; }
.profile-panel.active { display: block; }

.profile-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(47,65,86,.09);
}

.profile-card-title {
    font-size: 18px;
    color: #2f4156;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ede8e3;
}

.profile-field {
    margin-bottom: 20px;
}

.profile-field label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #567c8d;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 7px;
}

.profile-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #2f4156;
    background: #faf9f8;
    box-sizing: border-box;
    transition: border-color .15s;
}

.profile-field input:focus {
    outline: none;
    border-color: #567c8d;
    background: #fff;
}

.profile-field input:disabled {
    background: #f0ece8;
    color: #999;
    cursor: not-allowed;
}

.profile-field-hint {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
}

.profile-save-btn {
    background: #2f4156;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
}
.profile-save-btn:hover { background: #567c8d; }
.profile-save-btn:disabled { background: #aaa; cursor: default; }

/* Orders */
.order-item {
    border: 1px solid #ede8e3;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.order-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.order-date { color: #567c8d; font-size: 13px; }

.order-total {
    font-weight: bold;
    color: #2f4156;
    font-size: 15px;
}

.order-status {
    background: #eaf4ee;
    color: #2e7d50;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 9px;
    border-radius: 20px;
}

.order-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #2f4156;
    padding: 8px 0;
    border-top: 1px solid #f5efeb;
}

.order-download-btn {
    background: #567c8d;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}
.order-download-btn:hover { background: #2f4156; }
.order-download-btn:disabled { background: #aaa; cursor: default; }

.empty-history {
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
}

@media (max-width: 600px) {
    .profile-hero-inner { flex-wrap: wrap; }
    .profile-signout-btn { width: 100%; text-align: center; }
    .profile-tabs { overflow-x: auto; }
    .profile-card { padding: 20px 16px; }
}

/* ── AI Chat Widget ─────────────────────────────────────────────────────────── */

#filmple-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

#chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2f4156;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(47,65,86,.35);
    transition: background .2s, transform .2s;
    position: relative;
}

#chat-toggle:hover { background: #567c8d; transform: scale(1.06); }

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #e05a5a;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    align-items: center;
    justify-content: center;
}

.chat-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 340px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(47,65,86,.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(.97);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: #2f4156;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    font-size: 20px;
    line-height: 1;
}

.chat-header-info strong { font-size: 14px; display: block; }
.chat-status { font-size: 11px; color: #c8d9e6; }

#chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: .7;
    transition: opacity .15s;
}
#chat-close:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-msg { max-width: 88%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.assistant { align-self: flex-start; }

.chat-msg p {
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
}

.chat-msg.user p {
    background: #2f4156;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.assistant p {
    background: #f5efeb;
    color: #2f4156;
    border-bottom-left-radius: 4px;
}

/* Product suggestion cards */
.chat-suggestions {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-product-card {
    background: #fff;
    border: 1px solid #e0dbd5;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.chat-product-title {
    font-size: 12.5px;
    font-weight: bold;
    color: #2f4156;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-product-price {
    font-size: 12px;
    color: #567c8d;
}

.chat-add-btn {
    flex-shrink: 0;
    background: #2f4156;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 11px;
    font-size: 12px;
    cursor: pointer;
    transition: background .15s;
}
.chat-add-btn:hover { background: #567c8d; }

/* Typing indicator */
.chat-typing {
    padding: 0 16px 12px;
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    background: #c8d9e6;
    border-radius: 50%;
    animation: chat-bounce .9s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes chat-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Input row */
.chat-input-row {
    display: flex;
    border-top: 1px solid #ede8e3;
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 14px;
    font-size: 13.5px;
    background: #fff;
    color: #2f4156;
}

#chat-send {
    background: none;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: #567c8d;
    transition: color .15s;
    display: flex;
    align-items: center;
}
#chat-send:hover { color: #2f4156; }
#chat-send:disabled { color: #c8d9e6; cursor: default; }

@media (max-width: 480px) {
    .chat-panel { width: calc(100vw - 32px); right: 0; }
    #filmple-chat { right: 16px; bottom: 16px; }
}   
/* Cursive home-button logo — cream text, no pill background */
.navbar .logo.logo-home {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    font-weight: normal;
    text-transform: none;
    color: #f5efeb;
    line-height: 1;
    padding: 4px 10px 6px;
    background: transparent;
}
.navbar .logo.logo-home:hover {
    background: transparent;
    color: #ffffff;
}

/* ──────────────────────────────────────────────
   Filmple — admin logo + display serif + trust SVGs + card placeholders
   ────────────────────────────────────────────── */

/* Same cursive treatment for the admin top bar */
.topbar-logo.logo-home-admin {
    font-family: 'Great Vibes', cursive;
    font-size: 34px !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Display serif for headlines */
h1, h2, .hero h1, .section-title, .final-cta h2 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
}
h3, h4 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* Trust-bar inline SVG icons */
.trust-item-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    color: #c8d9e6;
}

/* Striped placeholder for category cards */
.category-card-bg.is-placeholder {
    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(200,217,230,0.08) 0 12px,
            rgba(200,217,230,0.02) 12px 24px
        );
    background-size: auto;
    opacity: 1;
}
.category-card.placeholder-a .category-card-bg.is-placeholder {
    background-color: #2a3b4f;
}
.category-card.placeholder-b .category-card-bg.is-placeholder {
    background-color: #34485f;
}
.category-card-placeholder-label {
    position: absolute;
    top: 16px; left: 20px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(200, 217, 230, 0.55);
    z-index: 1;
}

/* ── Free watermarked download button ── */
.free-download-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    background: none;
    border: 1px dashed #c8d9e6;
    border-radius: 6px;
    font-size: 12px;
    color: #567c8d;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: 0.02em;
}
.free-download-btn:hover {
    border-color: #567c8d;
    background: #f5f8fa;
    color: #2f4156;
}
.free-download-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Loading skeletons ── */
.card-skel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(47,65,86,0.08);
    overflow: hidden;
    min-height: 380px;
    position: relative;
}
.card-skel::before {
    content: '';
    display: block;
    height: 200px;
    background: linear-gradient(90deg, #e8edf2 0%, #f5efeb 50%, #e8edf2 100%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.4s ease-in-out infinite;
}
.card-skel::after {
    content: '';
    display: block;
    margin: 18px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e8edf2 0%, #f5efeb 50%, #e8edf2 100%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.4s ease-in-out infinite;
}
@keyframes skel-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Accessibility ── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #2f4156;
    color: #f5efeb;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    z-index: 99999;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid #c8d9e6;
}

/* Visible focus indicators (was being suppressed by some buttons) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #567c8d;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Print-friendly invoice (success page) ── */
@media print {
    .navbar, footer, #cart-container, #cart-sidebar, #cart-backdrop,
    .cookie-banner, .back-btn, .search-nav-btn, .nav-toggle { display: none !important; }
    body { background: #fff !important; }
    .success-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    a { color: #000 !important; text-decoration: none !important; }
}

/* Wishlist heart */
.wishlist-btn.active { color: #e74c3c !important; }
.wishlist-btn.active svg path { fill: #e74c3c; }
.wishlist-btn:hover { background: rgba(200,217,230,0.15) !important; }
