@charset "utf-8";
/* CSS Document */
<!-- Perpetua Font -->
<style>

        /* Define custom font called 'Perpetua' using @font-face */

        @font-face {

            font-family: 'Perpetua';

            /* Font name to reference in CSS */

            src: url('https://www.scientificcollectables.com/css/fonts/perpetua.ttf') format('truetype');

            /* Font file URL */

            font-weight: normal;

            /* Normal weight */

            font-style: normal;

            /* No italics */

        }

    </style>
<!-- Hoverlinks -->
<style>

        /* Style for all anchor (<a>) elements on hover */

        a:hover {

            text-decoration: underline;

            /* Adds underline when mouse hovers over a link */

        }

    </style>
<!-- Home page Header -->
<style>
/* ---------- GLOBAL RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Perpetua', serif;
    background: #FFF7DE;
    color: #001F94;
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn { to { opacity: 1; } }

a { color: #000; text-decoration: none; }

/* ---------- HEADER ---------- */
.site-header {
    display: flex;
    flex-direction: column;
    background: #FFF2CC;
    border-radius: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 0.5px;
    position: relative;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

/* ---------- LOGO ---------- */
.logo-hover-wrap { display: inline-block; transition: transform 0.35s ease; }
.logo-link:hover .logo-hover-wrap { transform: scale(1.05); }

.site-logo {
    width: clamp(43px, 5.72vw, 80.23px);
    height: auto;
    margin-left: clamp(17px, calc(12.606vw - 5px), 91.8px);
    margin-top: clamp(-19.2px, -1.35vw, -14.8px);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 4px 6px 4px rgba(100,100,100,0.34), 4px 6px 15px rgba(150,150,150,0.17);
    opacity: 0;
    transform: scale(0.6);
    animation: logoFadeInGrow 1s ease-out forwards;
    transition: transform 0.3s ease, width 0.4s ease, height 0.4s ease, margin 0.4s ease;
    position: relative;
    z-index: 2;
}
@keyframes logoFadeInGrow { 0% { opacity: 0; transform: scale(0.6); } 100% { opacity: 1; transform: scale(1); } }

/* ---------- CENTER CONTAINER ---------- */
.center-container { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; flex-grow: 1; margin-top: 0; }
.logo-wrap { margin-top: -16px; margin-left: 0; align-items: center; text-align: center; position: relative; }

/* ---------- LOGO TEXT ---------- */
.logo-text {
    font-weight: 500;
    font-family: 'Perpetua', serif;
    white-space: nowrap;
    color: #001F94;
    letter-spacing: 0.05em;
    font-size: clamp(2.761rem, 4.10285vw, 5.5263rem);
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1.2s ease-out forwards;
    margin-bottom: 0.15rem;
    text-align: center;
    margin-top: -5px;
    transition: font-size 0.3s ease, transform 0.3s ease;
}

@keyframes fadeInLeft { 0% { opacity: 0; transform: translateX(-50px); } 100% { opacity: 1; transform: translateX(0); } }

/* ---------- SUFFIX ---------- */
.suffix {
    font-family: 'Perpetua', serif;
    color: #001F94;
    font-size: clamp(1.404rem, 2.7vw, 1.944rem);
    position: relative;
    z-index: 1;
    margin-top: 0px;
    top: -16px;
    text-align: center;
    transition: top 0.3s ease, font-size 0.3s ease;
    font-style: italic;
}
.suffix strong { font-weight: 500; }
.suffix em {
    font-style: italic;
    font-weight: 400;
    margin-left: 6px;
    margin-top:10px;
    color: #001F94;
    text-transform: capitalize;
}

/* ---------- BANNER ---------- */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: 'Perpetua', serif;
    font-size: clamp(0.9rem, 1.3vw, 1.8rem);
    padding: 0.2rem 1rem;
    color: #001F94;
    background: transparent;
    border: none;
    border-radius: 4px;
    gap: 10px;
    width: 95%;
    margin-inline: auto;
    margin-bottom: 4px;
    margin-top: 0;
    max-height: 28px;
    position: relative;
    top: clamp(0px, 0.2vw, 2px);
    transition: top 0.3s ease;
}
.banner::before, .banner::after {
    content: "";
    flex: 0 0 5.91%;
    height: 2px;
    background: #001F94;
    position: relative;
    margin: 0 2px;
    align-self: center;
    top: -16px;
    transition: top 0.3s ease, flex-basis 0.3s ease, margin 0.3s ease;
}

