/* 
   Pizzaiolo - Artisan Pizza E-commerce
   Main Stylesheet
   2023
*/

/* Base Styles and Typography */
:root {
    --primary: #E33B23;      /* Tomato red */
    --primary-dark: #C32616; /* Darker red */
    --secondary: #346C39;    /* Forest green */
    --accent: #F7B02B;       /* Golden yellow */
    --background: #FFF8F0;   /* Off-white */
    --text: #272321;         /* Dark brown */
    --text-light: #5C5550;   /* Lighter brown */
    --light: #FFFFFF;        /* White */
    --border: #E0D8D0;       /* Light beige */
    --success: #4CAF50;      /* Green */
    --error: #F44336;        /* Red */
    --warning: #FF9800;      /* Orange */
    --info: #2196F3;         /* Blue */
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

button {
    cursor: pointer;
    font-family: var(--font-body);
}

ul {
    list-style: none;
}

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

/* Header and Navigation */
header {
    background-color: var(--light);
    padding: 1rem 0;
    box-shadow: 0 2px 10px 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: 60px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    padding: 0.5rem;
    position: relative;
}

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

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    width: 30px;
    height: 21px;
    justify-content: space-between;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/featured/?pizza,italian') no-repeat center center;
    background-size: cover;
    color: var(--light);
    padding: 5rem 0;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.welcome-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background-color: #295030;
    color: var(--light);
}

.btn-tertiary {
    background-color: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

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

.features h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

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

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

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

.feature-icon {
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(227, 59, 35, 0.1);
    border-radius: 50%;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

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

.stat {
    padding: 1rem;
}

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

.cta-box {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary);
    color: var(--light);
    border-radius: var(--radius);
    margin-top: 2rem;
}

.cta-box h3 {
    margin-bottom: 1.5rem;
}

/* About Product Section */
.about-product {
    padding: 5rem 0;
    background-color: var(--background);
}

.about-product h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.about-product h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.quality-feature {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quality-feature h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

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

.testimonials h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

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

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

.stars {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.customer {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: var(--background);
}

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

.products h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

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

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

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

.product-link {
    display: block;
    color: var(--text);
    text-decoration: none;
}

.product-image {
    height: 200px;
    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-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.3rem;
}

.price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 1rem;
}

.description {
    padding: 0 1rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.product-actions button {
    flex: 1;
}

/* Pizza Builder Promo */
.pizza-builder-promo {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/featured/?pizza,cooking') no-repeat center center;
    background-size: cover;
    color: var(--light);
    text-align: center;
}

.promo-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.promo-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.promo-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #272321;
    color: var(--light);
    padding: 4rem 0 2rem;
}

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

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

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #CCC;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

address {
    font-style: normal;
    line-height: 1.8;
}

address a {
    color: #CCC;
}

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

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

.social-links 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: var(--light);
    transition: var(--transition);
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--light);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 1000;
    display: none;
}

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

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

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

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/featured/?italian,food') no-repeat center center;
    background-size: cover;
    color: var(--light);
    padding: 4rem 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-banner p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
}

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

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

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

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

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

.breadcrumb li:last-child {
    color: var(--primary);
}

/* Product Detail Page */
.product-detail {
    padding: 3rem 0;
}

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

.product-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.product-info .price {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0;
}

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

.product-info .count {
    margin-left: 0.5rem;
    color: var(--text-light);
}

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

.product-meta {
    background-color: var(--background);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    margin-bottom: 1rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.spice-level {
    margin-bottom: 2rem;
}

.spice-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spice-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #DDD;
}

.spice-dot.active {
    background-color: var(--primary);
}

.spice-label {
    margin-left: 0.5rem;
    font-weight: bold;
}

