/* 
   -----------------------------------------------------------
   EGG SHEG - BLOG & RECIPE STYLES (PURE TAG VERSION)
   This file provide automatic styling for pure HTML tags.
   No classes required in the article body.
   ----------------------------------------------------------- 
*/

:root {
    --brand-yellow: #e8a536;
    --brand-brown: #482713;
    --brand-green: #72bf44;
    --brand-cream: #FFFDF5;
    --brand-sand: #F7F1E3;
    --text-dark: #482713;
    --heading-font: 'Fugaz One', cursive;
    --normal-font: 'Nunito', sans-serif;
    --radius-md: 16px;
    --shadow-soft: 0 10px 30px rgba(72, 39, 19, 0.08);
    --container-width: 1200px;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Body Font for Blog/Recipe Pages */
body {
    line-height: 1.8;
}

/* Main Container */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Headings - Scoped to main with fluid typography */
main h1 {
    font-family: var(--heading-font) !important;
    font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
    color: var(--brand-brown) !important;
    margin-top: 3.5rem !important;
    margin-bottom: 2rem !important;
    line-height: 1.15 !important;
    text-align: left !important;
}

main h2 {
    font-family: var(--heading-font) !important;
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    color: var(--brand-brown) !important;
    margin: 3.5rem 0 1.5rem 0 !important;
    text-align: left !important;
}

main h3 {
    font-family: var(--heading-font) !important;
    font-size: clamp(1.4rem, 3vw, 2rem) !important;
    color: var(--brand-brown) !important;
    margin: 2.5rem 0 1rem 0 !important;
}

main h4 {
    font-family: var(--heading-font) !important;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem) !important;
    color: var(--brand-brown) !important;
    margin: 2rem 0 1rem 0 !important;
}

/* Content Elements - Scoped to main */
main p {
    font-family: var(--normal-font) !important;
    font-size: clamp(1rem, 2.2vw, 1.125rem) !important;
    color: rgba(72, 39, 19, 0.85) !important;
    margin-bottom: 1.5rem !important;
}

main img {
    width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-soft) !important;
    margin: 2.5rem 0 !important;
}

main .featured-image {
    margin-top: 0 !important;
    margin-bottom: 3rem !important;
}

/* Lists - Scoped to main */
main ul,
main ol {
    margin-bottom: 2rem !important;
    padding-left: 1.5rem !important;
}

main li {
    font-family: var(--normal-font) !important;
    font-size: clamp(1rem, 2.2vw, 1.1rem) !important;
    margin-bottom: 1rem !important;
    list-style: inherit !important;
}

/* Blockquotes - Scoped to main */
main blockquote {
    background-color: var(--brand-sand) !important;
    border-left: 5px solid var(--brand-yellow) !important;
    padding: 2.5rem !important;
    margin: 3.5rem 0 !important;
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
    font-style: italic !important;
    font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
    color: var(--brand-brown) !important;
    font-weight: 600 !important;
}

/* Links */
a {
    color: var(--brand-yellow);
    font-weight: 700;
    transition: color 0.3s;
}

main a:hover {
    color: var(--brand-brown);
}

/* Tables - Scoped to main */
main table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2.5rem 0 !important;
    background: #fff !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-soft) !important;
}

th,
td {
    padding: 1.2rem !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(72, 39, 19, 0.05) !important;
}

th {
    background-color: var(--brand-brown) !important;
    color: #fff !important;
    font-family: var(--heading-font) !important;
    font-weight: normal !important;
}

/* -----------------------------------------------------------
   UI COMPONENTS (SYNCED FROM STYLE.CSS)
   ----------------------------------------------------------- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-lg) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--normal-font);
}

.btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-brown);
}

.btn-primary:hover {
    background-color: #d6942a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(232, 165, 54, 0.4);
}

.btn-outline {
    border: 2px solid var(--brand-brown);
    color: var(--brand-brown);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--brand-brown);
    color: #fff;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 253, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(72, 39, 19, 0.05);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: clamp(3rem, 4vw, 4.5rem);
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .logo {
        height: 2.5rem;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none !important;
    padding: 0 !important;
}

.nav-link {
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s;
    text-decoration: none !important;
}

.nav-link:hover {
    color: var(--brand-yellow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--brand-brown);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--brand-green);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--normal-font);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-brown);
}

/* Footer */
footer {
    background-color: var(--brand-brown);
    color: var(--brand-sand);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: var(--brand-yellow) !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.4rem !important;
    font-family: var(--heading-font) !important;
}

