/*
Theme Name: Cinderella
Author: 
Description: A custom theme for the Cinderella site.
Version: 1.0
*/

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    letter-spacing: 0.01em;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.entry-title,
.widget-title {
    font-family: 'Noto Sans', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.entry-title {
    font-weight: 700;
}

.page-title {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 1.35rem;
}

h1,
h2,
h3,
h4,
h5 {
    display: block;
}

h1 {
    font-size: 1.8rem;
    text-transform: none;
    letter-spacing: 0.14em;
    border-bottom: 2px solid #ff28a9;
    padding-bottom: 0.75rem;
    margin: 2.4rem 0 1.6rem;
    color: #111;
}

h2 {
    font-size: 1.25rem;
    position: relative;
    margin: 2rem 0 1rem;
    color: #111;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    text-align: left;
}

h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff28a9 0%, #ff6bc6 100%);
}

h2.has-text-align-center,
.entry-content h2.aligncenter,
h2.wp-block-heading.has-text-align-center {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

h2.has-text-align-center::before,
.entry-content h2.aligncenter::before,
h2.wp-block-heading.has-text-align-center::before {
    display: inline-block;
}

h2.has-text-align-right,
.entry-content h2.alignright {
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

h2.has-text-align-right::before,
.entry-content h2.alignright::before {
    display: inline-block;
}

h2.has-text-align-center::after,
.entry-content h2.aligncenter::after,
h2.wp-block-heading.has-text-align-center::after {
    display: none;
}

h3 {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    margin: 1.6rem 0 1rem;
    color: #333;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
}

h3::after {
    content: '';
    display: block;
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #111 0%, rgba(17, 17, 17, 0));
}

h3.has-text-align-center,
.entry-content h3.aligncenter,
h3.wp-block-heading.has-text-align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

h3.has-text-align-center::after,
.entry-content h3.aligncenter::after,
h3.wp-block-heading.has-text-align-center::after {
    margin-left: auto;
    margin-right: auto;
}

h3.has-text-align-right,
.entry-content h3.alignright,
h3.wp-block-heading.has-text-align-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    align-items: flex-end;
}

h3.has-text-align-right::after,
.entry-content h3.alignright::after,
h3.wp-block-heading.has-text-align-right::after {
    margin-left: auto;
    margin-right: 0;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #444;
}

h4.has-text-align-center,
.entry-content h4.aligncenter {
    justify-content: center;
    width: 100%;
}

h4.has-text-align-right,
.entry-content h4.alignright {
    justify-content: flex-end;
    width: 100%;
}

h4::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff28a9 0%, #ff91d2 100%);
    box-shadow: 0 0 6px rgba(255, 40, 169, 0.35);
}

h5 {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a6a6a;
    margin: 1.2rem 0 0.6rem;
    padding-bottom: 0.3rem;
    position: relative;
    display: block;
}

h5.has-text-align-center,
.entry-content h5.aligncenter {
    text-align: center;
}

h5.has-text-align-right,
.entry-content h5.alignright {
    text-align: right;
}

h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    border-bottom: 1px dashed #d7d7d7;
}

h5.has-text-align-center::after,
.entry-content h5.aligncenter::after {
    left: 50%;
    transform: translateX(-50%);
}

h5.has-text-align-right::after,
.entry-content h5.alignright::after {
    right: 0;
    left: auto;
}

p,
li {
    font-size: 0.95rem;
}

.site-container {
    /* background-color: #fff; */ /* Removed for seamless look */
    padding: 40px;
    padding-top: 80px; /* Added to push content below fixed header */
    border-radius: 8px;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); */ /* Removed for seamless look */
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

article:first-child h2 {
    margin-top: 1.2rem;
}

.breadcrumb-trail {
    margin: 12px 0 30px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #666;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: rgba(17, 17, 17, 0.35);
    font-size: 0.7rem;
}

.breadcrumb-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #ff28a9;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #333;
}

/* --- Scroll Trigger Header --- */

.page-header {
    text-align: center;
}

.page-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.18em;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0 0 2rem;
}

.page-title::before,
.page-title::after {
    content: '';
    flex: 0 0 36px;
    height: 1px;
}

