/* Variables & Reset */
:root {
    --primary-color: #2C5E2E;
    /* Forest Green */
    --secondary-color: #8B4513;
    /* Saddle Brown */
    --accent-color: #D4A017;
    /* Gold/Amber */
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

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

.btn-primary:hover {
    background-color: #1e4220;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn.disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none !important;
}

.btn.disabled:hover {
    background-color: #ccc;
    color: #666;
    box-shadow: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.bear-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('https://dynamic-media-cdn.tripadvisor.com/media/photo-o/15/33/f5/ba/lake-tahoe-california.jpg?w=1200&h=900&s=1') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeIn 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

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

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, #D4A017, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--bg-light);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Shop Section */
.shop {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

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

.section-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: var(--bg-white);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

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

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .quick-view-btn {
    transform: translateY(0);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

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

.add-to-cart-btn {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: #6d360f;
}

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

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

.about-name {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-description {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.about-image {
    height: 400px;
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}

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

/* Cause Section */
.cause {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2C5E2E, #1e4220);
    color: var(--text-light);
    text-align: center;
}

.cause .section-title {
    color: var(--text-light);
}

.cause-description {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

.cause-impact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.impact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    width: 250px;
    backdrop-filter: blur(4px);
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 4rem 0 2rem;
}

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

.footer-section h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    margin-bottom: 0.5rem;
}

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

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

.social-link {
    font-size: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 8px;
    border-radius: 4px;
    border: none;
    flex: 1;
}

.newsletter-form button {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.disclaimer {
    margin-bottom: 1rem;
    font-style: italic;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.cart-modal.active {
    visibility: visible;
    opacity: 1;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cart-panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-white);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.active .cart-panel {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
}

.cart-item-remove {
    color: #ff4444;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    display: inline-block;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background-color: var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-note {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

/* Jerky Showcase Section */
.jerky-showcase {
    padding: 5rem 0;
    background-color: #f4f1ea;
    border-bottom: 1px solid #e0e0e0;
}

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

.jerky-card {
    background: var(--bg-white);
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.jerky-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.jerky-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #8B4513;
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.jerky-image {
    margin-bottom: 1.5rem;
    height: 150px;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

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

.jerky-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.jerky-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 3rem;
}

.jerky-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.jerky-price {
    font-size: 1.1rem;
}

.jerky-weight {
    font-size: 0.9rem;
    color: #888;
}

.jerky-card .btn-secondary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.jerky-card .btn-secondary:hover {
    background-color: #1e4220;
    border-color: #1e4220;
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented */
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none !important;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2001;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Auth & Account Styles */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #888;
}

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

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-description {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

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

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

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.account-header #logoutBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
}

.account-header #logoutBtn:hover {
    background-color: #1e4220;
    transform: translateY(-1px);
}

.account-section {
    margin-bottom: 2rem;
}

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

.order-list {
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.order-details {
    font-size: 0.9rem;
    color: #666;
}

/* Checkout Styles */
.checkout-content {
    max-width: 800px;
}

.checkout-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkout-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.checkout-section input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    margin-bottom: 1rem;
}

.checkout-section input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.checkout-section input::placeholder {
    color: #adb5bd;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.form-row input {
    flex: 1;
    margin-bottom: 1rem;
}

.checkout-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.3rem;
    border-top: 2px solid var(--primary-color);
    padding-top: 1rem;
    margin-top: 1rem;
    color: var(--primary-color);
}

.checkout-content .btn-block {
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Product Modal */
.product-modal {
    z-index: 2500;
    display: none !important;
}

.product-modal.active {
    display: flex !important;
}

.product-detail-view {
    text-align: center;
}
/* Order Success Modal */
.success-modal-content {
    max-width: 500px;
    text-align: center;
    padding: 3rem 2rem;
}

.success-checkmark {
    margin: 0 auto 2rem;
    width: 100px;
    height: 100px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #4CAF50;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px #4CAF50;
    }
}

.success-modal-content h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.success-details {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.success-details p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.order-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.order-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1rem 0 !important;
}

.order-message {
    color: #666;
    font-size: 0.95rem;
    margin-top: 1rem !important;
}

.success-modal-content .btn-primary {
    padding: 12px 32px;
    font-size: 1rem;
    min-width: 200px;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 15px;
}

.auth-links a, .backToLoginLink {
    color: #4a7c59;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover, .backToLoginLink:hover {
    text-decoration: underline;
}

.auth-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.form-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Guest Checkout Button */
#guestCheckoutBtn {
    background-color: #6c757d;
}

#guestCheckoutBtn:hover {
    background-color: #5a6268;
}

/* Order Detail Modal */
.order-detail-content {
    padding: 1rem 0;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.order-detail-header h2 {
    margin: 0;
    color: var(--text-dark);
}

.order-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.order-detail-section {
    margin-bottom: 2rem;
}

.order-detail-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    color: var(--text-dark);
}

.order-info-grid div {
    padding: 0.5rem 0;
}

.order-items-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-item-qty {
    font-size: 0.9rem;
    color: #666;
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.shipping-address {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.6;
    color: var(--text-dark);
}

.order-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.order-summary .summary-row.total {
    border-top: 2px solid var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.order-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-item {
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0.5rem;
}

/* Variation Selector */
.variation-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.variation-select:hover {
    border-color: var(--primary-color);
}

.variation-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 114, 81, 0.1);
}

.variation-select option {
    padding: 10px;
}

/* Clear Cart Button */
.btn-clear-cart {
    padding: 6px 12px;
    font-size: 0.85rem;
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-clear-cart:hover {
    background-color: #dc3545;
    color: white;
}

.btn-clear-cart:active {
    transform: scale(0.95);
}
