/* CSS Reset & Global Fixes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #f8c9d9;
    --secondary-color: #ff9fb4;
    --accent-color: #b76e79;
    --text-color: #333;
    --text-muted: #666;
    --bg-color: #fefefe;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-curly: 'Great Vibes', cursive;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[v-cloak] { display: none; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

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

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    outline: none;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.cart-trigger {
    background: none;
    font-size: 1.2rem;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 50%;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Shopping Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    font-size: 1.5rem;
    color: #888;
}

.cart-items, .checkout-form {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
}

.item-details h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

.item-price {
    font-weight: 600;
    color: var(--accent-color);
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px;
}

.quantity-selector button {
    background: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.quantity-selector span {
    padding: 0 8px;
    font-size: 0.9rem;
}

.remove-item {
    background: none;
    color: #999;
    font-size: 0.75rem;
    text-decoration: underline;
    padding: 0;
}

/* Checkout Form */
.checkout-form {
    padding: 1.5rem;
}

.form-section h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

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

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

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
}

.order-summary-mini {
    margin-top: 2rem;
    padding: 1.2rem;
    background: #fdf7f9;
    border-radius: 12px;
    border: 1px solid #f8e1e7;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.summary-total {
    border-top: 1px solid #f8e1e7;
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.checkout-btn, .whatsapp-btn, .action-btn {
    width: 100%;
    padding: 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.checkout-btn, .action-btn {
    background: var(--accent-color);
    color: white;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-to-cart-btn {
    width: 100%;
    background: none;
    color: #888;
    font-size: 0.85rem;
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/banner.JPG');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.hero-curly {
    font-family: var(--font-curly);
    font-size: 3rem; /* Increased for effect */
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.cta-btn {
    background: #fff;
    color: var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Grid System */
.section-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.catalog-card {
    height: 180px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.catalog-content {
    padding: 0.8rem;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    text-align: center;
    width: 85%;
}

.catalog-content h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--accent-color);
}

.explore-link {
    font-size: 0.75rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    position: relative;
    padding-top: 125%;
    width: 100%;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 10px;
    left: 5%;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
}

.product-details {
    padding: 0.8rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 { font-size: 0.85rem; margin: 0; }
.product-price { font-weight: 700; color: var(--accent-color); font-size: 0.9rem; margin-top: 2px;}

/* Admin Styles */
.admin-view {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 2rem 0;
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-panel {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.panel-body { padding: 1.5rem; }

.manage-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    border-bottom: 1px solid #f5f5f5;
}

.mini-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

/* Footer */
.footer {
    background: #fff;
    padding: 4rem 0 2rem;
    border-top: 1px solid #eee;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.admin-access-btn {
    background: none;
    color: #999;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    width: 100%;
}

/* Desktop Overrides */
@media (min-width: 768px) {
    .nav-container { padding: 0 2rem; }
    .brand-logo { height: 110px; }
    .hero { height: 80vh; }
    .hero-curly { font-size: 5rem; }

    .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .catalog-card { height: 350px; }
    .catalog-content { width: 70%; }
    .catalog-content h3 { font-size: 1.5rem; }

    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .product-details { padding: 1.2rem; }
    .product-info h3 { font-size: 1rem; }

    .cart-sidebar { width: 400px; right: -400px; }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-brand {
        text-align: left;
    }
}