.size-selector {
    margin-bottom: 2rem;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.size-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.size-option input {
    margin-right: 0.5rem;
}

.price-diff {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.quantity {
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: var(--background);
    border: 1px solid var(--border);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

/* Product Features */
.product-features {
    padding: 3rem 0;
    background-color: var(--background);
}

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

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

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

.feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

/* Product Reviews */
.product-reviews {
    padding: 3rem 0;
}

.review-summary {
    display: flex;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--radius);
    flex-wrap: wrap;
    gap: 2rem;
}

.review-average {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.big-rating {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

.review-bars {
    flex: 2;
    min-width: 300px;
}

.review-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.label {
    width: 50px;
}

.bar {
    flex: 1;
    height: 8px;
    background-color: #DDD;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 0.5rem;
}

.fill {
    height: 100%;
    background-color: var(--primary);
}

.percent {
    width: 40px;
    text-align: right;
}

.reviews-list {
    margin-bottom: 2rem;
}

.review {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reviewer {
    font-weight: bold;
}

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

.review h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.see-more {
    text-align: center;
}

/* Related Products */
.related-products {
    padding: 3rem 0;
    background-color: var(--background);
}

.product-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--light);
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: 1001;
    max-width: 400px;
    display: none;
}

.notification-content {
    display: flex;
    flex-direction: column;
}

.notification-icon {
    color: var(--success);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.notification-text {
    margin-bottom: 1rem;
}

.notification-text h3 {
    margin-bottom: 0.5rem;
}

.notification-buttons {
    display: flex;
    gap: 1rem;
}

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

.cart-empty {
    text-align: center;
    padding: 3rem;
}

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

.cart-items {
    width: 100%;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    padding: 1rem 0;
    border-bottom: 2px solid var(--border);
    font-weight: bold;
}

.cart-items-container {
    margin-bottom: 2rem;
}

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

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

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

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

.cart-product-name {
    font-weight: 600;
}

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

.cart-quantity .quantity-selector {
    margin-top: 0;
}

.cart-remove button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.cart-remove button:hover {
    color: var(--error);
}

.cart-summary {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

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

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

.cart-actions {
    display: flex;
    justify-content: space-between;
}

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

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

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

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

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

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.order-summary {
    background-color: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.order-summary h2 {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

.order-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.order-item-quantity {
    font-size: 0.9rem;
}

.order-totals {
    margin-top: 2rem;
}

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

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

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

.success-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.success-content h1 {
    margin-bottom: 1.5rem;
}

.success-details {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--background);
    border-radius: var(--radius);
}

.estimated-time {
    margin: 2rem 0;
}

.estimated-time h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.estimated-time p {
    font-size: 1.5rem;
    font-weight: bold;
}

.success-actions {
    margin-top: 2rem;
}

/* Loyalty Section */
.loyalty-section {
    padding: 3rem 0;
    background-color: var(--primary);
    color: var(--light);
    text-align: center;
}

.loyalty-content {
    max-width: 600px;
    margin: 0 auto;
}

.loyalty-content h2 {
    margin-bottom: 1rem;
}

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

/* Also Like Section */
.also-like {
    padding: 3rem 0;
}

.also-like h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.quick-add {
    margin: 1rem;
    width: calc(100% - 2rem);
}

/* About Story Section */
.about-story {
    padding: 3rem 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.value-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Our Team Section */
.our-team {
    padding: 4rem 0;
    background-color: var(--background);
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

.team-member {
    background-color: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

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

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.team-member p:first-of-type {
    color: var(--primary);
    font-weight: 600;
}

.team-member .social-links {
    justify-content: center;
    margin: 1rem 0 1.5rem;
}

.team-member .social-links a {
    width: 35px;
    height: 35px;
    background-color: var(--background);
    color: var(--text);
}

/* Join Team Section */
.join-team {
    padding: 4rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/featured/?chef,cooking') no-repeat center center;
    background-size: cover;
}

.join-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--light);
}

.join-content h2 {
    margin-bottom: 1.5rem;
}

.join-content p {
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
}

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

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

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

.icon {
    margin-right: 1rem;
    color: var(--primary);
}

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

.social-connect h3 {
    margin-bottom: 1rem;
}

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

/* Store Locator */
.store-locator {
    padding: 3rem 0;
    background-color: var(--background);
    text-align: center;
}

.locator-form {
    display: flex;
    max-width: 600px;
    margin: 2rem auto 0;
}

.locator-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 1rem;
}

.locator-input:focus {
    outline: none;
    border-color: var(--primary);
}

.locator-form .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Message Overlay */
.message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.message-content {
    background-color: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

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

.message-content h3 {
    margin-bottom: 1rem;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: var(--light);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 1rem;
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-price::before {
        content: 'Price: ';
        font-weight: bold;
    }
    
    .cart-quantity::before {
        content: 'Quantity: ';
        font-weight: bold;
        margin-right: 0.5rem;
    }
    
    .cart-total::before {
        content: 'Total: ';
        font-weight: bold;
    }
    
    .cart-remove {
        text-align: right;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid,
    .product-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions button {
        width: 100%;
    }
    
    .locator-form {
        flex-direction: column;
    }
    
    .locator-input {
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .locator-form .btn {
        border-radius: 0 0 var(--radius) var(--radius);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}
