/* Global Styles */
:root {
    --primary-color: #ff6b81;
    /* Soft Red/Pink */
    --secondary-color: #7bed9f;
    /* Soft Green */
    --accent-color: #eccc68;
    /* Soft Yellow */
    --bg-color: #fce4ec;
    /* Very light pink background */
    --text-color: #2f3542;
    --white: #ffffff;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Hot Deals Banner */
#hot-deals-banner {
    width: 100%;
    text-align: center;
    padding: 10px 40px 10px 10px;
    position: relative;
    z-index: 20002;
    /* Very high priority */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
    display: none;
    /* Managed by JS */
}

.hot-deals-banner .banner-content {
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.hot-deals-banner .banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

.hot-deals-banner .banner-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Big Sale Splash Overlay */
.sale-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker for more contrast */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease-out;
    pointer-events: auto;
    /* Enable touch/click */
    cursor: pointer;
}

.sale-splash-content {
    text-align: center;
    color: white;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: splashPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.splash-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    background: linear-gradient(135deg, #ff9f43, #ff6b81, #70a1ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.splash-price {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.price-bubble {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 2.5rem;
    margin-left: 10px;
    box-shadow: 0 5px 15px rgba(255, 107, 129, 0.4);
}

.splash-note {
    font-size: 1.2rem;
    opacity: 0.8;
}

@keyframes splashPop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.splash-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
    z-index: 100000;
}

.splash-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.splash-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #27ae60);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.splash-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .splash-title {
        font-size: 3rem;
    }

    .price-bubble {
        font-size: 1.8rem;
    }
}

/* Floating Candy Background */
.candy-bg {
    position: fixed;
    /* Stays in place when scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.candy {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 107, 129, 0.2);
    animation: float 10s infinite ease-in-out;
}

.c1 {
    top: 10%;
    left: 10%;
    animation-duration: 8s;
    color: rgba(255, 71, 87, 0.3);
}

.c2 {
    top: 20%;
    right: 20%;
    animation-duration: 12s;
    color: rgba(46, 213, 115, 0.3);
}

.c3 {
    bottom: 15%;
    left: 30%;
    animation-duration: 15s;
    color: rgba(255, 165, 2, 0.3);
}

.c4 {
    top: 50%;
    left: 80%;
    animation-duration: 10s;
    color: rgba(83, 82, 237, 0.3);
}

.c5 {
    bottom: 10%;
    right: 10%;
    animation-duration: 14s;
    color: rgba(255, 99, 72, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(15deg) scale(1.1);
    }
}

/* Custom Lollipop Cursor */
body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='12' cy='12' r='10' fill='%23ff6b81'/><path d='M12 22 L12 30' stroke='%23888' stroke-width='2'/><circle cx='12' cy='12' r='6' fill='none' stroke='white' stroke-dasharray='10 5'/></svg>") 12 12, auto;
}

button,
.gallery-item,
.admin-tab,
a {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='12' cy='12' r='12' fill='%237bed9f'/><path d='M12 24 L12 32' stroke='%23888' stroke-width='3'/><circle cx='12' cy='12' r='8' fill='none' stroke='white' stroke-dasharray='12 6'/></svg>") 12 12, pointer;
}

/* Candy Rating UI */
.candy-rating {
    display: flex;
    gap: 2px;
    margin: 5px 0;
    font-size: 0.7rem;
    color: var(--primary-color);
}

.candy-rating i {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Stock Status UI */
.stock-status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
    display: inline-block;
}

.stock-low {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.stock-instock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Playful Blobs */
.blob {
    position: absolute;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.4;
    border-radius: 50%;
    animation: blobFloat 15s infinite ease-in-out;
}

.b1 {
    width: 300px;
    height: 300px;
    background: #ff9ff3;
    top: -100px;
    left: -100px;
}

.b2 {
    width: 400px;
    height: 400px;
    background: #74b9ff;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.b3 {
    width: 250px;
    height: 250px;
    background: #ffeaa7;
    top: 40%;
    left: 50%;
    opacity: 0.3;
    animation-delay: -2s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* Kids Vector Art */
.kid {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.15;
    z-index: -1;
    animation: kidFloat 12s infinite ease-in-out;
}

.kid1 {
    top: 15%;
    right: 10%;
    animation-duration: 14s;
}

.kid2 {
    bottom: 20%;
    left: 10%;
    animation-duration: 18s;
    animation-delay: -3s;
}

@keyframes kidFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(5deg) scale(1.1);
    }
}

