/*=========================================================
                    GOOGLE FONT
=========================================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/*=========================================================
                    CSS RESET
=========================================================*/
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background-color: #F3EFE8;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(139, 111, 78, 0.09) 0px,
            rgba(139, 111, 78, 0.09) 1.5px,
            transparent 1.5px,
            transparent 7px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(139, 111, 78, 0.09) 0px,
            rgba(139, 111, 78, 0.09) 1.5px,
            transparent 1.5px,
            transparent 7px
        ),
        radial-gradient(
            rgba(120, 90, 60, 0.12) 1.2px,
            transparent 1.2px
        );
    background-size: 7px 7px, 7px 7px, 10px 10px;
    background-attachment: fixed;
    color: #333;
    overflow-x:hidden;
}

a{
    text-decoration:none;
    color:inherit;
}

button{
    font-family:'Poppins',sans-serif;
    cursor:pointer;
}

ul{
    list-style:none;
}

img{
    max-width:100%;
    display:block;
}


/*=========================================================
                    TOP NAVBAR
=========================================================*/
.site-header{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:18px 50px;

    background:#FFFFFF;
    border-bottom:1px solid #E8E8E8;
    box-shadow:0 3px 15px rgba(0,0,0,.05);
}

.site-logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.site-logo img{
    width:48px;
    height:48px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid #8B5E3C;
}

.site-logo h1{
    color:#8B5E3C;
    font-size:22px;
    font-weight:700;
    line-height:1.1;
}

.site-logo span{
    color:#777;
    font-size:12px;
    font-weight:500;
}

.site-nav ul{
    display:flex;
    align-items:center;
    gap:38px;
}

.site-nav a{
    color:#444;
    font-size:15px;
    font-weight:500;
    transition:.3s;
    position:relative;
}

.site-nav a:hover,
.site-nav a.active{
    color:#8B5E3C;
}

.site-nav a.active::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:100%;
    height:2px;
    background:#8B5E3C;
    border-radius:2px;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:16px;
}

.icon-btn{
    position:relative;
    width:44px;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;
    border-radius:50%;
    background:#F3F3F3;

    font-size:17px;
    color:#444;

    transition:.3s;
}

.icon-btn:hover{
    background:#8B5E3C;
    color:#FFFFFF;
}

.cart-count{
    position:absolute;
    top:-2px;
    right:-2px;

    background:#e74c3c;
    color:#fff;

    font-size:11px;
    font-weight:bold;

    padding:2px 6px;
    border-radius:999px;
    line-height:1;
}

.btn-outline{
    padding:11px 22px;

    border:1.5px solid #8B5E3C;
    border-radius:10px;
    background:transparent;

    color:#8B5E3C;
    font-size:14px;
    font-weight:600;

    transition:.3s;
}

.btn-outline:hover{
    background:#8B5E3C;
    color:#FFFFFF;
}

.btn-solid{
    padding:12px 24px;

    border:none;
    border-radius:10px;
    background:#8B5E3C;

    color:#FFFFFF;
    font-size:14px;
    font-weight:600;

    transition:.3s ease;
}

.btn-solid:hover{
    background:#6F472A;
    transform:translateY(-2px);
}


/*=========================================================
                    HERO SECTION
=========================================================*/
.hero{
    max-width:1400px;
    margin:0 auto;
    padding:80px 50px;

    display:grid;
    grid-template-columns:1.1fr .9fr;
    align-items:center;
    gap:60px;
}

.hero-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;

    padding:8px 16px;
    border-radius:999px;

    background:#F3EAE0;
    color:#8B5E3C;

    font-size:13px;
    font-weight:600;

    margin-bottom:22px;
}

.hero h2{
    font-size:48px;
    line-height:1.15;
    font-weight:700;
    color:#2B2621;
    margin-bottom:20px;
}

.hero h2 span{
    color:#8B5E3C;
}

.hero p{
    color:#777;
    font-size:16px;
    line-height:1.7;
    max-width:480px;
    margin-bottom:32px;
}

.hero-actions{
    display:flex;
    gap:16px;
    margin-bottom:40px;
}

.hero-stats{
    display:flex;
    gap:40px;
}

.hero-stats div h3{
    color:#8B5E3C;
    font-size:26px;
    font-weight:700;
}

.hero-stats div span{
    color:#777;
    font-size:13px;
}

