/* ============================================================
   SHOP PAGE  (categoryselect.html)
   Uses global fixed topBar from generalstyle.css
   Only shop-specific visuals remain here
============================================================ */

/* ---------------- Page Layout ---------------- */
body {
    background: #f2f2f2;
    padding-top: 120px; /* required for the fixed topBar */
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
}

/* Title */
h1 {
    color: #f333d9;
    margin-bottom: 20px;
}

/* ---------------- Scroll Behavior ---------------- */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

/* ---------------- Back to Top Button ---------------- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #0077cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    z-index: 100;
}
#backToTop:hover {
    background-color: #005fa3;
}

/* ---------------- Footer ---------------- */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #666;
}
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

/* ============================================================
   SHOP WRAPPER — background of category cards
============================================================ */
.shop-wrapper {
    width: 75%;
    max-width: 1300px;
    margin: 40px auto;
    background-color: #e6f0ff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.15);
}

/* ============================================================
   CATEGORY GRID
============================================================ */
.shop-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 180px);
    gap: 25px;
    justify-content: center;
    align-items: center;
}

/* ============================================================
   CATEGORY CARDS
============================================================ */
.categorycard {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 180px;
    height: 270px;

    text-decoration: none;
    color: black;
    text-align: center;
    font-size: 16px;
    font-weight: bold;

    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

    transition: 
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-radius 0.35s ease,
        filter 0.35s ease;
}

/* ------- Card Background Themes ------- */
.categorycard[data-theme="theme1"]  { background: #ff7070; }
.categorycard[data-theme="theme2"]  { background: #ff9b48; }
.categorycard[data-theme="theme3"]  { background: #ffd93b; color: #000; }
.categorycard[data-theme="theme4"]  { background: #9fff59; }
.categorycard[data-theme="theme5"]  { background: #4dd6a8; }
.categorycard[data-theme="theme6"]  { background: #53c2ff; }
.categorycard[data-theme="theme7"]  { background: #7d7dff; }
.categorycard[data-theme="theme8"]  { background: #b06bff; }
.categorycard[data-theme="theme9"]  { background: #ff69d4; }
.categorycard[data-theme="theme10"],
.categorycard[data-theme="theme11"],
.categorycard[data-theme="theme12"] { background: #ff5555; }

/* ------- Unique Hover Effects ------- */
.categorycard[data-theme="theme1"]:hover  { transform: scale(1.1); }
.categorycard[data-theme="theme2"]:hover  { filter: brightness(1.4); }
.categorycard[data-theme="theme3"]:hover  { transform: translateY(-8px); }
.categorycard[data-theme="theme4"]:hover  { border: 4px solid white; }
.categorycard[data-theme="theme5"]:hover  { border-radius: 40px; }
.categorycard[data-theme="theme6"]:hover  { transform: rotate(3deg); }
.categorycard[data-theme="theme7"]:hover  { box-shadow: 0 0 20px white; }
.categorycard[data-theme="theme8"]:hover  { opacity: 0.75; }
.categorycard[data-theme="theme9"]:hover  { transform: scale(1.15) rotate(-3deg); }
.categorycard[data-theme="theme10"]:hover { filter: contrast(170%); }
.categorycard[data-theme="theme11"]:hover { filter: contrast(170%); }
.categorycard[data-theme="theme12"]:hover { filter: contrast(170%); }

/* ============================================================
   RESPONSIVE BEHAVIOR
============================================================ */
@media (max-width: 900px) {
    .shop-wrapper {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .categorycard {
        width: 150px;
        height: 220px;
        font-size: 14px;
    }
}
