/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #152215;
    --secondary-color: #f8f8f8;
    --accent-color: #2c743c;
    --text-light: #7f8c8d;
    --text-dark: #2c3e50;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Lacquer", system-ui;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    background-color: var(--primary-color);
    margin: 0;
    overflow-x: hidden;
}

.products-page {
    padding: 0;
}

/* Home Page Styles */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgb(15, 44, 16);
    backdrop-filter: blur(10px);
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

/* Spacer for fixed navbar */
.nav-spacer {
    height: 72px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #f8f8f8;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hero-container {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3b1a 100%);
    overflow: hidden;
    padding-top: 24px;
}

.background-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    
    min-height: 100%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 600px;
    padding: 2rem;
    color: white;
}

.logo-showcase {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    max-width: min(280px, 80vw);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #f8f8f8;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.social-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.instagram-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.instagram-link:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-family: "Lacquer", system-ui;
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.products-page .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

h1 {
    color: var(--secondary-color);
    font-size: clatmp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
}

/* Product Grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .products {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

.product {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #4CAF50);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product:hover::before {
    transform: scaleX(1);
}

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.product:hover img {
    transform: scale(1.05);
}

.product h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.product h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

/* Modal styles - Large layout with slideshow left, options right */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #1a3b1a);
    color: white;
    padding: 1.5rem 2rem;
    position: relative;
    flex: 0 0 auto;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.slideshow-section {
    flex: 2;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.options-section {
    flex: 1;
    padding: 2rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* Slideshow Styles - Full section */
.slideshow-container {
    flex: 1;
    position: relative;
    width: 100%;
    background-color: #f9f9f9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.slideshow {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slide-btn.prev {
    left: 20px;
}

.slide-btn.next {
    right: 20px;
}

.slide-indicators {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.05);
    flex: 0 0 auto;
}

.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.3);
}

/* Form group styling for vertical layout */
.form-group {
    margin: 0;
    flex: 0 0 auto;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
}

select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Lacquer", system-ui;
    background-color: white;
    transition: var(--transition);
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Lacquer", system-ui;
    background-color: white;
    transition: var(--transition);
}

input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

option:disabled {
    color: #999 !important;
    background-color: #f5f5f5;
}

button.preorder {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: "Lacquer", system-ui;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

button.preorder:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

button.preorder:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive modal layout */
@media (max-width: 1024px) {
    .modal-body {
        flex-direction: column;
    }
    
    .slideshow-section {
        flex: 1;
        min-height: 50vh;
    }
    
    .options-section {
        flex: 0 0 auto;
        padding: 1.5rem;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        height: 95vh;
        margin: 2.5% auto;
        flex-direction: column;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .slideshow-section {
        flex: 1;
        min-height: 50vh;
    }
    
    .options-section {
        flex: 1;
        padding: 1rem;
        gap: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    select {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    button.preorder {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .slide-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        padding: 12px;
    }
    
    .slide-btn.prev {
        left: 10px;
    }
    
    .slide-btn.next {
        right: 10px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
        margin: 0 4px;
    }
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    background-color: #f9f9f9;
    overflow: hidden;
}

.slideshow {
    position: relative;
    max-height: 65vh;
    min-height: 220px;
    overflow: hidden;
    flex: 0 0 auto;
}

.slide {
    display: none;
    width: 100%;
    height: auto;
    min-height: 220px;
    position: relative;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    margin: 0;
    display: block;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slide-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-btn.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.slide-btn.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slide-indicators {
    text-align: center;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Form group styling */
.form-group {
    margin: 1.5rem 2rem;
    flex: 0 0 auto;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Lacquer", system-ui;
    background-color: white;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

button.preorder {
    background: linear-gradient(135deg, var(--accent-color), #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    width: calc(100% - 4rem);
    margin: 1.5rem 2rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: "Lacquer", system-ui;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 0 0 auto;
    margin-top: auto;
}

button.preorder:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

button.preorder:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Migrated subtle home button styles */
.subtle-home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    transition: var(--transition);
    z-index: 1000;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.subtle-home-button:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Subtle home button */
.subtle-home-button {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1200;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subtle-home-button:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 1024px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .products {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .main-nav {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .container {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
    }

    .products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product {
        padding: 1rem;
    }
    
    .product img {
        height: 200px;
    }

    .subtle-home-button {
        font-size: 12px;
        padding: 6px 12px;
        top: 10px;
        left: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 12px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }

    .form-group {
        margin: 1rem 1.5rem;
    }
    
    .form-group label {
        font-size: 14px;
    }

    select {
        font-size: 14px;
        padding: 10px 12px;
    }

    button.preorder {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        margin: 1rem 1.5rem 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .slideshow {
        height: auto;
    }
    
    .slide-btn {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .slideshow {
        height: auto;
    }
    
    .slide-btn {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .modal-content h2 {
        font-size: 1.2rem;
    }
    
    .product img {
        height: 180px;
    }

    .hero-logo {
        max-width: min(200px, 70vw);
    }
}

@media (max-height: 700px) {
    .slideshow {
        max-height: 55vh;
    }

    .nav-spacer {
        height: 64px;
    }

    .hero-container {
        min-height: calc(100vh - 64px);
        padding-top: 16px;
    }

    .hero-logo {
        max-width: min(220px, 70vw);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

/* Override slideshow sizing to ensure visibility */
.slideshow {
    height: clamp(240px, 60vh, 520px);
    max-height: 65vh;
    min-height: 240px;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-height: 700px) {
    .slideshow {
        height: clamp(220px, 55vh, 420px);
    }
}