/* Tokeiwabi Custom Styles */

/* ==============================
   TOKEIWABI FRONT PAGE THEME
   Wabi-Sabi Palette
   Base: #f4f1eb | Dark: #2c363f | Accent: #a67c52
   ============================== */

/* Header */
.tokei-header {
    background: var(--tokei-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.tokei-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tokei-dark);
}

.tokei-logo span {
    color: var(--tokei-accent);
    font-weight: 300;
}

.tokei-nav a {
    color: var(--tokei-dark);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tokei-nav a:hover {
    color: var(--tokei-accent);
    border-bottom-color: var(--tokei-accent);
}

.tokei-nav a.current-menu-item {
    color: var(--tokei-accent);
    border-bottom-color: var(--tokei-accent);
}

/* Hero Section */
.tokei-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

.tokei-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tokei-dark);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .tokei-hero h1 { font-size: 3rem; }
}

.tokei-hero p {
    font-size: 1.125rem;
    color: var(--tokei-dark);
    opacity: 0.7;
    max-width: 42rem;
    margin: 1rem auto 0;
}

/* Section Titles */
.tokei-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tokei-dark);
    border-bottom: 1px solid rgba(166,124,82,0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Category Cards */
.tokei-category-card {
    display: block;
    height: 14rem;
    background: var(--tokei-surface);
    border: 1px solid rgba(166,124,82,0.2);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
}

.tokei-category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--tokei-accent);
}

.tokei-category-card .icon-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.tokei-category-card:hover .icon-bg {
    opacity: 0.1;
}

.tokei-category-card .icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--tokei-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s;
}

.tokei-category-card:hover .icon-circle {
    transform: scale(1.1);
}

.tokei-category-card .icon-circle i {
    font-size: 1.5rem;
    color: var(--tokei-accent);
}

.tokei-category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    margin-top: 1rem;
    color: var(--tokei-dark);
}

.tokei-category-card p {
    font-size: 0.875rem;
    color: var(--tokei-dark);
    opacity: 0.7;
    z-index: 10;
    margin-top: 0.25rem;
}

/* Product Cards */
.tokei-product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 640px) {
    .tokei-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .tokei-product-grid { grid-template-columns: repeat(4, 1fr); }
}

.tokei-product-card {
    background: var(--tokei-light);
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.tokei-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tokei-product-card .product-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--tokei-base);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12rem;
}

.tokei-product-card .product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--tokei-dark);
    opacity: 0.5;
    letter-spacing: 0.05em;
}

.tokei-product-card .product-title {
    font-weight: 500;
    color: var(--tokei-dark);
    margin-top: 0.25rem;
}

.tokei-product-card .product-title a {
    color: inherit;
}

.tokei-product-card .product-title a:hover {
    color: var(--tokei-accent);
}

.tokei-product-card .product-subtitle {
    font-size: 0.875rem;
    color: var(--tokei-dark);
    opacity: 0.5;
    margin-top: 0.25rem;
}

.tokei-product-card .product-price {
    font-weight: 700;
    color: var(--tokei-accent);
    margin-top: 0.5rem;
}

/* L'Atelier Section */
.tokei-atelier {
    background: rgba(166,124,82,0.08);
    border-top: 1px solid rgba(166,124,82,0.2);
    border-bottom: 1px solid rgba(166,124,82,0.2);
    padding: 4rem 0;
    margin-top: 2rem;
}

.tokei-article-card {
    background: var(--tokei-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(166,124,82,0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tokei-article-card {
        flex-direction: row;
        align-items: center;
    }
}

.tokei-article-card .article-icon {
    width: 100%;
    height: 8rem;
    background: var(--tokei-base);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    color: var(--tokei-accent);
}

@media (min-width: 768px) {
    .tokei-article-card .article-icon {
        width: 33%;
        height: 8rem;
    }
}

.tokei-article-card .article-icon i {
    font-size: 1.875rem;
}

.tokei-article-card .badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tokei-accent);
}

/* Footer */
.tokei-footer {
    background: var(--tokei-dark);
    color: var(--tokei-base);
    padding: 3rem 0;
}

.tokei-footer .footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.tokei-footer .footer-accent {
    color: var(--tokei-accent);
}

.tokei-footer a {
    color: var(--tokei-base);
    opacity: 0.7;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.tokei-footer a:hover {
    color: var(--tokei-accent);
    opacity: 1;
}

.tokei-footer input[type="email"] {
    background: var(--tokei-base);
    color: var(--tokei-dark);
    border: none;
    padding: 0.5rem 1rem;
    width: 100%;
    border-radius: 0.25rem 0 0 0.25rem;
}

.tokei-footer button {
    background: var(--tokei-accent);
    color: var(--tokei-light);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0 0.25rem 0.25rem 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.tokei-footer button:hover {
    opacity: 0.8;
}

/* ==============================
   CF7 Form Field Styles
   ============================== */
.tk-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(244, 241, 235, 0.4);
    border: 1px solid rgba(166, 124, 82, 0.2);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #2c363f;
    outline: none;
    transition: border-color 0.2s;
}
.tk-input:focus {
    border-color: #a67c52;
}
.tk-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(44, 54, 63, 0.7);
    margin-bottom: 0.25rem;
}
.tk-btn {
    width: 100%;
    background: #2c363f;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.tk-btn:hover {
    background: #a67c52;
}
.tk-btn-accent {
    width: 100%;
    background: #a67c52;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.tk-btn-accent:hover {
    background: #2c363f;
}

