/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-color: rgb(254, 250, 246);
    --primary-color: #000000;
    --text-color: #333333;
    --pink-bg: rgb(228, 187, 187);
    --peach-bg: #e28e82;
    --header-font: 'Cormorant Garamond', serif;
    --body-font: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--header-font);
    font-weight: 400;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(254, 250, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 5%;
}

.nav-left {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.nav-link {
    font-size: 11px;
    /* Smaller font to prevent wrapping */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    max-height: 80px;
    /* Increased size */
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo {
    max-height: 60px;
    /* Increased size when scrolled */
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cart-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cart-container:hover .cart-icon {
    transform: scale(1.1);
}

.cart-icon {
    transition: var(--transition-smooth);
}

.cart-count {
    font-size: 14px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* For parallax */
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.1s linear;
}

.hero-content {
    color: #fff;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s 0.3s forwards ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-family: var(--header-font);
    font-style: italic;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    font-family: var(--body-font);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-dark {
    background: #444;
    color: #fff;
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-translucent {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-translucent:hover {
    background: rgba(255, 255, 255, 0.6);
}

.btn-peach {
    background: var(--peach-bg);
    color: #fff;
}

.btn-peach:hover {
    background: #cf7b70;
}

/* Sections */
.section {
    padding: 100px 10%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-title.italic {
    font-style: italic;
}

.sub-title {
    font-size: 1.1rem;
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-desc {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 15px;
    color: #666;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.product-card {
    cursor: pointer;
    text-align: left;
}

.img-wrapper {
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    border-radius: 2px;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .img-wrapper img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.product-card p {
    font-size: 14px;
    color: #888;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grand Celebrations */
.grand-celebrations {
    background-color: var(--pink-bg);
    color: #444;
}

.celebrations-content {
    max-width: 800px;
    margin: 0 auto;
}

.celebrations-desc {
    margin-bottom: 40px;
    font-family: var(--header-font);
    font-style: italic;
    font-size: 1.2rem;
}

/* Delivery Services */
.delivery-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.delivery-left {
    flex: 1;
    text-align: left;
}

.delivery-right {
    flex: 1;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--header-font);
    font-size: 1.5rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-top 0.4s;
    font-size: 14px;
    color: #666;
    text-align: left;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    margin-top: 15px;
}

.accordion-item:hover .accordion-header {
    color: var(--peach-bg);
}

/* Footer */
.footer {
    padding: 80px 10% 40px;
    text-align: center;
}

.address-line {
    font-size: 14px;
    margin-bottom: 40px;
    color: #444;
}

.footer-logo-container {
    margin-bottom: 50px;
}

.footer-logo {
    max-height: 60px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--peach-bg);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 5px;
}

.email-text {
    font-weight: 600;
}

.contact-btn {
    background: transparent;
    border: 1px solid var(--peach-bg);
    color: var(--peach-bg);
    padding: 8px 20px;
    margin-top: 15px;
    cursor: pointer;
    font-family: var(--body-font);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.contact-btn:hover {
    background: var(--peach-bg);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 30px;
    font-size: 12px;
    color: #888;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(254, 250, 246, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 100px 5%;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content,
.cart-modal-content {
    width: 100%;
    max-width: 1200px;
    position: relative;
    transform: translateY(50px);
    transition: var(--transition-smooth);
    opacity: 0;
}

.modal-overlay.active .modal-content,
.modal-overlay.active .cart-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.cart-modal-content {
    max-width: 600px;
    background: #fff;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    align-self: center;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 30px;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #333;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

#product-modal .close-modal {
    position: fixed;
    top: 30px;
    right: 50px;
    background: none;
    box-shadow: none;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.modal-product {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition-smooth);
}

.modal-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.modal-product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 11px;
}

/* Cart Items */
#cart-items-container {
    margin: 30px 0;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 14px;
    color: #888;
}

.remove-item {
    background: none;
    border: none;
    color: #ff5f5f;
    cursor: pointer;
    font-size: 12px;
}

#cart-summary {
    text-align: right;
    border-top: 2px solid #f4f4f4;
    padding-top: 20px;
}

#cart-summary p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Order Status Overlay */
.order-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.order-status-overlay.active {
    display: flex;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--peach-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-message {
    display: none;
}

.success-message.active {
    display: block;
}

.check-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 30px;
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.success-message p {
    margin-bottom: 30px;
    color: #666;
}

/* Details Modal Specific */
.details-flex {
    display: flex;
    gap: 50px;
    align-items: center;
}

.details-img-wrap {
    flex: 1;
}

.details-img-wrap img {
    width: 100%;
    border-radius: 4px;
}

.details-info {
    flex: 1;
    text-align: left;
}

.details-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.details-info p.price {
    font-size: 1.2rem;
    color: var(--peach-bg);
    margin-bottom: 30px;
}

.details-info p.desc {
    margin-bottom: 30px;
    color: #666;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #444;
    color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {

    .product-grid,
    .modal-product-grid,
    .footer-columns,
    .delivery-flex {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .nav-left {
        display: none;
        /* simple mobile nav */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .details-flex {
        flex-direction: column;
    }
}