:root {
    --primary-color: #5ce1e6;
    /* Turquoise from the logo */
    --secondary-color: #333333;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
    --text-color: #4a4a4a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Hero button hover - white text and border */
.hero .btn:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--secondary-color);
}

/* Product card actions - center button */
.product-card-actions {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Product card button - matching site style */
.product-card .btn-outline {
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: #fff;
}

.product-card .btn-outline:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Add item button styling */
.btn-add-item {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--secondary-color);
}

.btn-add-item:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Header/Nav */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: #f4f4f4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* Product Section */
.product-showcase {
    padding: 80px 0;
    background: var(--bg-color);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.product-info h2 {
    font-size: 2.5rem;
}

.price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.details-list {
    list-style: none;
    margin: 20px 0;
}

.details-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.details-list li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 10px;
    line-height: 1;
}

/* Features/Gallery */
.features {
    padding: 60px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    padding: 20px;
    transition: var(--transition);
}

.feature-item i {
    font-size: 1rem;
    color: var(--primary-color);
}

/* Product Gallery */
.product-gallery {
    position: relative;
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.gallery-img.active {
    opacity: 1;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 2;
}

.gallery-btn i {
    font-size: 14px;
    line-height: 1;
}

.gallery-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.gallery-btn.prev {
    left: 10px;
}

.gallery-btn.next {
    right: 10px;
}

.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Order Form */
.order-section {
    padding: 80px 0;
    background-color: #fff;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin: 0 10px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Sold out products */
.product-card.sold-out {
    opacity: 0.8;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.sold-out-overlay span {
    background: #dc3545;
    color: #fff;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-15deg);
}

.stock-summary {
    font-size: 0.82rem;
    color: #4a4a4a;
    margin: 6px 0 0;
    text-align: center;
}

.stock-summary i {
    font-size: 0.72rem;
    margin-right: 4px;
    color: var(--primary-color);
}

/* Order Items */
.order-item {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    border-left: 3px solid var(--primary-color);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-number {
    font-weight: 600;
    color: var(--secondary-color);
}

.remove-item {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.remove-item:hover {
    background: #c82333;
}

.order-item .form-group {
    margin-bottom: 12px;
}

.order-item .form-group:last-child {
    margin-bottom: 0;
}

.order-item.invalid-item {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.order-item.invalid-item::after {
    content: "⚠ Pole saadaval - palun eemalda see toode";
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5c6cb;
}

.order-item.incomplete-item {
    border-left-color: #ffc107;
    background: #fffdf5;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        order: -1;
    }
}