.page-title::before {
    background: linear-gradient(90deg, rgba(255, 40, 169, 0.35), rgba(255, 40, 169, 0));
}

.page-title::after {
    background: linear-gradient(90deg, rgba(255, 40, 169, 0), rgba(255, 40, 169, 0.35));
}

/* Sort Options */
.sort-options-container {
    position: relative;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: flex-start; /* Align to the left */
    align-items: center;
}

.sort-toggle {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.sort-toggle:hover {
    background-color: #f0f0f0;
}

.sort-toggle svg {
    transition: transform 0.3s ease;
}

.sort-toggle.active svg {
    transform: rotate(180deg);
}

.sort-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%; /* Position below the toggle */
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 150px;
    display: none; /* Hidden by default */
}

.sort-list.active {
    display: block;
}

.sort-list li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.sort-list li a:hover {
    background-color: #f0f0f0;
}

.site-header-scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* State when hidden */
.site-header-scroll.hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.header-left, .header-right {
    flex: 1 0 0;
}

.header-center {
    flex: 2 0 0;
    text-align: center;
}

.header-right {
    text-align: right;
}

.site-header-scroll .site-branding {
    margin: 0;
}

.site-header-scroll .site-title {
    font-size: 1.25rem; /* 読みやすさを保ちながら少し小さめに */
    margin: 0;
}

.site-header-scroll .site-title a {
    color: #333;
    text-decoration: none;
}

/* Menu and Search Toggles */
.menu-toggle, .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-icon-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation */
.menu-open .hamburger-icon-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-open .hamburger-icon-line:nth-child(2) {
    opacity: 0;
}
.menu-open .hamburger-icon-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav and Search Containers */
.scroll-nav-container,
.search-container {
    display: none; /* Hidden by default */
    padding: 24px 28px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 18px;
    color: #333;
    width: min(320px, calc(100vw - 40px));
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: absolute;
    top: calc(100% + 16px);
    z-index: 1100;
}

.scroll-nav-container {
    left: 20px;
}

.search-container {
    right: 20px;
}

.scroll-nav-container.active,
.search-container.active {
    display: block;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 900;
    pointer-events: none;
}

body.menu-is-open .menu-overlay,
body.search-is-open .menu-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scroll-nav li a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.scroll-nav li a:hover {
    color: #ff28a9;
}

/* Adjust search form for new container */
.search-container .search-form {
    margin-top: 0;
}

.search-container h2,
.scroll-nav-container h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff28a9;
}

/* Search Form */
.search-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-form label {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 999px;
    padding: 6px 16px;
    position: relative;
}

.search-form label::after {
    content: '\1F50D';
    font-size: 1.2rem;
    color: #777;
    line-height: 1;
    margin-left: auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.search-field {
    width: 100%;
    flex: 1;
    padding: 8px 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
}

.search-field:focus {
    outline: none;
}

.search-submit {
    align-self: flex-start;
    background-color: #ff28a9;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 6px 14px rgba(255, 40, 169, 0.25);
}

.search-submit:hover {
    background-color: #d91686;
}

/* Post Thumbnails */
.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Layout */

#secondary {
    margin-top: 40px;
}

#secondary .widget-slider-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.main-post-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

.main-post-content > * {
    margin: 0;
}

.main-post-content > * + * {
    margin-top: 48px;
}

.main-post-content > .review-sheet {
    margin-top: 0;
}

.review-sheet {
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 28px;
    padding: 52px 48px;
    box-shadow: 0 22px 44px rgba(10, 0, 28, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(100%, 820px);
    margin: 0 auto;
    box-sizing: border-box;
}

.review-sheet > * {
    margin: 0;
}

.review-sheet > * + * {
    margin-top: 0;
}

.main-post-content .review-card {
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.review-sheet .review-card {
    margin-bottom: 56px;
}

.review-sheet .review-card:last-child {
    margin-bottom: 0;
}

.review-sheet > .wp-block-group,
.main-post-content > .wp-block-group.review-card {
    margin: 0;
    width: 100%;
}

.review-sheet > .wp-block-group + .wp-block-group,
.main-post-content > .wp-block-group.review-card + .wp-block-group.review-card {
    margin-top: 52px;
}

.review-card--media {
    padding: 0;
    overflow: hidden;
}

.review-card--media .wp-block-video {
    margin: 0 auto !important;
    width: 100%;
    max-width: 100%;
}

.review-card--media video {
    display: block;
    width: 100%;
    height: auto;
}

.review-card--meta {
    gap: 32px;
    padding: 0;
}

.review-card--meta .review-meta-table {
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 40, 169, 0.05);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 40, 169, 0.1);
    box-sizing: border-box;
}