/* ---------- SHIPPING NOTICE ---------- */
.shipping-notice {
    font-family: 'Perpetua', serif;
    color: #001F94;
    font-weight: 700;
    text-align: center;
    font-size: clamp(1.14rem, 1.44vw, 1.68rem);
    letter-spacing: 0.15em;
    margin-top: -6px;
    padding: 2px 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    top: -11px;
    transition: top 0.3s ease, left 0.3s ease, font-size 0.3s ease;
}

/* ---------- UPDATE NOTICE ---------- */
.update-notice {
    position: relative;
    left: 0;
    margin-top: -12px;
    margin-left: -4px;
    transform: none;
    font-size: clamp(0.8rem, 2vw, 1rem);
    line-height: 1.3;
    text-align: center;
    width: 90%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    transition: top 0.3s ease, left 0.3s ease, font-size 0.3s ease;
}

.updated-text {
    font-weight: 1000;
    color: #001F94;
    display: block;
    font-size: clamp(0.7rem, 3vw, 1rem);
    margin-top: 12px;
    transition: font-size 0.3s ease;
}

.updated-text::after {
    content: "";
    display: block;
    width: 80%;
    height: 1px;
    background-color: rgba(128,128,128,0.5);
    margin: 2px auto 0 auto;
    margin-top: -4px;
}

.updated-date {
    color: #800000;
    display: block;
    font-size: clamp(0.75rem, 3vw, 1.1rem);
    transition: font-size 0.3s ease;
    margin-top: -1px;
    margin-left: -6px;
}

/* ---------- DESKTOP OVERRIDES ---------- */
@media (min-width: 769px) {
    .site-logo {
        margin-top: calc(clamp(-19.2px, -1.35vw, -14.8px) + 1.5px);
        margin-left: calc(clamp(22px, 12.606vw, 96.8px) - 10px + 5px);
        width: calc(clamp(43px, 5.72vw, 80.23px) * 0.85);
        height: auto;
        transition: width 0.3s ease, margin-left 0.3s ease;
    }

    .update-notice {
        position: absolute;
        left: calc(5% - 15px);
        top: calc(100% - 30px);
        transform: translateY(-25px);
        font-size: clamp(0.9rem, 1.1vw, 1.2rem);
        line-height: 1.4;
        pointer-events: none;
        white-space: normal;
        text-align: center;
        width: auto;
        margin: 0;
        transition: top 0.3s ease, left 0.3s ease, font-size 0.3s ease;
    }

    .logo-text { transform: scale(1.05) translateX(0); transition: transform 0.3s ease, font-size 0.3s ease; }
}

/* ---------- MOBILE OVERRIDES ---------- */
@media (max-width: 768px) {
    .site-logo { width: clamp(35px, 8vw, 68px); height: auto; margin-left: -5px; }
    .logo-text { margin-left: calc(-10px - 3px); font-size: clamp(2.07rem, 4.2vw, 4.89rem); }
    .suffix { left: -3px; position: relative; top: calc(-8px - 6px - 1.5px + 5px); }
    .banner::before, .banner::after { top: calc(-8px - 6px - 1.5px + 5px); }
    .shipping-notice { font-size: calc(clamp(1.14rem, 1.44vw, 1.68rem) * 0.85); }
    .update-notice { font-size: calc(clamp(1.1rem, 2vw, 1.0rem) * 1.15); flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; }
    
    /* Updated text size +20% */
    .updated-text, .updated-date {
        display: inline-block;
        margin: 0 4px 0 0;
        vertical-align: baseline;
        font-size: 0.8em; /* 20% bigger than default */
    }

    .update-notice > * { display: inline-block; margin-right: 8px; }
    .update-notice .updated-text::after { display: none; }
}