/* ==============================
   Legal Pages Styles
   ============================== */
.legal-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c363f;
}
.legal-content p,
.legal-content ul {
    margin-bottom: 1rem;
    color: rgba(44, 54, 63, 0.8);
    line-height: 1.7;
    font-size: 0.875rem;
}
.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.legal-content strong {
    color: #2c363f;
}

/* ============================================================
   WOOCOMMERCE PRODUCT REVIEWS — Wabi-Sabi Premium Overrides
   ============================================================ */
.woocommerce-Reviews {
    margin-top: 2rem;
}

/* Reviews List */
.woocommerce-Reviews .commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 3rem 0 !important;
}

.woocommerce-Reviews .commentlist li.comment {
    background: #fcfbf9;
    border: 1px solid rgba(166, 124, 82, 0.12);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px -8px rgba(44, 54, 63, 0.03);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.woocommerce-Reviews .commentlist li.comment:hover {
    border-color: rgba(166, 124, 82, 0.25);
    box-shadow: 0 10px 30px -10px rgba(44, 54, 63, 0.06);
    transform: translateY(-2px);
}

.woocommerce-Reviews .commentlist li.comment .comment_container {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

@media (max-width: 640px) {
    .woocommerce-Reviews .commentlist li.comment .comment_container {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Review Avatar */
.woocommerce-Reviews .commentlist li.comment img.avatar {
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 9999px !important;
    border: 1.5px solid rgba(166, 124, 82, 0.2) !important;
    background: #f4f1eb !important;
    padding: 2px !important;
    object-fit: cover;
}

/* Review Text Content */
.woocommerce-Reviews .commentlist li.comment .comment-text {
    flex-grow: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Review Meta Info */
.woocommerce-Reviews .commentlist li.comment .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #2c363f;
}

.woocommerce-Reviews .commentlist li.comment .woocommerce-review__author {
    font-weight: 700 !important;
    color: #2c363f !important;
}

.woocommerce-Reviews .commentlist li.comment .woocommerce-review__verified {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #24a359 !important;
    background: rgba(36, 163, 89, 0.08);
    padding: 0.2rem 0.6rem !important;
    border-radius: 9999px !important;
    display: inline-flex;
    align-items: center;
}

.woocommerce-Reviews .commentlist li.comment .woocommerce-review__published-date {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    color: rgba(44, 54, 63, 0.45);
    margin-top: 0.15rem;
}

/* Rating Stars */
.woocommerce-Reviews .star-rating {
    color: #eab308 !important;
    font-size: 0.9rem !important;
    margin-top: 2px;
}

@media (min-width: 641px) {
    .woocommerce-Reviews .star-rating {
        float: right;
    }
}

/* Review Description Text */
.woocommerce-Reviews .commentlist li.comment .description {
    font-size: 0.925rem;
    line-height: 1.65;
    color: rgba(44, 54, 63, 0.8);
    margin-top: 0.75rem;
}

.woocommerce-Reviews .commentlist li.comment .description p {
    margin: 0 !important;
}

/* Empty Reviews State */
.woocommerce-noreviews {
    text-align: center;
    color: rgba(44, 54, 63, 0.6) !important;
    font-style: italic;
    padding: 3rem 1.5rem !important;
    background: #fcfbf9;
    border: 1px dashed rgba(166, 124, 82, 0.25) !important;
    border-radius: 1rem;
    margin-bottom: 3rem !important;
    font-size: 0.95rem;
}

/* Review Form Wrapper */
#review_form_wrapper {
    background: #ffffff;
    border: 1px solid rgba(166, 124, 82, 0.15);
    border-radius: 1.25rem;
    padding: 2.25rem;
    box-shadow: 0 4px 30px rgba(44, 54, 63, 0.02);
}

@media (max-width: 640px) {
    #review_form_wrapper {
        padding: 1.5rem;
    }
}

#review_form_wrapper .comment-reply-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #2c363f !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid rgba(166, 124, 82, 0.12);
    padding-bottom: 0.75rem;
}

/* Form Layout & Fields */
#commentform {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#commentform p {
    margin: 0 !important;
}

#commentform label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(44, 54, 63, 0.75);
    margin-bottom: 0.5rem;
}

/* Star Rating Selector */
.comment-form-rating .stars {
    display: inline-block;
    margin-top: 0.25rem;
}

.comment-form-rating .stars a {
    color: rgba(166, 124, 82, 0.3);
    font-size: 1.25rem;
    margin-right: 0.25rem;
    transition: color 0.15s ease;
}

.comment-form-rating .stars a:hover,
.comment-form-rating .stars a:hover ~ a,
.comment-form-rating .stars.selected a.active,
.comment-form-rating .stars.selected a.active ~ a {
    color: #eab308 !important;
}

/* Input Fields Styling */
#commentform select,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    padding: 0.8rem 1.1rem;
    background: #faf8f5;
    border: 1px solid rgba(166, 124, 82, 0.18);
    border-radius: 0.6rem;
    font-size: 0.925rem;
    color: #2c363f;
    outline: none;
    transition: all 0.2s ease;
}

#commentform select {
    max-width: 260px;
    cursor: pointer;
}

#commentform select:focus,
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    border-color: #a67c52;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12);
}

/* Submit Button */
#commentform #submit {
    background: #2c363f !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.9rem 2.25rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    width: fit-content;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(44, 54, 63, 0.1);
}

#commentform #submit:hover {
    background: #a67c52 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(166, 124, 82, 0.25);
}

#commentform #submit:active {
    transform: translateY(0);
}
