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

:root {
    --pink: #ef4c83;
    --pink-dark: #d92f6b;
    --pale: #fff0f5;
    --cream: #fffaf7;
    --brown: #542719;
    --muted: #8b6c64;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--brown);
    font-family: 'Cairo', Tahoma, sans-serif;
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 5%;
    background: #fff7faef;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px #8f425014;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brown);
    font-size: 25px;
    font-weight: 900;
    white-space: nowrap;
}

.brand b {
    color: var(--pink);
}

.brand small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    margin-top: -5px;
}

.brand-avatar {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff9fbd;
    box-shadow: 0 3px 10px #ef4c8333;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--brown);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

nav a:hover {
    color: var(--pink);
}

/* BUTTONS */

.cart-button,
.primary-button {
    background: var(--pink);
    color: white;
    border-radius: 30px;
    padding: 12px 22px;
    font-weight: 800;
    box-shadow: 0 8px 20px #ef4c8333;
    transition: .2s;
}

.cart-button:hover,
.primary-button:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
}

/* HERO */

.hero {
    min-height: 460px;
    padding: 55px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    background:
        radial-gradient(circle at 80% 30%, #ffd5e3, transparent 35%),
        linear-gradient(110deg, #fff0f5, #fff9f6);
}

.eyebrow {
    display: inline-block;
    color: var(--pink-dark);
    font-weight: 800;
    background: #ffe0eb;
    padding: 7px 15px;
    border-radius: 20px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.25;
    margin: 16px 0;
    color: var(--brown);
}

.hero h1 em {
    font-style: normal;
    color: var(--pink);
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 28px;
}

.primary-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.hero-art {
    height: 330px;
    border-radius: 48% 52% 42% 58%;
    background: linear-gradient(145deg, #ffc7da, #ffe9ef);
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: inset 0 0 0 12px #ffffff80, 0 20px 50px #d94c7b22;
}

.cake-emoji {
    font-size: 170px;
    filter: drop-shadow(0 15px 10px #a64b4b30);
}

.floating {
    position: absolute;
    font-size: 52px;
}

.f1 {
    top: 30px;
    right: 50px;
}

.f2 {
    bottom: 22px;
    left: 42px;
}

.hero-note {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 10px 18px;
    border-radius: 16px;
    text-align: center;
    font-size: 12px;
    box-shadow: 0 5px 20px #9b516022;
}

.hero-note b {
    color: var(--pink);
    font-size: 16px;
}

/* SECTIONS */

.section {
    padding: 65px 6%;
}

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-heading span {
    color: var(--pink);
    font-weight: 800;
}

.section-heading h2 {
    font-size: 34px;
    margin: 3px 0;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
}

/* CATEGORIES */

.category-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 14px;
}

.category {
    background: white;
    border: 1px solid #ffd5e2;
    border-radius: 20px;
    padding: 18px 10px;
    text-align: center;
    display: grid;
    gap: 9px;
    font-size: 30px;
    box-shadow: 0 7px 20px #9d4e6510;
    cursor: pointer;
    font-family: inherit;
    transition: .2s ease;
}
.category:hover, .category.active {
    background: var(--pale);
    border-color: var(--pink);
    color: var(--pink-dark);
    transform: translateY(-2px);
}
.product-category-tag {
    display: inline-block;
    margin: 6px 0 8px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--pale);
    color: var(--pink-dark);
    font-size: 12px;
    font-weight: 800;
}
.category-empty { grid-column: 1 / -1; padding: 25px; text-align: center; }

.category b {
    font-size: 15px;
}

/* PRODUCTS */

.products-title {
    margin-top: 65px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid #f7dce5;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 25px #6b30200c;
}

.product-art {
    height: 170px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, #ffe2ec, #fff4ed);
    font-size: 86px;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    margin: 0 0 5px;
}

.product-info p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

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

.price {
    font-weight: 900;
    color: var(--pink-dark);
}

.add-button {
    background: #ffe3ed;
    color: var(--pink-dark);
    border-radius: 20px;
    padding: 8px 14px;
    font-weight: 800;
}

.add-button:hover {
    background: var(--pink);
    color: white;
}

/* OFFERS */

.offer {
    margin: 10px 6% 65px;
    padding: 35px 5%;
    border-radius: 28px;
    background: linear-gradient(110deg, #ffe0eb, #fff3ee);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer h2 {
    font-size: 30px;
    margin: 10px 0 0;
}

.offer p {
    color: var(--muted);
}

.offer-sticker {
    background: var(--pink);
    color: white;
    border-radius: 50%;
    width: 115px;
    height: 115px;
    display: grid;
    place-content: center;
    text-align: center;
    transform: rotate(8deg);
    font-weight: 700;
    flex-shrink: 0;
}

.offer-sticker b {
    font-size: 24px;
}

/* FOOTER */

footer {
    text-align: center;
    background: #542719;
    color: #fff0f5;
    padding: 35px 15px;
}

footer p {
    margin: 6px;
}

.footer-brand {
    font-size: 28px;
    font-weight: 900;
    color: #ff9fbd;
}

footer small {
    display: block;
    margin-top: 22px;
    color: #e7c5c9;
}

/* CART BACKDROP */

.cart-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: #2a151a66;
    z-index: 8;
}

.cart-backdrop.show {
    display: block;
}

/* CART PANEL - FIXED */

.cart-panel {
    position: fixed;
    z-index: 9;
    top: 0;
    left: 0;
    width: min(410px, 92vw);
    height: 100vh;
    height: 100dvh;
    background: #fffaf8;
    padding: 22px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    transform: translateX(-105%);
    transition: .25s;
    box-shadow: 10px 0 35px #0002;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3dce4;
    flex: 0 0 auto;
}

.cart-head h2 {
    font-size: 21px;
}

.cart-head button {
    background: #ffe5ee;
    border-radius: 50%;
    width: 35px;
    height: 35px;
}

.cart-items {
    flex: 1 1 auto;
    min-height: 100px;
    overflow-y: auto;
    padding: 12px 0;
}

.empty-cart,
.cart-hint {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f4e4e8;
}

.cart-line button {
    color: var(--pink-dark);
    background: none;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid #f3dce4;
    font-size: 18px;
    flex: 0 0 auto;
}

/* CHECKOUT DETAILS */

#checkoutDetails {
    width: 100%;
    flex: 0 0 auto;
    padding: 12px 0;
    max-height: 55vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#checkoutDetails h3 {
    color: var(--brown);
    margin: 10px 0;
}

#checkoutDetails input:not([type="file"]),
#checkoutDetails textarea {
    width: 100%;
    padding: 12px;
    margin: 7px 0;
    border: 1px solid #ead8d8;
    border-radius: 11px;
    background: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

#checkoutDetails input:focus,
#checkoutDetails textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px #ef4c8320;
}

