
/* =========================================
   The Cake Wala - PINK & CHOCOLATE PREMIUM THEME
   ========================================= */

:root {
    --chocolate: #3A1024;
    --espresso: #50152F;
    --brown: #702044;
    --gold: #F45A9A;
    --gold-dark: #D92F78;
    --cream: #FFF0F6;
    --page-bg: #FFF8FB;
    --white: #FFFFFF;
    --text: #42172D;
    --muted: #8D7180;
    --border: #F2C8D9;
    --success: #28613A;
    --danger: #B42318;
    --shadow: 0 4px 18px rgba(53, 20, 7, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--page-bg);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.wrap {
    max-width: 1180px;
    margin: auto;
    padding: 0 20px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.top {
    background: linear-gradient(
        180deg,
        var(--espresso) 0%,
        var(--chocolate) 100%
    );
    border-bottom: 1px solid #A33A69;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.20);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top .nav .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.top .nav .logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.top .nav .brand-name-img {
    width: 190px;
    height: 55px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: var(--gold);
}

.logo span {
    color: var(--gold);
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    font-size: 14px;
    font-weight: 600;
}

.top nav a {
    color: var(--cream);
    transition: color 0.2s ease;
}

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

/* =========================================
   MAIN & HERO SECTION
   ========================================= */

main {
    min-height: 70vh;
}

.hero {
    padding: 75px 0;
    background: linear-gradient(
        135deg,
        #FFF2F7 0%,
        #F0D9B0 55%,
        #E5C28C 100%
    );
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: 54px;
    line-height: 1.05;
    margin: 10px 0;
    color: var(--chocolate);
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    color: #80556B;
    line-height: 1.7;
}

.section {
    padding: 50px 0;
}

.section h2 {
    text-align: center;
    font-family: Georgia, serif;
    font-size: 34px;
    color: var(--chocolate);
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-block;
    background: linear-gradient(
        135deg,
        var(--gold),
        #D9A843
    );
    color: var(--chocolate);
    padding: 13px 20px;
    border-radius: 9px;
    border: 1px solid var(--gold-dark);
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    background: #FFC1DB;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn.alt {
    background: var(--chocolate);
    color: var(--gold);
    border: 1px solid var(--gold-dark);
}

.btn.alt:hover {
    background: var(--brown);
    color: #FFC1DB;
}

button,
input[type="submit"] {
    font-family: inherit;
}

/* =========================================
   PRODUCT GRIDS & CARDS
   ========================================= */

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

.card,
.productcard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.productcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53, 20, 7, 0.14);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #F7DCE8;
}

.cardbody {
    padding: 15px;
}

.card h3,
.productcard h3 {
    color: var(--chocolate);
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: #B83270;
}

.muted,
.hint {
    color: var(--muted);
}

.hint {
    font-size: 13px;
}

.productgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.productcard {
    padding: 12px;
}

.productcard img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 9px;
}

.productcard h3 {
    margin: 10px 0;
}

/* =========================================
   SINGLE PRODUCT PAGE
   ========================================= */

.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px 0;
}

.product img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 18px;
}

.qty {
    width: 80px;
    padding: 11px;
}

/* =========================================
   FORMS & LOGIN
   ========================================= */

