/* public/assets/css/style.css */
:root {
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #f9f9f9;
    --gray: #666;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
}

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

.logo img {
    height: 44px;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
}

.cart-link {
    position: relative;
}

.cart-count {
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--black);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #333;
}

.btn-ghost {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--black);
}

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

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #f9f9f9;
    border-color: var(--black);
}

.view-btn.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.view-btn svg {
    display: block;
}

/* Products Container */
.products-container {
    margin-top: 2rem;
    width: 100%;
}

/* Products Grid View */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    justify-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.products-grid .product-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.products-grid .product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.products-grid .product-image-link {
    display: block;
    margin-bottom: 1rem;
    width: 100%;
}

.products-grid .product-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* force square images */
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.products-grid .product-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1; /* force square placeholder */
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 6px;
    border: 1px dashed #ddd;
    font-size: 0.875rem;
}

.products-grid .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.products-grid .product-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    min-height: 2.5rem;
}

.products-grid .product-card h3 a {
    text-decoration: none;
    color: inherit;
}

.products-grid .price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.products-grid .product-card .btn {
    margin-top: auto;
}

/* Products List View */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 2rem;
    text-align: left;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-items: center;
    transition: all 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
}

.products-list .product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.products-list .product-image-link {
    display: block;
}

.products-list .product-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.products-list .product-placeholder {
    width: 200px;
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

.products-list .product-info {
    display: flex;
    flex-direction: column;
}

.products-list .product-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    min-height: auto;
}

.products-list .product-card h3 a {
    text-decoration: none;
    color: inherit;
}

.products-list .product-card .price {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.products-list .product-card .btn {
    margin-top: 0;
    white-space: nowrap;
}

/* Product Card Base Styles */
.product-card {
    transition: all 0.3s ease;
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-image-link {
    text-decoration: none;
    display: block;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--black);
}

/* Product Detail */
.product-detail {
    padding: 3rem 0;
}

.product-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.image-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.image-thumbnails img:hover {
    border-color: var(--black);
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.variant-selector,
.quantity-selector {
    margin: 1rem 0;
}

.variant-selector select,
.quantity-selector input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.variant-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-option:hover {
    background: #f9f9f9;
    border-color: var(--black);
}

.variant-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.variant-option input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.variant-option span {
    flex: 1;
    cursor: pointer;
}

/* Cart */
.cart {
    padding: 3rem 0;
}

.cart h1 {
    margin-bottom: 2rem;
}

.cart-items {
    margin-top: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 120px 140px 100px;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.cart-item-info .price {
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-item-quantity {
    text-align: center;
}

.cart-item-quantity input[type="number"] {
    width: 80px;
    padding: 0.4rem 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.cart-item-total {
    text-align: right;
}

.cart-item-total p {
    font-size: 1.15rem;
    font-weight: 600;
}

.remove-item {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.remove-item:hover {
    background: #f5f5f5;
}

.cart-summary {
    margin-top: 2.5rem;
    text-align: right;
}

/* Checkout */
.checkout-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.delivery-options {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    margin-top: 0.5rem;
}

.delivery-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.delivery-options p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.35rem;
}

.order-summary .shipping-line {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.order-summary {
    background: var(--gray-light);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 6px;
}

/* Footer */
.footer {
    background: var(--gray-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--black);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.blog-content {
    margin-top: 2rem;
    line-height: 1.8;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 2rem auto;
}

.about-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Services */
.service-content {
    max-width: 800px;
    margin: 2rem auto;
}

.service-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.booking-cta {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 6px;
    margin-top: 2rem;
    text-align: center;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 6px;
}

.contact-form {
    max-width: 100%;
}

/* How it works */
.how-it-works {
    background: var(--gray-light);
    padding: 3rem 0;
    margin: 3rem 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Newsletter */
.newsletter {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.newsletter h2,
.newsletter p {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
}

/* Why Revera */
.why-revera {
    padding: 3rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.why-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.why-item p {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Testimonials */
.testimonials {
    padding: 3rem 0;
    background: var(--gray-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #eee;
}

.testimonial p {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.testimonial-name {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Shop */
.shop-header {
    text-align: center;
    padding: 3rem 0;
}

.shop-header .container {
    max-width: 800px;
    margin: 0 auto;
}

.shop-content {
    margin: 2rem 0;
    padding: 0;
    text-align: center;
}

.categories-bar {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin: 0;
}

.category-list a {
    color: var(--black);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.category-list a:hover,
.category-list a.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.shop-main {
    max-width: 100%;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex: 1;
    max-width: 500px;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Order confirmation */
.order-confirmation {
    padding: 3rem 0;
}

.order-details {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 6px;
    margin: 2rem 0;
}

.order-item {
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.order-total {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.order-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Health Check-in Quiz */
.health-checkin {
    padding: 3rem 0;
}

.health-checkin .container {
    max-width: 900px;
    margin: 0 auto;
}

.health-quiz {
    margin-top: 2rem;
}

.quiz-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.quiz-dots {
    display: flex;
    gap: 0.4rem;
}

.quiz-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
}

.quiz-dot.active {
    background: var(--black);
}

.quiz-body h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    background: #fafafa;
}

.quiz-option:hover,
.quiz-option:focus-visible {
    border-color: var(--black);
    background: #f0f0f0;
}

.quiz-option.selected {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.quiz-option input {
    display: none;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.quiz-result {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.quiz-tips-item {
    margin-bottom: 1.25rem;
}

.quiz-tips-item h4 {
    margin-bottom: 0.25rem;
}

.quiz-disclaimer {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.quiz-lead {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: var(--gray-light);
}

.quiz-lead form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.quiz-lead input {
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: inherit;
}

.quiz-lead-status {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .quiz-card {
        padding: 1.5rem 1.25rem;
    }
    
    .quiz-lead form {
        grid-template-columns: 1fr;
    }
}

/* Tablet View */
@media (max-width: 1024px) and (min-width: 769px) {
    .shop-content {
        padding: 0 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        padding: 0 1.5rem;
    }
    
    .products-grid .product-card {
        max-width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-detail .container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .category-list {
        gap: 0.5rem;
    }
    
    .category-list a {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .products-list .product-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1rem;
    }
    
    .products-list .product-image-link {
        margin: 0 auto;
    }
    
    .products-list .product-card img,
    .products-list .product-placeholder {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .products-grid .product-placeholder {
        height: 200px;
    }
    
    .shop-content {
        padding: 0;
    }
    
    .categories-bar {
        padding: 1.5rem 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .products-grid .product-card {
        max-width: 100%;
        padding: 1rem;
    }
    
    .products-grid .product-card img,
    .products-grid .product-placeholder {
        height: 180px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 1rem 2rem;
        border-top: 1px solid #eee;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}
