/* CSS Variables matching Bergsig DV website */
:root {
    --primary-color: #00879e; /* Teal */
    --primary-hover: #006b7d;
    --secondary-color: #865d25; /* Brown/Gold */
    --secondary-hover: #6b4a1d;
    --bg-color: #f6f6f6;
    --bg-white: #ffffff;
    --text-main: #333333;
    --text-heading: #000000;
    --text-muted: #666666;
    --border-color: #ebebeb;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    --font-heading: 'Poppins', sans-serif;
    --font-text: 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--text-heading);
}

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

.text-center {
    text-align: center;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    margin-bottom: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(0,135,158,0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    box-shadow: 0 4px 10px rgba(0,135,158,0.4);
    transform: translateY(-2px);
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/mark-bg.jpg') center/cover;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Menu Section */
.menu-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

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

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-img-container {
    position: relative;
    width: 100%;
}

.sold-out-banner {
    position: absolute;
    top: 20px;
    right: -30px;
    background-color: #d9534f;
    color: white;
    padding: 5px 40px;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.product-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-date {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.product-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-heading);
}

.add-to-cart {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
}

.add-to-cart:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.inline-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
}

.inline-qty-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

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

.inline-qty-val {
    width: 30px;
    text-align: center;
    font-weight: bold;
    color: var(--text-main);
}

/* Modals Overlay */
.cart-overlay, .checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    justify-content: flex-end;
}

.checkout-overlay {
    justify-content: center;
    align-items: center;
}

.cart-overlay.active, .checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Modal */
.cart-modal {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 400px;
    height: 100%;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-overlay.active .cart-modal {
    transform: translateX(0);
}

.cart-header, .checkout-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2, .checkout-header h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-cart, .close-checkout {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-items {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
}

.qty-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.item-qty {
    margin: 0 10px;
    font-weight: 600;
}

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

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

/* Checkout Modal */
.checkout-modal {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.checkout-overlay.active .checkout-modal {
    transform: scale(1);
}

.checkout-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-text);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,135,158,0.2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.radio-item label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

.order-success {
    padding: 40px 20px;
    text-align: center;
}

.order-success svg {
    margin-bottom: 20px;
}

.order-success h3 {
    color: var(--primary-color);
}

.order-success p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--bg-white);
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
}
