@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@500;600;700&display=swap');

:root {
    --primary: #9e3b3b;
    --primary-light: #c96565;
    --primary-dark: #702626;
    --secondary: #fff5eb;
    --accent: #3e211b; /* Darker cocoa for better contrast */
    --text-main: #4a3b37;
    --text-light: #8a7a75;
    --bg-main: #fdfbf9;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #2ecc71; 
    
    --radius-sm: 18px;
    --radius-md: 28px;
    --radius-lg: 40px;
    --radius-pill: 60px;
    
    --shadow-sm: 0 5px 15px rgba(158, 59, 59, 0.05);
    --shadow-ambient: 0 15px 35px rgba(158, 59, 59, 0.1);
    --shadow-hover: 0 25px 50px rgba(158, 59, 59, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

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

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

@keyframes fadeInPage {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

main {
    padding: 3rem 0;
    flex: 1;
    animation: fadeInPage 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(158, 59, 59, 0.04) 0%, transparent 50%),
                radial-gradient(circle at bottom left, rgba(212, 128, 106, 0.04) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    color: var(--accent);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Glassmorphism */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    color: var(--accent);
    padding: 1.2rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

header:hover {
    background: rgba(255, 255, 255, 0.85);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

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

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

.cart-btn {
    background: var(--primary);
    color: var(--white);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy hover */
    box-shadow: 0 6px 15px rgba(158, 59, 59, 0.25);
}

.cart-btn:hover {
    background: var(--primary-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(158, 59, 59, 0.35);
    color: white;
}

.cart-count {
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

/* Main Content */
main {
    padding: 3rem 0;
    flex: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    background: transparent;
    padding: 2rem 1rem 1rem 1rem;
    border: none;
    box-shadow: none;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Success Message */
.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
    border-left: 5px solid #4caf50;
    box-shadow: var(--shadow-sm);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 35px;
    padding: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-ambient);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 35px;
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.product-card:hover::after {
    box-shadow: inset 0 0 0 2px rgba(158, 59, 59, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 25px;
    border: none;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image {
    transform: scale(1.05);
}

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

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-family: 'Quicksand', sans-serif;
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.quantity-control label {
    font-weight: 600;
    color: var(--text-light);
}

.quantity-input {
    width: 70px;
    padding: 0.6rem;
    border: 2px solid #eaeaea;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: border-color 0.3s;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.1rem 2.2rem;
    border: none;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.92) !important;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    width: 100%;
    box-shadow: 0 8px 25px rgba(158, 59, 59, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(158, 59, 59, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    color: var(--primary-dark);
    border: 1.5px solid rgba(212, 126, 51, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(212, 126, 51, 0.25);
}

.btn-danger {
    background: #fff;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger) 0%, #d83a3a 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.3);
    border-color: transparent;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Cart Link */
.cart-link {
    text-align: center;
    margin: 3rem 0;
}

.cart-link a {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(62, 39, 35, 0.2);
}

.cart-link a:hover {
    background: #5c3a21;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(62, 39, 35, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px dashed #eaeaea;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.8rem;
}

.empty-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-content p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Forms & Auth */
.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.form-control, input[type="text"], input[type="tel"], input[type="password"], input[type="email"], input[type="number"], textarea, select {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-pill);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--white);
    color: var(--accent);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.01);
}

.form-control:focus, input[type="text"]:focus, input[type="tel"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(158, 59, 59, 0.15), 0 8px 15px rgba(0,0,0,0.05);
    background: #ffffff;
    transform: translateY(-3px);
}

textarea {
    border-radius: var(--radius-md); /* Override pill for textarea */
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}

/* Select replaced in main form-control */

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header {
        padding: 2rem 1rem;
    }

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

.cart-container {
    background: var(--white);
    border-radius: 20px 80px 20px 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-ambient);
    margin-bottom: 2rem;
    border: none;
}

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

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.item-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.item-checkbox:hover {
    transform: scale(1.2);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px 30px 10px 10px;
    box-shadow: var(--shadow-ambient);
}

.cart-item-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--accent);
    font-family: 'Lora', serif;
}

.cart-item-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-size: 1.2rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

/* Cart Summary */
.cart-summary {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px dashed var(--primary-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    border-top: 2px dashed rgba(58,43,37,0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Checkout Wrapper */
.checkout-wrapper {
    margin-bottom: 2rem;
}

/* Checkout Form */
.checkout-form {
    background: var(--white);
    border-radius: 20px 80px 20px 20px;
    padding: 3.5rem;
    box-shadow: var(--shadow-ambient);
    border: none;
}

.checkout-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(210,105,30,0.1);
}

.header-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.header-content h2 {
    color: var(--accent);
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
}

.header-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.checkout-section {
    margin-bottom: 2.5rem;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(210,105,30,0.1);
}

.section-header h3 {
    color: var(--accent);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-container {
    background: linear-gradient(135deg, rgba(210,105,30,0.05) 0%, rgba(255,107,107,0.03) 100%);
    border: 2px solid rgba(210,105,30,0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed rgba(210,105,30,0.2);
}

.summary-header span:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.summary-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: normal !important;
}

.checkout-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.checkout-actions .btn {
    padding: 1.1rem 2rem;
    font-size: 1rem;
    flex: 1;
}

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

.payment-options,
.shipping-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1rem;
}

.option-card {
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    padding: 1.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.35s ease;
    text-align: center;
    background: var(--white);
    color: var(--accent);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.05) 0%, rgba(255,107,107,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(210, 105, 30, 0.15);
}

.option-card:hover::before {
    opacity: 1;
}

.option-card input[type="radio"] {
    margin-bottom: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
    width: 1.3rem;
    height: 1.3rem;
}

.option-card h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--accent);
}

.option-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
}

.option-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.08) 0%, rgba(255,107,107,0.05) 100%);
    box-shadow: 0 8px 24px rgba(210, 105, 30, 0.2);
}

.option-card.selected h4 {
    color: var(--primary);
    font-weight: 700;
}

.error-message {
    background: #fdf3f4;
    color: var(--danger);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
    border-left: 5px solid var(--danger);
    box-shadow: var(--shadow-sm);
}

.empty-cart {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-light);
}

.empty-cart h3 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
}