.review-card--summary {
    gap: 32px;
    padding: 0;
}

.review-card--summary > * {
    margin: 0;
}

.review-card--summary p {
    text-align: left;
    line-height: 1.9;
}

.review-card--promo {
    align-items: center;
    gap: 34px;
    padding: 0;
}

.review-card--promo .wp-block-image {
    margin: 0;
    width: 100%;
}

/* Widgets */
.widget {
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.widget-slider .widget {
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.05rem;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 10px;
}

/* Comments */
.comments-area {
    margin: clamp(80px, 12vw, 140px) auto 60px;
    padding: 48px 40px;
    background: #fff;
    border: 1px solid rgba(255, 40, 169, 0.15);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(10, 0, 28, 0.05);
    max-width: 860px;
}

.comments-title,
.comment-reply-title {
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    margin: 0 auto 36px;
    text-align: center;
    text-transform: uppercase;
    color: #111;
    position: relative;
    display: inline-block;
}

.comments-title::before,
.comment-reply-title::before,
.comments-title::after,
.comment-reply-title::after {
    display: none;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-list .comment {
    position: relative;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    padding: 28px 30px 24px;
    box-shadow: 0 12px 24px rgba(10, 0, 28, 0.06);
}

.comment-list .comment::before {
    content: '';
    position: absolute;
    top: 26px;
    left: -1px;
    width: 5px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff28a9 0%, #ff6bc6 100%);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 40, 169, 0.25);
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
    color: #111;
}

.comment-meta {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comment-meta a {
    color: inherit;
}

.comment-content {
    margin-top: 16px;
    color: #333;
    line-height: 1.7;
}

.comment-list .reply {
    margin-top: 18px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 40, 169, 0.08);
    color: #ff28a9;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}

.comment-reply-link:hover {
    background: rgba(255, 40, 169, 0.16);
    color: #d91686;
}

.comment-list .children {
    list-style: none;
    margin: 24px 0 0;
    padding-left: 32px;
    border-left: 2px dashed rgba(255, 40, 169, 0.25);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comment-list .children .comment::before {
    left: -33px;
}

body.single #primary .site-main > article {
    margin-bottom: 80px;
}

.comment-form {
    background: rgba(248, 246, 252, 0.7);
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 16px;
    padding: 32px;
    display: grid;
    gap: 18px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 8px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: rgba(255, 40, 169, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 40, 169, 0.18);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
    font-size: 0.8rem;
    color: #666;
}

.form-submit {
    margin-top: 8px;
    text-align: right;
}

.form-submit .submit {
    background: linear-gradient(90deg, #ff28a9 0%, #ff6bc6 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 40, 169, 0.25);
}

@media (max-width: 600px) {
    .comments-area {
        margin: 80px auto 40px;
        padding: 32px 20px;
    }

    .comment-list {
        gap: 16px;
    }

    .comment-list .comment {
        padding: 22px 20px;
    }

    .comment-list .children {
        padding-left: 20px;
    }

    .comment-form {
        padding: 24px;
    }

    .comment-author .avatar {
        width: 40px;
        height: 40px;
    }
}

/* Grid Layout */
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列のグリッド */
    column-gap: 20px;
    row-gap: 28px;
    align-items: start;
}

.grid-item {
    position: relative;
    display: block;
}

.grid-item-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.grid-item-link:hover {
    text-decoration: none;
}

.grid-item-link:hover .grid-entry-title {
    text-decoration: none;
}

.grid-thumb-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.grid-thumb-wrapper::before {
    content: '';
    display: block;
    padding-top: 75%; /* 4:3 aspect ratio */
}

.grid-item-no-thumb {
    position: absolute;
    inset: 0;
    background-color: #e0e0e0; /* A light gray background */
}

.grid-thumb-wrapper img,
.grid-thumb-wrapper .grid-item-no-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if needed */
    transition: transform 0.3s ease;
}

.grid-item-link:hover .grid-thumb-wrapper img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.grid-entry-title {
    font-size: 0.95rem;
    margin: 0 4px 0 4px;
    padding: 0 4px;
    border-bottom: none;
    color: #111;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
}

/* Badges */
.badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

.new-badge {
    background-color: #fff;
    color: #000;
    padding: 3px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 3px;
    line-height: 1;
    border: 1px solid #eee;
}

.sticky-badge {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 3px;
    line-height: 1;
    border: 1px solid transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}



@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }

    #secondary {
        flex: 1 1 auto;
        max-width: 100%;
        margin-top: 40px;
    }

    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-post-content {
        gap: 28px;
    }
    .main-post-content > * + * {
        margin-top: 36px;
    }

    .review-sheet {
        padding: 32px;
        border-radius: 22px;
        box-shadow: 0 18px 32px rgba(10, 0, 28, 0.08);
        gap: 0;
    }

    .main-post-content .review-card {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 48px;
    }

    .review-card--media {
        border-radius: 0;
    }

    .product-sticky-sidebar {
        padding: 24px 20px 28px;
        border-radius: 20px;
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body {
        padding: 0;
    }

    .site-container {
        padding: 20px;
        padding-top: 80px;
    }

    .grid-item-link {
        gap: 5px;
        min-width: 0;
    }

    .grid-entry-title {
        font-size: 0.8rem;
        padding: 0;
        margin: 0;
        min-width: 0;
        max-width: 100%;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-image-container {
        height: 150px !important; /* Even smaller height for mobile */
    }
}

.menu-is-open body,
.search-is-open body {
    overflow: hidden;
}
#primary .site-main {
    display: grid;
}