/* Decorative Vector Shapes */
.shape {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: -1;
    animation: shapeFloat 40s infinite linear;
}

.s1 {
    top: 5%;
    left: 40%;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.6);
}

.s2 {
    top: 60%;
    right: 40%;
    color: rgba(254, 202, 87, 0.3);
}

.s3 {
    bottom: 5%;
    left: 30%;
    color: rgba(255, 107, 129, 0.2);
}

@keyframes shapeFloat {
    0% {
        transform: translate(-100px, 0) rotate(0deg);
    }

    100% {
        transform: translate(100vw, -20vh) rotate(360deg);
    }
}

/* Candy Rain Animation */
.candy-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.falling-candy {
    position: absolute;
    top: -50px;
    font-size: 1.5rem;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* Promo Badge Fixed */
.promo-badge-fixed {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff9f43, #ee5253);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: 0 10px 25px rgba(238, 82, 83, 0.4);
    border: 4px solid white;
    font-family: var(--font-heading);
    animation: promoFloat 3s ease-in-out infinite;
    cursor: default;
    user-select: none;
}

.promo-content {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.promo-top {
    font-size: 0.7rem;
    font-weight: 700;
}

.promo-mid {
    font-size: 1rem;
    font-weight: 900;
}

.promo-bottom {
    font-size: 1.2rem;
    font-weight: 900;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.promo-icon {
    font-size: 0.8rem;
    margin-top: 2px;
}

@keyframes promoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@media (max-width: 768px) {
    .promo-badge-fixed {
        width: 80px;
        height: 80px;
        bottom: 80px;
        right: 10px;
    }

    .promo-bottom {
        font-size: 1rem;
    }
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 2000;
}

.chat-toggle-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.chat-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.6);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.chat-popup.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #ff4757);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-user-info h4 {
    font-family: var(--font-heading);
    margin: 0;
    font-size: 1.1rem;
}

.online-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

#close-chat-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#close-chat-btn:hover {
    opacity: 1;
}

.chat-body {
    padding: 20px;
    background: #f8f9fa;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-msg.bot {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-msg.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

#chat-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#send-chat-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-chat-btn:hover {
    background: #e84118;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .chat-text {
        display: none;
    }

    .chat-toggle-btn {
        padding: 15px;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        justify-content: center;
    }

    .chat-popup {
        width: calc(100vw - 40px);
        left: 0;
        bottom: 70px;
    }
}

/* Header & Navbar */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    /* Align items vertically */
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.4);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 129, 0.6);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-content .highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent-color);
    z-index: -1;
    opacity: 0.6;
    border-radius: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Big Selling Banner Section */
.big-selling-banner {
    background: linear-gradient(135deg, #ff6b81, #ffa502);
    padding: 60px 0;
    margin: 40px auto;
    width: 90%;
    max-width: 1200px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(255, 107, 129, 0.3);
    color: white;
    text-align: center;
}

.big-selling-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: rotateBg 15s linear infinite;
    z-index: 1;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.banner-container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.banner-badge {
    background: white;
    color: #ff6b81;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 40px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.deal-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
}

.deal-item:hover {
    transform: translateY(-10px);
}

.deal-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.deal-info h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.deal-info p {
    font-size: 1rem;
    opacity: 0.9;
}

.banner-cta {
    background: white;
    color: #ff6b81;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.banner-cta:hover {
    background: #2f3542;
    color: white;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 2.5rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.floating-sweets {
    font-size: 15rem;
    color: var(--primary-color);
    animation: bounce 2s infinite ease-in-out;
    filter: drop-shadow(0 10px 20px rgba(255, 107, 129, 0.3));
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Section Common Styling */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* About / Owner Section */
.about-content {
    display: flex;
    justify-content: center;
}

.owner-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 129, 0.1);
}

.owner-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.owner-img-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.owner-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.badge-overlay {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--accent-color);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(236, 204, 104, 0.4);
    color: #574b13;
}

.owner-text-side {
    text-align: left;
}

.sub-title {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.owner-text-side h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.owner-text-side p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #444;
}

.owner-promises {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 2rem 0;
}