.empty-cart p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 8px 25px rgba(118, 163, 130, 0.25);
    border: none;
}

.btn-success:hover {
    background: #5a8565;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(90, 133, 101, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .cart-item img {
        width: 80px;
        height: 80px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .form-row,
    .payment-options,
    .shipping-options {
        grid-template-columns: 1fr;
    }
    
    .checkout-wrapper {
        margin-bottom: 1rem;
    }
    
    .checkout-form {
        padding: 2rem 1.5rem;
    }
    
    .checkout-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .checkout-section {
        margin-bottom: 1.8rem;
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .summary-container {
        padding: 1.5rem;
    }
    
    .summary-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .option-card {
        padding: 1.2rem 1rem;
    }
    
    .option-card h4 {
        font-size: 1rem;
    }
}

/* ===== Modal Styles (Redesigned) ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
}

@keyframes modalZoomIn {
    0% { opacity: 0; transform: scale(0.7) translateY(50px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalZoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #888;
    background: #f1f1f1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: #fff;
    background: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.modal-image-container {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: var(--secondary);
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    width: 100%;
}

.modal-info #modalName {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 5px;
}

.modal-info #modalRating {
    margin-bottom: 15px;
    color: #ffb400;
}

.modal-info #modalDescription {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-info #modalPrice {
    color: var(--primary);
    font-weight: 900;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* ===== Search Bar ===== */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    padding: 0 15px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-pill);
    box-shadow: 0 5px 20px rgba(210, 105, 30, 0.15);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.25);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--primary);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 55px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    color: var(--accent);
    background: transparent;
}

.search-input:focus {
    outline: none;
    box-shadow: none; /* override default form-control shadow if applied */
}

.search-clear {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    color: var(--danger);
    transform: scale(1.1);
}

/* ===== New Hero Section (2 Columns) ===== */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, rgba(255, 245, 235, 0.8) 0%, rgba(253, 251, 249, 0.9) 100%);
    border-radius: 40px;
    margin-bottom: 4rem;
    box-shadow: 0 15px 45px rgba(158, 59, 59, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.badge-premium {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(201, 101, 101, 0.3);
}

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

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating-cake {
    width: 400px;
    height: auto;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(158,59,59,0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

/* ===== Features Section ===== */
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(158,59,59,0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== Modern Footer ===== */
.modern-footer {
    background: var(--accent);
    color: white;
    position: relative;
    padding-top: 80px;
    margin-top: 5rem;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-99%);
}

.footer-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave .shape-fill {
    fill: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-about h3, .footer-links h3, .footer-contact h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-about p {
    color: #e0d5d2;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

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

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

.footer-links a {
    color: #e0d5d2;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact p {
    color: #e0d5d2;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a3928e;
}

/* ===== Custom Scrollbar & Selection ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::selection {
    background: rgba(158, 59, 59, 0.2);
    color: var(--primary-dark);
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .features-section {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}
