/* css/style.css */

/*
==================================
  TABLE OF CONTENTS
==================================
1. Global Styles & Variables
2. Reusable Components
3. Header & Navigation
4. Footer
5. Product Card & Section Styles
6. Page-Specific & Layout Styles
   - Hero Section
   - Intro Section
   - Shop Layout & Filters
   - Product Detail Page
   - About Page
   - Contact Page
7. Cart Wrapper (Side Cart)
8. Cart & Checkout Page Styles
9. Order Success Page Styles
10. Customer Account & Auth Styles
11. Pagination Styles
12. Stripe Element Styles
13. Media Queries (Responsive)
*/


/* 1. Global Styles & Variables
   ------------------------------------------------- */
:root {
    --primary-color: #222222;
    --primary-brand-color: #000000;
    --light-brand-color: #f5f5f5;
    --accent-color: #555555;
    --sale-color: #ff2e2e;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --font-family-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-serif: 'Lora', Georgia, serif;
    --container-width: 1200px;
    --spacing-unit: 1rem;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Lora:wght@400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family-sans); color: var(--primary-color); background-color: var(--white-color); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-family-serif); font-weight: 500; line-height: 1.2; margin-bottom: var(--spacing-unit); }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; }
p { margin-bottom: var(--spacing-unit); }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; }


/* 2. Reusable Components
   ------------------------------------------------- */
.btn-primary, .btn-outline, .btn-dark {
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.btn-primary:hover, .btn-outline:hover, .btn-dark:hover { transform: translateY(-3px); }
.btn-primary { background-color: var(--accent-color); color: var(--white-color); border: 2px solid var(--accent-color); }
.btn-outline { background: transparent; color: var(--primary-brand-color); border: 2px solid var(--accent-color); }
.btn-outline:hover { background: var(--accent-color); color: var(--white-color); }
.btn-dark { background-color: var(--primary-color); color: var(--white-color); border: 2px solid var(--primary-color); }
.btn-dark:hover { background-color: #555; border-color: #555; }

.form-group { margin-bottom: var(--spacing-unit); }
.form-group label { display: block; margin-bottom: calc(var(--spacing-unit) / 2); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: calc(var(--spacing-unit) * 0.85); border: 1px solid var(--border-color); font-family: var(--font-family-sans); font-size: 1rem; border-radius: 4px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.25); outline: none; }


/* 3. Header & Navigation
   ------------------------------------------------- */
.main-header { padding: var(--spacing-unit) 0; background-color: var(--primary-brand-color); position: sticky; top: 0; z-index: 100; }
/* START: MODIFICATION - Change to a 2-column grid for mobile */
.main-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Left & Right columns */
    align-items: center;
}
/* END: MODIFICATION */

.main-header a { color: var(--white-color); }
.main-header a:hover { color: #ccc; }
.logo { font-family: var(--font-family-serif); font-size: 1.5rem; font-weight: bold; letter-spacing: 2px; }

/* START: MODIFICATION - Adjust grid placement */
.main-header nav {
    grid-column: 1 / 2; /* Position nav/burger on the left */
    justify-self: start;
    display: flex;
    align-items: center;
}

/* Hide the logo on mobile by default */
.main-header .logo {
    display: none;
}

.main-header .header-icons {
    grid-column: 2 / 3; /* Position icons on the right */
    justify-self: end;
}
/* END: MODIFICATION */

.nav-links { display: none; list-style: none; }
.nav-links li { margin-left: calc(var(--spacing-unit) * 2); }
.nav-links a { font-weight: 500; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
.header-icons { display: flex; align-items: center; }
.header-icons a, .header-icons .cart-icon { margin-left: var(--spacing-unit); }
.header-icons .cart-icon { cursor: pointer; }
.header-icons svg { stroke: var(--white-color); }
.cart-icon { position: relative; }
.cart-count-badge { position: absolute; top: -8px; right: -10px; background-color: var(--sale-color); color: var(--white-color); width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.75rem; font-weight: bold; border: 1px solid var(--primary-brand-color); }
.cart-count-badge.hidden { display: none; }

.mobile-nav-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white-color);
    padding: 0; 
    line-height: 1; 
    display: flex; 
    align-items: center;
}

.nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-brand-color); border-top: 1px solid var(--accent-color); padding: var(--spacing-unit); }
.nav-links.active li { margin: var(--spacing-unit) 0; text-align: center; }
.user-menu-container { position: relative; }
.user-menu-button { background: none; border: none; cursor: pointer; padding: 0; display: flex; }
.user-dropdown { position: absolute; top: calc(100% + 15px); right: 0; background-color: var(--white-color); border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 220px; z-index: 100; border: 1px solid var(--border-color); overflow: hidden; }
.user-dropdown-header { padding: 1rem; border-bottom: 1px solid var(--border-color); }
.user-dropdown a.user-dropdown-link, .user-dropdown button.user-dropdown-link { display: flex; align-items: center; width: 100%; padding: 0.75rem 1rem; text-align: left; font-size: 0.9rem; color: var(--primary-color); transition: background-color 0.2s ease, color 0.2s ease; }
.user-dropdown-link svg { width: 1.25rem; height: 1.25rem; margin-right: 0.75rem; stroke: #6b7280; flex-shrink: 0; }
.user-dropdown a.user-dropdown-link:hover, .user-dropdown button.user-dropdown-link:hover { background-color: var(--light-brand-color); color: var(--primary-color); }
.user-dropdown-link.logout { border-top: 1px solid var(--border-color); background: none; font-family: inherit; cursor: pointer; }


/* 4. Footer
   ------------------------------------------------- */
.main-footer { background-color: var(--primary-brand-color); color: var(--white-color); padding: calc(var(--spacing-unit) * 4) 0; }
.main-footer a { color: var(--white-color); }
.main-footer a:hover { color: #ccc; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--spacing-unit) * 3); text-align: center; }
.footer-section h4 { text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; margin-bottom: var(--spacing-unit); }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: calc(var(--spacing-unit) / 2); }
.footer-brand .logo { font-size: 1.8rem; margin-bottom: var(--spacing-unit); }
.footer-brand p { font-size: 0.9rem; line-height: 1.5; color: #ccc; }
.newsletter-form { display: flex; max-width: 350px; margin: 0 auto; }
.newsletter-form input { background-color: #fff; border: 1px solid var(--accent-color); width: 100%; padding: calc(var(--spacing-unit) * 0.75); color: var(--primary-color); border-radius: 4px 0 0 4px; border-right: none; }
.newsletter-form button { background-color: var(--white-color); color: var(--primary-brand-color); border: 1px solid var(--accent-color); border-radius: 0 4px 4px 0; padding: 0 calc(var(--spacing-unit) * 1.5); text-transform: uppercase; font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.newsletter-form button:hover { background-color: var(--accent-color); border-color: var(--accent-color); }
.social-links { margin-top: calc(var(--spacing-unit) * 1.5); }
.social-links a { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; background-color: rgba(255, 255, 255, 0.1); color: var(--white-color); border-radius: 50%; margin: 0 calc(var(--spacing-unit) / 3); font-size: 1rem; transition: all 0.3s ease; }
.social-links a:hover { background-color: var(--white-color); color: var(--primary-brand-color); transform: scale(1.1); }
.footer-bottom { text-align: center; margin-top: calc(var(--spacing-unit) * 3); padding-top: calc(var(--spacing-unit) * 2); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.8rem; color: #ccc; }


/* 5. Product Card & Section Styles
   ------------------------------------------------- */
.product-section { padding: calc(var(--spacing-unit) * 6) 0; text-align: center; background-color: var(--light-brand-color); }
.product-section h2 { margin-bottom: calc(var(--spacing-unit) * 3); font-size: 2.2rem; }
.product-slider-container { position: relative; padding: 0 70px; }
.product-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 90%; gap: calc(var(--spacing-unit) * 2); overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: var(--spacing-unit); }
.product-grid::-webkit-scrollbar { display: none; }
.shop-products .product-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.product-card { background-color: var(--white-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 4px; text-align: center; padding: var(--spacing-unit); scroll-snap-align: start; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.product-image-container { position: relative; margin-bottom: var(--spacing-unit); }
.product-image-container img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.sale-badge { position: absolute; top: 15px; left: 15px; background-color: var(--sale-color); color: var(--white-color); padding: 3px 10px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; border-radius: 3px; z-index: 2; }
.product-card-info { display: flex; flex-direction: column; flex-grow: 1; }
.product-card-info h3 { font-family: var(--font-family-sans); font-weight: 700; font-size: 1.1rem; margin-bottom: calc(var(--spacing-unit) / 2); }
.product-card-info .description { font-size: 0.9rem; color: #777; margin-bottom: var(--spacing-unit); }
.product-card-info .price { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); margin-bottom: var(--spacing-unit); }
.product-card-info .price del { color: #999; font-weight: 400; margin-right: 8px; }
.btn-product { display: inline-flex; align-items: center; justify-content: center; background-color: var(--accent-color); color: var(--white-color); border: none; padding: 10px 20px; border-radius: 4px; text-transform: uppercase; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; cursor: pointer; transition: background-color 0.3s ease; margin-top: auto; }
.btn-product:hover { background-color: #333; }
.btn-product .fas { margin-right: 8px; }
.slider-arrow { position: absolute; top: 40%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.8); color: #000; border: 1px solid #ddd; width: 45px; height: 45px; border-radius: 50%; font-size: 1rem; cursor: pointer; z-index: 10; display: none; transition: all 0.3s ease; }
.slider-arrow:hover { background-color: #fff; transform: translateY(-50%) scale(1.1); }
.slider-arrow.prev-arrow { left: 10px; }
.slider-arrow.next-arrow { right: 10px; }
.view-all-btn-container { margin-top: calc(var(--spacing-unit) * 3); }


/* 6. Page-Specific & Layout Styles
   ------------------------------------------------- */
.page-header { background-color: var(--light-brand-color); padding: calc(var(--spacing-unit) * 4) 0; text-align: center; margin-bottom: 0; }
.page-header p.text-lg { font-size: 1.2rem; color: #666; margin-top: 0.5rem; }
.page-wrapper { padding: calc(var(--spacing-unit) * 4) 0; }
.hero { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 85vh; background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), url('https://placehold.co/1600x900/d4c8be/1a1a1a?text=BLANCO+HERO'); background-size: cover; background-position: center; color: var(--white-color); padding: var(--spacing-unit); }
.hero .container { max-width: 800px; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero p { font-size: 1.25rem; margin: 1.5rem 0 2.5rem 0; line-height: 1.7; }
.hero .btn-primary { border: 2px solid var(--white-color); background: transparent; padding: 15px 40px; font-size: 1rem; }
.hero .btn-primary:hover { background-color: rgba(255, 255, 255, 0.1); color: var(--white-color); }
.intro-section { padding: calc(var(--spacing-unit) * 6) 0; text-align: center; }
.intro-section h2 { font-size: 2.2rem; }
.intro-section p { font-size: 1.1rem; color: #666; line-height: 1.8; }
.shop-layout { display: grid; grid-template-columns: 1fr; gap: calc(var(--spacing-unit) * 3); }
.shop-filters { background-color: var(--light-brand-color); padding: calc(var(--spacing-unit) * 1.5); border-radius: 4px; align-self: start; }
.shop-filters h3 { font-family: var(--font-family-sans); font-weight: 700; font-size: 1.2rem; padding-bottom: var(--spacing-unit); border-bottom: 1px solid var(--border-color); margin-bottom: var(--spacing-unit); }
.shop-filters ul { list-style: none; margin: 0; padding: 0; }
.shop-filters li a { display: block; padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 1); border-radius: 4px; font-weight: 500; transition: all 0.2s ease-in-out; }
.shop-filters li a:hover { background-color: var(--white-color); color: var(--primary-brand-color); }
.shop-filters a.current-category { background-color: var(--primary-brand-color); color: var(--white-color); font-weight: 700; }
.shop-filters a.current-category:hover { background-color: var(--primary-brand-color); color: var(--white-color); }
.no-products-found { text-align: center; padding: 4rem 2rem; border: 2px dashed var(--border-color); border-radius: 4px; }
.no-products-found h3 { margin-bottom: 0.5rem; }
.no-products-found p { color: #666; margin-bottom: 2rem; }
.product-detail-layout { display: grid; grid-template-columns: 1fr; gap: calc(var(--spacing-unit) * 3); }
.product-images img { border-radius: 4px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); }
.product-info .price { font-size: 1.8rem; color: var(--primary-color); font-weight: 700; }
.product-info .add-to-cart-form { margin-top: calc(var(--spacing-unit) * 1.5); }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; }
.quantity-selector button { background-color: var(--light-brand-color); border: none; cursor: pointer; padding: 10px 15px; font-size: 1rem; }
.quantity-selector input { width: 50px; text-align: center; border: none; font-size: 1rem; -moz-appearance: textfield; }
.quantity-selector input::-webkit-outer-spin-button, .quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add-to-cart-form .btn-primary { width: 100%; }
.breadcrumb { font-size: 0.9rem; padding: var(--spacing-unit) 0; margin-bottom: calc(var(--spacing-unit) * 2); color: #888; border-bottom: 1px solid var(--border-color); }
.breadcrumb a { color: #888; text-decoration: none; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--primary-brand-color); }
.breadcrumb .separator { margin: 0 10px; }
.breadcrumb .current { color: var(--primary-color); font-weight: 500; }
.product-thumbnails { display: flex; gap: 10px; margin-top: 15px; }
.thumbnail-image { width: 80px; height: 80px; object-fit: cover; cursor: pointer; border: 2px solid var(--border-color); border-radius: 4px; transition: border-color 0.3s ease, opacity 0.3s ease; opacity: 0.7; }
.thumbnail-image:hover, .thumbnail-image.active { border-color: var(--accent-color); opacity: 1; }
.about-page.page-wrapper, .contact-page.page-wrapper { padding-top: 0; padding-bottom: 0; }
.about-section-split { padding: calc(var(--spacing-unit) * 4) 0; }
.about-section-split.container { display: grid; grid-template-columns: 1fr; gap: calc(var(--spacing-unit) * 3); align-items: center; }
.about-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { font-size: 1.1rem; line-height: 1.8; color: #555; }
.values-section { background-color: var(--light-brand-color); padding: calc(var(--spacing-unit) * 5) 0; text-align: center; }
.values-section .section-title { margin-bottom: 3rem; }
.values-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--spacing-unit) * 3); }
.value-card .icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { color: #666; }
.about-full-width-image { width: 100vw; margin-left: 50%; transform: translateX(-50%); line-height: 0; }
.about-full-width-image img { width: 100%; }
.cta-section { background-color: var(--primary-color); color: var(--white-color); text-align: center; padding: calc(var(--spacing-unit) * 5) var(--spacing-unit); }
.cta-section h2 { color: var(--white-color); }
.cta-section .btn-primary { background-color: var(--white-color); color: var(--primary-color); border-color: var(--white-color); margin-top: 1rem; }
.cta-section .btn-primary:hover { background-color: transparent; color: var(--white-color); }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: calc(var(--spacing-unit) * 4); background-color: var(--light-brand-color); padding: calc(var(--spacing-unit) * 3); border-radius: 4px; }
.contact-details h3 { margin-bottom: 1.5rem; }
.contact-info-list { list-style: none; padding: 0; margin: 2rem 0; }
.contact-info-list li { display: flex; align-items: flex-start; margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.6; }
.contact-info-list .icon { font-size: 1.2rem; color: var(--primary-color); margin-right: 1.5rem; margin-top: 5px; width: 20px; text-align: center; }
.contact-details .social-links a { background-color: var(--border-color); color: var(--primary-color); }
.contact-details .social-links a:hover { background-color: var(--primary-color); color: var(--white-color); transform: scale(1.1); }


/* 7. Cart Wrapper (Side Cart)
   ------------------------------------------------- */
#cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
#cart-overlay.is-open { opacity: 1; visibility: visible; }
#cart-wrapper { position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100%; background-color: var(--white-color); z-index: 1001; transition: right 0.4s ease-in-out; display: flex; flex-direction: column; }
#cart-wrapper.is-open { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: var(--spacing-unit); border-bottom: 1px solid var(--border-color); }
.cart-header h3 { margin: 0; }
.cart-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: var(--spacing-unit); }
.cart-item { display: flex; gap: var(--spacing-unit); margin-bottom: var(--spacing-unit); padding-bottom: var(--spacing-unit); border-bottom: 1px solid var(--border-color); }
.cart-item-image img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; }
.cart-item-details { flex-grow: 1; }
.cart-item-details h4 { font-size: 1rem; margin: 0 0 5px 0; }
.cart-item-details p { font-size: 0.9rem; color: #777; margin: 0; }
.cart-item-remove { background: none; border: none; color: #999; cursor: pointer; }
.cart-item-remove:hover { color: var(--sale-color); }
.cart-empty-message { text-align: center; padding: 40px 20px; color: #777; }
.cart-footer { padding: var(--spacing-unit); border-top: 1px solid var(--border-color); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: var(--spacing-unit); font-weight: bold; }
.cart-footer .btn-primary { width: 100%; text-align: center; display: block; margin-bottom: 10px; }


/* 8. Cart & Checkout Page Styles
   ------------------------------------------------- */
.alert { padding: 1rem; margin-bottom: 1.5rem; border-radius: 4px; border: 1px solid transparent; }
.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.cart-page-item { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); }
.cart-page-item:first-child { border-top: 1px solid var(--border-color); }
.item-image img { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; }
.item-details { flex-grow: 1; display: flex; flex-direction: column; }
.item-details h3 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.item-details .variant-name { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
.item-details .price { font-size: 1.1rem; font-weight: 700; margin-top: auto; }
.item-actions { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.quantity-form { display: flex; align-items: center; }
.quantity-input { width: 60px; text-align: center; padding: 8px; border: 1px solid var(--border-color); border-radius: 4px 0 0 4px; }
.btn-update { padding: 9px 15px; background-color: var(--light-brand-color); border: 1px solid var(--border-color); border-left: none; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 500; transition: background-color 0.2s; }
.btn-update:hover { background-color: #e0e0e0; }
.remove-btn { background: none; border: none; color: #777; text-decoration: underline; cursor: pointer; font-size: 0.9rem; }
.remove-btn:hover { color: var(--sale-color); }
.cart-summary { background-color: var(--light-brand-color); padding: 1.5rem; border-radius: 4px; align-self: flex-start; }
.cart-summary h2 { font-size: 1.5rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 700; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.checkout-btn { display: block; width: 100%; text-align: center; margin-top: 1.5rem; }
.cart-empty-info { text-align: center; padding: 4rem 1rem; border: 2px dashed var(--border-color); border-radius: 4px; }
.cart-empty-info h2 { margin-bottom: 0.5rem; }
.cart-empty-info p { color: #666; margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.checkout-form-section .section-title { font-size: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; }
.form-input-readonly { width: 100%; padding: calc(var(--spacing-unit) * 0.85); border: 1px solid var(--border-color); background-color: #f0f0f0; font-family: var(--font-family-sans); font-size: 1rem; border-radius: 4px; cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.form-group.full-width { grid-column: 1 / -1; }
.checkout-summary-section { position: relative; }
.checkout-summary-section .cart-summary, .cart-layout .cart-summary { position: sticky; top: 100px; }
.summary-items-list { list-style: none; padding: 1rem 0; margin: 0; }
.summary-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--border-color); }
.summary-item:first-child { padding-top: 0; }
.item-thumbnail { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.item-info { flex-grow: 1; }
.item-info .variant { display: block; color: #666; font-size: 0.8rem; }
.item-price { font-weight: 500; }
.checkout-form-card { background-color: var(--white-color); padding: 2rem; border-radius: 4px; border: 1px solid var(--border-color); }


/* 9. Order Success Page Styles
   ------------------------------------------------- */
.order-success-page.page-wrapper { background-color: var(--light-brand-color); }
.order-success-container { max-width: 900px; margin: 0 auto; background-color: var(--white-color); padding: 2rem; border-radius: 4px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); }
.confirmation-header { text-align: center; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); margin-bottom: 2rem; }
.success-icon { width: 60px; height: 60px; margin: 0 auto 1rem auto; color: #16a34a; }
.confirmation-header h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
.confirmation-header p { font-size: 1.1rem; color: #555; margin-bottom: 0; }
.order-details-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.summary-card { background-color: #fff; padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 4px; }
.summary-card h3 { font-size: 1.25rem; font-family: var(--font-family-sans); font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.summary-totals { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.summary-card address { font-style: normal; line-height: 1.7; }
.summary-card .payment-info { color: #555; }
.continue-shopping-section { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }


/* 10. Customer Account & Auth Styles
   ------------------------------------------------- */
.auth-page .container { display: flex; justify-content: center; align-items: center; min-height: 60vh; }
.auth-card { background-color: var(--white-color); padding: 2.5rem; border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid var(--border-color); width: 100%; max-width: 450px; }
.auth-header { text-align: center; font-size: 1.8rem; margin-bottom: 2rem; }
.auth-card .form-group input { width: 100%; }
.auth-card .btn-dark.w-full { width: 100%; text-align: center; display: block; }
.auth-footer-link { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: #666; }
.auth-footer-link a { font-weight: 500; color: var(--primary-color); text-decoration: underline; }
.account-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.account-nav ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; }
.account-nav li:not(:last-child) { border-bottom: 1px solid var(--border-color); }
.account-nav a { display: block; padding: 1rem; font-weight: 500; transition: background-color 0.2s ease; }
.account-nav a:hover { background-color: var(--light-brand-color); }
.account-nav a.active { background-color: var(--primary-color); color: var(--white-color); }
.account-content-title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.account-content-subtitle { font-size: 1.4rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1.5rem; margin-top: 2rem; }
.order-history-table { overflow-x: auto; }
.order-history-table table { width: 100%; border-collapse: collapse; }
.order-history-table th, .order-history-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.order-history-table th { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; color: #555; }
.view-order-link { font-weight: 500; text-decoration: underline; }
.status-badge { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.status-badge.status-pending { background-color: #fef3c7; color: #92400e; }
.status-badge.status-processing { background-color: #dbeafe; color: #1e40af; }
.status-badge.status-shipped { background-color: #d1fae5; color: #065f46; }
.status-badge.status-delivered { background-color: #dcfce7; color: #166534; }
.status-badge.status-cancelled { background-color: #fee2e2; color: #991b1b; }


/* 11. Pagination Styles
   ------------------------------------------------- */
.pagination-container { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.pagination { display: flex; list-style: none; padding: 0; margin: 0; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.pagination .page-item { margin: 0; }
.pagination .page-link { display: block; padding: 0.75rem 1.25rem; background-color: var(--white-color); color: var(--primary-color); border: 1px solid var(--border-color); border-left: none; font-weight: 500; transition: background-color 0.2s ease, color 0.2s ease; }
.pagination .page-item:first-child .page-link { border-top-left-radius: 4px; border-bottom-left-radius: 4px; border-left: 1px solid var(--border-color); }
.pagination .page-item:last-child .page-link { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.pagination .page-link:hover { background-color: var(--light-brand-color); }
.pagination .page-item.active .page-link { background-color: var(--primary-color); color: var(--white-color); border-color: var(--primary-color); z-index: 1; position: relative; cursor: default; }
.pagination .page-item.disabled .page-link { color: #aaa; pointer-events: none; background-color: #f9f9f9; }
.pagination-results-text { font-size: 0.9rem; color: #777; margin-top: 0; }


/* 12. Stripe Element Styles
   ------------------------------------------------- */
.StripeElement { box-sizing: border-box; height: 40px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 4px; background-color: white; box-shadow: 0 1px 3px 0 #e6ebf1; transition: box-shadow 150ms ease; }
.StripeElement--focus { box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.25); }
.StripeElement--invalid { border-color: #fa755a; }
.payment-options { display: flex; flex-direction: column; gap: 1rem; }
.payment-option { display: block; padding: 1.25rem; border: 2px solid var(--border-color); border-radius: 4px; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.payment-option.selected { border-color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color); }
.payment-option-content { display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.payment-logos { display: flex; align-items: center; gap: 8px; }
.payment-logo { height: 24px; }
.payment-logo.paypal { height: 28px; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.text-gray-600 { color: #666; }


/* 13. Media Queries
   ------------------------------------------------- */
@media (min-width: 768px) {
    /* Reset header to original flexbox layout for desktop */
    .main-header .container {
        display: flex;
        justify-content: space-between;
        grid-template-columns: unset;
    }

    /* START: MODIFICATION - Make the logo visible on desktop */
    .main-header .logo {
        display: block;
    }
    /* END: MODIFICATION */

    /* Reset grid placement for children */
    .main-header .logo,
    .main-header .header-icons {
        grid-column: unset;
        justify-self: unset;
    }
    
    .main-header nav {
        grid-column: unset;
        justify-self: unset;
        display: block;
    }

    .mobile-nav-toggle { display: none; }
    .nav-links { display: flex; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
    .newsletter-form { margin: 0; }
    .slider-arrow { display: block; }
    .product-grid { grid-auto-columns: 45%; }
    .shop-layout { grid-template-columns: 280px 1fr; }
    .product-detail-layout { grid-template-columns: 1fr 1fr; gap: calc(var(--spacing-unit) * 4); }
    .hero h1 { font-size: 4.5rem; }
    .about-section-split.container { grid-template-columns: 1fr 1.2fr; gap: calc(var(--spacing-unit) * 5); }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-layout { grid-template-columns: 1fr 1.5fr; }
    .cart-layout { grid-template-columns: 2fr 1fr; }
    .checkout-layout { grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .order-success-container { padding: 3rem; }
    .order-details-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
    .account-layout { grid-template-columns: 280px 1fr; }
}

@media (min-width: 1024px) {
    .product-grid { grid-auto-columns: 30%; }
    .shop-products .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; }
}

@media (min-width: 1200px) {
    .product-grid { grid-auto-columns: 23%; }
}

.auth-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.logout-link:hover {
    color: var(--primary-color);
}

/* 14. Customer Account & Auth Styles
   ------------------------------------------------- */
.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.account-nav li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}
.account-nav a {
    display: block;
    padding: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.account-nav a:hover {
    background-color: var(--light-brand-color);
}
.account-nav a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.account-content-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.account-content-subtitle {
    font-size: 1.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}
.order-history-table { overflow-x: auto; }
.order-history-table table { width: 100%; border-collapse: collapse; }
.order-history-table th, .order-history-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.order-history-table th { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; color: #555; }
.view-order-link { font-weight: 500; text-decoration: underline; }
.status-badge { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.status-badge.status-pending { background-color: #fef3c7; color: #92400e; }
.status-badge.status-processing { background-color: #dbeafe; color: #1e40af; }
.status-badge.status-shipped { background-color: #d1fae5; color: #065f46; }
.status-badge.status-delivered { background-color: #dcfce7; color: #166534; }
.status-badge.status-cancelled { background-color: #fee2e2; color: #991b1b; }
.no-orders-info {
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
}
.mt-4 {
    margin-top: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .account-layout {
        grid-template-columns: 280px 1fr;
    }
}
.account-card {
    background-color: var(--white-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
/* public/css/style.css */

/* ... all your existing CSS ... */

/* 15. Profile Edit Page Styles
   ------------------------------------------------- */
.profile-section-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.profile-section-header h2 {
    font-size: 1.4rem;
    font-family: var(--font-family-sans);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.profile-section-header p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Styling for the form inputs and buttons inside the profile cards */
.profile-form .form-group {
    margin-bottom: 1.5rem;
}
.profile-form .btn-dark {
    padding: 10px 24px;
    font-size: 0.9rem;
}
.profile-form .text-sm.text-gray-600 { /* Targets the "Saved." message */
    color: #16a34a; /* Green for success */
    font-weight: 500;
}

/* Styling for the "Delete Account" button */
.btn-danger {
    background-color: #dc3545;
    color: var(--white-color);
    border-color: #dc3545;
    padding: 10px 24px;
    font-size: 0.9rem;
}
.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* These styles are for the modal that pops up for deletion confirmation */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    z-index: 1001;
}
.modal-header h2 {
    font-size: 1.5rem;
}
.modal-body p {
    color: #555;
}
.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.btn-secondary {
    background-color: #6c757d;
    color: var(--white-color);
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
/* public/css/style.css */

/* Add to your "Cart & Checkout Page Styles" section */

.discount-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 1rem 0;
}
.discount-form {
    display: flex;
    gap: 0.5rem;
}
.discount-form .form-group {
    flex-grow: 1;
    margin-bottom: 0;
}
.discount-form .btn-dark {
    padding: 10px 20px;
    text-transform: none;
    font-size: 0.9rem;
}
.applied-discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}
.remove-discount-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--sale-color);
    text-decoration: underline;
    cursor: pointer;
}
.summary-row.discount span:last-child {
    color: var(--sale-color);
    font-weight: 700;
}

/*
=================================
Blog Section Styling
=================================
*/

.blog-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa; /* A light grey to separate it from other sections */
    text-align: center;
}

.blog-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.75rem 0;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the date to the bottom */
    margin-bottom: 1rem;
}

.blog-date {
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto; /* Aligns to the bottom */
}

/* Ensure the 'View All' button container styles apply here too */
.blog-section .view-all-btn-container {
    text-align: center;
}