.pagination-container {
    grid-column: 1 / -1;
}

@media (min-width: 1100px) {

    .product-sticky-sidebar {
        position: sticky;
        top: 20px; /* Adjust as needed for desired sticky position */
        width: 280px; /* Set a fixed width for the sticky sidebar */
        margin-left: 0; /* Balanced spacing handled via flex gap */
        align-self: flex-start; /* Align to the top within the flex container */
    }

    @supports selector(:has(*)) {
        .entry-content:has(> .product-sticky-sidebar) {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            gap: 40px;
            width: min(100%, 1140px);
            margin: 0 auto;
            box-sizing: border-box;
        }

        .entry-content:has(> .product-sticky-sidebar) .main-post-content {
            flex: 1 1 auto;
            max-width: 780px;
            text-align: left;
            margin: 0;
        }

        .entry-content:has(> .product-sticky-sidebar) .product-sticky-sidebar {
            width: 280px;
            margin-left: 0;
        }
    }
}

/* Mobile styles for sticky sidebar (default behavior) */
@media (max-width: 1100px) {
    .product-sticky-sidebar {
        width: 100%;
        max-width: 400px; /* Reduced max-width for mobile */
        margin: 20px auto; /* Center on mobile */
    }

    .product-image-thumbnails .thumbnail {
        flex: 0 0 calc((100% - 40px) / 5); /* Ensure 5 items fit perfectly with gaps */
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3; /* Match desktop ratio */
    }
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    clear: both;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination .page-numbers {
    display: inline-flex; /* Use flexbox for centering */
    align-items: center;
    justify-content: center;
    width: 36px; /* Fixed width */
    height: 36px; /* Fixed height */
    padding: 0; /* Remove padding */
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    vertical-align: middle; /* Add this */
}

.pagination .page-numbers.current {
    background-color: #333;
    color: #fff;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    border: 1px solid #ddd;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
}


/* Footer */
.site-footer {
    background-color: #fff;
    padding: 20px 40px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    font-size: 0.8rem; /* Make text even smaller */
    color: #666; /* Make text lighter */
}

.site-footer .site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer .footer-left a {
    margin-right: 20px;
    color: #666; /* Match surrounding text color */
    text-decoration: none; /* Ensure no underline */
}

.site-footer .footer-left a:hover {
    color: #333; /* Darken on hover */
}

@media (max-width: 768px) {
    .site-footer .site-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .footer-right {
        margin-top: 10px;
    }
}


/* Widget Slider */
.widget-slider-container {
    position: relative;
    /* padding: 0 40px; */ /* Remove padding as buttons are now inside */
}

.widget-slider {
    position: relative;
    height: 280px; /* Changed from 250px to 280px */
    overflow: hidden; /* Hide widgets that are not active */
}

.widget-slider > .widget {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex; /* Use flex to center content if needed */
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.widget-slider > .widget.active {
    opacity: 1;
}

.widget-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    left: 0;
    /* padding: 0 20px; */ /* Removed padding */
    z-index: 10;
}

.widget-slider-nav .prev {
    margin-left: 20px;
}

.widget-slider-nav .next {
    margin-right: 20px;
}

.widget-slider-nav button {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 5px (0,0,0,0.2);
}

.widget-slider-nav button:hover {
    background: rgba(255, 255, 255, 1);
}

.widget-pagination-dots {
    text-align: center;
    background-color: #f9f9f9;
    padding: 15px 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.widget-pagination-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.widget-pagination-dots .dot.active {
    background-color: #333;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, 90%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 28px 36px;
    border-radius: 28px;
    z-index: 1;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 5, 22, 0.65) 0%, rgba(38, 10, 45, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 50px rgba(10, 0, 28, 0.35);
    z-index: -1;
}

.hero-title {
    font-size: clamp(1.5rem, 2.6vw, 2.35rem);
    letter-spacing: 0.22em;
    text-transform: none;
    margin: 0;
    line-height: 1.2;
    color: #fff;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}



.hero-notice {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 768px) {
    .hero-image-container {
        height: 200px;
    }

    .hero-content {
        padding: 24px;
        gap: 8px;
    }

    .hero-title {
        letter-spacing: 0.18em;
    }

    .hero-title::after {
        width: 56px;
    }

    .hero-subtitle {
        font-size: 0.78rem;
        letter-spacing: 0.12em;
    }

    .hero-notice {
        font-size: 0.68rem;
        letter-spacing: 0.05em;
        margin-top: 6px;
    }
}

/* --- Product Image Viewer --- */
.product-image-viewer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px; /* Adjust as needed */
    margin: 0 auto;
}

.product-sticky-sidebar {
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 24px;
    padding: 32px 28px 36px;
    box-shadow: 0 22px 44px rgba(10, 0, 28, 0.06);
    display: flex;
    flex-direction: column;
}

.product-sidebar-title {
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    color: #111;
}

.product-image-gallery {
    justify-content: center;
    gap: 10px;
}

.product-image-gallery .wp-block-image {
    margin: 0;
}

.product-image-gallery img {
    border-radius: 16px;
    width: 100%;
    height: auto;
}

.wp-block-table td {
    text-align: left; /* Left-align table cell text */
    border: 2px solid #ccc; /* Add border to table cells */
    padding: 16px; /* Add some padding for better appearance */
}

.wp-block-table th {
    border: 2px solid #ccc; /* Add border to table headers */
    padding: 16px; /* Add some padding for better appearance */
}

.wp-block-table thead th {
    background-color: #ccc; /* Same color as border */
    font-weight: bold;
    text-align: center; /* Center the text */
    color: #333; /* Ensure good contrast */
}

figure.wp-block-table {
    width: 100%;
    max-width: 100%;
    margin: 0 0 32px 0;
}

.review-meta-table {
    max-width: 100%;
}

.review-meta-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    margin: 0;
}

.review-meta-table tbody tr {
    height: auto;
}

.review-meta-table thead th {
    background: rgba(255, 40, 169, 0.16);
    color: #111;
    border: none;
    font-weight: 600;
    padding: 18px;
}

.review-meta-table tbody td,
.review-meta-table tbody th {
    border: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: transparent;
}

.review-meta-table tbody tr:last-child td {
    border-bottom: none;
}

.review-meta-table td:first-child {
    width: 34%;
    color: #555;
    font-weight: 600;
    white-space: nowrap;
    padding-right: 18px;
}

.review-meta-table tbody tr:nth-child(even) td {
    background: rgba(255, 40, 169, 0.06);
}

.review-meta-table tbody td:last-child {
    padding-left: 22px;
}

.product-image-main {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 Aspect Ratio (3/4 = 0.75) */
    overflow: hidden; /* Hide overflow if image is larger */
    border: 1px solid #eee;
    border-radius: 5px; /* Rounded corners */
    box-sizing: border-box;
}

.product-image-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container while maintaining aspect ratio */
    display: block;
}