.formbox {
    max-width: 560px;
    margin: 40px auto;
    background: var(--white);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.formbox h1,
.formbox h2,
.formbox h3 {
    color: var(--chocolate);
}

.formbox input,
.formbox textarea,
.formbox select,
.table input {
    width: 100%;
    padding: 12px;
    margin: 7px 0 14px;
    border: 1px solid #D8C3A2;
    border-radius: 8px;
    background: #FFFAFC;
    color: var(--text);
    font: inherit;
}

.formbox input:focus,
.formbox textarea:focus,
.formbox select:focus,
.table input:focus {
    outline: 2px solid var(--gold);
    border-color: var(--gold-dark);
}

.formgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

/* =========================================
   CART & CHECKOUT
   ========================================= */

.cartrow {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px 100px;
    gap: 15px;
    align-items: center;
    background: var(--white);
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.cartrow img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.totalbox {
    max-width: 420px;
    margin: 25px 0 50px auto;
    background: var(--white);
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.notice {
    padding: 13px;
    background: #FFE6F0;
    border: 1px solid #F4A9C8;
    color: #5D3A0C;
    border-radius: 8px;
    margin: 15px 0;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    background: linear-gradient(
        180deg,
        var(--espresso),
        var(--chocolate)
    );
    color: var(--cream);
    margin-top: 30px;
}

footer a {
    color: var(--cream);
}

footer a:hover {
    color: var(--gold);
}

.footergrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding: 45px 20px;
}

.copy {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #8E315B;
    color: #EBC8D8;
}

/* =========================================
   ADMIN PANEL
   ========================================= */

.admin {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh;
    background: var(--page-bg);
}

.side {
    background: linear-gradient(
        180deg,
        var(--espresso),
        var(--chocolate)
    );
    color: var(--cream);
    padding: 25px;
    border-right: 1px solid #8E315B;
}

.side h1,
.side h2,
.side h3 {
    color: var(--gold);
}

.side a {
    display: block;
    padding: 11px 0;
    color: var(--cream);
    transition: color 0.2s ease;
}

.side a:hover,
.side a.active {
    color: var(--gold);
}

.dash {
    padding: 30px;
}

.dash h1,
.dash h2,
.dash h3 {
    color: var(--chocolate);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat h2,
.stat strong {
    color: #B83270;
}

/* =========================================
   ADMIN TABLES
   ========================================= */

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #EDE0CD;
    text-align: left;
}

.table th {
    background: var(--chocolate);
    color: var(--gold);
}

.table tr:hover td {
    background: #FFF2F7;
}

.actions a {
    margin-right: 8px;
    color: #B83270;
    font-weight: 600;
}

.actions a:hover {
    color: var(--chocolate);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 800px) {
    nav {
        gap: 10px;
        font-size: 12px;
    }

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

    .grid,
    .productgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .cartrow {
        grid-template-columns: 60px 1fr;
    }

    .cartrow > *:nth-child(n+3) {
        grid-column: 2;
    }

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

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

    .side {
        min-height: auto;
    }

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

    .top .nav {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .top .nav .logo-img {
        width: 45px;
        height: 45px;
    }

    .top .nav .brand-name-img {
        width: 145px;
        height: 42px;
    }

    .top .nav nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .formgrid,
    .productgrid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 45px 0;
    }

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

    .section h2 {
        font-size: 28px;
    }

    .dash {
        padding: 18px;
        overflow-x: auto;
    }

    .table {
        min-width: 600px;
    }

    .top .nav .brand-name-img {
        width: 125px;
        height: 36px;
    }
}

/* ===================================
   The Cake Wala - PINK & CHOCOLATE HOMEPAGE
   =================================== */

.cake-hero {
    background:
        radial-gradient(ellipse at 82% 45%, #7A2148 0%, transparent 40%),
        linear-gradient(120deg, #2A0B1B, #50152F 65%, #3A1024);
    color: #FFF0F6;
    overflow: hidden;
    position: relative;
}

.cake-hero-inner {
    min-height: 510px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 35px;
    padding-top: 65px;
    padding-bottom: 65px;
}

.cake-hero-content {
    max-width: 680px;
}

.cake-eyebrow {
    display: inline-block;
    color: #D34D86;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.8;
}

.cake-hero .cake-eyebrow {
    color: #F45A9A;
}

.cake-hero h1 {
    font-family: Georgia, serif;
    color: #FFE3EF;
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.08;
    margin: 18px 0;
    letter-spacing: -1.5px;
}

.cake-hero h1 span {
    display: block;
    color: #F45A9A;
}

.cake-hero-content > p {
    max-width: 540px;
    color: #F6DCE8;
    line-height: 1.9;
    font-size: 16px;
}

.cake-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cake-gold-btn {
    background: linear-gradient(135deg, #FF8DBB, #D92F78);
    border: 1px solid #F45A9A;
    color: #3A1024;
    border-radius: 7px;
    padding: 14px 22px;
}

.cake-gold-btn:hover {
    background: #FFE8AE;
    color: #3A1024;
}

.cake-outline-btn {
    background: transparent;
    color: #F45A9A;
    border: 1px solid #D45B8C;
    border-radius: 7px;
    padding: 14px 22px;
}

.cake-outline-btn:hover {
    background: #702044;
    color: #FFC1DB;
}

.cake-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 28px;
    font-size: 11px;
    color: #EBC8D8;
}

.cake-hero-art {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cake-hero-frame {
    width: min(100%, 320px);
    min-height: 290px;
    border: 1px solid #D45B8C;
    border-radius: 160px 160px 16px 16px;
    background: linear-gradient(145deg, #7A2148, #210A03);
    box-shadow: 0 15px 50px #00000035;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 25px;
    text-align: center;
}

.cake-hero-symbol {
    font-size: 105px;
    line-height: 1.2;
    filter: drop-shadow(0 10px 12px #00000050);
}

.cake-art-caption {
    color: #F45A9A;
    font-family: Georgia, serif;
    font-size: 22px;
}

.cake-art-subcaption {
    color: #F6DCE8;
    font-size: 12px;
}

.cake-floating-note {
    margin-top: -18px;
    background: #FFF1F7;
    color: #50152F;
    padding: 12px 18px;
    border: 1px solid #F4A9C8;
    border-radius: 5px;
    box-shadow: 0 5px 20px #00000020;
    font-size: 12px;
    font-weight: 700;
}

.cake-floating-note span {
    color: #D34D86;
    margin-right: 7px;
}

/* Trust strip */

.cake-trust {
    background: #FFE3EF;
    border-bottom: 1px solid #F2C8D9;
}

.cake-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 22px;
    padding-bottom: 22px;
    gap: 15px;
}

.cake-trust-grid > div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #874663;
}

.cake-trust-grid strong {
    font-family: Georgia, serif;
    font-size: 24px;
    color: #D34D86;
}

/* Section headings */

.cake-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.cake-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 30px;
}

.cake-section-heading h2,
.cake-centered-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(27px, 3vw, 38px);
    color: #3A1024;
    line-height: 1.2;
    margin: 9px 0 12px;
}

.cake-section-heading p,
.cake-centered-heading > p {
    color: #8D7180;
    line-height: 1.8;
    font-size: 14px;
    max-width: 580px;
    margin: 0;
}

.cake-text-link {
    color: #A83B70;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    padding-bottom: 5px;
}

.cake-text-link:hover {
    color: #3A1024;
}

/* Category cards */

.cake-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.cake-category-card {
    min-height: 190px;
    background: linear-gradient(145deg, #FFFFFF, #FFEAF2);
    border: 1px solid #F2C8D9;
    border-radius: 12px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cake-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #50152F15;
    border-color: #D92F78;
}

.cake-category-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #50152F;
    color: #F45A9A;
    border-radius: 50%;
}

.cake-category-card h3 {
    font-family: Georgia, serif;
    font-size: 19px;
    color: #50152F;
    margin: 16px 0 7px;
}

.cake-category-card p {
    font-size: 12px;
    line-height: 1.7;
    color: #8D7180;
    margin: 0 0 16px;
}

.cake-category-link {
    color: #B83270;
    font-size: 12px;
    font-weight: 800;
    margin-top: auto;
}

/* Products */

.cake-favourites {
    background: #FCE5EF;
    border-top: 1px solid #F2C8D9;
    border-bottom: 1px solid #F2C8D9;
}

.cake-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.cake-product-card {
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #F2C8D9;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cake-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #50152F18;
}

.cake-product-image {
    height: 235px;
    position: relative;
    display: block;
    background: #E9D9C4;
    overflow: hidden;
}

.cake-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cake-product-card:hover .cake-product-image img {
    transform: scale(1.04);
}

.cake-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #50152F;
    color: #F45A9A;
    font-size: 10px;
    font-weight: 800;
}

.cake-product-info {
    padding: 17px;
}

.cake-product-label {
    color: #B83270;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cake-product-info h3 {
    min-height: 44px;
    margin: 9px 0 14px;
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.4;
    color: #50152F;
}

.cake-product-info h3 a:hover {
    color: #B83270;
}

.cake-product-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #F7DCE8;
    padding-top: 13px;
}

.cake-product-bottom .price {
    color: #A83B70;
    font-size: 17px;
}

.cake-view-btn {
    color: #50152F;
    font-size: 11px;
    font-weight: 800;
}

.cake-view-btn:hover {
    color: #B83270;
}

/* Custom cake banner */

.cake-custom-section {
    padding-top: 65px;
    padding-bottom: 65px;
}

.cake-custom-banner {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
    gap: 35px;
    background: linear-gradient(120deg, #3A1024, #702044);
    color: #FFF0F6;
    border: 1px solid #9A6D2D;
    border-radius: 16px;
    padding: 45px;
    overflow: hidden;
}

.cake-custom-banner h2 {
    color: #FFE3EF;
    font-family: Georgia, serif;
    font-size: clamp(28px, 3vw, 40px);
    margin: 12px 0;
}

.cake-custom-banner p {
    max-width: 560px;
    color: #F6DCE8;
    line-height: 1.9;
    font-size: 14px;
    margin-bottom: 24px;
}

.cake-custom-art {
    text-align: center;
    padding: 25px;
    border: 1px solid #D45B8C;
    border-radius: 12px;
    background: #FFFFFF08;
}

.cake-custom-art > span {
    font-size: 85px;
}

.cake-custom-art p {
    font-family: Georgia, serif;
    color: #F45A9A;
    font-size: 17px;
    margin: 15px 0 0;
}

/* How to order */

.cake-centered-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 35px;
}

.cake-centered-heading > p {
    margin: auto;
}

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

.cake-step {
    padding: 28px;
    border: 1px solid #F2C8D9;
    border-radius: 12px;
    background: #FFFFFF;
}

.cake-step > span {
    color: #D34D86;
    font-family: Georgia, serif;
    font-size: 34px;
}

.cake-step h3 {
    color: #50152F;
    font-family: Georgia, serif;
    font-size: 20px;
}

.cake-step p {
    color: #8D7180;
    font-size: 13px;
    line-height: 1.8;
}

/* Empty states */

.cake-empty {
    padding: 35px;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #F2C8D9;
    border-radius: 12px;
    color: #874663;
}

/* Final call to action */

.cake-final-cta {
    padding: 65px 20px;
    text-align: center;
    background: linear-gradient(135deg, #FFF0F6, #E8C99A);
    border-top: 1px solid #D5B781;
}

.cake-final-cta h2 {
    max-width: 700px;
    margin: 12px auto;
    color: #3A1024;
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
}

.cake-final-cta p {
    max-width: 600px;
    margin: 15px auto 25px;
    color: #80556B;
    font-size: 14px;
    line-height: 1.9;
}

/* Responsive */

@media (max-width: 1000px) {
    .cake-category-grid,
    .cake-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cake-hero-inner {
        grid-template-columns: 1fr 0.7fr;
        gap: 20px;
    }

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

@media (max-width: 700px) {
    .cake-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .cake-hero h1 {
        font-size: 39px;
    }

    .cake-hero-art {
        min-height: 270px;
        margin-top: 15px;
    }

    .cake-hero-frame {
        min-height: 230px;
        width: min(100%, 280px);
    }

    .cake-hero-symbol {
        font-size: 78px;
    }

    .cake-section {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .cake-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cake-category-grid,
    .cake-product-grid,
    .cake-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cake-category-card {
        padding: 16px;
        min-height: 175px;
    }

    .cake-product-image {
        height: 175px;
    }

    .cake-product-info {
        padding: 12px;
    }

    .cake-product-info h3 {
        font-size: 16px;
    }

    .cake-custom-banner {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .cake-custom-art {
        padding: 15px;
    }

    .cake-trust-grid {
        gap: 18px 10px;
    }

    .cake-trust-grid > div {
        font-size: 11px;
    }

    .cake-trust-grid strong {
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .cake-category-grid,
    .cake-product-grid,
    .cake-steps-grid {
        grid-template-columns: 1fr;
    }

    .cake-product-image {
        height: 230px;
    }

    .cake-hero h1 {
        font-size: 34px;
    }

    .cake-hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .cake-hero-points {
        flex-direction: column;
    }
}


/* =====================================
   CAKE GALLERY
   ===================================== */

.cake-gallery-section {
    background: #FFF8FB;
    border-top: 1px solid #F2C8D9;
}

.cake-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cake-gallery-item {
    position: relative;
    height: 260px;
    overflow: hidden;
    border: 1px solid #D5B781;
    border-radius: 12px;
    background: #50152F;
    display: block;
}

.cake-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cake-gallery-item::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(
        transparent,
        rgba(38, 11, 3, 0.9)
    );
}

.cake-gallery-item > span {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    left: 18px;
    color: #FFE3EF;
    font-family: Georgia, serif;
    font-size: 19px;
}

.cake-gallery-item:hover img {
    transform: scale(1.06);
}

.cake-gallery-action {
    text-align: center;
    margin-top: 32px;
}


/* =====================================
   INSTAGRAM REELS
   ===================================== */

.cake-reels-section {
    background: #FCE5EF;
    border-top: 1px solid #F2C8D9;
}

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

.cake-reel-card {
    display: block;
    overflow: hidden;
    border: 1px solid #D92F78;
    border-radius: 13px;
    background: #3A1024;
}

.cake-reel-placeholder {
    aspect-ratio: 9 / 16;
    max-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    background:
        radial-gradient(ellipse at center, #7A2148, #3A1024);
    color: #F45A9A;
    transition: background 0.3s ease;
}

.cake-reel-play {
    width: 60px;
    height: 60px;
    border: 1px solid #F45A9A;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 4px;
    font-size: 22px;
}

.cake-reel-label {
    font-family: Georgia, serif;
    font-size: 19px;
    text-align: center;
    padding: 0 12px;
}

.cake-reel-card:hover .cake-reel-placeholder {
    background:
        radial-gradient(ellipse at center, #754326, #3A1024);
}

.cake-reels-note {
    margin-top: 18px;
    color: #8D7180;
    font-size: 12px;
    text-align: center;
}


/* Responsive */

@media (max-width: 700px) {
    .cake-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cake-gallery-item {
        height: 210px;
    }

    .cake-gallery-item > span {
        left: 12px;
        bottom: 12px;
        font-size: 15px;
    }

    .cake-reels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cake-reel-placeholder {
        max-height: 350px;
    }
}

@media (max-width: 420px) {
    .cake-gallery-item {
        height: 170px;
    }

    .cake-reel-placeholder {
        max-height: 290px;
    }

    .cake-reel-label {
        font-size: 15px;
    }
}

/* Actual Instagram embeds and uploaded videos */

.tz-reel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.tz-reel-card {
    min-width: 0;
    overflow: hidden;
    background: #3A1024;
    border: 1px solid #D92F78;
    border-radius: 12px;
}

.tz-instagram-embed {
    display: block;
    width: 100%;
    height: 560px;
    border: 0;
    background: #fff;
}

.tz-reel-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #2A0B1B;
}

.tz-reel-caption {
    padding: 12px;
    color: #FFF0F6;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .tz-reel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tz-instagram-embed {
        height: 480px;
    }
}

@media (max-width: 420px) {
    .tz-reel-grid {
        grid-template-columns: 1fr;
    }

    .tz-instagram-embed {
        height: 560px;
    }
}

/* Instagram Reels: 4 cards per row */

.tz-reel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.tz-reel-card {
    min-width: 0;
    width: 100%;
}

.tz-instagram-embed {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
    background: #fff;
}

.tz-reel-video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 480px;
    object-fit: contain;
    background: #3A1024;
}

/* Tablet: 2 cards per row */
@media (max-width: 900px) {
    .tz-reel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

/* Mobile: 2 cards per row */
@media (max-width: 480px) {
    .tz-reel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tz-instagram-embed {
        height: 380px;
    }
}

/* Premium Instagram Follow Button */

.tz-reels-band .tz-section-heading {
    align-items: center;
}

.tz-reels-band .tz-view-all-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid #D92F78;
    border-radius: 8px;
    background: linear-gradient(135deg, #F45A9A, #D92F78);
    color: #3A1024 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.tz-reels-band .tz-view-all-light:hover {
    background: #FFD6E7;
    border-color: #F45A9A;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
    .tz-reels-band .tz-section-heading {
        align-items: flex-start;
    }

    .tz-reels-band .tz-view-all-light {
        padding: 11px 15px;
    }
}

/* Clean reel title styling */

.tz-reel-title {
    display: block;
    margin: 12px 0;
    color: #F45A9A;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tz-reel-caption {
    padding: 12px 14px;
    background: #50152F;
    color: #FFF0F6;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Fix Instagram Follow button spacing */
.tz-reels-band .tz-section-heading {
    margin-bottom: 34px !important;
    gap: 20px;
}

.tz-reels-band .tz-view-all-light {
    margin-bottom: 4px;
    flex-shrink: 0;
}

/* Give reel cards their own breathing room */
.tz-reels-band .tz-reel-grid {
    margin-top: 12px;
    gap: 18px;
}

/* Keep embedded Instagram cards aligned */
.tz-reels-band .tz-instagram-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

@media (max-width: 700px) {
    .tz-reels-band .tz-section-heading {
        margin-bottom: 26px !important;
    }

    .tz-reels-band .tz-reel-grid {
        margin-top: 8px;
        gap: 12px;
    }
}

/* The Cake Wala: Premium 3-column Reels layout */

.tz-reels-band .tz-reel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.tz-reels-band .tz-reel-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #D92F78;
}

.tz-reels-band .tz-instagram-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: #fff;
}

/* Tablet */
@media (max-width: 900px) {
    .tz-reels-band .tz-reel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .tz-reels-band .tz-reel-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Space below the Instagram button */
.tz-reels-band .tz-section-heading {
    margin-bottom: 30px;
}


/* =========================================================
   The Cake Wala - REELS SECTION ONLY
   Desktop: 3 reels per row
   Follow button: clear space before the reel cards
   ========================================================= */

.tz-reels-band .tz-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px !important;
}

.tz-reels-band .tz-view-all-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px 20px;
    flex-shrink: 0;
    border: 1px solid #D92F78;
    border-radius: 8px;
    background: linear-gradient(135deg, #F45A9A, #D92F78);
    color: #3A1024 !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.2s ease,
                box-shadow 0.2s ease;
}

.tz-reels-band .tz-view-all-light:hover {
    background: #FFD6E7;
    border-color: #F45A9A;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}

/* Exactly 3 reel cards per row on desktop */
.tz-reels-band .tz-reel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin-top: 0;
}

.tz-reels-band .tz-reel-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #D92F78;
    border-radius: 12px;
    background: #3A1024;
}

.tz-reels-band .tz-instagram-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 10px;
    background: #FFFFFF;
}

.tz-reels-band .tz-reel-video {
    display: block;
    width: 100%;
    max-height: 560px;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #2A0B1B;
}

.tz-reels-band .tz-reel-caption {
    padding: 12px 14px;
    background: #50152F;
    color: #FFF0F6;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.tz-reels-band .tz-reel-title {
    display: block;
    margin: 12px 0;
    color: #F45A9A;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Tablet: 2 reels per row */
@media (max-width: 900px) {
    .tz-reels-band .tz-reel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile: 1 reel per row for a more readable preview */
@media (max-width: 520px) {
    .tz-reels-band .tz-section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px !important;
        gap: 14px;
    }

    .tz-reels-band .tz-view-all-light {
        padding: 11px 16px;
    }

    .tz-reels-band .tz-reel-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* ======================================
   The Cake Wala - PINK & CHOCOLATE FOOTER
   ====================================== */

.cake-footer {
    background: linear-gradient(
        135deg,
        #3A1024,
        #50152F,
        #2A0B1B
    );
    color: #FFF0F6;
    border-top: 2px solid #D92F78;
}

.cake-footer .footergrid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.3fr 0.8fr;
    gap: 35px;
    padding: 48px 20px;
    align-items: start;
}

.cake-footer h3 {
    margin: 0 0 18px;
    color: #F45A9A;
    font-family: Georgia, serif;
    font-size: 19px;
}

.cake-footer p {
    color: #F6DCE8;
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 12px;
}

.cake-footer a {
    color: #F6DCE8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cake-footer a:hover {
    color: #F45A9A;
}

/* Logo and Brand */

.cake-footer .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    color: #F45A9A;
    font-size: 20px;
    font-weight: 800;
}

.cake-footer .footer-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.cake-footer .footer-slogan {
    margin-top: 12px;
    color: #F45A9A;
    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

/* Contact Details */

.cake-footer .footer-icon {
    display: inline-block;
    width: 24px;
    color: #F45A9A;
    font-size: 16px;
}

/* Quick Links */

.cake-footer .footer-links a {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
}

.cake-footer .footer-links a::before {
    content: "›";
    color: #F45A9A;
    margin-right: 9px;
}

/* Copyright */

.cake-footer .copy {
    padding: 18px 20px;
    border-top: 1px solid #8E315B;
    color: #EBC8D8;
    font-size: 12px;
    text-align: center;
}

/* Tablet */

@media (max-width: 900px) {
    .cake-footer .footergrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

/* Mobile */

@media (max-width: 520px) {
    .cake-footer .footergrid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px 20px;
    }

    .cake-footer .footer-logo img {
        width: 85px;
        height: 85px;
    }
}


/* The Cake Wala: product quantity and favourites interaction polish */
.product input.qty,
.product input[type="number"][name="quantity"] {
    width: 92px;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid #d9ad54;
    border-radius: 12px;
    background: linear-gradient(145deg, #fffaf0, #f7ead1);
    color: #382014;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(91,49,18,.08);
    outline: none;
    transition: border-color .22s ease, box-shadow .22s ease,
                transform .22s ease, background .22s ease;
}
.product input.qty:hover,
.product input[type="number"][name="quantity"]:hover {
    border-color: #b98124;
    box-shadow: 0 6px 16px rgba(91,49,18,.13);
}
.product input.qty:focus,
.product input[type="number"][name="quantity"]:focus {
    border-color: #a86d13;
    background: #fffdf7;
    box-shadow: 0 0 0 4px rgba(217,173,84,.22),
                0 8px 20px rgba(91,49,18,.12);
    transform: translateY(-1px);
}
.favourite-btn {
    border: 1px solid #b98124;
    border-radius: 12px;
    background: #281006;
    color: #f5c75d;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(40,16,6,.12);
    transition: transform .2s ease, box-shadow .2s ease,
                background .2s ease, color .2s ease;
}
.favourite-btn:hover {
    background: #3a1909;
    color: #ffda78;
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(40,16,6,.2);
}
.favourite-btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
    .favourite-btn, .product input.qty,
    .product input[type="number"][name="quantity"] { transition: none; }
}


/* =========================================
   MOBILE LAYOUT REPAIR - desktop unchanged
   ========================================= */
.mobile-nav-toggle { display: none; }

@media (max-width: 700px) {
    html, body { width: 100%; max-width: 100%; overflow-x: clip; }
    .wrap { width: 100%; max-width: 100%; padding-left: 16px; padding-right: 16px; }

    .top .nav {
        min-height: 66px;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 10px;
        flex-wrap: wrap;
        position: relative;
    }
    .top .nav .logo { min-width: 0; gap: 7px; }
    .top .nav .logo-img { width: 43px; height: 43px; }
    .top .nav .brand-name-img { width: clamp(100px, 31vw, 145px); height: 38px; }
    .mobile-nav-toggle {
        display: flex;
        flex: 0 0 42px;
        width: 42px;
        height: 40px;
        padding: 9px;
        border: 1px solid rgba(244,203,112,.55);
        border-radius: 8px;
        background: transparent;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin-left: auto;
    }
    .mobile-nav-toggle span {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 2px;
        background: var(--gold);
        transition: transform .2s ease, opacity .2s ease;
    }
    .mobile-nav-toggle.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
    .mobile-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.is-open span:last-child { transform: translateY(-7px) rotate(-45deg); }
    .top .nav nav#site-navigation {
        display: none;
        width: 100%;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px 0 4px;
        margin: 0;
        border-top: 1px solid rgba(244,203,112,.25);
    }
    .top .nav nav#site-navigation.is-open { display: flex; }
    .top .nav nav#site-navigation a {
        display: block;
        padding: 12px 10px;
        border-radius: 6px;
        font-size: 15px;
    }
    .top .nav nav#site-navigation a:active { background: rgba(244,203,112,.12); }

    /* Keep content away from the viewport edges and prevent accidental overflow. */
    main { width: 100%; min-width: 0; }
    .cake-hero { overflow: hidden; }
    .cake-hero-inner { width: 100%; padding-left: 16px; padding-right: 16px; gap: 24px; }
    .cake-hero-content { min-width: 0; width: 100%; }
    .cake-hero h1 { font-size: clamp(30px, 8vw, 38px); line-height: 1.12; overflow-wrap: anywhere; }
    .cake-hero-content > p { font-size: 15px; line-height: 1.7; }
    .cake-section { width: 100%; padding-left: 16px; padding-right: 16px; }
    .section.wrap.cake-section { width: calc(100% - 24px); margin-left: auto; margin-right: auto; padding-left: 12px; padding-right: 12px; }
    .cake-section-heading { gap: 12px; margin-bottom: 22px; }
    .cake-section-heading h2, .cake-section-heading p { max-width: 100%; overflow-wrap: anywhere; }
    .cake-category-grid, .cake-product-grid, .cake-steps-grid { gap: 12px; }
    .cake-category-card, .cake-product-card, .cake-step-card { min-width: 0; overflow-wrap: anywhere; }
    .cake-category-card { padding: 14px; }
    .cake-product-image { max-width: 100%; }
    .tz-reels-band { padding-left: 0; padding-right: 0; overflow: hidden; }
    .tz-section { padding-left: 16px; padding-right: 16px; }
    .tz-section-heading { gap: 12px; }
    .tz-reel-grid { min-width: 0; }
    input, select, textarea, button { max-width: 100%; }
}

@media (max-width: 380px) {
    .wrap { padding-left: 12px; padding-right: 12px; }
    .top .nav .logo-img { width: 38px; height: 38px; }
    .top .nav .brand-name-img { width: 98px; height: 32px; }
    .mobile-nav-toggle { width: 38px; flex-basis: 38px; height: 38px; }
    .cake-hero-inner { padding-left: 12px; padding-right: 12px; }
    .cake-section { padding-left: 12px; padding-right: 12px; }
    .cake-category-grid, .cake-product-grid, .cake-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .cake-category-card { padding: 11px; }
}

/* FINAL MOBILE FIX: How it works / three process cards */
@media screen and (max-width: 600px) {
    .cake-steps-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-flow: row !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .cake-steps-grid > .cake-step {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 190px !important;
        min-height: 190px !important;
        max-height: 190px !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
}


/* Mobile: Reduce View Details button font size */
@media (max-width: 600px) {
  .product-card .btn,
  .product-card .view-details,
  .product-card a {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
}

/* Fix: View Details button font on mobile */
@media screen and (max-width: 600px) {
    .cardbody a.btn,
    .cardbody .btn {
        font-size: 13px !important;
        line-height: 1.3 !important;
        padding: 10px 12px !important;
        min-height: 0 !important;
        letter-spacing: 0 !important;
    }
}



/* The Cake Wala full horizontal logo */
.top .nav .logo { display:flex; align-items:center; min-width:0; }
.top .nav .logo-img { width:190px; height:70px; object-fit:contain; border-radius:0; }
.cake-footer .footer-logo img { width:170px; height:68px; object-fit:contain; border-radius:0; }
.admin .side .admin-brand-logo { width:150px; height:62px; object-fit:contain; border-radius:0; }
@media(max-width:600px){ .top .nav .logo-img { width:145px; height:56px; } }