/* ---------- TABLET / PORTRAIT FIX & LOGO ADJUSTMENTS ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Prevent element squashing */
    .logo-text { margin-bottom: 0.3em; }
    .suffix { margin-bottom: 0.3em; }
    .banner { margin-bottom: 0.3em; }
    .shipping-notice { margin-bottom: 0.3em; }
    .update-notice { margin-bottom: 0.3em; 
	margin-top:-8px;}
	

    /* ---------- LOGO ADJUSTMENTS ---------- */
    .site-logo {
        /* Increase size by 10% */
        width: calc(clamp(43px, 5.72vw, 80.23px) * 1.1);
        height: auto;

        /* Move 18px to the left */
        margin-left: calc(clamp(22px, 12.606vw, 96.8px) - 28px);

        /* Keep vertical position */
        margin-top: calc(clamp(-19.2px, -1.35vw, -14.8px) + 1.5px);

        /* Smooth transition */
        transition: width 0.3s ease, margin-left 0.3s ease;
    }
}
</style>
<!-- Basket buttons -->
<style>
/* ---------- CART CONTAINER (RESET BASELINE) ---------- */
.cart-container {
    display: flex;
    flex-direction: column;  /* stack button above image */
    align-items: center;     /* horizontally center both */
    justify-content: flex-start;
    gap: 10px;               /* space between button and image */
}

/* ---------- DESKTOP BUTTON ---------- */
.basket-button {
    background: #001F94;
    color: #fff;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.35rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Perpetua', serif;
    font-size: 1.4vw;               /* desktop font size */
    height: 2.38vw;                 /* desktop height */
    padding: 0.9vw 2.5vw;           /* desktop padding */
    box-shadow: 4px 6px 4px rgba(100,100,100,0.34), 4px 6px 15px rgba(150,150,150,0.17);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    z-index: 2;
    width: 12.99vw;                 /* desktop width */
}

/* Hover effect */
.basket-button:hover,
.basket-button:focus {
    background: #fff;
    color: #001F94;
    transform: scale(1.03);
}

/* ---------- DESKTOP IMAGE ---------- */
.cart-container .paypal_image {
    width: 12.99vw;  /* desktop image size */
    height: auto;
    display: block;
}

/* ---------- DESKTOP POSITION ADJUSTMENT ---------- */
@media (min-width: 769px) {
    .cart-container {
        position: relative;
        top: -10px;  /* move up 10px */
        left: -5px;  /* move left 5px */
    }

    /* Hide mobile button on desktop */
    .mobile-container .basket-button {
        display: none !important;
    }
}

/* ---------- PORTRAIT TABLET (769px–1024px) ---------- */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Button remains the standard reference */
    .cart-container .basket-button {
        width: calc(12.99vw * 1.2 * 1.1 * 0.95);   /* 10% wider than image, minus 5% */
        height: calc(12.99vw * 1.2 * 0.25);         /* 70% of image height */
        padding: calc(0.9vw * 1.2) calc(2.5vw * 1.2);
        font-size: calc(1.4vw * 1.1 * 1.3);        /* 30% larger text */
    }

    /* Image scaled relative to button: width +10%, height +20%, moved left 6px */
    .cart-container .paypal_image {
        width: calc(12.99vw * 1.2 * 1.1 * 0.95 * 1.1); /* 10% wider than button */
        height: calc(12.99vw * 1.2 * 0.3 * 1.2);       /* 20% taller than button */
        object-fit: contain;
        position: relative;
        left: -8px;                                     /* move left 6px */
    }
}