#checkoutDetails textarea {
    resize: vertical;
}

/* CAKE IMAGE UPLOAD */

.cake-reference-upload {
    margin: 15px 0;
    padding: 16px;
    background: #fff0f5;
    border: 1px dashed #ef9fba;
    border-radius: 16px;
    text-align: right;
}

.cake-reference-upload h3 {
    color: var(--brown);
    font-size: 17px;
    margin: 0 0 8px;
}

.cake-reference-upload p {
    color: var(--muted);
    font-size: 13px;
    margin: 5px 0 12px;
}

#cakeReferenceImage {
    display: block;
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid #f2d5df;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
}

#cakeImagePreview {
    display: block;
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 14px auto;
    border-radius: 12px;
}

#removeCakeImage {
    display: none;
    padding: 9px 18px;
    margin-top: 10px;
    background: #ffe0eb;
    color: var(--pink-dark);
    border-radius: 10px;
    font-weight: 800;
}

#removeCakeImage:hover {
    background: #ffd0e0;
}

#checkoutDetails > p {
    color: var(--muted);
    font-size: 13px;
}

.checkout {
    justify-content: center;
    width: 100%;
    flex: 0 0 auto;
}

/* GOOGLE LOGIN */

.google-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #92716f;
}

.google-divider::before,
.google-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #ead8d8;
}

.account-card form .google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px;
    background: white;
    color: #444;
    border: 1px solid #dadce0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: none;
}

.account-card form .google-login-button:hover {
    background: #f8f9fa;
    transform: none;
}

.google-icon {
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 23px;
    color: #4285f4;
}

/* CUSTOMER ACCOUNT PAGE */

.account-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 15px;
    background: linear-gradient(135deg, #fff0f5, #fffaf5, #fce4ec);
}

.account-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    padding: 35px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(90, 45, 55, 0.12);
    border: 1px solid #ffe0eb;
}

.account-card .brand-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f8c6d8;
    margin-bottom: 12px;
}

