/* Spherenet login button theme */
#spherenet-login-btn {
    background: #1a4fd7;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    padding: 13px 0;
    font-size: 1.08rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0;
}
#spherenet-login-btn:hover {
    background: #153fae;
}
#spherenet-login-btn img {
    height: 22px;
    width: 22px;
    vertical-align: middle;
    margin-right: 6px;
}

/* Cart overlay membrane: always fills screen, 50% transparent when active */
.cart-overlay {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    transition: opacity 0.3s;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
/* Cart sidebar: hidden by default, slides in from right on desktop */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.13);
    z-index: 1002;
    transition: right 0.35s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.cart-sidebar.active {
    right: 0;
}
@media (max-width: 600px) {
    .cart-sidebar {
        width: 100vw;
        min-width: 0;
        right: -100vw;
        max-width: 100vw;
    }
    .cart-sidebar.active {
        right: 0;
    }
}

.cart-items-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 52vh;
    overflow-y: auto;
    padding: 0 0 12px 0;
}

/* Cart overlay membrane: always fills screen, 50% transparent when active */
.cart-overlay {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    transition: opacity 0.3s;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
    padding: 24px 28px 32px 28px;
    border-top: 1px solid #eee;
    background: #fafbff;
    text-align: center;
}
.cart-total-label {
    color: #888;
    font-size: 1.08rem;
}
.cart-total-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
    margin: 8px 0 4px 0;
}
.cart-free-delivery {
    color: #1a4fd7;
    font-size: 1.02rem;
    margin-bottom: 18px;
}
.cart-checkout-btn {
    width: 100%;
    background: var(--cheese-yellow, #ffe066);
    color: #222;
    font-weight: 600;
    border: none;
    border-radius: 24px;
    padding: 12px 0;
    font-size: 1.08rem;
    cursor: pointer;
    transition: background 0.2s;
}
.cart-checkout-btn:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}
@media (max-width: 600px) {
    .cart-sidebar {
        width: 100vw;
        min-width: 0;
        right: -100vw;
    }
    .cart-sidebar.active {
        right: 0;
    }
}
/* --- HEADER SCROLLED STATE --- */
.header.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.25s, box-shadow 0.25s;
}
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Open+Sans:400,700|Lato:400,700|Lora:400,700&display=swap');
/* Cheeseboy Store Main Theme - Clean, Professional, Cheesy Colors */

