:root {
    --primary-color: #2c3e50;
    --accent-color: #e67e22;
    --bg-color: #fdfdfd;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --font-heading: 'Permanent Marker', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Main Content */
main {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sub-navigation */
.sub-nav {
    margin-bottom: 3rem;
    text-align: center;
}

.sub-nav ul {
    display: inline-flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sub-nav a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
}

.sub-nav a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1; /* Square placeholders */
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: 600;
}

/* Service Sections */
.service-section {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Product Styles */
.product-item {
    cursor: pointer;
    position: relative;
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-info h4 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.product-info p {
    color: var(--accent-color);
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.modal-image {
    flex: 1;
    min-height: 300px;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.modal-details {
    flex: 1;
    text-align: left;
}

.modal-details h3 {
    text-align: left;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 2rem 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-family: var(--font-body);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #34495e;
}

.full-width {
    width: 100%;
}

/* Cart Styles */
.cart-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.cart-items {
    flex: 2;
    min-width: 300px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.cart-item-details h4 {
    margin-bottom: 0.2rem;
}

.cart-item-details p {
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
    color: #666;
}

.item-price {
    font-weight: 600;
    color: var(--accent-color) !important;
    margin-top: 0.5rem !important;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-summary {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-row.total {
    border-top: 2px solid #eee;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.checkout-section {
    margin-top: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.payment-methods {
    margin: 1.5rem 0;
    text-align: left;
}

.payment-option {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-option input {
    width: auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: #fff;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }

    h2 {
        font-size: 2rem;
    }
}
