/* Base Styles */
:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #bbdefb;
    --secondary-color: #ff9800;
    --secondary-dark: #f57c00;
    --text-color: #333333;
    --text-light: #757575;
    --background-color: #ffffff;
    --background-alt: #f5f7f9;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-view, .btn-add-to-cart, .btn-buy-now {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-view {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-view:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: white;
}

.btn-add-to-cart:hover {
    background-color: var(--primary-dark);
}

.btn-buy-now {
    background-color: var(--secondary-color);
    color: white;
}

.btn-buy-now:hover {
    background-color: var(--secondary-dark);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 4px;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2a3f5f 0%, #1e3a8a 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature h3 {
    margin-bottom: 1rem;
}

.statistics {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    text-align: center;
}

.stat {
    padding: 1.5rem;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cta-banner {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
}

.cta-banner h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* About Products Section */
.about-products {
    padding: 5rem 0;
    background-color: white;
}

.about-products h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-products p {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    text-align: justify;
}

.quality-assurance, .product-origin {
    max-width: 900px;
    margin: 3rem auto 0 auto;
    padding: 2rem;
    background-color: var(--background-alt);
    border-radius: var(--border-radius);
}

.quality-assurance h3, .product-origin h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quality-assurance ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.quality-assurance ul li {
    margin-bottom: 0.5rem;
}

/* "Did You Know" Section */
.did-you-know {
    padding: 5rem 0;
    background-color: rgba(30, 136, 229, 0.05);
}

.did-you-know h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.facts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fact {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    transition: var(--transition);
}

.fact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.fact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

/* Products Section */
.products {
    padding: 5rem 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
}

.product-rating span:first-child {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-light);
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-actions a, .product-actions button {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 350px;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -30px;
    left: -10px;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #263238;
    color: white;
    padding: 4rem 0 2rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-column address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column address p {
    margin-bottom: 0.5rem;
}

.footer-column address a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column address a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(38, 50, 56, 0.95);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accept {
    background-color: var(--success-color);
    color: white;
}

.btn-accept:hover {
    background-color: #3d8b40;
}

.btn-customize {
    background-color: transparent;
    border: 1px solid white !important;
    color: white;
}

.btn-customize:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-decline {
    background-color: transparent;
    color: white;
}

.btn-decline:hover {
    text-decoration: underline;
}

.cookie-policy {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cookie-policy a {
    color: white;
    text-decoration: underline;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification p {
    margin: 0;
}

/* Product Detail Page */
.breadcrumbs {
    background-color: var(--background-alt);
    padding: 1rem 0;
}

.breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs ul li {
    display: flex;
    align-items: center;
}

.breadcrumbs ul li:not(:last-child):after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumbs ul li:last-child {
    color: var(--text-light);
}

.product-detail {
    padding: 3rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.product-info h1 {
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-rating .stars {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.product-id {
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1rem;
}

.original-price {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 1rem;
}

.discount {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
}

.product-availability {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.in-stock {
    color: var(--success-color);
    font-weight: 600;
}

.delivery {
    color: var(--text-light);
}

.product-short-description {
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.qty-btn.minus {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.qty-btn.plus {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.qty-btn:hover {
    background-color: var(--primary-light);
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-add-to-cart, .btn-buy-now {
    flex: 1;
}

.product-secure {
    display: flex;
    gap: 1.5rem;
}

.secure-item {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.secure-item svg {
    margin-right: 0.5rem;
}

/* Product Details Tabs */
.product-details-tabs {
    padding: 3rem 0;
    background-color: var(--background-alt);
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 1.5rem;
}

.tab-content p {
    margin-bottom: 1.5rem;
}

.tab-content h4 {
    margin: 2rem 0 1rem 0;
}

.tab-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tab-content ul li {
    margin-bottom: 0.5rem;
}

.instructor-quote, .expert-quote {
    background-color: rgba(30, 136, 229, 0.05);
    padding: 2rem;
    border-left: 3px solid var(--primary-color);
    margin: 2rem 0;
}

.instructor-quote blockquote, .expert-quote blockquote {
    font-style: italic;
    margin-bottom: 1rem;
}

.instructor-quote cite, .expert-quote cite {
    font-weight: 600;
}

/* Module Layout for Curriculum */
.module {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.module-header {
    background-color: var(--primary-light);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-header h4 {
    margin-bottom: 0;
    color: var(--primary-dark);
}

.module-length {
    font-size: 0.9rem;
    color: var(--text-light);
}

.module-content {
    padding: 1.5rem;
    background-color: white;
}

.bonus-content {
    background-color: rgba(255, 152, 0, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.bonus-content h4 {
    color: var(--secondary-dark);
    margin-bottom: 1rem;
}

/* Instructor Profile */
.instructor-profile, .author-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.instructor-image, .author-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.instructor-title, .author-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.instructor-credentials, .author-credentials {
    margin-top: 2rem;
}

.instructor-credentials h5, .author-credentials h5 {
    margin-bottom: 1rem;
}

/* Reviews Section */
.review-summary {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.review-average {
    text-align: center;
    min-width: 150px;
}

.average-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.rating-stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.total-reviews {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rating-level {
    width: 80px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    margin: 0 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--secondary-color);
}

.rating-percentage {
    width: 50px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.reviewer-rating {
    color: var(--secondary-color);
}

.review-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.review-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.review-pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.review-pagination a.next {
    width: auto;
    padding: 0 1rem;
}

/* FAQ Section */
.faq-list {
    margin-bottom: 2rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h4 {
    margin-bottom: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 500px;
}

/* Related Products Section */
.related-products {
    padding: 5rem 0;
    background-color: white;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Screenshots Section */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.screenshot-image {
    background-color: #f5f7f9;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h4 {
    margin-bottom: 0.5rem;
}

.screenshot-caption p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Chapter Layout for Product Contents */
.chapter {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.chapter-header {
    background-color: #f5f7f9;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-header h4 {
    margin-bottom: 0;
}

.chapter-pages {
    font-size: 0.9rem;
    color: var(--text-light);
}

.chapter-content {
    padding: 1.5rem;
}

/* About Page Styles */
.page-header {
    background: linear-gradient(135deg, #2a3f5f 0%, #1e3a8a 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.page-header h1 {
    color: white;
}

.page-header p {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.about-story {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.our-values {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.our-values h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.team-section {
    padding: 5rem 0;
}

.team-section h2, .section-intro {
    text-align: center;
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-photo {
    height: 300px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--background-alt);
    color: var(--primary-color);
    transition: var(--transition);
}

.member-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

.achievements {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: white;
}

.achievements h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--background-alt);
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Contact Page Styles */
.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-icon {
    margin-right: 1.5rem;
    display: flex;
    align-items: flex-start;
    color: var(--primary-color);
}

.info-content h3 {
    margin-bottom: 0.5rem;
}

.social-contact {
    margin-top: 3rem;
}

.social-contact h3 {
    margin-bottom: 1.5rem;
}

.contact-form-container h2 {
    margin-bottom: 2rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.full-width {
    grid-column: 1 / -1;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.form-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.success-icon svg {
    width: 64px;
    height: 64px;
}

.faq-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Cart Page Styles */
.cart-section {
    padding: 5rem 0;
}

.cart-empty {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-cart-icon {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cart-empty h2 {
    margin-bottom: 1rem;
}

.cart-empty p {
    margin-bottom: 2rem;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    background-color: var(--background-alt);
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-weight: 600;
}

.cart-header-item {
    text-align: center;
}

.cart-header-item.product-col {
    text-align: left;
}

.cart-items {
    background-color: white;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: 1.5rem;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cart-price, .cart-quantity, .cart-subtotal {
    text-align: center;
}

.cart-quantity-selector {
    display: inline-flex;
    align-items: center;
}

.cart-quantity-selector input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
}

.cart-quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.cart-quantity-btn.minus {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.cart-quantity-btn.plus {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.cart-remove {
    text-align: center;
}

.cart-remove-btn {
    background-color: transparent;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    background-color: white;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.coupon-form {
    display: flex;
}

.coupon-form input {
    width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.btn-apply-coupon {
    background-color: var(--text-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.btn-apply-coupon:hover {
    background-color: var(--primary-color);
}

.btn-update-cart {
    background-color: var(--text-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-update-cart:hover {
    background-color: var(--primary-color);
}

.cart-totals {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 3rem;
}

.cart-totals h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.totals-table {
    margin-bottom: 2rem;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.totals-row.discount-row {
    color: var(--success-color);
}

.totals-row.total-row {
    font-weight: 700;
    font-size: 1.2rem;
}

.total-value {
    color: var(--primary-color);
}

.secure-checkout {
    margin-top: 2rem;
}

.secure-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.secure-badge {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.secure-badge svg {
    margin-right: 0.5rem;
}

.btn-checkout {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-checkout:hover {
    background-color: var(--primary-dark);
}

.continue-shopping {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.continue-shopping h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Checkout Page Styles */
.checkout-section {
    padding: 5rem 0;
}

.checkout-empty {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-checkout-icon {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.checkout-form-container h2, .order-summary h2 {
    margin-bottom: 2rem;
}

.checkout-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.order-summary {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: fit-content;
}

.order-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.order-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-product-name {
    font-weight: 500;
}

.order-product-quantity {
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-row-value {
    text-align: right;
}

.order-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.btn-place-order {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.btn-place-order:hover {
    background-color: var(--primary-dark);
}

/* Success Page Styles */
.success-section {
    padding: 5rem 0;
}

.success-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 2rem;
}

.success-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.success-details {
    text-align: left;
    margin-bottom: 2rem;
}

.success-details h3 {
    margin: 2rem 0 1rem 0;
}

.success-details ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.success-details ul li {
    margin-bottom: 0.5rem;
}

.success-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.recommendations {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.recommendations h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .features-grid, .products-grid, .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .product-layout, .checkout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .instructor-profile, .author-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .instructor-image, .author-image {
        max-width: 200px;
        margin: 0 auto 2rem auto;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .statistics {
        flex-direction: column;
    }
    
    .stat {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .cart-header, .cart-item {
        grid-template-columns: 2fr 1fr 1fr 0.5fr;
    }
    
    .price-col, .cart-price {
        display: none;
    }
    
    .review-summary {
        flex-direction: column;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .success-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-header, .cart-item {
        grid-template-columns: 2fr 1fr 0.5fr;
    }
    
    .subtotal-col, .cart-subtotal {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial {
        max-width: 100%;
    }
}