.promise {
    background: var(--bg-color);
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.promise i {
    font-size: 1.1rem;
}

.owner-text-side .social-links {
    margin-top: 2rem;
}

.owner-text-side .social-btn {
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: #3b5998;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    gap: 10px;
}

@media (max-width: 900px) {
    .owner-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .owner-img-container {
        margin: 0 auto 2rem;
    }

    .owner-text-side {
        text-align: center;
    }

    .owner-promises {
        justify-content: center;
    }
}

/* Gallery / Products categories */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-item:hover,
.gallery-item.active {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255, 107, 129, 0.2);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.gallery-item h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
}

/* Product Display Area */
.product-display {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.select-msg {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #888;
    text-align: center;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: scale(1.03);
}

.product-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    background-color: #f1f1f1;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
}

.btn-buy {
    background-color: var(--secondary-color);
    color: #1e5a32;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    flex: 1;
    /* Distribute space */
}

.btn-buy:hover {
    background-color: #5ddea3;
}

.btn-cart {
    background-color: #74b9ff;
    /* Soft Blue */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    flex: 1;
    /* Distribute space */
}

.btn-cart:hover {
    background-color: #0984e3;
}

.product-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}


/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.2rem;
}

.contact-item a {
    font-weight: 600;
    color: var(--text-color);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    font-family: var(--font-heading);
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-contact {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    transition: opacity 0.3s;
}

.footer-contact a:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        /* Hide default nav */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }
}