.hero-visual{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-spool{
    width:340px;
    height:340px;
    border-radius:50%;

    background:#8B5E3C;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 25px 60px rgba(139,94,60,.35);
}

.hero-spool i{
    font-size:110px;
    color:#F8F5F1;
}

.hero-badge{
    position:absolute;
    bottom:10px;
    left:0;

    background:#FFFFFF;
    border-radius:16px;
    padding:16px 20px;

    box-shadow:0 12px 30px rgba(0,0,0,.1);

    display:flex;
    align-items:center;
    gap:12px;
}

.hero-badge i{
    color:#8B5E3C;
    font-size:20px;
}

.hero-badge strong{
    display:block;
    font-size:14px;
    color:#333;
}

.hero-badge span{
    font-size:12px;
    color:#777;
}


/*=========================================================
                    COMPACT PAGE HEADER
                    (for utility pages: Account, Profile, etc.)
=========================================================*/
.page-header{
    max-width:1400px;
    margin:0 auto;
    padding:40px 50px 8px;

    display:flex;
    align-items:center;
    gap:24px;
}

.page-header-icon{
    width:64px;
    height:64px;
    flex-shrink:0;
    border-radius:50%;

    background:#8B5E3C;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 10px 24px rgba(139,94,60,.28);
    overflow:hidden;
}

.page-header-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.page-header-icon i{
    font-size:26px;
    color:#F8F5F1;
}

.page-header-text h2{
    font-size:26px;
    font-weight:700;
    color:#2B2621;
    margin-bottom:6px;
}

.page-header-text h2 span{
    color:#8B5E3C;
}

.page-header-text p{
    color:#777;
    font-size:14px;
}

@media (max-width:700px){
    .page-header{
        padding:28px 20px 4px;
        gap:16px;
    }

    .page-header-icon{
        width:52px;
        height:52px;
    }

    .page-header-text h2{
        font-size:21px;
    }
}


/*=========================================================
                    SECTION HEADER
=========================================================*/
.section{
    max-width:1400px;
    margin:0 auto;
    padding:60px 50px;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:36px;
}

.section-header h3{
    font-size:30px;
    font-weight:700;
    color:#8B5E3C;
    margin-bottom:8px;
}

.section-header p{
    color:#777;
    font-size:15px;
}

.section-link{
    color:#8B5E3C;
    font-size:14px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:6px;
}


/*=========================================================
                    CATEGORY CARDS
=========================================================*/
.category-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.category-card{
    background:#FFFFFF;
    border-radius:20px;
    padding:32px 25px;

    text-align:center;

    box-shadow:0 8px 20px rgba(0,0,0,.05);
    transition:.3s ease;
}

.category-card:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 32px rgba(0,0,0,.09);
}

.category-icon{
    width:68px;
    height:68px;
    margin:0 auto 18px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
    background:#8B5E3C;
    color:#fff;
    font-size:26px;
}

.category-card h4{
    font-size:18px;
    font-weight:600;
    color:#333;
    margin-bottom:6px;
}

.category-card span{
    color:#777;
    font-size:14px;
}


/*=========================================================
                    PRODUCT CARDS
=========================================================*/
.product-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.product-card{
    background:#FFFFFF;
    border-radius:20px;
    overflow:hidden;

    box-shadow:0 8px 20px rgba(0,0,0,.05);
    transition:.3s ease;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 32px rgba(0,0,0,.09);
}

.product-thumb{
    height:170px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#F3EAE0;
    color:#8B5E3C;
    font-size:44px;
}

.product-body{
    padding:20px;
}

.product-category{
    color:#8B5E3C;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.5px;
}

.product-body h4{
    font-size:16px;
    font-weight:600;
    color:#333;
    margin:8px 0 12px;
}

.product-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.product-price{
    color:#8B5E3C;
    font-size:18px;
    font-weight:700;
}

.product-price span{
    color:#999;
    font-size:12px;
    font-weight:500;
}

.add-cart-btn{
    width:40px;
    height:40px;

    border:none;
    border-radius:50%;
    background:#8B5E3C;

    color:#fff;
    font-size:15px;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.3s;
}

.add-cart-btn:hover{
    background:#6F472A;
}


