/* Habito Studio Design Guide Implementation */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from design guide */
    --white: rgb(255, 255, 255);
    --black: rgb(17, 17, 17);
    --dark-gray: rgb(24, 24, 24);
    --teal: rgb(1, 86, 91);
    --yellow-green: rgb(203, 235, 58);
    --semi-transparent-black: rgba(17, 17, 17, 0.2);

    /* Typography scale */
    --h1-size: 83.33px;
    --h2-size: 83.33px;
    --h3-size: 33.33px;
    --body-size: 13.33px;
    --span-size: 13.33px;

    /* Container width */
    --container-width: 1185px;
}

body {
    font-family: 'Inter', 'Neuemontreal', Arial, sans-serif;
    font-size: var(--body-size);
    line-height: var(--body-size);
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -1px;
    text-decoration: none;
    color: var(--black);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 13.33px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Typography */
.section-title {
    font-size: var(--h2-size);
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 75px;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.product-title {
    font-size: var(--h2-size);
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 75px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.product-subtitle {
    font-size: var(--h3-size);
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 40px;
    margin-bottom: 40px;
    color: var(--black);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background-color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Product Showcase */
.product-showcase {
    position: relative;
}

.main-image-container {
    position: relative;
    margin-bottom: 20px;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--white);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--black);
}

/* Product Info */
.product-info {
    padding-right: 40px;
}

.price-section {
    margin-bottom: 30px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
}

.tax-info {
    font-size: var(--body-size);
    color: var(--black);
    opacity: 0.7;
    margin-left: 10px;
}

.product-description {
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Options Section */
.options-section {
    margin-bottom: 40px;
}

.option-group h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.option-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid var(--black);
    font-size: var(--body-size);
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover,
.option-btn.active {
    background: var(--black);
    color: var(--white);
}

.color-options {
    display: flex;
    gap: 15px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--black);
    transform: scale(1.1);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    font-size: var(--body-size);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

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

.btn-secondary {
    background: var(--white);
    color: var(--black);
    padding: 15px 40px;
    border: 1px solid var(--black);
    font-size: var(--body-size);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-secondary:hover {
    background: var(--semi-transparent-black);
}

/* Product Meta */
.product-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.meta-label {
    font-weight: 500;
}

.meta-value {
    color: var(--black);
    opacity: 0.7;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--dark-gray);
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: var(--body-size);
    line-height: 1.6;
    opacity: 0.9;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.text-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.text-link:hover {
    opacity: 0.6;
}

.about-image img {
    width: 100%;
    height: auto;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--dark-gray);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    color: var(--white);
    font-family: inherit;
    font-size: var(--body-size);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--black);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: var(--body-size);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--body-size);
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--black);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 0;
    transition: bottom 0.3s ease;
    z-index: 2000;
}

.toast.show {
    bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1184px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 767px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .section-title,
    .product-title {
        font-size: 48px;
        line-height: 1.2;
    }

    .product-subtitle {
        font-size: 24px;
        line-height: 1.4;
    }

    .price {
        font-size: 36px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}