/* Add these new styles for the Free Delivery Badge */
.free-delivery-badge {
    display: inline-block;
    background: #fffa65;
    /* Bright Yellow */
    color: #ff4757;
    /* Bright Red */
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: floatBadge 3s ease-in-out infinite;
    border: 2px solid #ff4757;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Ensure mobile responsiveness */
@media (max-width: 768px) {
    .free-delivery-badge {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
}

/* --- CART SIDEBAR STYLES --- */
.cart-nav-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: color 0.3s;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-nav-btn:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    /* Hidden off-screen */
    width: 320px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.4s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 10px;
}

.cart-header h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-cart {
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--text-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    padding: 10px;
    border-radius: 10px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.cart-item-price {
    font-size: 0.8rem;
    color: #666;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: transform 0.2s;
}

.remove-item:hover {
    transform: scale(1.2);
}

.cart-footer {
    border-top: 2px solid var(--bg-color);
    padding-top: 20px;
    margin-top: auto;
}

.total {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pay-method {
    border: 2px solid var(--bg-color);
    padding: 10px 5px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.pay-method i {
    font-size: 1.2rem;
    color: #666;
}

.pay-method span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pay-method:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.pay-method.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.pay-method.active i {
    color: #fff;
}

.payment-details-area {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 15px;
    border: 1px dashed var(--primary-color);
}

.bank-info-card {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.bank-info-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bank-info-card h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.bank-info-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #444;
}

.address-input,
.card-detail-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.address-input:focus,
.card-detail-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.payment-details-area h5 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.bank-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 5px;
}

.bank-opt {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.bank-opt:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bank-opt img {
    height: 25px;
    width: auto;
    object-fit: contain;
}

.bank-opt span {
    font-size: 0.7rem;
    font-weight: 700;
    color: #555;
    text-align: center;
}

@media (max-width: 480px) {
    .bank-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: authPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes authPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-auth {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-auth:hover {
    color: var(--primary-color);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #f1f2f6;
    padding: 5px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    color: #777;
}

.auth-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-btn {
    background: #f1f2f6;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.auth-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Profile View */
.profile-container {
    text-align: center;
}

.profile-avatar {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.profile-header h2 {
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.profile-header p {
    color: #777;
    margin-bottom: 25px;
}

.btn-secondary {
    background: #f1f2f6;
    color: #333;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #dfe4ea;
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    /* Add space between buttons */
}

.checkout-btn:hover {
    background-color: #e84118;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.checkout-btn-sms {
    width: 100%;
    background-color: #70a1ff;
    /* Different color */
    color: white;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-btn-sms:hover {
    background-color: #1e90ff;
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.4);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    /* Behind sidebar, above everything else */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Special Request Section */
.special-request {
    padding: 100px 0;
    background: linear-gradient(to bottom, #fff, var(--bg-color));
}

.request-card {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 50px;
    border: 3px dashed var(--primary-color);
    position: relative;
    overflow: hidden;
}

.request-content {
    flex: 2;
}

.request-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.request-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.special-form .form-group {
    margin-bottom: 20px;
}

.special-form input,
.special-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    font-family: var(--font-body);
}

.special-form input:focus,
.special-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.request-icon {
    flex: 1;
    font-size: 8rem;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.2;
    animation: rotateMagic 5s linear infinite;
}

@keyframes rotateMagic {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(10deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

@media (max-width: 768px) {
    .request-card {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .request-content h2 {
        text-align: center;
    }

    .request-icon {
        font-size: 5rem;
        order: -1;
    }
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    background: #f1f2f6;
    padding: 3px;
    border-radius: 20px;
    margin-left: 10px;
}

.lang-switcher {
    background: rgba(0, 0, 0, 0.05);
    padding: 3px;
    border-radius: 20px;
    display: flex;
    gap: 3px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 17px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #888;
    font-family: var(--font-body);
}

.lang-btn.active {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.lang-btn.active[data-lang="en"] {
    color: #0984e3;
    border: 1px solid #0984e3;
}

.lang-btn.active[data-lang="si"] {
    color: #e67e22;
    border: 1px solid #e67e22;
}

.lang-btn.active[data-lang="ta"] {
    color: #8e44ad;
    border: 1px solid #8e44ad;
}

.lang-btn.active[data-lang="jp"] {
    color: #d63031;
    border: 1px solid #d63031;
}

.lang-btn:hover:not(.active) {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.6);
}

/* Japanese Mode Special Background */
body.lang-jp {
    background-color: #fffafa;
    /* Soft snow white */
    background-image: radial-gradient(circle at 15% 15%, rgba(188, 0, 45, 0.04) 0%, transparent 20%),
        radial-gradient(circle at 85% 85%, rgba(188, 0, 45, 0.04) 0%, transparent 20%);
    background-attachment: fixed;
}

body.lang-jp::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(188, 0, 45, 0.025) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

@media (max-width: 480px) {
    .lang-switcher {
        display: flex;
        /* Keep visible but maybe adjust if needed */
        margin-left: 0;
        margin-top: 5px;
    }
}

.empty-cart-msg {
    text-align: center;
    color: #888;
    margin-top: 2rem;
    font-style: italic;
}

/* Playful Bouncy Letters Animation */
.playful-text {
    display: flex;
    gap: 2px;
}

.playful-text span {
    display: inline-block;
    font-family: var(--font-heading);
    animation: bounceText 2s infinite ease-in-out;
    animation-delay: calc(0.1s * var(--i));
    transition: color 0.3s;
}

.playful-text .space {
    width: 0.5ch;
}

@keyframes bounceText {

    0%,
    100% {
        transform: translateY(0);
        color: #ff6b81;
        /* Pink */
    }

    20% {
        transform: translateY(-10px);
        color: #7bed9f;
        /* Green */
    }

    40% {
        transform: translateY(0);
        color: #70a1ff;
        /* Blue */
    }

    60% {
        transform: translateY(-5px);
        color: #eccc68;
        /* Yellow */
    }

    80% {
        transform: translateY(0);
        color: #ff7f50;
        /* Orange */
    }
}

.highlight.playful-text span {
    font-size: 1.2em;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.logo.playful-text {
    font-size: 1.8rem;
    font-weight: 700;
    align-items: center;
}

.logo.playful-text i {
    margin-right: 10px;
    color: var(--primary-color);
    animation: rotateCandy 3s linear infinite;
}

@keyframes rotateCandy {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Product Detail Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal.active {
    display: flex;
    opacity: 1;
}

.product-modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 30px;
    position: relative;
    padding: 30px;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.product-modal-content::-webkit-scrollbar {
    width: 6px;
}

.product-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

@keyframes modalPop {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: #f1f1f1;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 11;
}

.close-modal:hover {
    background: var(--primary-color);
    color: white;
}

.product-modal-body {
    display: flex;
    gap: 40px;
    padding-top: 10px;
}

.product-modal-img-side {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    background: #f9f9f9;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-img-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-icon-fallback {
    display: none;
    font-size: 8rem;
    color: var(--primary-color);
}

.product-modal-info-side {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

#modal-product-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

#modal-product-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 50px;
    padding: 5px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

#modal-qty {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 1.1rem;
}

#modal-qty::-webkit-inner-spin-button {
    display: none;
}

/* Order History Styles */
.order-history-section {
    margin-top: 30px;
    border-top: 2px dashed #eee;
    padding-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.order-history-section h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #444;
}

.order-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.order-items-summary {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 5px;
}

.order-total-mini {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .product-modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .product-modal-img-side {
        height: 200px;
    }

    #modal-product-name {
        font-size: 1.8rem;
    }

    .product-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Gallery Header & Catalogue Toggle */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.catalogue-filter-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #f1f1f1;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-color);
    font-weight: 700;
}

.catalogue-filter-toggle:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.15);
    color: var(--primary-color);
}

.catalogue-filter-toggle i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .catalogue-badge {
        display: block;
        margin: 10px auto 0;
        width: fit-content;
    }
}

/* Admin Modal Enhancements */
.admin-modal-body {
    padding: 10px;
}

.admin-modal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.admin-modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    margin-top: 15px;
}

.admin-modal-body input,
.admin-modal-body select,
.admin-modal-body textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.admin-modal-body input:focus,
.admin-modal-body select:focus,
.admin-modal-body textarea:focus {
    border-color: var(--primary-color);
    background: #fffafa;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 129, 0.1);
}

.admin-modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

/* Admin Catalog Management Styles */
.admin-tab {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.admin-tab.active {
    background: var(--primary-color);
    color: white;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #f1f1f1;
    border-radius: 15px;
    background: #fff;
    margin-top: 15px;
}

.admin-list-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.admin-list-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    background: #fff;
}

.admin-list-item-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
}

.admin-list-item-info span {
    font-size: 0.8rem;
    color: #888;
}

.btn-delete-item {
    background: #ff4757;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-item:hover {
    background: #ff6b81;
    transform: scale(1.1);
}

.admin-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Mobile Responsiveness Enhancements --- */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .splash-content {
        padding: 2rem;
        width: 90%;
    }

    .splash-title {
        font-size: 3rem;
    }

    .admin-modal-content {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
        max-height: 95vh;
    }

    .admin-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }

    .admin-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .product-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    .product-modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .product-modal-img-side {
        height: 200px;
    }

    #modal-product-name {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    .gallery-item img {
        height: 140px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        /* Consider a hamburger menu for mobile if not already present */
    }

    /* Ensure admin list items stack nicely */
    .admin-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-list-item>div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .splash-title {
        font-size: 2.5rem;
    }

    .price-bubble {
        font-size: 1.5rem;
        padding: 5px 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns for products */
        gap: 10px;
    }

    .gallery-item img {
        height: 120px;
    }

    .gallery-item h3 {
        font-size: 0.9rem;
    }

    .gallery-item .price {
        font-size: 0.85rem;
    }

    .btn-add-cart {
        padding: 8px;
        font-size: 0.8rem;
    }

    /* Better touch targets */
    button,
    .btn-primary,
    .admin-tab {
        min-height: 44px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        /* Prevents iOS zoom */
    }
}

/* Toggle Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;

    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Search & Wishlist UI */
.search-box-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
}

.search-box-container:focus-within {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
}

#site-search {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    width: 100px;
    transition: 0.3s;
}

#site-search:focus {
    width: 160px;
    margin-right: 5px;
}

/* Category Sidebar */
.category-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.category-sidebar.active {
    right: 0;
}

.category-sidebar .sidebar-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-sidebar h3 {
    margin: 0;
    font-size: 1.2rem;
}

.category-sidebar .close-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-cat-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: var(--text-color);
}

.sidebar-cat-item:hover {
    background: #fff5eb;
    padding-left: 20px;
}

.sidebar-cat-item i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Mobile Sidebar fix */
@media (max-width: 480px) {
    .category-sidebar {
        width: 85%;
    }
}

/* Buttons in Header */
.category-nav-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    padding: 0 5px;
    margin-right: 15px;
}

