:root {
    --primary-color: #5d5dff;
    --secondary-color: #3b3bff;
    --background-color: #f4f7f9;
    --card-background: #ffffff;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.main-header {
    background-color: var(--card-background);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px; /* Logo height */
    width: auto;
}

.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-item a {
    font-weight: 500;
    transition: color 0.2s;
}

.nav-item a:hover {
    color: var(--primary-color);
}

.nav-item .active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.button-primary, .button-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
}

.button-secondary {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.button-primary:hover {
    background-color: var(--secondary-color);
}

.button-secondary:hover {
    background-color: #e5e7eb;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background-image: linear-gradient(135deg, #726bfa 0%, #4b6cb7 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-search-box input {
    flex-grow: 1;
    border: none;
    padding: 15px;
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
}

.hero-search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.hero-search-box button:hover {
    background-color: var(--secondary-color);
}

/* --- Product Sections --- */
.product-section {
    padding: 40px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    display: block;
}
.section-title small {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
    margin-top: 10px;
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.product-card .card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-author {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.icon-button {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.icon-button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.button-live-preview {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
}

.button-live-preview:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-all-button-container {
    margin-top: 30px;
    text-align: center;
}

.view-all-button-container .button-secondary {
    padding: 12px 30px;
}

/* --- How It Works Section --- */
.how-it-works-section {
    padding: 40px 0;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.step-card {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex: 1;
    max-width: 350px;
    min-width: 280px;
}

.step-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-light);
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 30px;
}

/* --- Footer --- */
.main-footer {
    background-color: #1f2937;
    color: #cbd5e1;
    padding: 50px 0;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-col {
    min-width: 200px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 15px;
    color: #9ca3af;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
}


/* --- Responsive Design --- */
@media (max-width: 1400px) {
    .product-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 1200px) {
    .product-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
@media (max-width: 992px) {
    .product-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--card-background);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    .nav-menu {
        flex-direction: column;
        padding: 20px;
    }
    .nav-item {
        width: 100%;
        text-align: left;
    }
    .mobile-menu-toggle {
        display: block;
    }
    body.menu-open .main-nav {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .footer-columns {
        flex-direction: column;
        text-align: center;
    }
    .product-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* --- Animation Styles --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- Single Product Page Hero Section --- */
.single-product-hero-section {
    background-image: linear-gradient(135deg, rgba(114, 107, 250, 0.9) 0%, rgba(75, 108, 183, 0.9) 100%), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}
.single-product-hero-section .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.single-product-hero-section .product-title {
    font-size: 3.5rem;
    margin-bottom: 5px;
    color: white;
}
.single-product-hero-section .product-author {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e5e7eb;
}
.single-product-hero-section .product-meta {
    gap: 30px;
}
.single-product-hero-section .rating,
.single-product-hero-section .sales-count {
    font-size: 1rem;
    color: white;
}
.single-product-hero-section .rating i {
    color: gold;
}


/* --- Single Product Page Hero Section --- */
.single-product-hero-section {
    background-image: linear-gradient(135deg, rgba(114, 107, 250, 0.9) 0%, rgba(75, 108, 183, 0.9) 100%), url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 0; /* Reduced height */
}
.single-product-hero-section .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.single-product-hero-section .product-title {
    font-size: 3rem; /* Reduced font size */
    margin-bottom: 5px;
    color: white;
}
.single-product-hero-section .product-author {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #e5e7eb;
}
.single-product-hero-section .product-meta {
    gap: 20px;
}
.single-product-hero-section .rating,
.single-product-hero-section .sales-count {
    font-size: 0.9rem;
    color: white;
}
.single-product-hero-section .rating i {
    color: gold;
}

/* --- Single Product Page Main Styling --- */
.product-details-section {
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.breadcrumb a:hover {
    color: var(--primary-color);
}

.single-product-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.main-content-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-gallery-card {
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.main-image {
    margin-bottom: 20px;
}
.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}
.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.thumbnail-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}
.thumbnail-gallery img.active,
.thumbnail-gallery img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-info-tabs-container {
    padding-top: 20px;
}
.product-info-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.product-info-tabs .tab-btn {
    background-color: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}
.product-info-tabs .tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
.tab-content-pane {
    display: none;
    padding-top: 20px;
}
.tab-content-pane.active {
    display: block;
}
.tab-content-pane h3 {
    margin-bottom: 15px;
}
.tab-content-pane ul {
    list-style-type: disc;
    margin-left: 20px;
}
.tab-content-pane li {
    margin-bottom: 10px;
}

/* --- Right Sidebar Styling (Fixed & Card-based) --- */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-sticky-content {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.buy-box-card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.price-and-action {
    display: flex;
    justify-content: space-between; /* Aligned price and button */
    align-items: center;
    margin-bottom: 20px;
}
.sidebar-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}
.buy-now-btn {
    padding: 12px 25px;
    font-size: 1rem;
    width: auto; /* Changed to auto width */
    text-align: center;
}
.buy-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.buy-detail-item {
    font-size: 0.9rem;
    color: var(--text-light);
}
.buy-detail-item i {
    color: var(--primary-color);
    margin-right: 8px;
}
.button-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.button-live-preview-lg, .full-width {
    padding: 12px 25px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.2s, color 0.2s;
}
.button-live-preview-lg:hover,
.button-live-preview-lg:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.demo-credentials-card {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.demo-credentials-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.copy-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.copy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    background-color: var(--background-color);
    padding: 8px 12px;
    border-radius: 6px;
}
.copy-item strong {
    color: var(--text-color);
    margin-right: 5px;
}
.copy-item span {
    font-family: monospace;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.2s;
}
.copy-btn:hover {
    color: var(--secondary-color);
}

/* Responsive design for single product page */
@media (max-width: 992px) {
    .single-product-layout {
        grid-template-columns: 1fr;
    }
    .main-image {
        margin-bottom: 20px;
    }
    .right-sidebar {
        margin-top: 30px;
    }
    .product-info-header {
        text-align: center;
    }
    .product-meta {
        justify-content: center;
    }
    .product-info-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-info-tabs .tab-btn {
        flex-grow: 1;
        text-align: center;
    }
    .sidebar-sticky-content {
        position: static;
        top: 0;
    }
}
@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
    .price-and-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .buy-now-btn {
        width: 100%;
        text-align: center;
    }
}
/* --- Toast Notification Styling --- */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3b3bff;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
}


/* --- Checkout Page Specific Styles --- */
body {
    background-color: var(--background-color);
}

.main-header {
    background-color: var(--card-background);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-steps {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
}

.header-steps span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-steps .active {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-container {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    padding: 0 20px;
    align-items: flex-start;
}

.form-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-toggle {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 25px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: background-color 0.2s, color 0.2s;
}

.toggle-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.toggle-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.checkout-form {
    display: none;
}

.checkout-form.active {
    display: block;
}

.checkout-form h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: -10px;
    margin-bottom: 10px;
    text-decoration: none;
}
.forgot-password:hover {
    text-decoration: underline;
}

.order-summary .order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.item-name {
    font-weight: 600;
}

.item-license {
    font-size: 0.85rem;
    color: var(--text-light);
}

.item-price {
    font-weight: 600;
}

.order-total {
    padding: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-light);
}

.total-row.grand-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.payment-methods {
    padding-top: 10px;
}

.payment-methods h3 {
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
}

.payment-option:hover {
    border-color: var(--secondary-color);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background-color: #f0f5ff;
}

.payment-option .check-icon {
    position: absolute;
    right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.payment-option.selected .check-icon {
    opacity: 1;
}

.payment-option i.fab {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    color: var(--primary-color);
}

.payment-option img {
    height: 24px;
    margin-right: 15px;
}

.payment-option span {
    font-weight: 600;
}

.terms {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    padding: 0;
    text-align: center;
}

.terms a {
    color: var(--primary-color);
    text-decoration: underline;
}

.complete-purchase-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#payment-details-container {
    margin-top: 30px;
}

.payment-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.payment-info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}
.manual-payment-info {
    background-color: var(--background-color);
    border: 1px dashed var(--border-color);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}
.manual-payment-info strong {
    margin-right: 10px;
}
.manual-payment-info span {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-color);
}


/* --- Responsive Design for Checkout --- */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-steps {
        font-size: 0.8rem;
        gap: 10px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- All Products Page Styles --- */
.all-products-container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-background);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.search-filter {
    display: flex;
    flex-grow: 1;
    max-width: 400px;
}

.search-filter input {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.search-filter button {
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

.category-filter select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.page-link {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Login Page */ 

/* --- Login Page Styles --- */
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
    padding: 20px;
}

.login-card {
    background-color: var(--card-background);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    height: 40px;
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.login-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(93, 93, 255, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}
.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.social-login-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.social-login-divider span {
    background-color: var(--card-background);
    padding: 0 15px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    top: 50%;
    left: 0;
}

.social-login-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.social-btn:hover {
    opacity: 0.9;
}

.social-btn i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.google-btn {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid var(--border-color);
}

.facebook-btn {
    background-color: #1877f2;
    color: white;
}

.signup-link {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
}

.signup-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.signup-link a:hover {
    text-decoration: underline;
}

 /* === z-index সমস্যার চূড়ান্ত সমাধান === */
        .hero-section {
            position: relative; /* z-index কাজ করার জন্য এটি জরুরি */
            z-index: 10;      /* এটিকে অন্য সেকশনের উপরে রাখা হলো */
            background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
            color: #fff;
        }
        .product-section {
            position: relative;
            z-index: 1; /* এটিকে hero-section এর নিচে রাখা হলো */
        }
        img.footer-logo{max-width: 200px;}
        
        .nav-item.dropdown { position: relative; }
        .mega-menu { display: none; position: absolute; left: -50px; top: 100%; width: 550px; background-color: #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.15); border-radius: 8px; padding: 25px; z-index: 1000; border-top: 3px solid #007bff; }
        .nav-item.dropdown:hover .mega-menu { display: block; }
        .mega-menu-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
        .mega-menu-content a { padding: 6px 10px; font-size: 14px; color: #555; text-decoration: none; border-radius: 5px; transition: all 0.2s ease-in-out; }
        .mega-menu-content a:hover { background-color: #f0f5ff; color: #0056b3; transform: translateX(3px); }
        .footer-columns { display: flex; flex-wrap: wrap; justify-content: space-between; }
        .footer-col { width: 23%; padding: 0 15px; box-sizing: border-box; }
        @media (max-width: 768px) { .footer-col { width: 50%; margin-bottom: 20px; } }
        @media (max-width: 480px) { .footer-col { width: 100%; } }
        .product-card .card-content h3 { font-size: 13px; margin-bottom: 8px; line-height: 1.3; }
        .hero-search-box { position: relative; }
        #search-results-container { position: absolute; top: 100%; left: 0; right: 0; background-color: #fff; border: 1px solid #ddd; border-radius: 0 0 8px 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); max-height: 300px; overflow-y: auto; display: none; z-index: 999; }
        #search-results-container ul { list-style: none; margin: 0; padding: 0; }
        #search-results-container li a { display: flex; align-items: center; padding: 10px 15px; text-decoration: none; color: #333; border-bottom: 1px solid #eee; }
        #search-results-container li a:hover { background-color: #f5f5f5; }
        #search-results-container li img { width: 40px; height: 40px; border-radius: 4px; margin-right: 15px; object-fit: cover; }
        #search-results-container li span { font-size: 15px; }