/*=========================================================
                    ABOUT / MISSION SECTION
=========================================================*/
.about-section{
    background:#FFFFFF;
    margin:0 50px;
    border-radius:24px;

    padding:70px 60px;

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;

    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.about-section h3{
    font-size:30px;
    font-weight:700;
    color:#8B5E3C;
    margin-bottom:18px;
}

.about-section p{
    color:#666;
    font-size:15px;
    line-height:1.8;
    margin-bottom:24px;
}

.about-points{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.about-points li{
    display:flex;
    align-items:center;
    gap:14px;
    font-size:14px;
    color:#444;
}

.about-points i{
    width:34px;
    height:34px;
    flex-shrink:0;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;
    background:#F3EAE0;
    color:#8B5E3C;
    font-size:14px;
}

.about-visual{
    display:flex;
    align-items:center;
    justify-content:center;
}

.about-visual-circle{
    width:100%;
    max-width:320px;
    aspect-ratio:1;
    border-radius:50%;

    background:#F3EFE8;
    border:2px dashed #D9CFC2;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.about-visual-circle i{
    font-size:64px;
    color:#8B5E3C;
}

.about-visual-circle span{
    color:#777;
    font-size:13px;
    text-align:center;
    padding:0 30px;
}


/*=========================================================
                    NEWSLETTER / CTA STRIP
=========================================================*/
.cta-strip{
    max-width:1400px;
    margin:0 auto;
    padding:0 50px 70px;
}

.cta-box{
    background:#8B5E3C;
    border-radius:24px;

    padding:50px 60px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.cta-box h3{
    color:#FFFFFF;
    font-size:26px;
    font-weight:700;
    margin-bottom:8px;
}

.cta-box p{
    color:#F3EAE0;
    font-size:14px;
}

.cta-box .btn-solid{
    background:#FFFFFF;
    color:#8B5E3C;
    flex-shrink:0;
}

.cta-box .btn-solid:hover{
    background:#F3EAE0;
    transform:translateY(-2px);
}


/*=========================================================
                    FOOTER
=========================================================*/
.site-footer{
    background:#2B2621;
    color:#C9C2B8;

    padding:60px 50px 25px;
}

.footer-grid{
    max-width:1400px;
    margin:0 auto;

    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:40px;

    padding-bottom:40px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.footer-brand h2{
    color:#FFFFFF;
    font-size:22px;
    font-weight:700;
    margin-bottom:10px;
}

.footer-brand p{
    font-size:14px;
    line-height:1.7;
    max-width:280px;
}

.footer-col h5{
    color:#FFFFFF;
    font-size:14px;
    font-weight:600;
    margin-bottom:16px;
}

.footer-col ul{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.footer-col a{
    font-size:14px;
    color:#C9C2B8;
    transition:.3s;
}

.footer-col a:hover{
    color:#8B5E3C;
}

.footer-bottom{
    max-width:1400px;
    margin:0 auto;
    padding-top:22px;

    text-align:center;

    font-size:13px;
    color:#8A8378;
    line-height:1.8;
}


/*=========================================================
                    RESPONSIVE DESIGN
=========================================================*/
@media (max-width:1100px){

    .hero{
        grid-template-columns:1fr;
    }

    .hero-visual{
        order:-1;
    }

    .category-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .about-section{
        grid-template-columns:1fr;
        padding:50px 30px;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:700px){

    .site-header{
        padding:16px 20px;
    }

    .site-nav{
        display:none;
    }

    .hero{
        padding:50px 20px;
    }

    .hero h2{
        font-size:34px;
    }

    .section{
        padding:45px 20px;
    }

    .category-grid,
    .product-grid{
        grid-template-columns:1fr;
    }

    .about-section{
        margin:0 20px;
    }

    .cta-strip{
        padding:0 20px 50px;
    }

    .cta-box{
        flex-direction:column;
        text-align:center;
        padding:40px 30px;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
}
/* ===== Notification bell ===== */

.notif-menu {
    position: relative;
}

.notif-btn {
    border: none;
    cursor: pointer;
    font: inherit;
}

.notif-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.notif-dropdown.open {
    display: block;
}

/* Header row: "Notifications" + "Mark all as read" */
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #EEE;
    background: #fff;
}

/* "Notifications" label */
.notif-header span {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2B2621;
}

/* "Mark all as read" - plain brown text, no pill/border (same as admin) */
.mark-read-btn {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #8B5E3C;
    cursor: pointer;
}

.mark-read-btn:hover {
    background: none;
    text-decoration: underline;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f3f3f3;
}

.notif-item:hover {
    background: #f7f2ec;
}

.notif-item.unread {
    background: #fbf5ef;
}

.notif-item i {
    color: #8b5a3c;
    margin-top: 3px;
}

.notif-item p {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.4;
}

.notif-item small {
    color: #999;
    font-size: 12px;
}

.notif-empty {
    margin: 0;
    padding: 24px 18px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

@media (max-width: 480px) {
    .notif-dropdown {
        width: 290px;
        right: -60px;
    }
}
/*=========================================================
        TYPOGRAPHY + POLISH (change sizes here only)
=========================================================*/
:root{
    --t-hero:44px;        /* big headline on Home */
    --t-section:26px;     /* Shop by Category, Featured Products, About, CTA ... */
    --t-card:16px;        /* product / category card titles */
    --t-body:15px;        /* normal paragraphs */
    --t-small:13px;       /* captions, labels */
    --ink:#2B2621;
    --body-text:#5F564D;  /* slightly darker than the old #777 for readability */
}

/* ---------- Header ---------- */
.site-header{
    padding:14px 50px;
}
.site-logo h1{
    font-size:20px;
}
.site-nav ul{
    gap:32px;
}
.site-nav a{
    font-size:15px;
}

/* ---------- Hero ---------- */
.hero{
    padding:64px 50px;
    gap:50px;
}
.hero h2{
    font-size:var(--t-hero);
    line-height:1.18;
    margin-bottom:18px;
}
.hero p{
    font-size:16px;
    line-height:1.75;
    color:var(--body-text);
    max-width:520px;
    margin-bottom:28px;
}
.hero-actions{
    margin-bottom:34px;
}

/* Stats row: smaller numbers, thin dividers */
.hero-stats{
    gap:0;
}
.hero-stats div{
    padding:0 28px;
    border-left:1px solid #E3D9CC;
}
.hero-stats div:first-child{
    padding-left:0;
    border-left:none;
}
.hero-stats div h3{
    font-size:22px;
    line-height:1.2;
}
.hero-stats div span{
    font-size:var(--t-small);
    color:var(--body-text);
}

/* Photo: softer shadow + thin brown ring (matches the logo) */
.hero-spool{
    border:4px solid #8B5E3C;
    box-shadow:0 18px 40px rgba(139,94,60,.22);
}

/* COD badge: smaller and moved off the yarn */
.hero-badge{
    bottom:-14px;
    left:-24px;
    padding:12px 16px;
    border-radius:14px;
    box-shadow:0 8px 22px rgba(0,0,0,.10);
}
.hero-badge strong{
    font-size:13px;
}
.hero-badge span{
    font-size:11.5px;
}

/* ---------- Section titles (all the same size) ---------- */
.section{
    padding:52px 50px;
}
.section-header{
    margin-bottom:30px;
}
.section-header h3,
.about-section h3,
.cta-box h3{
    font-size:var(--t-section);
    font-weight:700;
    line-height:1.3;
}
.section-header h3{
    margin-bottom:6px;
}
.section-header p{
    font-size:var(--t-body);
    color:var(--body-text);
}

/* ---------- Cards ---------- */
.category-card h4,
.product-body h4{
    font-size:var(--t-card);
}
.category-card span{
    font-size:var(--t-small);
}
.product-price{
    font-size:17px;
}

/* ---------- About + CTA ---------- */
.about-section{
    padding:56px 56px;
}
.about-section p{
    font-size:var(--t-body);
    color:var(--body-text);
}
.about-points li{
    font-size:var(--t-body);
}
.cta-box{
    padding:42px 56px;
}
.cta-box p{
    font-size:var(--t-body);
}

/* ---------- Mobile ---------- */
@media (max-width:1100px){
    .hero-badge{ left:0; }
}
@media (max-width:700px){
    :root{
        --t-hero:32px;
        --t-section:22px;
    }
    .site-header{ padding:14px 20px; }
    .hero{ padding:44px 20px; }
    .hero-stats div{ padding:0 16px; }
    .about-section{ padding:40px 24px; }
    .cta-box{ padding:36px 24px; }
}
.notif-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    padding: 14px 18px;
    background: #fff;
    color: #333;
    border-left: 4px solid #6b4a2f;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.notif-toast.show { opacity: 1; transform: translateY(0); }
.notif-toast i { color: #6b4a2f; font-size: 18px; }