/* ---------- MOBILE OVERRIDES ---------- */
@media (max-width: 768px) {
    .cart-container {
        display: none !important; /* hide desktop container */
    }

    .mobile-container {
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .mobile-container .basket-button {
        display: flex !important;
        width: 100%;
        max-width: 100%;
        height: 42px;
        padding: auto;
        border-radius: 0;
        font-size: clamp(1.6rem, 1.675vw, 1.99rem);
        gap: 0.425rem;
        justify-content: center;
        align-items: center;
        margin: 3px 0;
        box-sizing: border-box;
        background: #001F94;
        color: #fff;
        border: 1px solid #000;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.3s ease, color 0.3s ease;
        text-align: center;
        transform: none;
        margin-bottom: 10px;
    }

    .mobile-container .basket-button i,
    .mobile-container .basket-button .cart-text {
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-container .basket-button:hover,
    .mobile-container .basket-button:focus {
        background: #fff;
        color: #001F94;
        transform: none;
    }
}
</style>


/* ---------- MOBILE BUTTON — FULL ORIGINAL SETTINGS RESTORED ---------- */
@media (max-width: 768px) {

    .mobile-container {
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
    }

    .mobile-container .basket-button {
        display: flex !important;
        width: 100%;
        max-width: 100%;
        height: 42px;
        padding: auto;
        border-radius: 0;
        font-size: clamp(1.6rem, 1.675vw, 1.99rem);
        gap: 0.425rem;
        justify-content: center;
        align-items: center;
        margin: 3px 0;
        box-sizing: border-box;
        background: #001F94;
        color: #fff;
        border: 1px solid #000;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.3s ease, color 0.3s ease;
        text-align: center;
        transform: none;
        margin-bottom: 10px;
    }

    .mobile-container .basket-button i,
    .mobile-container .basket-button .cart-text {
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-container .basket-button:hover,
    .mobile-container .basket-button:focus {
        background: #fff;
        color: #001F94;
        transform: none;
    }

    .basket-button:not(.mobile-container .basket-button) {
        display: none !important;
    }

    .cart-container {
        display: none !important;
    }
}
</style>


<!-- Nav menu -->
<style>

/* Navigation Menu Container */
#navigationMenuContainer {
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Baskerville Old Face Regular', Serif;
}

/* Desktop Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    font-family: 'Baskerville Old Face Regular', Serif;
    background-image: linear-gradient(
        to bottom,
        rgba(255, 249, 232, 1.00) 88.08%,
        rgba(231, 178, 102, 1.00) 100%,
        rgba(123, 179, 208, 1.00) 100%
    );
    height: 55px;
    border: 1px solid black;
    border-radius: 999px;
}

/* Desktop nav list */
.nav-list {
    list-style: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
}

/* Desktop menu items */
.menu-item {
    position: relative;
    font-size: 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: transform 0.2s ease-in-out;
    border-radius: 999px;
}

.menu-item:hover {
    transform: translateY(-2px);
}

/* Desktop links */
.menu-link {
    color: black;
    text-decoration: none;
    font-size: 20px;
    padding: 0 20px;
    display: block;
    line-height: 55px;
    text-align: center;
    white-space: nowrap;
}

/* Desktop submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFF2CC;
    min-width: 180px;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.submenu-item {
    list-style: none;
}

.submenu-link {
    display: block;
    padding: 10px 15px;
    font-size: 18px;
    text-decoration: none;
    color: black;
    text-align: center;
    background: #fff7de;
    transition: background-color 0.2s ease;
    border-radius: 3px;
}

.submenu-link:hover {
    background-color: #E5E4A6;
}

.menu-item:hover .submenu {
    display: block;
    background-color: #E5E4A6;
}

/* Desktop logo */
.logo-link {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

@media(min-width: 769px) {
    .logo-img {
        width: 30px;
        height: 30px;
        transition: transform 0.3s ease;
    }

    .logo-img:hover {
        transform: scale(1.1);
    }

    /* Ensure first menu item text never wraps */
    .nav-list > .menu-item:first-child .menu-link {
        white-space: nowrap;
    }
}

/* Mobile Header */
.mobile-header {
    position: sticky;
    top: 0;
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-image: linear-gradient(
        to bottom,
        rgba(255, 249, 232, 1.00) 88.08%,
        rgba(231, 178, 102, 1.00) 100%,
        rgba(123, 179, 208, 1.00) 100%
    );
    border-radius: 4px;
    border: 1px solid black;
    z-index: 1000;
    max-height: 45px;
}

.mobile-logo {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mobile-logo:hover {
    transform: scale(1.1);
}

.mobile-title {
    font-family: 'Baskerville Old Face Regular', Serif;
    font-size: 40px;
    color: #001F94;
}

.mobile-menu-btn {
    margin-top: -5px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #001F94;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background-color: #FFF2CC;
    border: 1px solid black;
}

/* Mobile Categories and Submenus */
.mobile-category {
    background-image: -webkit-linear-gradient(270deg, rgba(255, 249, 232, 1.00) 88.08%, rgba(231, 178, 102, 1.00) 100%, rgba(123, 179, 208, 1.00) 100%);
    padding: 12px 20px;
    border-radius: 999px;
    text-align: center;
    border: 1px solid black;
    cursor: pointer;
    margin: 5px 10px;
    font-size: 18px;
    color: black;
    transition: background-color 0.2s ease, transform 0.2s ease-in-out;
}

.mobile-category:hover {
    background-color: #E5E4A6;
    transform: translateY(-2px);
}

.mobile-submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
    display: flex;
    flex-direction: column;
    margin: 0 20px 10px;
}

.mobile-submenu.open {
    max-height: 500px;
    padding-top: 5px;
}

.mobile-submenu a {
    padding: 8px 10px;
    font-size: 16px;
    text-decoration: none;
    color: black;
    border: 1px solid #999;
    margin: 2px 0;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.mobile-submenu a:hover {
    background-color: #E5E4A6;
    transform: translateY(-2px);
}

/* Responsive */
@media(max-width: 768px) {
    .navbar { display: none; }
    .mobile-header { display: flex; }
}

@media(min-width: 769px) {
    .mobile-nav { display: none !important; }
}

@media(max-width: 1024px) {
    .menu-link { font-size: 18px; padding: 0 16px; }
    .submenu { min-width: 180px; }
    .submenu-link { font-size: 17px; padding: 8px 12px; }
}

@media(max-width: 900px) {
    .menu-link { font-size: 16px; padding: 0 12px; }
    .submenu { min-width: 160px; }
    .submenu-link { font-size: 16px; padding: 7px 10px; }
}

@media(max-width: 800px) {
    .menu-link { font-size: 14px; padding: 0 8px; }
    .submenu { min-width: 140px; }
    .submenu-link { font-size: 14px; padding: 6px 8px; }
}

@media(max-width: 767px) {
    #navigationMenuContainer { margin-top: -10px; }
}
</style>

<!-- Home page products -->
<style>
/* --- Global Box Sizing Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Catalogue Container --- */
.Cataloguecontainer {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

/* --- Product Grid --- */
#productrowcontainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* --- Individual Product Box --- */
.ProductBox {
    position: relative;
    background: transparent;
}

/* --- Product Image Container --- */
.photobox320x240 {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 240px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        6px 6px 4px rgba(100, 100, 100, 0.34),
        6px 6px 15px rgba(150, 150, 150, 0.17);
}

.photobox320x240 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.photobox320x240 img:hover {
    transform: scale(1.01);
    filter: brightness(1.1);
}

/* --- Product Title/Text --- */
.ProductTextbox {
    font-family: Perpetua, serif;
    font-size: 18pt;
    color: #004400;
    text-align: center;
    max-height: 4.5em;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 8px;
}

/* --- Status Labels --- */
.status-label {
    position: absolute;
    top: 4px;
    right: 10px;
    padding: 2px 10px;
    font-weight: bold;
    color: white;
    background-color: gray;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 6px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    line-height: 1.5;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease, top 0.3s ease, font-size 0.3s ease, padding 0.3s ease, width 0.3s ease, right 0.3s ease;
}

/* Duplicate sold settings for reserved and apply transform offset */
.status-label.sold,
.status-label.reserved,
.status-label.available {
    min-width: 100px;
    padding: 2px 10px;
    transform: translate(-2px, 2px); /* moved 2px left and 2px down */
}

/* --- Sold Label --- */
.status-label.sold {
    background-color: rgba(217, 83, 79, 0.75);
    font-size: 18px;
    line-height: 1.17; /* matches reserved label height */
}

/* --- Reserved Label --- */
.status-label.reserved {
    background-color: rgba(102, 51, 153, 0.75);
    font-size: 14.8px; /* smaller text */
}

/* --- Available Label --- */
.status-label.available {
    background-color: rgba(92, 184, 92, 0.75); /* semi-transparent green */
    font-size: 15.39px; /* same as reserved */
    line-height: 1.5;
}

/* --- Show label on hover or JS trigger --- */
.ProductBox:hover .status-label,
.ProductBox.label-visible .status-label {
    opacity: 1;
    pointer-events: auto;
    transform: translate(5px, 7px) rotate(45deg);
    top: 4px;
    right: -19px;
}

/* --- Tablet Breakpoint: 2 Columns --- */
@media (max-width: 1024px) {
    #productrowcontainer {
        grid-template-columns: repeat(2, 1fr);
    }

    #productrowcontainer .ProductBox:nth-child(15) {
        grid-column: span 2;
        justify-self: center;
    }
}

/* --- Mobile Breakpoint: 1 Column --- */
@media (max-width: 600px) {
    #productrowcontainer {
        grid-template-columns: 1fr;
    }

    #productrowcontainer .ProductBox:nth-child(15) {
        grid-column: auto;
        justify-self: auto;
    }
}
</style>

<!-- Intro text -->
<style>

        /* Main container styles */

        .container {

            width: 100%;

            padding: 20px;

            box-sizing: border-box;

        }



        /* Styles for each text container */

        .text-container {

            margin=top: -15px;

            margin-bottom: 20px;

            padding: 5px;

            background-color: transp border: 1px solid #ddd;

            border-radius: 5px;

            text-align: center;

            /* Center text inside the text containers */

            color: #001F94;

            /* Set text color */

            font-family: 'Baskerville Old Face', serif;

            /* Set font family to Baskerville Old Face */

            font-size: 23px;

            /* Set font size to 20px for desktop */

        }



        /* Blue horizontal line at the top of each text container */

        .text-container::before {

            content: "";

            display: block;

            width: 50%;

            /* Adjust the width to 50% */

            height: 2px;

            background-color: #001F94;

            margin: 0 auto 10px;

            /* Center the blue line and add bottom margin */

        }



        /* Featured Items Header */

        .featured-header {

            color: #001F94;

            /* Blue color for the text */

            font-family: 'Baskerville Old Face', serif;

            /* Baskerville font */

            font-size: 24px;

            /* Font size for the header */

            margin-bottom: 20px;

            /* Space below the header */

            text-align: center;

        }



        /* Yellow underline separator */

        .featured-header::after {

            content: "";

            display: block;

            width: 90%;

            /* Adjust the width of the underline */

            height: 2px;

            background-color: #D4A017;

            /* Yellow color */

            margin: 10px auto 0;

            /* Centered underline */

        }



        /* Bullet point container styling */

        .bullet-point-container {

            display: flex;

            flex-wrap: wrap;

            /* Allow items to wrap */

            gap: 10px;

            /* Reduced gap between columns */

            justify-content: center;

            /* Center columns horizontally */

            text-align: center;

            /* Ensure text in the columns is centered */

        }



        /* Individual bullet point columns (2 columns, 3 rows) */

        .bullet-column {

            width: 45%;

            /* Each column takes 45% of the width for 2 columns */

            background-color: #FFF2CC;

            /* Set background color to #FFF2CC */

            padding: 20px;

            border-radius: 10px;

            /* Rounded corners for the columns */

            border: 1px solid #ddd;

            /* Grey border around the columns */

            text-align: center;

            /* Center text inside the columns */

            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

            /* Add soft shadow around columns */

            transition: box-shadow 0.3s ease;

            /* Smooth transition for hover effect */

            margin-bottom: 20px;

        }



        /* Add a hover effect to make the shadow a little more prominent */

        .bullet-column:hover {

            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);

            /* Darker shadow on hover */

        }



        /* Remove default list styling */

        .bullet-column ul {

            list-style-type: none;

            /* Remove default bullet points */

            padding-left: 0;

            /* Remove left padding */

            text-align: center;

            /* Center the text inside the list */

            margin: 0;

            /* Remove margin around the ul */

        }



        /* Remove padding and margin for list items */

        .bullet-column li {

            font-size: 13.5px;

            /* Reduce font size by 25% (from 18px to 13.5px) */

            color: #333;

            line-height: 1.6;

            padding: 5px 15px;

            /* Reduced padding for tighter pill shape */

            font-family: 'Baskerville Old Face', serif;

            /* Apply Baskerville Old Face font */

            position: relative;

            /* Position for the lines */

            display: block;

            /* Ensure each list item is on its own line */

            margin-bottom: 5px;

            /* Smaller vertical margin between items */

            border-radius: 50px;

            /* Make list item pill-shaped */



            /* Add pill-shaped shadow directly behind the text */

            box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);

            /* Softer, smaller shadow with pill shape */

            transition: box-shadow 0.3s ease;

            /* Smooth transition when hovering */

        }



        /* Add a hover effect to make the shadow a little more prominent */

        .bullet-column li:hover {

            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

            /* Darker shadow on hover */

        }



        /* Responsiveness: Stack columns on smaller screens */

        @media (max-width: 768px) {

            .bullet-column {

                width: 100%;

                /* Stack columns vertically on mobile */

            }



            .bullet-column ul li {

                width: 100%;

                /* Ensure list items take full width of the container */

                padding: 10px;

                /* Adjust padding for better fit */

                font-size: 14px;

                /* Adjust font size on smaller screens */

            }

        }



        /* Adjust font size for smaller screens */

        @media (max-width: 768px) {

            .text-container {

                font-size: 16px;

                /* Make font smaller on mobile */

            }

        }

    </style>