.account-card h1 {
    color: #5b302b;
    font-size: 30px;
    margin: 5px 0;
}

.account-card > p {
    color: #92716f;
    margin-bottom: 25px;
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.account-tabs button {
    flex: 1;
    padding: 12px;
    border: 1px solid #f2c4d4;
    border-radius: 12px;
    background: #fff0f5;
    color: #8b3e5b;
    font-weight: bold;
}

.account-tabs button:hover {
    background: #ef4c83;
    color: white;
}

.account-card form h2 {
    color: #5b302b;
    font-size: 23px;
    margin-bottom: 20px;
}

.account-card form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #ead8d8;
    border-radius: 12px;
    background: #fffafc;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.account-card form input:focus {
    border-color: #ef4c83;
    box-shadow: 0 0 0 3px #ef4c8320;
}

.account-card form button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #ef4c83;
    color: white;
    font-family: inherit;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.account-card form button:hover {
    background: #d92f6b;
    transform: translateY(-2px);
}

#accountMessage {
    color: #8b3e5b;
    font-weight: bold;
    margin: 18px 0;
}

.account-card > a {
    display: inline-block;
    margin-top: 10px;
    color: #8b3e5b;
    text-decoration: none;
    font-weight: bold;
}

.account-card > a:hover {
    color: #ef4c83;
}

/* CAKE ANIMATION */

.cake-animation {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.cake-animation.show {
    display: block;
    animation: cakeAppear 0.7s ease-out;
}

.cake-animation .cake {
    font-size: 85px;
    animation: cakeBounce 1s ease-in-out infinite alternate;
}

.cake-animation h2 {
    color: #ef4c83;
    margin: 10px 0;
}

.cake-animation p {
    color: #8b3e5b;
}

@keyframes cakeAppear {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.5);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cakeBounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-12px);
    }
}

/* TABLET */

@media (max-width: 850px) {
    .site-header {
        flex-wrap: wrap;
        padding: 10px 4%;
    }

    .brand {
        font-size: 20px;
    }

    .brand-avatar {
        width: 46px;
        height: 46px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
        overflow: auto;
    }

    nav a {
        font-size: 12px;
        white-space: nowrap;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 45px 7%;
    }

    .hero-art {
        height: 260px;
    }

    .cake-emoji {
        font-size: 130px;
    }

    .category-row {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* MOBILE */

@media (max-width: 520px) {
    .cart-button {
        padding: 9px 13px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero p {
        font-size: 15px;
    }

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

    .category {
        padding: 16px 6px;
    }

    .offer {
        padding: 25px 6%;
        gap: 10px;
    }

    .offer h2 {
        font-size: 22px;
    }

    .offer-sticker {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }

    .cart-panel {
        width: 92vw;
        padding: 16px;
    }

    .account-card {
        padding: 25px 20px;
    }

    #checkoutDetails {
        max-height: 58vh;
    }
}

/* =================================
   Premium Footer - Batam Saadah
================================= */

.premium-footer {
    background: #542719;
    color: #fffaf7;
    padding: 45px 8% 20px;
    margin-top: 50px;
    border-radius: 25px 25px 0 0;
}

.premium-footer .footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 35px;
    padding-bottom: 30px;
}

.premium-footer .footer-brand h2 {
    color: #ff9fbd;
    font-size: 25px;
    margin: 0 0 10px;
}

.premium-footer .footer-brand p {
    color: #fffaf7;
    font-size: 14px;
    margin: 8px 0;
}

.premium-footer .footer-brand > span {
    color: #e6c7c2;
    font-size: 12px;
}

.premium-footer .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.premium-footer .footer-contact h3 {
    color: #ffb5cc;
    margin: 0 0 5px;
}

.premium-footer .footer-contact a {
    color: #fffaf7;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.premium-footer .footer-contact a:hover {
    color: #ff9fbd;
    transform: translateX(-4px);
}

.premium-footer .footer-bottom {
    border-top: 1px solid #ffffff30;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.premium-footer .footer-bottom small {
    color: #e6c7c2;
    font-size: 11px;
}

.premium-footer .developer-credit {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;

/* Category navigation cards and category page */
a.category {
    color: inherit;
    text-decoration: none;
}
.category-page-section {
    min-height: 55vh;
}
.category-back {
    margin-top: 18px;
    font-size: 14px;
}
.category-page-section .products-grid {
    margin-top: 30px;
}
