:root {
    --bg-color: #fcf9f6;
    --text-color: #4a4a4a;
    --primary-color: #a5b68d;
    /* Muted Green */
    --primary-hover: #8e9e7a;
    --secondary-color: #f5efe6;
    /* Lighter Beige/Cream */
    --accent-color: #5c5048;
    /* Darker brown for contrast */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1493663284031-b7e3aefcae8e?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Trust Signals */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.trust-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.trust-item p {
    font-size: 0.9rem;
    color: #888;
}

/* Main Content */
.main-wrapper {
    padding-top: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 2rem;
    color: var(--accent-color);
}

.hidden {
    display: none !important;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--secondary-color);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-desc {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Buttons */
.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
}

.text-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 1rem;
}

.full-width {
    width: 100%;
}

/* Cart View */
.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 50%;
}

.remove-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    font-size: 0.8rem;
}

.checkout-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.total-price {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0;
    text-align: right;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Footer */
.main-footer {
    background: var(--white);
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #999;
}

.footer-link {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.large-modal {
    max-width: 800px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-actions button {
    margin-left: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* Product Details Modal */
.product-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .product-details-layout {
        grid-template-columns: 1fr;
    }
}

.detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--secondary-color);
}

.detail-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.detail-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.detail-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8;
}

/* Autocomplete & Form Extensions */
.autocomplete-container {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestion-item:hover {
    background-color: var(--secondary-color);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

input.invalid {
    border-color: #e74c3c !important;
}

/* Phone Input Styles Override */
.iti {
    width: 100%;
    margin-bottom: 0.2rem;
}

.iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags@2x.png");
    }
}

/* Terms Modal Text */
.text-left {
    text-align: left;
}

.scrollable-text {
    max-height: 400px;
    overflow-y: auto;
    background: #fdfcf8;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    line-height: 1.6;
    margin-top: 1rem;
}

.scrollable-text p {
    margin-bottom: 1rem;
}

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Success Page */
.success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    animation: fadeIn 0.5s ease;
}

.success-content h2 {
    font-size: 2.5rem;
    margin-top: 1.5rem;
    color: var(--accent-color);
}

.success-message {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.order-details {
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Checkmark Animation */
.checkmark-circle {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    vertical-align: top;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(165, 182, 141, 0.4);
}

.checkmark.draw:after {
    animation-duration: 800ms;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
}

.checkmark:after {
    opacity: 1;
    height: 40px;
    width: 20px;
    transform-origin: left top;
    border-right: 4px solid var(--white);
    border-top: 4px solid var(--white);
    content: '';
    left: 20px;
    top: 40px;
    position: absolute;
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 20px;
        opacity: 1;
    }

    40% {
        height: 40px;
        width: 20px;
        opacity: 1;
    }

    100% {
        height: 40px;
        width: 20px;
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Page */
.about-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.nav-link {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--accent-color);
    margin-right: 1.5rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .about-flex {
        flex-direction: column-reverse;
    }
}

/* Interactivity & Polish */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.primary-btn {
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(165, 182, 141, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

.icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 0.7;
}

/* About Hero */
.about-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 12px;
}

.about-hero h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}