<!-- Footer -->
<style>
/* ---------- GLOBAL RESET ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- Footer ---------- */
footer {
    background-color: #FFF2CC;
    color: #333;
    font-family: 'Perpetua', serif;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border: 1px solid #333;
    border-top: 2px dotted grey;
    padding: 0;
    position: relative; /* needed for absolute positioning of BTT */
    font-size: 18px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    background-color: #FFF2CC;
    color: #333;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top: 2px dotted grey;
    padding: 5px 0 8px 0;
    margin: 0 auto;
}

.footer-column {
    padding-top: 5px;
    box-sizing: border-box;
}

.footer-column:nth-child(1),
.footer-column:nth-child(3) {
    width: 30%;
}

.footer-column:nth-child(2) {
    width: 40%;
    border-left: 2px dotted grey;
    border-right: 2px dotted grey;
}

.footer-column h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin: 0;
}

.footer-column ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
}

.footer-column ul li a .link-text {
    position: relative;
    transition: color 0.25s ease;
}

.footer-column ul li a .link-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background-color: #333;
    opacity: 0;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}

.footer-column ul li a:hover .link-text::after {
    width: 100%;
    opacity: 1;
}

.footer-column ul li a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #FFF2CC;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.25);
    border-radius: 4px;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-column ul li a:hover i {
    transform: translateY(-2px);
    box-shadow: 5px 5px 6px rgba(0,0,0,0.3);
}