.product-image-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start; /* Left-align thumbnails */
}

.product-image-thumbnails .thumbnail {
    width: 48px; /* Desktop thumbnail width */
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.product-image-thumbnails .thumbnail:hover {
    border-color: #aaa;
}

.product-image-thumbnails .thumbnail.active {
    border-color: #0073aa; /* Highlight active thumbnail */
}

.pr-text-highlight {
    background: rgba(255, 40, 169, 0.12);
    color: #ff28a9;
    font-weight: 600;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 0 18px 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

    .pr-image-block {
        max-width: 100%;
        margin: 0;
    }

.pr-image-block img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 18px 32px rgba(10, 0, 28, 0.08);
}

figure.wp-block-video {
    width: 100%;
    max-width: 100%;
    margin: 0 0 28px 0;
}
/* Purchase Button */
.purchase-button-container {
    margin: 24px 0 24px;
    width: 100%;
    position: relative;
}

.purchase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 26px;
    border-radius: 999px;
    background: #ff3aa7;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, background-color 0.25s ease;
    box-sizing: border-box;
}

.purchase-button span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.purchase-button span::after {
    content: '→';
    font-size: 1rem;
}

.purchase-button-container .purchase-button:hover {
    transform: translateY(-2px);
    background: #e52a94;
    text-decoration: none !important;
}

