/* Philosophy & Historical Art Theme - Global */
/* Color Palette: Deep Burgundy, Charcoal, Ivory, Gold Accents */

:root {
    --philosophy-burgundy: #6b2c3e;
    --philosophy-charcoal: #2d2d2d;
    --philosophy-ivory: #f5f3e7;
    --philosophy-gold: #c9a961;
    --philosophy-navy: #1a2332;
    --philosophy-cream: #faf9f4;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--philosophy-charcoal);
    background-color: var(--philosophy-cream);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, var(--philosophy-navy) 0%, var(--philosophy-charcoal) 100%);
    color: var(--philosophy-ivory);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--philosophy-gold);
    position: relative;
    overflow: hidden;
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    position: relative;
    z-index: 2;
}

.nav-brand h1 {
    font-size: 1.8rem;
    color: var(--philosophy-ivory);
    margin: 0;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 3px;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--philosophy-ivory);
    text-decoration: none;
    font-weight: 400;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    height: 46px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--philosophy-gold);
    background: rgba(201, 169, 97, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--philosophy-ivory);
    background: rgba(201, 169, 97, 0.2);
    border-bottom: 2px solid var(--philosophy-gold);
    border: none;
}

/* Cart Icon and Count */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 46px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.cart-link:hover {
    background: rgba(201, 169, 97, 0.15);
    transform: translateY(-2px);
    color: var(--philosophy-gold);
}

.cart-icon {
    font-size: 1.5rem;
    color: inherit;
}

.cart-count {
    background: var(--philosophy-burgundy);
    color: var(--philosophy-ivory);
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    text-align: center;
    line-height: 1;
    display: none; /* Hidden by default */
    border: 2px solid var(--philosophy-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    top: -2px;
}

.cart-count:not(:empty) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Popup */
.cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.cart-popup.show {
    display: flex;
}

.cart-popup-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.cart-popup-header h3 {
    margin: 0;
    color: #000;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    color: #000;
}

.cart-popup-body {
    max-height: 60vh;
    overflow-y: auto;
}

.cart-items {
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    margin: 0 0 0.5rem 0;
    color: #000;
    font-size: 1rem;
}

.cart-item-details p {
    margin: 0;
    color: #000;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.cart-item-price {
    font-weight: bold;
    color: #000;
    font-size: 1.1rem;
}

.cart-item-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: #000;
    font-size: 1rem;
}

.remove-item-btn {
    background: transparent;
    color: #000;
    border: 2px solid #6c757d;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.remove-item-btn:active {
    transform: scale(0.95);
}

.cart-popup-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-total {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #000;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.cart-actions .btn {
    flex: 1;
    max-width: 150px;
}

.cart-actions .checkout-section {
    width: 100%;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #000;
}

.empty-cart p {
    margin: 0;
    font-size: 1.1rem;
}

/* Image Popup */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.image-popup.show {
    display: flex;
}

.image-popup-content {
    position: relative;
    width: 95%;
    height: 95%;
    max-width: 1400px;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-image-popup {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
}

.close-image-popup:hover {
    color: #ccc;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px 15px;
    z-index: 2001;
    transition: background 0.3s ease;
}

.image-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-nav.prev {
    left: -80px;
}

.image-nav.next {
    right: -80px;
}

/* Mobile navigation positioning */
@media (max-width: 768px) {
    .image-nav.prev {
        left: 10px;
    }
    
    .image-nav.next {
        right: 10px;
    }
    
    .image-nav {
        padding: 15px 10px;
        font-size: 1.5rem;
    }
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
    min-width: 80%;
    min-height: 80%;
}

.image-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Fullscreen button */
.main-image {
    position: relative;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--philosophy-burgundy);
    color: var(--philosophy-ivory);
    border: 2px solid var(--philosophy-burgundy);
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 18px 40px;
    text-transform: none;
    font-weight: 400;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(107, 44, 62, 0.4);
}

