/* Base Styles and Typography */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-text: #6c7a89;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e1e8ed;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --header-font: 'Georgia', serif;
    --body-font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 4px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    margin-bottom: 0.5em;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1em;
}

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

a:hover {
    color: var(--accent-color);
}

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

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

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-family: var(--body-font);
}

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

.primary-btn:hover {
    background-color: #1e2b38;
    color: white;
}

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

.secondary-btn:hover {
    background-color: #2980b9;
    color: white;
}

.text-btn {
    background: none;
    color: var(--secondary-color);
    padding: 10px 0;
}

.text-btn:hover {
    color: var(--accent-color);
}

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

.view-btn:hover {
    background-color: var(--border-color);
}

/* Header Styles */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.header-icons {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    color: var(--primary-color);
    margin-left: 15px;
}

.cart-icon:hover,
.cart-icon.active {
    color: var(--secondary-color);
}

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

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1600x900/?library');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 40px;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.benefit-icon {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.benefit-card h3 {
    margin-bottom: 15px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 50px;
    text-align: center;
}

.stat {
    padding: 20px;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    color: var(--light-text);
    font-size: 1.1rem;
}

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

.cta h3 {
    color: white;
    margin-bottom: 20px;
}

/* About Books Section */
.about-books {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.about-books h2 {
    text-align: center;
    margin-bottom: 30px;
}

.about-books p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.book-features {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.book-features h3 {
    margin-bottom: 20px;
}

.book-features ul {
    list-style-type: none;
    margin: 0;
}

.book-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
}

.book-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.quality-guarantee {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 30px 0;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

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

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

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.author {
    color: var(--light-text);
    margin-bottom: 10px;
    font-style: italic;
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.description {
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Product Detail Page */
.product-detail {
    padding: 60px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

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

.product-detail-info h1 {
    margin-bottom: 10px;
}

.product-detail-info .author {
    margin-bottom: 15px;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    color: #f1c40f;
    margin-right: 10px;
    display: flex;
}

.half-star {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

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

.stock {
    color: var(--success-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.product-specs {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.product-specs p {
    margin-bottom: 8px;
}

.quantity-selector {
    margin-bottom: 25px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    background-color: var(--light-bg);
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--border-color);
}

.quantity-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    -moz-appearance: textfield;
}

.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-tabs {
    margin-bottom: 60px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--light-text);
}

.tab-btn:hover {
    color: var(--secondary-color);
}

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

.tab-content {
    display: none;
    padding: 20px 0;
}

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

.tab-content h3 {
    margin-bottom: 15px;
}

.tab-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 8px;
}

.review {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.review:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.reviewer {
    font-weight: 600;
}

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

.review-rating {
    color: #f1c40f;
    margin-top: 5px;
}

.related-products h2 {
    margin-bottom: 30px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-product-card {
    text-align: center;
    transition: var(--transition);
}

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

.related-product-card img {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.related-product-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* About Us Page */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

.about-story {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-text h2 {
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.mission-values h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.value-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-icon {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.statistics {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.statistics h2 {
    text-align: center;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.achievements {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.achievements h3 {
    margin-bottom: 20px;
}

.achievements ul {
    list-style-type: none;
    margin: 0;
}

.achievements li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.achievements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.team-section {
    padding: 80px 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    aspect-ratio: 1/1;
    object-fit: cover;
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member p:first-of-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--light-text);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.sustainability {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.sustainability h2 {
    text-align: center;
    margin-bottom: 40px;
}

.sustainability-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.sustainability-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.sustainability-image {
    display: flex;
    justify-content: center;
}

.eco-badge {
    background-color: var(--bg-color);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    color: var(--success-color);
}

.eco-badge p {
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--body-font);
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2,
.contact-form-container h2 {
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.info-block {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    margin-right: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: flex-start;
}

.info-content h3 {
    margin-bottom: 10px;
}

.info-content p {
    margin-bottom: 5px;
}

.social-connect h3 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.contact-form-container {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

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

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--success-color);
}

.form-success svg {
    margin-bottom: 15px;
}

.faq-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.faq-item {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Cart Page */
.cart-section {
    padding: 60px 0;
}

.cart-empty {
    text-align: center;
    padding: 60px 0;
}

.cart-empty svg {
    color: var(--light-text);
    margin-bottom: 20px;
}

.cart-empty h2 {
    margin-bottom: 15px;
}

.cart-empty p {
    margin-bottom: 30px;
    color: var(--light-text);
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-item {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item-image {
    width: 120px;
    height: 150px;
    margin-right: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin-bottom: 5px;
}

.cart-item-details .author {
    margin-bottom: 10px;
}

.cart-item-price {
    font-weight: bold;
    margin-bottom: 15px;
}

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

.cart-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: fit-content;
    margin-right: 20px;
}

.quantity-adjust {
    background-color: var(--light-bg);
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-adjust:hover {
    background-color: var(--border-color);
}

.cart-quantity input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    -moz-appearance: textfield;
}

.cart-quantity input::-webkit-outer-spin-button,
.cart-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    color: var(--error-color);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.remove-item:hover {
    text-decoration: underline;
}

.cart-summary {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.cart-actions {
    margin: 30px 0;
}

.cart-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

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

.secure-checkout svg {
    margin-right: 8px;
}

.recommendations {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.recommendations h2 {
    text-align: center;
    margin-bottom: 40px;
}

.recommended-books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

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

.book-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.book-card h3 {
    margin: 15px 0 5px;
    padding: 0 15px;
}

.book-card .author {
    padding: 0 15px;
}

.book-card .price {
    padding: 0 15px;
}

.book-card .btn {
    margin: 0 15px;
}

/* Checkout Page */
.checkout-header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
}

.checkout-header h1 {
    color: white;
    text-align: center;
    margin-bottom: 25px;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.step {
    display: flex;
    align-items: center;
    opacity: 0.6;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.checkout-section {
    padding: 60px 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.checkout-form-container {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.checkout-form-container h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
}

.checkout-form textarea {
    resize: vertical;
}

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

.checkout-form .checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkout-form .checkbox-group label {
    font-weight: normal;
}

.checkout-form .checkbox-group.required label::after {
    content: '*';
    color: var(--error-color);
    margin-left: 4px;
}

.checkout-form button {
    margin-top: 20px;
    width: 100%;
}

.checkout-summary {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item {
    display: flex;
    margin-bottom: 20px;
}

.checkout-item-image {
    width: 80px;
    height: 100px;
    margin-right: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-details h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.checkout-item-details .author {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.checkout-item-price {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.checkout-totals {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.grand-total {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.secure-checkout-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    padding: 15px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: var(--border-radius);
    color: var(--success-color);
}

.secure-icon {
    margin-right: 10px;
}

.order-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.order-help h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Success Page */
.success-section {
    padding: 80px 0;
    text-align: center;
}

.success-content {
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 25px;
}

.success-content h1 {
    margin-bottom: 25px;
}

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

.email-confirmation {
    color: var(--light-text);
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-purchase-info {
    max-width: 900px;
    margin: 0 auto;
}

.post-purchase-info h2 {
    text-align: center;
    margin-bottom: 40px;
}

.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.step-icon {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3,
.footer-column h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

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

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

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-icons a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--body-font);
}

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

.cookie-btn.accept:hover {
    background-color: #27ae60;
}

.cookie-btn.customize {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.cookie-btn.customize:hover {
    background-color: var(--border-color);
}

.cookie-btn.decline {
    background-color: var(--light-text);
    color: white;
}

.cookie-btn.decline:hover {
    background-color: #566573;
}

.cookie-policy {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    transform: translateX(200%);
    transition: transform 0.3s ease-out;
}

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

/* Media Queries */
@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sustainability-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .benefits-container,
    .values-container,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav-links li {
        margin: 5px 0;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        margin-bottom: 15px;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-content {
        padding: 10px;
    }
}