.contact-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.footer-image {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.footer-image img {
    max-width: 100%;
    height: auto;
}

.copyright-container {
    background-color: #FFF2CC;
    border-top: 2px dotted grey;
    font-weight: bold;
    font-size: 1.05rem;
    color: #333;
    text-align: center;
    padding: 1rem 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.copyright-container::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    text-shadow: 0 3px 2px rgba(0,0,0,0.35);
    transform: scaleY(-1);
    pointer-events: none;
}

.copyright-container.visible {
    opacity: 1;
    transform: translateY(0);
    animation: endPulse 1.5s ease-out;
}

@keyframes endPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ---------- Back to Top Button Hovering Above Copyright ---------- */
#backToTop {
    position: absolute; /* absolute relative to footer */
    bottom: 60px;       /* distance above footer content, adjust as needed */
    right: 20px;        /* right side */
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(128,128,128,0.75);
    color: #001F94;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: breathe 4s ease-in-out infinite;
    z-index: 10; /* make sure it appears above footer */
}

#backToTop:hover {
    background-color: rgba(128,128,128,1);
}

#backToTop svg {
    width: 28px;
    height: 28px;
    fill: #001F94;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ---------- Product Textbox ---------- */
.ProductTextbox1 {
    font-family: Perpetua, serif;
    font-size: 18pt;
    color: #004400;
    text-align: center;
    max-height: 4.5em;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-top: 8px;
}

