/* Wilde Garden Home - Main Styles */
:root {
    --primary-color: #4a7c59;
    --secondary-color: #8b7355;
    --accent-color: #d4a574;
    --light-color: #f8f5f0;
    --dark-color: #2c3e2d;
    --text-color: #333;
    --border-color: #e0dcd3;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --success-color: #4caf50;
    --danger-color: #f44336;
    --info-color: #2196f3;
    --warning-color: #ff9800;
}

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

body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
}

.tagline {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.order-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    position: relative;
}

.order-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow);
    list-style: none;
    min-width: 200px;
    display: none;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

/* Main Content */
main {
    min-height: 70vh;
    padding: 40px 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('images/hero-bg.jpg') center/cover;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-info h3 a {
    text-decoration: none;
    color: var(--dark-color);
}

.product-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-price {
    margin: 15px 0;
}

.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

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

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

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

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

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #388e3c;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #f57c00;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-sku {
    color: #666;
    margin-bottom: 20px;
}

.price-section {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-display {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.product-meta p {
    margin-bottom: 8px;
}

.stock-status {
    color: var(--primary-color);
    font-weight: bold;
}

.marketing-copy {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-style: italic;
}

.product-features {
    margin: 20px 0;
}

.product-features ul {
    list-style-position: inside;
    margin-left: 15px;
}

.product-features li {
    margin-bottom: 8px;
}

.product-actions {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.quantity-selector {
    margin-bottom: 15px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
}

.quantity-selector input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn-add-to-order {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

/* Detailed Order Form */
.detailed-order-form-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
}

.order-form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.order-form-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-form-section h3 i {
    color: var(--primary-color);
}

/* Order Items Table */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.order-items-table th {
    background-color: var(--light-color);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    color: var(--dark-color);
}

.order-items-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

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

.order-item-details {
    min-width: 300px;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.order-item-sku {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.order-item-specs {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.order-item-specs p {
    margin-bottom: 3px;
}

.order-item-specs strong {
    color: var(--dark-color);
}

.order-item-quantity {
    min-width: 150px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.quantity-controls .btn-sm {
    padding: 5px 10px;
}

.order-item-price {
    min-width: 120px;
    text-align: right;
}

.unit-price {
    color: #666;
    font-size: 0.9rem;
}

.item-total {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.order-item-actions {
    min-width: 100px;
}

.order-item-note {
    margin-top: 10px;
}

.order-item-note textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

/* Order Summary */
.order-summary-sidebar {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.order-summary-details {
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.subtotal {
    font-weight: bold;
}

.summary-row.shipping {
    border-bottom: 2px solid var(--border-color);
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.summary-row.tax {
    color: #666;
    font-size: 0.9rem;
}

.btn-submit-order {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin: 20px 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group label .required {
    color: var(--danger-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-section {
    margin: 30px 0;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.form-section h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.form-check {
    margin-bottom: 10px;
}

.form-check label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.shipping-options {
    margin-top: 15px;
}

.shipping-option {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(74, 124, 89, 0.05);
}

.shipping-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(74, 124, 89, 0.1);
}

.shipping-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin: 0;
}

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

.payment-options {
    margin-top: 15px;
}

.payment-option {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(74, 124, 89, 0.05);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(74, 124, 89, 0.1);
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
}

.credit-card-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: none;
}

.secure-order {
    text-align: center;
    color: var(--primary-color);
    margin-top: 15px;
    font-size: 0.9rem;
    padding: 10px;
    background-color: rgba(74, 124, 89, 0.1);
    border-radius: 4px;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

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

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.about-preview {
    background-color: #f0f7f0;
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
}

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

.about-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.contact-details {
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .detailed-order-form-container {
        grid-template-columns: 1fr;
    }
    
    .order-items-table {
        display: block;
        overflow-x: auto;
    }
    
    .order-items-table th,
    .order-items-table td {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .product-detail, .detailed-order-form-container {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 15px;
    }
    
    .order-items-table {
        font-size: 0.9rem;
    }
    
    .order-items-table th,
    .order-items-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .quantity-controls {
        flex-direction: column;
        gap: 5px;
    }
    
    .quantity-controls input {
        width: 100%;
    }
}

.error-content {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.error-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Order Confirmation */
.order-confirmation {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.order-confirmation-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.order-details-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 30px 0;
    text-align: left;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.order-detail-row.total {
    font-weight: bold;
    font-size: 1.2rem;
}

.order-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Empty Order State */
.order-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.order-empty-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .order-form-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .order-summary-sidebar {
        page-break-before: always;
    }
    
    .no-print {
        display: none;
    }
}