.btn-primary:hover {
    background: var(--philosophy-charcoal);
    border-color: var(--philosophy-gold);
    color: var(--philosophy-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(107, 44, 62, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--philosophy-ivory);
    border: 2px solid var(--philosophy-ivory);
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    padding: 18px 40px;
    text-transform: none;
    font-weight: 400;
    position: relative;
}

.btn-secondary:hover {
    background: var(--philosophy-ivory);
    color: var(--philosophy-charcoal);
    border-color: var(--philosophy-ivory);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 243, 231, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Stripe-style Checkout Button */
.stripe-checkout-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    height: 56px;
    background: #635bff;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(99, 91, 255, 0.39);
    overflow: hidden;
}

.stripe-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 91, 255, 0.5);
    background: #5a4fcf;
}

.stripe-checkout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(99, 91, 255, 0.3);
}

.stripe-checkout-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px 0 rgba(99, 91, 255, 0.2);
}

.stripe-checkout-btn .btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.stripe-checkout-btn .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stripe-checkout-btn.loading .btn-content {
    opacity: 0;
}

.stripe-checkout-btn.loading .btn-loading {
    display: flex;
}

.lock-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.btn-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* Stripe-style button focus state */
.stripe-checkout-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.3), 0 4px 14px 0 rgba(99, 91, 255, 0.39);
}

/* Powered by Stripe */
.powered-by-stripe {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    font-size: 22px;
    color: #000;
    font-weight: 500;
}

.powered-by-stripe strong {
    color: #635bff;
    font-weight: 600;
}

/* Responsive adjustments for Stripe button */
@media (max-width: 768px) {
    .stripe-checkout-btn {
        height: 52px;
        font-size: 15px;
        max-width: 100%;
    }
    
    .powered-by-stripe {
        font-size: 20px;
        margin-top: 10px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 35, 50, 0.85), rgba(45, 45, 45, 0.9)),
                url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%23c9a961" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover, 80px 80px;
    color: var(--philosophy-ivory);
    text-align: center;
    padding: 120px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(201, 169, 97, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(107, 44, 62, 0.1) 0%, transparent 60%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
    z-index: 2;
}

.hero-logo-mobile {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--philosophy-ivory);
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 4px;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    line-height: 1.2;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--philosophy-gold), transparent);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--philosophy-ivory);
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.95;
}

/* Featured Section */
.featured {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--philosophy-cream) 0%, var(--philosophy-ivory) 100%);
    position: relative;
}

.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(226, 232, 240, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: #1a365d;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    border-radius: 2px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.featured-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.15);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.featured-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.featured-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.25);
    border-color: #1e3a8a;
}

.featured-item:hover::before {
    opacity: 0.05;
}

.featured-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-item:hover .featured-image img {
    transform: scale(1.08);
}

.featured-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.featured-content h3 {
    color: #1a365d;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.3rem;
}

.featured-content p {
    color: #000;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1e3a8a;
    font-family: 'Courier New', monospace;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.about-content p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Gallery-specific product card styles */
.gallery-page .product-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 300px;
    width: 100%;
}

.gallery-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.gallery-page .product-image {
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    overflow: hidden;
    position: relative;
}

.gallery-page .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 0;
    object-fit: contain;
}

.gallery-page .product-info {
    padding: 0.5rem;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-page .product-title {
    font-size: 1.2rem;
    color: var(--philosophy-charcoal);
    margin-bottom: 0.1rem;
    font-weight: 400;
    font-family: 'Georgia', serif;
    line-height: 1.2;
}

.gallery-page .product-category {
    color: var(--philosophy-charcoal);
    font-size: 1rem;
    margin-bottom: 0.15rem;
    opacity: 0.8;
}

.gallery-page .product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--philosophy-burgundy);
    margin-top: 0.05rem;
}

.gallery-page .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
    grid-auto-rows: 300px;
}

/* Gallery Styles */
.gallery-header {
    background: var(--philosophy-cream);
    color: var(--philosophy-charcoal);
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--philosophy-charcoal);
    font-family: 'Georgia', serif;
    font-weight: 400;
    font-style: italic;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.gallery-filters {
    padding: 10px 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    justify-items: stretch;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--philosophy-charcoal);
    border-radius: 0;
    background: var(--philosophy-cream);
    color: var(--philosophy-charcoal);
    font-weight: 400;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 160px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.1), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: var(--philosophy-charcoal);
    color: var(--philosophy-ivory);
    border-color: var(--philosophy-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 45, 45, 0.3);
}