/* Related Posts Section */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    margin-bottom: 80px;
}

.related-posts-title {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* All Terms Section */
.all-terms-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

.all-terms-section .page-title {
    margin-bottom: 32px;
}

.all-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the tags */
    gap: 10px; /* Space between tags */
    margin-bottom: 40px; /* Space below the tags */
}

.tag-link {
    background-color: #f0f0f0;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px; /* Pill-shaped tags */
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent tags from breaking */
}

.tag-link:hover {
    background-color: #0073aa;
    color: #fff;
}

.tag-link .tag-count {
    font-size: 0.75em;
    margin-left: 4px;
    opacity: 0.8;
}





/* Search Filter Tags */
.search-taxonomy-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.filter-title {
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
    border-bottom: none;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.search-taxonomy-filters .filter-title {
    text-align: left;
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 1.05rem;
    font-weight: 600;
}

.search-taxonomy-filters .filter-list {
    justify-content: flex-start;
}

.filter-list li a {
    display: block;
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 20px; /* Pill shape */
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.filter-list li a:hover {
    background-color: #ddd;
}

/* Term Filter Input */
.term-filter-container {
    max-width: 400px;
    margin: 0 auto 40px auto;
}

.term-filter-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

/* Remove borders from All Tags/Genres section */
.all-tags-section {
    border-top: none;
    margin-top: 20px; /* Adjust margin to compensate for removed padding/border */
    padding-top: 0;
}

.all-tags-title {
    border-bottom: none;
    margin-top: 0; /* Adjust margin */
}
.entry-meta--dates {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    font-size: 0.75rem;
    gap: 0.45rem;
    color: #333;
    margin-top: 0.5rem;
    margin-bottom: 1.4rem;
}

.entry-meta--dates .entry-meta__clock {
    position: relative;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    flex-shrink: 0;
}

.entry-meta--dates .entry-meta__clock::before,
.entry-meta--dates .entry-meta__clock::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background-color: currentColor;
    transform-origin: bottom center;
}

.entry-meta--dates .entry-meta__clock::before {
    width: 1px;
    height: 45%;
    transform: translate(-50%, -100%) rotate(0deg);
}

.entry-meta--dates .entry-meta__clock::after {
    width: 1px;
    height: 32%;
    transform: translate(-50%, -100%) rotate(320deg);
}

.entry-meta--dates .entry-meta__date {
    white-space: nowrap;
}

.entry-meta--dates .entry-meta__separator {
    font-size: 0.9rem;
}