/* ---------- Social Media Buttons ---------- */
.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #FFF2CC;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.25);
    color: black;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 6px rgba(0,0,0,0.3);
}

.social-btn.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
    color: white;
}

.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: #d6249f;
    color: white;
}

.social-btn.pinterest:hover {
    background-color: #E60023;
    border-color: #E60023;
    color: white;
}

/* ---------- Responsive Footer ---------- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        width: 100% !important;
        margin-bottom: 20px;
        border: none !important;
        text-align: center;
    }

    .footer-column:nth-child(2) {
        border-top: 2px dotted grey !important;
        border-bottom: 2px dotted grey !important;
        border-left: none !important;
        border-right: none !important;
        padding-bottom: 10px;
    }

    .footer-column h4,
    .footer-column ul,
    .footer-column p,
    .footer-column .footer-image {
        text-align: center !important;
        justify-content: center !important;
    }

    /* Back to Top button right side, above footer */
    #backToTop {
        bottom: 50px; /* adjust for mobile spacing */
        right: 15px;
    }
}
</style>


<!-- Halloween Witch-->
<style>
.site-header {
    display: flex;
    flex-direction: column;
    background: #FFF2CC;
    border-radius: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 0.5px;
    position: relative; /* container for witch */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
    overflow: hidden; /* prevent overflow */
}