.filter-btn.active {
    background: var(--philosophy-burgundy);
    border-color: var(--philosophy-burgundy);
    color: var(--philosophy-ivory);
    box-shadow: 0 4px 15px rgba(107, 44, 62, 0.3);
}

.filter-btn.active:hover {
    background: var(--philosophy-charcoal);
    border-color: var(--philosophy-charcoal);
    color: var(--philosophy-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 44, 62, 0.4);
}

.search-input {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 200px;
}

.search-input:focus {
    outline: none;
    border-color: #6c757d;
}

.gallery-grid {
    padding: 40px 0;
    background: #f8f9fa;
}

/* View Controls - Mobile Only */
.view-controls {
    display: none;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.view-btn {
    background: #f8f9fa;
    border: 2px solid #000;
    color: #6c757d;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.view-btn:hover {
    background: #e9ecef;
    border-color: #000;
    color: #495057;
}

.view-btn.active {
    background: #1a365d;
    border-color: #1a365d;
    color: white;
}

/* Mobile Grid Layouts */
@media (max-width: 767px) {
    .view-controls {
        display: flex;
    }
    
    .gallery-grid.single-view .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid.double-view .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-grid.double-view .product-card {
        min-height: auto;
    }
    
    .gallery-grid.double-view .product-image {
        height: 180px;
    }
    
    .gallery-grid.double-view .product-info {
        padding: 0.4rem;
        height: 50px;
    }
    
    .gallery-grid.double-view .product-title {
        font-size: 1rem;
    }
    
    .gallery-grid.double-view .product-price {
        font-size: 1rem;
    }
}

/* Jump to Top Button */
.jump-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.jump-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.jump-to-top:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.4);
}

.jump-to-top:active {
    transform: translateY(0);
}

/* Mobile adjustments for jump to top button */
@media (max-width: 767px) {
    .jump-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.product-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 0.475rem;
    color: #000;
    margin-bottom: 0.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-category {
    color: #000;
    font-size: 0.45rem;
    margin-bottom: 0.25rem;
}

.product-price {
    font-size: 0.5rem;
    font-weight: bold;
    color: #000;
    margin-top: 0.1rem;
}

.loading {
    text-align: center;
    padding: 1rem;
    color: #000;
}

.no-results {
    text-align: center;
    padding: 1rem;
    color: #000;
}

/* Product Details */
.product-details {
    padding: 40px 0;
    background: white;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: #000;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #6c757d;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 0 1rem;
}

.product-title {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 1rem;
}

.availability {
    color: #28a745;
    font-weight: 500;
    margin-left: 1rem;
}

.product-description,
.product-specs {
    margin-bottom: 2rem;
}


/* Canvas Options */
.canvas-options {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.option-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

.option-group select:focus {
    outline: none;
    border-color: #6c757d;
}

.product-actions {
    margin-bottom: 0.5rem;
}

.quantity-and-price {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.quantity-and-price .product-price {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.quantity-and-price .product-price .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.quantity-and-price .product-price .availability {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 500;
}

.quantity-selector {
    margin-bottom: 0;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quantity-selector select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.product-actions .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.product-features {
    margin-top: 1.5rem;
}

.product-features-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
    color: #000;
    line-height: 1.6;
}

.product-features-list li {
    margin-bottom: 0.5rem;
}

/* Reviews */
.product-reviews {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    color: #000;
}

.review-rating {
    color: #000;
}

.review-text {
    color: #000;
    line-height: 1.6;
}

/* Checkout Styles */
.checkout {
    padding: 40px 0;
    background: #f8f9fa;
}

.checkout-layout {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-section h2 {
    color: #000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #6c757d;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6c757d;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-item-image {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details h4 {
    margin: 0;
    color: #000;
}

.order-item-details p {
    margin: 0;
    color: #000;
    font-size: 0.9rem;
}

.order-item-price {
    font-weight: bold;
    color: #000;
}

.order-totals {
    border-top: 2px solid #eee;
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #000;
}

.total-final {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--philosophy-navy) 0%, var(--philosophy-charcoal) 100%);
    color: var(--philosophy-ivory);
    padding: 60px 0 30px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--philosophy-gold);
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    color: var(--philosophy-gold);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    letter-spacing: 1px;
    font-family: 'Georgia', serif;
}

.contact-heading {
    color: var(--philosophy-gold) !important;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--philosophy-ivory);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 0;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--philosophy-gold);
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--philosophy-ivory);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    background: rgba(201, 169, 97, 0.05);
}