.footer-links ul,
.footer-contact ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem !important;
    font-family: var(--normal-font) !important;
    font-size: 1rem !important;
}

.footer-links a:hover {
    color: var(--brand-yellow);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    color: white !important;
}

.social-btn:hover {
    background: var(--brand-yellow);
    color: var(--brand-brown) !important;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
    font-family: var(--normal-font);
}

/* Cart UI */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(72, 39, 19, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background: #fff;
    z-index: 1002;
    box-shadow: -5px 0 30px rgba(72, 39, 19, 0.1);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand-cream);
}

.cart-header h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem) !important;
    color: var(--brand-brown) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-brown);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-cart:hover {
    background: rgba(0, 0, 0, 0.05);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty-msg {
    text-align: center;
    margin-top: 3rem;
    color: #888;
    font-family: var(--normal-font);
}

.cart-empty-msg i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
    display: block;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    background: #fff;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed #eee;
}

.cart-item img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: var(--radius-sm) !important;
    background: #f5f5f5 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    color: var(--brand-brown);
    display: block;
    margin-bottom: 4px;
    font-family: var(--normal-font);
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--brand-yellow);
    font-weight: 700;
    font-family: var(--normal-font);
}

.cart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: 0.2s;
    color: var(--brand-brown);
}

.qty-btn:hover {
    background: var(--brand-sand);
    border-color: var(--brand-yellow);
}

.qty-val {
    font-weight: 700;
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    font-family: var(--normal-font);
}

.cart-remove {
    color: #ff6b6b;
    cursor: pointer;
    margin-left: auto;
    font-size: 0.9rem;
    transition: 0.2s;
    padding: 5px;
}

.cart-remove:hover {
    color: #ff0000;
}

.cart-footer {
    padding: 2rem;
    background: var(--brand-cream);
    border-top: 1px solid #f0f0f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-brown);
    margin-bottom: 1.5rem;
    font-family: var(--normal-font);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: var(--brand-green);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--normal-font);
}

.checkout-btn:hover {
    background: #5ea336;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 191, 68, 0.3);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: popIn 0.2s ease-out;
}

.modal-box h2 {
    margin-bottom: 10px !important;
    font-family: var(--heading-font) !important;
    text-align: center !important;
}

.modal-box h3 {
    color: var(--brand-green) !important;
    margin: 10px 0 !important;
    font-family: var(--heading-font) !important;
}

.modal-box p {
    color: #555 !important;
    font-size: clamp(0.8rem, 2vw, 0.95rem) !important;
    margin-bottom: 0 !important;
    font-family: var(--normal-font) !important;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s;
    animation: pulse 3s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--brand-cream);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }

    .nav-actions .btn {
        display: none;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Footer & Nav Resets (to prevent blog styles from breaking shared layouts) */
nav a,
footer a {
    text-decoration: none !important;
    font-weight: 700 !important;
}

nav ul,
footer ul {
    list-style: none !important;
    padding: 0 !important;
}

footer h3 {
    margin: 0 0 1rem 0 !important;
    font-size: 1.2rem !important;
}

/* Responsive Scaling */

/* Medium Screens */
@media (max-width: 992px) {
    main {
        padding: 0 2rem !important;
    }
}

/* Small Screens / Mobile */
@media (max-width: 768px) {
    main {
        padding: 0 1rem !important;
    }

    main h1 {
        margin-bottom: 1.5rem !important;
    }

    main h2 {
        margin-top: 2.5rem !important;
    }

    blockquote {
        padding: 1.5rem !important;
        margin: 2.5rem 0 !important;
    }

    /* Table horizontal scroll for mobile */
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}