/* Witch flying above header, semi-random looping */
.witch {
  position: absolute;
  top: 10px;
  left: -150px; /* start further left for extra 50% */
  width: 85px;
  height: 85px;
  background: url('https://freesvg.org/img/itch%20on%20roomstick%20ilhouette.png') no-repeat center/contain;
  transform-origin: center center;
  animation: flyLoop 10s ease-in-out infinite;
  z-index: 10;
}

/* Smoke trail */
.smoke {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(0,255,0,0.6) 0%, rgba(0,255,0,0) 70%);
  border-radius: 50%;
  opacity: 0;
  animation: smokeLoop 10s ease-in-out infinite;
  z-index: 5;
}

/* Witch flight path: swoop + loop-the-loop */
@keyframes flyLoop {
  0% {
    left: -150px;       /* 50% further left */
    top: 10px;
    transform: scaleX(-1);
  }
  15% {
    left: 20%;
    top: -50px;
    transform: scaleX(-1);
  }
  30% {
    left: 40%;
    top: 40px;
    transform: scaleX(-1);
  }
  45% {
    left: 60%;
    top: -40px;
    transform: scaleX(-1);
  }
  60% {
    left: 80%;
    top: 50px;
    transform: scaleX(-1);
  }
  70% {
    left: 100%;       /* 50% further right */
    top: 0px;
    transform: scaleX(-1);
  }
  71% {
    transform: scaleX(1); /* flip to left for return */
  }
  85% {
    left: 50%;
    top: 60px;
    transform: scaleX(1);
  }
  95% {
    left: 0%;
    top: -20px;
    transform: scaleX(1);
  }
  100% {
    left: -150px;      /* back to start */
    top: 10px;
    transform: scaleX(1);
  }
}

/* Smoke trail mimicking path */
@keyframes smokeLoop {
  0%, 100% { left: -150px; top: 10px; opacity: 0; }
  10%, 90% { opacity: 0.5; }
  20% { left: 20%; top: -50px; }
  35% { left: 40%; top: 40px; }
  50% { left: 60%; top: -40px; }
  65% { left: 80%; top: 50px; }
  75% { left: 100%; top: 0px; }
  85% { left: 50%; top: 60px; }
  95% { left: 0%; top: -20px; }
}
</style>