.wishlist-nav-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #ff4757;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.wishlist-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid var(--primary-color);
}

.stat-card h4 {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.stat-card .val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color);
}

/* Fly Animation */
.fly-item {
    position: fixed;
    z-index: 999999;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

/* Confetti Effect */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 99999;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* World Class Premium Features */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Tilt Effect Base */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.3);
}

/* Sales Alert Notification */
.sales-alert {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999;
    transform: translateX(-150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--secondary-color);
}

.sales-alert.active {
    transform: translateX(0);
}

.sales-alert img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.sales-alert .alert-info {
    font-size: 0.75rem;
    color: #444;
}

.sales-alert .alert-info b {
    color: var(--primary-color);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 10px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 1. Animated Loader */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.loader-content {
    text-align: center;
}

.spinning-candy {
    font-size: 5rem;
    animation: rotate 2s infinite linear;
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.loader-progress {
    width: 200px;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    animation: progress 2.5s forwards cubic-bezier(0, 0, 0.2, 1);
}

@keyframes progress {
    to {
        width: 100%;
    }
}

/* 2. Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.theme-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.theme-dot.active {
    transform: scale(1.3);
    border-color: #333;
}

.theme-dot.pink {
    background: #ff6b81;
}

.theme-dot.blue {
    background: #3498db;
}

.theme-dot.brown {
    background: #6d4c41;
}

.theme-dot.purple {
    background: #9b59b6;
}

/* Theme Color Overrides */
body.theme-blue {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #f1c40f;
}

body.theme-brown {
    --primary-color: #6d4c41;
    --secondary-color: #8d6e63;
    --accent-color: #ffcc80;
}

body.theme-purple {
    --primary-color: #9b59b6;
    --secondary-color: #8e44ad;
    --accent-color: #e056fd;
}

/* 3. Exit Intent Popup */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000000;
    backdrop-filter: blur(5px);
}

.exit-popup-overlay.active {
    display: flex;
    animation: fadeIn 0.4s;
}

.exit-popup-content {
    background: white;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.exit-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.close-exit-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

/* 4. Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    border-radius: 20px 20px 0 0;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }

    .search-box-container {
        display: none;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.3s;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.nav-item:hover {
    color: var(--primary-color);
}

.cart-main-btn {
    position: relative;
    top: -20px;
    background: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.4);
    border: 5px solid white;
    transition: 0.3s;
}

.cart-main-btn i {
    font-size: 1.5rem;
    color: white;
}

.mobile-cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    color: var(--primary-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Sorting & Filtering --- */
.sort-selector select {
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid var(--secondary-color);
    font-family: var(--font-body);
    font-weight: 600;
    color: #555;
    cursor: pointer;
    background: white;
    outline: none;
    transition: 0.3s;
}

.sort-selector select:hover {
    border-color: var(--primary-color);
}

/* --- FAQ Section --- */
.faq-section {
    background: #fef1f3;
    padding: 80px 0;
}

.containerSmall {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
    transition: 0.3s;
}

.faq-question.active {
    color: var(--primary-color);
    background: #fff5f6;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.faq-answer.show {
    padding: 0 20px 20px;
    max-height: 200px;
}

/* --- Review Slider --- */
.reviews-section {
    padding: 80px 0;
    text-align: center;
}

.reviews-slider {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
    height: 250px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: 0.8s ease;
    pointer-events: none;
}

.review-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.review-stars {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-slide p {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-slide h4 {
    color: var(--primary-color);
    font-weight: 800;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
    width: 25px;
    border-radius: 10px;
}

/* --- Product Badges --- */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-new {
    background: #2ecc71;
}

.badge-best {
    background: #f1c40f;
}

/* --- Floating Social Bar --- */
.floating-social-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.social-icon:hover {
    transform: scale(1.1) translateX(-5px);
}

.social-icon.fb {
    background: #1877F2;
}

.social-icon.wa {
    background: #25D366;
}

.social-icon.ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.tk {
    background: #000000;
}

/* --- Invoice Modal --- */
.invoice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000000;
    backdrop-filter: blur(10px);
}

.invoice-modal.active {
    display: flex;
}

.invoice-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    animation: modalPop 0.4s;
}

#invoice-printable {
    padding: 40px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.invoice-logo {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.invoice-title {
    font-weight: 800;
    color: #333;
    letter-spacing: 1px;
}

.invoice-info {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.invoice-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #eee;
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.invoice-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
    color: #333;
}

.invoice-total {
    border-top: 2px solid #eee;
    padding-top: 15px;
    text-align: right;
}

.invoice-total p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.final-total {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.2rem !important;
    margin-top: 10px;
}

.invoice-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.invoice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px;
    background: #f9f9f9;
}

/* --- Premium Elite Dark Mode (Midnight Candy Theme) --- */
body.dark-mode {
    --bg-color: #0f172a;
    /* Deep Midnight Blue */
    --text-color: #f8fafc;
    --card-bg: #1e293b;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --border-color: #334155;
    --input-bg: #0f172a;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

body.dark-mode {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.dark-mode header {
    background: rgba(15, 23, 42, 0.8) !important;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

body.dark-mode .hero,
body.dark-mode .about,
body.dark-mode .gallery,
body.dark-mode .contact,
body.dark-mode .faq-section,
body.dark-mode .newsletter-section,
body.dark-mode .big-selling-banner {
    background: var(--bg-color) !important;
    color: var(--text-color);
}

body.dark-mode .product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px var(--shadow-color);
}

body.dark-mode .product-card:hover {
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.2);
    border-color: var(--primary-color);
}

body.dark-mode .product-name,
body.dark-mode .section-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f8fafc;
}

body.dark-mode .product-desc,
body.dark-mode .faq-answer,
body.dark-mode .review-slide p,
body.dark-mode p {
    color: #94a3b8;
}

body.dark-mode .auth-form,
body.dark-mode .product-modal-content,
body.dark-mode .invoice-content,
body.dark-mode .cart-sidebar {
    background: var(--card-bg) !important;
    color: white;
    border: 1px solid var(--border-color);
}

body.dark-mode .faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

body.dark-mode .faq-question.active {
    background: #1e293b;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: var(--input-bg) !important;
    color: white !important;
    border: 2px solid var(--border-color) !important;
}

body.dark-mode .mobile-bottom-bar {
    background: #1e293b;
    border-top: 1px solid var(--border-color);
}

body.dark-mode .nav-item {
    color: #94a3b8;
}

body.dark-mode .stat-card {
    background: var(--card-bg);
    border-color: var(--primary-color);
}

body.dark-mode .stats-grid div[style*="background:#f0f0f0"] {
    background: #334155 !important;
    color: white !important;
}

body.dark-mode .sales-alert {
    background: #1e293b;
    border-color: var(--border-color);
    color: white;
}

/* Animations & Transitions */
body,
.product-card,
header,
.cart-sidebar,
section {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.dark-mode-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
    transition: 0.3s;
    margin-left: 10px;
}

.dark-mode-btn:hover {
    transform: rotate(15deg) scale(1.2);
}

/* Newsletter in Dark Mode */
body.dark-mode .newsletter-section {
    background: #0f172a;
    border-top: 1px solid var(--border-color);
}

/* --- Custom Candy Cursor --- */
body {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 24px'><text y='20'>🍭</text></svg>"), auto;
}

body.dark-mode {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 24px'><text y='20'>🍭</text></svg>"), auto;
}

button,
a,
.nav-item,
.lang-btn,
.theme-dot,
.faq-question,
.cart-item-info,
.pay-method,
.qty-btn {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 24px'><text y='20'>🍬</text></svg>"), pointer;
}

/* --- Admin Low Stock Alert --- */
.stock-low-blink {
    animation: blinkRed 1s infinite alternate;
    color: #ff4757 !important;
    font-weight: 800;
}

@keyframes blinkRed {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.4;
    }
}

/* Dark Mode Fixes for Catalogue & Gallery Categories */
body.dark-mode .catalogue-filter-toggle,
body.dark-mode .sort-selector select {
    background: #1e293b;
    border-color: #334155;
    color: white;
}

body.dark-mode .gallery-item {
    background: #1e293b !important;
    border: 1px solid #334155;
}

body.dark-mode .gallery-item h3 {
    color: #f8fafc !important;
}

body.dark-mode .gallery-item .icon-box {
    background: #0f172a !important;
}

body.dark-mode .gallery-item .icon-box i {
    color: var(--primary-color) !important;
}

body.dark-mode .catalogue-filter-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Support for disabling custom cursor */
body.custom-cursor-disabled,
body.custom-cursor-disabled * {
    cursor: auto !important;
}

body.custom-cursor-disabled button,
body.custom-cursor-disabled a,
body.custom-cursor-disabled .nav-item {
    cursor: pointer !important;
}

/* --- Seasonal Magic: Avurudu (Sinhala & Tamil New Year) --- */
body.season-avurudu {
    --primary-color: #d63031;
    --secondary-color: #f1c40f;
    --bg-color: #fff9e6;
    background-image: radial-gradient(#f1c40f 1px, transparent 1px);
    background-size: 40px 40px;
}

body.season-avurudu::after {
    content: "🌞";
    position: fixed;
    top: 10%;
    right: 5%;
    font-size: 5rem;
    animation: rotateSun 10s linear infinite;
    z-index: 1000;
    pointer-events: none;
}

@keyframes rotateSun {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Seasonal Magic: Vesak (Festival of Lanterns) --- */
body.season-vesak {
    --primary-color: #2980b9;
    --secondary-color: #f1c40f;
    --bg-color: #f0f4f8;
}

body.season-vesak::before {
    content: "🏮";
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    animation: floatBadge 4s infinite;
    z-index: 1000;
    pointer-events: none;
}

body.season-vesak::after {
    content: "🏮";
    position: fixed;
    top: 80px;
    right: 50px;
    font-size: 2.5rem;
    animation: floatBadge 5s infinite;
    z-index: 1000;
    pointer-events: none;
}

/* --- Seasonal Magic: Christmas (Luxury White & Ruby Edition) --- */
body.season-christmas {
    --primary-color: #ff4757;
    /* Vibrant Ruby Red */
    --secondary-color: #2f3542;
    /* Midnight Anchor */
    --bg-color: #ffffff;
    /* Pure Snow */
    background-image: radial-gradient(#ffeaea 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

body.season-christmas .hero {
    background: #ffffff !important;
    color: #2f3542 !important;
    border-bottom: 5px solid #ff4757;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body.season-christmas .hero-content h1 {
    color: #ff4757 !important;
    text-shadow: none !important;
}

body.season-christmas .hero-content p {
    color: #747d8c !important;
}

body.season-christmas .btn-primary {
    background: #ff4757 !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

body.season-christmas .btn-primary:hover {
    background: #2f3542 !important;
    transform: translateY(-3px);
}

body.season-christmas .logo h1 {
    color: #ff4757 !important;
}

.snowflake {
    position: fixed;
    top: -10px;
    color: #a4b0be;
    /* Silver Snow */
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 9999;
    animation: snowFall 7s linear infinite;
    opacity: 0.4;
}

@keyframes snowFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0.8;
    }

    100% {
        transform: translateY(105vh) translateX(40px) rotate(360deg);
        opacity: 0.2;
    }
}

/* Profile Avatar Size Adjustment */
.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 3px solid var(--primary-color);
}

.profile-avatar i {
    font-size: 2.5rem;
    color: #ccc;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Mobile Responsive Fixes (Admin & General) --- */
@media screen and (max-width: 768px) {

    /* 1. Modal Responsiveness */
    .product-modal-content,
    .auth-modal-content,
    .invoice-content {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 85vh;
        /* Prevent it going off screen */
        overflow-y: auto;
        /* Allow scrolling inside modal */
        margin: 10px auto;
        padding: 15px !important;
        border-radius: 15px !important;
    }

    .product-modal-body,
    .admin-modal-body {
        flex-direction: column !important;
        max-height: none !important;
        /* Let content expand */
    }

    /* 2. Admin Tabs Scrolling */
    .admin-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .admin-tab {
        flex: 0 0 auto;
        /* Allow items to keep width */
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* 3. Admin Tables (Orders/Reviews) */
    .admin-list,
    .invoice-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        /* Horizontal scroll for tables */
    }

    .admin-order-item,
    .admin-bank-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-order-item button {
        width: 100%;
        /* Buttons full width on mobile */
        margin-top: 5px;
    }

    /* 4. Hero Section Text */
    .hero-content h1 {
        font-size: 2.5rem !important;
        /* Smaller title */
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    /* 5. Product Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 cols on mobile usually best, maybe 1 if very small */
    }

    /* 6. Fix for Admin Buttons overflowing */
    .admin-toggle-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .switch {
        align-self: flex-end;
        /* Move switch to right */
    }
}

@media screen and (max-width: 480px) {

    /* Very small screens */
    .products-grid {
        grid-template-columns: 1fr !important;
        /* 1 col for tiny screens */
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }
}