@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-primary: #FDFBF7;
    --bg-secondary: #FFFFFF;
    --text-primary: #3E2723;
    --text-secondary: #6D4C41;
    --primary-color: #E8A598;
    --primary-hover: #D78E80;
    --accent-color: #C5A880;
    --accent-hover: #B5966D;
    --border-color: #F0ECE6;
    --success-color: #557A46;
    --danger-color: #B2533E;
    --shadow-sm: 0 2px 8px rgba(92, 61, 46, 0.05);
    --shadow-md: 0 8px 24px rgba(92, 61, 46, 0.08);
    --shadow-lg: 0 16px 40px rgba(92, 61, 46, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .brand-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

/* Header & Navigation */
header {
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 40px;
}

.brand-name {
    font-size: 1.6rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.brand-name span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

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

.cart-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(232, 165, 152, 0.15) 0%, rgba(197, 168, 128, 0.1) 100%);
    padding: 5rem 2rem;
    text-align: center;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-hover);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    margin-left: 1rem;
}

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

/* Main Container */
main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
    width: 100%;
}

/* Catalog Filter */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.filter-container {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-secondary);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

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

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

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #F7F4EF;
    overflow: hidden;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.product-badge.out-of-stock {
    background-color: var(--danger-color);
    color: white;
}

.product-badge.low-stock {
    background-color: var(--accent-color);
    color: white;
}

.product-badge.ready {
    background-color: var(--success-color);
    color: white;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-hover);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

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

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

.product-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Product Detail Page */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
}

.detail-gallery {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: #F7F4EF;
}

.detail-gallery img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.detail-desc-block {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.detail-desc-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.detail-desc-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.order-form-box {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: white;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quantity-val {
    width: 50px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    background: transparent;
}

.quantity-val::-webkit-outer-spin-button,
.quantity-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-full {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

/* Cart & Checkout Page */
.cart-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-items-container, .checkout-form-container {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.cart-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #F7F4EF;
    flex-shrink: 0;
}

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

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

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item-remove {
    color: var(--danger-color);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-remove:hover {
    text-decoration: underline;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 165, 152, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Payment Methods Selection */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
.payment-option {
    cursor: pointer;
    display: block;
}
.payment-option input[type="radio"] {
    display: none;
}
.payment-option .payment-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    transition: var(--transition);
    text-align: center;
    gap: 0.3rem;
    height: 100%;
}
.payment-option .payment-box i {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}
.payment-option .payment-box strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}
.payment-option .payment-box small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.payment-option input[type="radio"]:checked + .payment-box {
    border-color: var(--primary-color);
    background-color: rgba(232, 165, 152, 0.08);
}
.payment-option input[type="radio"]:checked + .payment-box i {
    color: var(--primary-color);
}
.payment-option input[type="radio"]:checked + .payment-box strong {
    color: var(--primary-hover);
}


.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    color: var(--text-primary);
}

.cart-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-empty-state h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Success Page */
.success-card {
    background-color: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    max-width: 600px;
    margin: 3rem auto 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.success-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.order-summary-box {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.invoice-number {
    font-family: monospace;
    font-weight: bold;
    color: var(--accent-hover);
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: #EFEBE9;
    padding: 3.5rem 2rem 2rem 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--bg-primary);
}

.footer-brand p {
    font-size: 0.95rem;
    color: #BCAAA4;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #BCAAA4;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    font-size: 0.95rem;
    color: #BCAAA4;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #4E342E;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #8D6E63;
}