.social-link:hover {
    color: var(--philosophy-gold);
    background: rgba(201, 169, 97, 0.15);
    border-color: var(--philosophy-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
}

.instagram-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--philosophy-ivory);
    position: relative;
    z-index: 2;
    font-weight: 300;
}

/* Global mobile constraints to prevent horizontal overflow */
@media (max-width: 768px) {
    /* Ensure no element can cause horizontal scrolling */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Specific container constraints */
    .container,
    .product-layout,
    .product-images,
    .product-info,
    .main-image,
    .thumbnail-images {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding-top: 2.5rem;
    }
    
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 1.2rem 20px;
        flex-wrap: wrap;
    }
    
    .nav-brand h1 {
        font-size: 1.6rem;
        margin: 0;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        width: 100%;
        margin-top: 1.5rem;
        order: 3;
    }
    
    .nav-link {
        padding: 12px 18px;
        height: auto;
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .cart-link {
        padding: 12px 18px;
        height: auto;
        font-size: 1.1rem;
        min-height: 44px;
        order: 2;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Mobile thumbnail carousel improvements */
    .thumbnail-images {
        justify-content: center;
        gap: 0.25rem;
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .main-image {
        height: 300px;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* General mobile constraints */
    .product-layout,
    .product-images,
    .product-info {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .gallery-filters {
        padding: 5px 0;
    }
    
    .gallery-header {
        padding: 15px 0 5px 0;
    }
    
    .header {
        padding: 0.3rem 0;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        max-width: 400px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .search-input {
        min-width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header {
        padding-top: 3rem;
    }
    
    .nav {
        padding: 1rem 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        gap: 0.8rem;
        margin-top: 1.2rem;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 1rem;
        min-height: 40px;
    }
    
    .cart-link {
        padding: 10px 14px;
        font-size: 1rem;
        min-height: 40px;
    }
    
    .cart-icon {
        font-size: 1.4rem;
    }
    
    .cart-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0;
    }
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo-mobile {
        max-width: 320px;
        margin-bottom: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .featured-item,
    .product-card {
        margin: 0 10px;
    }
}

/* Loading and Animation States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Product Grid Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Extra small mobile thumbnail carousel */
    .thumbnail-images {
        gap: 0.2rem;
        padding: 0 0.5rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: 100%;
    }
    
    .thumbnail-images::-webkit-scrollbar {
        display: none;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .main-image {
        height: 250px;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Prevent any element from causing horizontal overflow */
    * {
        max-width: 100%;
    }
    
    /* Ensure all containers are properly constrained */
    .product-layout,
    .product-images,
    .product-info {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Shipping Notice */
.shipping-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
    margin: 0.1rem 0 0 0;
}

.shipping-notice p {
    margin: 0;
    color: #000;
    font-size: 1rem;
}

/* Shipping Notice in Cart Popup */
.shipping-notice-popup {
    background: linear-gradient(135deg, #e6fffa 0%, #f0fff4 100%);
    border: 1px solid #38b2ac;
    border-radius: 6px;
    padding: 12px;
    margin: 0 1rem 1rem 1rem;
    text-align: center;
}

.shipping-notice-popup p {
    margin: 0;
    color: #2d3748;
    font-size: 0.9rem;
}

/* Shipping Notice on Product Page */
.product-info .shipping-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
    margin: 1rem 0;
}

.product-info .shipping-notice p {
    margin: 0;
    color: #000;
    font-size: 1rem;
}

/* Mobile adjustments for shipping notice */
@media (max-width: 768px) {
    .product-actions {
        margin-bottom: 0.25rem;
    }
    
    .quantity-and-price {
        margin-bottom: 0.25rem;
    }
    
    .shipping-notice {
        margin: 0.05rem 0 0 0;
    }
}

/* Test Page Styles */
.test-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.test-section h2 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.test-section p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

#testResults {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

#testResults p {
    margin: 0;
    font-weight: 500;
}

/* Cart Popup Checkout Section */
.checkout-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    width: 100%;
}

.checkout-section .powered-by-stripe {
    margin-top: 0;
    font-size: 14px;
}

.checkout-section .stripe-checkout-btn {
    width: 100%;
    margin: 0;
    max-width: none;
}

/* Index page specific cart popup styling */
.index-cart .checkout-section {
    position: relative;
}

.index-cart .checkout-section .powered-by-stripe {
    position: absolute;
    bottom: -25px;
    left: 0;
    margin: 0;
    padding: 0;
    font-size: 12px;
    text-align: left;
}

/* Product Page Specific Styles */
.product-page .main-image {
    border-radius: 0 !important;
}

.product-page .main-image img {
    border-radius: 0 !important;
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}

.product-page #mainProductImage {
    border-radius: 0 !important;
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}

.product-page .thumbnail {
    border-radius: 0 !important;
}

.product-page .thumbnail img {
    border-radius: 0 !important;
    object-fit: contain !important;
}

/* About Page Specific Styles */
.about-page .about-hero {
    background: #1e3a8a;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.about-page .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-page .page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    padding: 60px 0;
    background: white;
}

.about-intro {
    margin-bottom: 4rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-intro h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 2rem;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.blog-posts {
    margin-bottom: 4rem;
}

.blog-post {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border-left: 4px solid #1e3a8a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-post h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.blog-post p {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1rem;
}

.team-section {
    margin-bottom: 4rem;
    text-align: center;
}

.team-section h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 3px solid #1e3a8a;
}

.team-member h4 {
    color: #1e3a8a;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.team-member p {
    color: #4a5568;
    line-height: 1.6;
}

.values-section {
    text-align: center;
}

.values-section h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.value-item h4 {
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.value-item p {
    color: #4a5568;
    line-height: 1.6;
}

/* Mobile responsiveness for about page */
@media (max-width: 768px) {
    .about-page .page-title {
        font-size: 2.5rem;
    }
    
    .about-page .page-subtitle {
        font-size: 1rem;
    }
    
    .about-intro h2,
    .team-section h2,
    .values-section h2 {
        font-size: 2rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
    
    .team-member,
    .value-item {
        padding: 1.5rem;
    }
}

/* CTA Section Styles */
.cta-section {
    padding: 100px 0;
    background: var(--philosophy-ivory);
    text-align: center;
    border-top: 1px solid rgba(201, 169, 97, 0.3);
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-buttons .btn-primary {
    background: var(--philosophy-charcoal);
    color: var(--philosophy-ivory);
    border: 2px solid var(--philosophy-charcoal);
}

.cta-buttons .btn-primary:hover {
    background: var(--philosophy-burgundy);
    border-color: var(--philosophy-burgundy);
    color: var(--philosophy-ivory);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 44, 62, 0.4);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--philosophy-charcoal);
    border: 2px solid var(--philosophy-charcoal);
}

.cta-buttons .btn-secondary:hover {
    background: var(--philosophy-charcoal);
    color: var(--philosophy-ivory);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 45, 45, 0.3);
}

/* Mobile responsiveness for CTA section */
@media (max-width: 768px) {
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cta-buttons .btn {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero {
        padding: 120px 0;
        min-height: 70vh;
    }
}

/* Terms & Conditions Banner */
.terms-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1e3a8a;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-banner.show {
    display: flex;
}

.terms-banner-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.terms-banner-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: white;
    flex: 1;
    min-width: 250px;
}

.terms-banner-text .terms-link {
    color: #93c5fd;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.terms-banner-text .terms-link:hover {
    color: white;
}

.terms-banner .btn {
    padding: 10px 25px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile responsiveness for Terms Banner */
@media (max-width: 768px) {
    .terms-banner {
        padding: 12px 15px;
    }
    
    .terms-banner-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .terms-banner-text {
        font-size: 13px;
        min-width: 0;
    }
    
    .terms-banner .btn {
        width: 100%;
        max-width: 200px;
    }
}