:root {
    --cheese-yellow: #ffe066;
    --cheese-red: #d7263d;
    --cheese-white: #fff;
    --cheese-black: #222;
    --cheese-grey: #f7f7f7;
    --cheese-accent: #fbbf24;
}
body {
    font-family: 'Open Sans', 'Lato', 'Lora', 'Myriad Pro', 'Playfair Display', Arial, Helvetica, sans-serif;
    background: var(--cheese-grey, #f7f7f7);
    color: var(--cheese-black, #222);
    margin: 0;
    padding: 0;
}

/* --- NAVBAR --- */
.navbar {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    gap: 24px;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.navbar a {
    color: #111;
    background: none;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 18px;
    margin: 0 2px;
    transition: border 0.2s, color 0.2s;
}
.navbar a.active {
    color: #a10c1c;
    border: 1px solid #a10c1c;
    text-decoration: none;
}
.navbar a:hover {
    color: #a10c1c;
    border: 1px solid #a10c1c;
    background: rgba(161,12,28,0.07);
}

/* --- HEADER FLEX LAYOUT --- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px 0 32px;
    height: 90px;
    background: linear-gradient(179deg, rgba(255,245,196,0.09) 80%, rgba(219,174,173,0.09) 100%);
    border-bottom: none;
    box-shadow: none;
}
.header .logo-area {
    flex: 0 0 15%;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
}
.header .logo-area img {
    height: 54px;
    width: auto;
    vertical-align: middle;
}
.header .logo-area span {
    font-family: 'Astralaga','Playfair Display',serif;
    font-size: 2.1rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #a10c1c;
}
.header .search-form {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    margin-left: 0;
    justify-content: flex-start;
}
.header .search-input {
    font-size: 1.1rem;
    padding: 7px 16px;
    border-radius: 8px;
    border: 3px solid #111;
    outline: none;
    min-width: 160px;
    width: 100%;
    background: #fff;
    color: #111;
    padding: 6px 17px;
    transition: border 0.2s;
}
.header .search-input:focus {
    border-color: #a10c1c;
}
.header .actions {
    flex: 0 0 10%;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
}

/* --- ACTIONS ANCHOR UNIFIED STYLE --- */
.header .actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 32px;
    min-height: 32px;
    height: 32px;
    width: 32px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    color: #888;
    font-size: 1.15rem;
    text-decoration: none;
    transition: color 0.18s, background 0.18s;
    border-radius: 8px;
}
.header .actions a:hover {
    color: #d7263d;
    background: rgba(215,38,61,0.07);
    border-radius: 8px;
}

/* --- BANNER FONT & STICKY --- */
.banner {
    font-size: 1.05rem;
    line-height: 1.4;
    font-family: 'Open Sans', 'Lato', 'Lora', 'Myriad Pro', Arial, Helvetica, sans-serif;
    color: #222;
    background: #d5cdcd !important;
    width: 100vw;
    min-width: 100%;
    height: 30vh;
    max-height: 320px;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- MAKE HEADER STICKY --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- PRODUCT GRID --- */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    justify-items: center;
    align-items: stretch;
    margin: 48px auto 0 auto;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1300px;
}

/* --- HEADER FONT --- */
.header {
    font-family: 'Astralaga', 'Playfair Display', serif;
}

.header {
    background: linear-gradient(179deg, #fff5c4 80%, #dbaead 100%);
    color: #331d1c;
    padding: 32px 0 16px 0;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    border-bottom: 1px solid var(--cheese-red);
}

/* --- CART LINK FONT --- */
.header .cart-link, .header .login-link {
    font-family: 'Lato', 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 16px;
    background: var(--cheese-white, #fff);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    font-weight: 500;
}

/* --- PRODUCT CARD REFINEMENT --- */
.product-card {
    background: #f1f1f1;
    border: none;
    border-radius: 8px;
    box-shadow: none;
    width: 240px;
    padding: 18px 16px 16px 16px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card .wishlist {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #e5d0d0;
    font-size: 1.3rem;
    margin: 0;
    transition: color 0.2s;
    z-index: 2;
    cursor: pointer;
}
.product-card .wishlist.active {
    color: #d7263d;
}

.product-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 5px;
    align-self: flex-start;
}

.product-card h3 {
    font-size: 1.08rem;
    margin: 0 0 6px 0;
    color: #5f5858;
    font-weight: 600;
    text-align: left;
}

.product-card .description {
    font-size: 0.97rem;
    color: #444;
    margin-bottom: 8px;
    text-align: left;
}

.product-card .price {
    font-weight: bold;
    margin-bottom: 0;
    font-size: 1.08rem;
    color: #222;
    text-align: left;
}

.product-card button {
    display: none;
}

.footer {
    text-align: center;
    color: #bdbdbd;
    padding: 40px 0 18px;
    font-size: 1rem;
    border-top: 1px solid var(--cheese-red);
    background: #fff;
    position: relative;
}

.footer-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 32px 0 18px 0;
}
.footer-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 56px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: none;
    border: none;
}
.footer-col {
    min-width: 180px;
    text-align: left;
}
.footer-col h4 {
    font-size: 1.08rem;
        color: var(--cheese-red);
        text-decoration: underline;
        background: none;
        border: none;
    font-weight: 700;
    letter-spacing: 1px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 7px;
        background: none;
        border: none;
}
.footer-col ul li a {
        color: #000249;
        text-decoration: underline;
        background: none;
        border: none;
    font-size: 0.98rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: var(--cheese-red);
    text-decoration: underline;
}
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer .address {
    color: #888;
    font-size: 0.97rem;
    margin-top: 18px;
}

.footer a {
    color: #000249;
    text-decoration: underline;
}


/* --- HEADER HEIGHT & FONT --- */
.header {
    height: 60px;
    min-height: 60px;
    padding: 0 24px 0 24px;
}
.header .logo-area span {
    font-size: 1.3rem;
    line-height: 60px;
}
.navbar {
    font-size: 1rem;
    padding: 0;
    gap: 18px;
}
.header .search-input {
    font-size: 0.98rem;
    padding: 5px 10px;
    min-width: 120px;
}

/* --- FIX ACTIONS ICON VERTICAL ALIGNMENT --- */
.header .actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 32px;
    min-height: 32px;
    height: 32px;
    width: 32px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    color: #888;
    font-size: 1.15rem;
    text-decoration: none;
    transition: color 0.18s, background 0.18s;
    border-radius: 8px;
}
.header .actions a:hover {
    color: #d7263d;
    background: rgba(215,38,61,0.07);
}
.header .actions .icon-heart,
.header .actions .icon-login,
.header .actions .icon-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.15rem;
    line-height: 1;
}
.header .actions .icon-heart {
    color: #e5d0d0;
}
.header .actions .cart-count {
    display: none;
    position: absolute;
    top: -7px;
    right: -10px;
    background: #d7263d;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    z-index: 2;
}

/* --- HEADER FULL WIDTH, CONTENT CENTERED --- */
.header {
    width: 100vw;
    min-width: 100%;
    max-width: 100vw;
    margin: 0;
    left: 0;
    right: 0;
    position: relative;
    display: flex;
    justify-content: center;
    background: linear-gradient(179deg, rgba(255,245,196,0.09) 80%, rgba(219,174,173,0.09) 100%);
}
.header .header-inner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 24px;
    gap: 32px;
}


/* --- ENSURE HEADER IS STICKY AT TOP --- */
.header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    width: 100vw;
    min-width: 100%;
    max-width: 100vw;
    margin: 0;
    left: 0;
    right: 0;
    background: linear-gradient(179deg, rgba(255,245,196,0.09) 80%, rgba(219,174,173,0.09) 100%);
}
