/*
 Theme Name:   Sakura Theme
 Theme URI:    https://example.com/sakura-theme
 Author:       Sakura Dev
 Author URI:   https://example.com
 Description:  A custom WordPress theme for the Sakura project.
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  sakura-theme
 Tags:         custom, woocommerce, modern
 Requires at least: 6.0
 Tested up to: 6.9
 Requires PHP: 8.0
*/

/* ===========================
   CSS Variables / Design Tokens
   =========================== */
:root {
    --color-primary: #b83c68;
    --color-primary-dark: #8e2d4e;
    --color-secondary: #fbe5eb;
    --color-accent: #b9d9eb;
    --color-bg: #fcfcfb;
    --color-bg-alt: #dfedf4;
    --color-text: #2f4657;
    --color-text-light: #536b7b;
    --color-border: #edeff2;
    --color-white: #ffffff;
    --color-footer-pink: #fbe5eb;
    --color-footer-magenta: #b83c68;
    --color-instagram: #2f4657;
    --color-facebook: #b83c68;
    --color-tiktok: #2f4657;
    --font-primary: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Noto Serif', Georgia, serif;
    --font-serif: 'Noto Serif', Georgia, serif;
    --shadow-sm: 0 1px 2px rgba(32, 33, 36, 0.04);
    --shadow-md: 0 8px 24px rgba(32, 33, 36, 0.06);
    --shadow-lg: 0 18px 42px rgba(32, 33, 36, 0.08);
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --transition: 0.3s ease;
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* ===========================
   Layout
   =========================== */
#page {
    position: relative;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.content-area.full-width {
    grid-template-columns: 1fr;
}

/* Header and footer styles (including responsive overrides) are loaded from css/header.css and css/footer.css. */

/* ===========================
   Sidebar / Widgets
   =========================== */
.widget-area .widget {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.widget-area .widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-secondary);
}

/* ===========================
   Posts / Content
   =========================== */
.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .post-card-content {
    padding: 1.5rem;
}

/* ===========================
   404 Page
   =========================== */
.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ===========================
   Buttons
   =========================== */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
    box-shadow: none;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: none;
}

/* Cart page checkout CTA gets a dedicated secondary treatment */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained,
.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.wc-block-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained,
.wc-block-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-white);
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), outline-color var(--transition);
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus-visible,
.woocommerce-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover,
.woocommerce-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:focus-visible,
.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:focus-visible,
.wc-block-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover,
.wc-block-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:focus-visible,
.wc-block-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.wc-block-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:focus-visible {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: none;
    outline: none;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:focus-visible,
.woocommerce-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:focus-visible,
.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:focus-visible,
.wc-block-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:focus-visible,
.wc-block-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:focus-visible {
    outline: 3px solid rgba(237, 79, 130, 0.35);
    outline-offset: 3px;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:active,
.woocommerce-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:active,
.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:active,
.wc-block-cart .wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:active,
.wc-block-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:active {
    transform: translateY(0);
}

/* WooCommerce Notices */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-message,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-info,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-error {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-border);
    border-left-width: 4px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-message {
    border-left-color: #2e7d32;
    background: #eef9f0;
}

.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-info {
    border-left-color: #1e88e5;
    background: #eff6ff;
}

.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-error {
    border-left-color: #c62828;
    background: #fff1f1;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-message::before,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-info::before,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-error::before {
    top: 1rem;
    left: 0.75rem;
}

.woocommerce-notices-wrapper .woocommerce-message a,
.woocommerce-notices-wrapper .woocommerce-info a,
.woocommerce-notices-wrapper .woocommerce-error a,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-message a,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-info a,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-error a {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.woocommerce-notices-wrapper .woocommerce-message a:hover,
.woocommerce-notices-wrapper .woocommerce-info a:hover,
.woocommerce-notices-wrapper .woocommerce-error a:hover,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-message a:hover,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-info a:hover,
.woocommerce form .woocommerce-NoticeGroup-checkout .woocommerce-error a:hover {
    color: var(--color-primary);
}

/* WooCommerce Classic Form Controls */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .woocommerce-Input,
.woocommerce-page .cart .coupon .input-text,
.woocommerce-page #payment .payment_box input.input-text,
.woocommerce-page #payment .payment_box textarea,
.woocommerce .select2-container--default .select2-selection--single {
    min-height: 44px;
    width: 100%;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 0 0 1px rgba(32, 33, 36, 0.06);
    transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.woocommerce form .form-row textarea,
.woocommerce-page #payment .payment_box textarea {
    min-height: 120px;
    padding: 0.65rem 0.75rem;
}

.woocommerce .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--color-text);
    line-height: 1.4;
    padding-left: 0;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

.woocommerce form .form-row input.input-text:hover,
.woocommerce form .form-row textarea:hover,
.woocommerce form .form-row select:hover,
.woocommerce form .woocommerce-Input:hover,
.woocommerce-page .cart .coupon .input-text:hover,
.woocommerce-page #payment .payment_box input.input-text:hover,
.woocommerce-page #payment .payment_box textarea:hover,
.woocommerce .select2-container--default .select2-selection--single:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 0 1px rgba(32, 33, 36, 0.1), 0 10px 24px rgba(32, 33, 36, 0.05);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .woocommerce-Input:focus,
.woocommerce-page .cart .coupon .input-text:focus,
.woocommerce-page #payment .payment_box input.input-text:focus,
.woocommerce-page #payment .payment_box textarea:focus,
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single {
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(237, 79, 130, 0.14), 0 14px 28px rgba(237, 79, 130, 0.08);
}


/* ===========================
   WooCommerce - Product Page
   =========================== */
.product-gallery-column .woocommerce-product-gallery {
    position: relative;
}

.woocommerce-Tabs-panel h2 {
    display: none; /* Hide the redundant panel title */
}

/* Product reviews tab consistency */
.woocommerce-Reviews #comments ol.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.woocommerce-Reviews #comments ol.commentlist li.review {
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.woocommerce-Reviews #comments ol.commentlist li .comment_container {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.9rem;
    align-items: start;
}

.woocommerce-Reviews #comments ol.commentlist li img.avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    margin: 0;
    padding: 0;
    position: static;
}

.woocommerce-Reviews #comments .star-rating {
    color: var(--color-primary);
    margin-bottom: 0.3rem;
}

.woocommerce-Reviews #comments .meta {
    margin: 0 0 0.45rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.woocommerce-Reviews #comments .meta .woocommerce-review__author {
    color: var(--color-text);
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

.woocommerce-Reviews #comments .description p:last-child {
    margin-bottom: 0;
}

.woocommerce-Reviews #review_form_wrapper {
    margin-top: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 1.2rem;
}

.woocommerce #review_form #respond p {
    margin: 0 0 0.9rem;
}

.woocommerce #review_form #respond .comment-form-author,
.woocommerce #review_form #respond .comment-form-email {
    display: inline-block;
    width: 100%;
}

.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"],
.woocommerce #review_form #respond textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.85rem;
    background: #ffffff;
    color: var(--color-text);
}

.woocommerce #review_form #respond textarea {
    min-height: 130px;
    resize: vertical;
}

.woocommerce #review_form #respond .form-submit {
    margin-bottom: 0;
}

.woocommerce #review_form #respond .submit {
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.woocommerce #review_form #respond .submit:hover,
.woocommerce #review_form #respond .submit:focus-visible {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Related & Upsells */
.related.products,
.upsells.products {
    margin-top: 6rem;
}

.related.products h2,
.upsells.products h2 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* ===========================
   WooCommerce - Shop Page Hero
   =========================== */
.shop-hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}

.shop-category-nav {
    background: var(--color-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.shop-categories-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-categories-list li a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.shop-categories-list li a:hover,
.shop-categories-list li a.active {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
}

/* ===========================
   WooCommerce - Category Pages
   =========================== */
.category-header {
    background-color: var(--color-bg);
    padding: 80px 0 60px;
}

.category-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.category-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.category-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-text);
    margin: 0;
    font-weight: 400;
    line-height: 1;
}

.category-description {
    max-width: 500px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.category-filter-bar {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}

.category-filter-bar .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.category-sort .woocommerce-ordering {
    margin: 0;
}

.category-sort .woocommerce-ordering select {
    border: 1px solid var(--color-border);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background-color: var(--color-bg);
}


/* ===========================
   WooCommerce - Archive Pages (General)
   =========================== */
.archive-description, 
.category-description {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.woocommerce-before-shop-loop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.woocommerce-result-count {
    margin: 0;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    padding: 5px 10px;
    border-bottom: 2px solid var(--color-secondary);
}

.woocommerce-ordering select:focus {
    outline: none;
}

.sakura-no-products {
    margin: 2.5rem 0 3rem;
}

.sakura-no-products__inner {
    border: 1px solid var(--color-border);
    background: var(--color-white);
    padding: 2rem 1.25rem;
}

.sakura-no-products__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
}

.sakura-no-products__title {
    margin: 0.5rem 0 0;
    font-size: clamp(1.4rem, 6vw, 2rem);
}

.sakura-no-products__description {
    margin: 0.85rem 0 0;
    color: var(--color-text-light);
    max-width: 46ch;
}

.sakura-no-products__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.sakura-no-products__action-primary.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.sakura-no-products__action-secondary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
}

.sakura-no-products__action-secondary:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.sakura-no-products__categories {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.sakura-no-products__category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 600;
    background-color: var(--color-white);
}

.sakura-no-products__category-pill:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
}

/* Pagination */
.woocommerce-pagination {
    margin: 60px 0;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition);
}

.woocommerce-pagination ul li span.current {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.woocommerce-pagination ul li a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Badge styles */
.onsale {
    display: none;
}

/* Infinite Scroll Loader */
.infinite-scroll-loader {
    padding: 40px 0;
    text-align: center;
    width: 100%;
    clear: both;
}

.dots-loader {
    display: inline-flex;
    gap: 8px;
}

.dots-loader span {
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: block;
    animation: dots-pulse 1.4s infinite ease-in-out both;
}

.dots-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.dots-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dots-pulse {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.3;
    } 40% { 
        transform: scale(1.0);
        opacity: 1;
    }
}

.infinite-scroll-end {
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    clear: both;
    border-top: 1px solid var(--color-border);
    margin-top: 20px;
}

#infinite-scroll-sentinel {
    height: 1px;
    width: 100%;
}

/* ===========================
   Mobile-First Utilities & Responsive Overrides
   =========================== */
html,
body {
    width: 100%;
    overflow-x: clip;
}

h1 {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
}

h2 {
    font-size: clamp(1.45rem, 5.8vw, 2rem);
}

h3 {
    font-size: clamp(1.2rem, 4.8vw, 1.5rem);
}

.site-container {
    max-width: 100%;
    padding: 0 1rem;
}

.content-area {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.shop-hero {
    padding: 3rem 0 2rem;
}

.category-title {
    font-size: clamp(1.9rem, 7vw, 3.5rem);
}

.category-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.category-filter-bar .site-container,
.woocommerce-before-shop-loop {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.shop-categories-list {
    justify-content: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.shop-categories-list li {
    white-space: nowrap;
}

.shop-categories-list li a,
.woocommerce-ordering select {
    min-height: 44px;
}

.woocommerce-Reviews #comments ol.commentlist li .comment_container {
    grid-template-columns: 1fr;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.wc-block-checkout__billing-fields .wc-block-components-address-form,
.wc-block-checkout__shipping-fields .wc-block-components-address-form {
    gap: 12px;
}

.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="email"],
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="number"],
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="password"],
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="tel"],
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="text"],
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="url"],
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="number"],
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="password"],
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="tel"],
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="url"] {
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 0 0 1px rgba(32, 33, 36, 0.06);
    transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="email"]:hover,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="number"]:hover,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="password"]:hover,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="tel"]:hover,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="text"]:hover,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="url"]:hover,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="email"]:hover,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="number"]:hover,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="password"]:hover,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="tel"]:hover,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="text"]:hover,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="url"]:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 0 1px rgba(32, 33, 36, 0.1), 0 10px 24px rgba(32, 33, 36, 0.05);
}

.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="email"]:focus,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="number"]:focus,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="password"]:focus,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="tel"]:focus,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="text"]:focus,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="url"]:focus,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="email"]:focus-visible,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="number"]:focus-visible,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="password"]:focus-visible,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="tel"]:focus-visible,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="text"]:focus-visible,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input[type="url"]:focus-visible,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="email"]:focus,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="number"]:focus,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="password"]:focus,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="tel"]:focus,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="text"]:focus,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="url"]:focus,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="email"]:focus-visible,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="number"]:focus-visible,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="password"]:focus-visible,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="tel"]:focus-visible,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="text"]:focus-visible,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input[type="url"]:focus-visible {
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(237, 79, 130, 0.14), 0 14px 28px rgba(237, 79, 130, 0.08);
}

.woocommerce-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select {
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 0 0 1px rgba(32, 33, 36, 0.06);
    transition: background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.woocommerce-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select:hover,
.wc-block-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 0 1px rgba(32, 33, 36, 0.1), 0 10px 24px rgba(32, 33, 36, 0.05);
}

.woocommerce-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.woocommerce-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select:focus-visible,
.wc-block-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-checkout .wc-block-components-form .wc-blocks-components-select .wc-blocks-components-select__select:focus-visible {
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 4px rgba(237, 79, 130, 0.14), 0 14px 28px rgba(237, 79, 130, 0.08);
}

/* WooCommerce - Classic Checkout Consistency */
.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2,
.woocommerce-checkout #order_review {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2 {
    margin-bottom: 1rem;
}

.woocommerce-checkout form.checkout #customer_details h3,
.woocommerce-checkout #order_review_heading {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
}

.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table td {
    border: none;
    border-bottom: 1px solid rgba(234, 234, 234, 0.7);
    padding: 0.8rem 0.9rem;
}

.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tr:last-child th,
.woocommerce-checkout table.shop_table.woocommerce-checkout-review-order-table tr:last-child td {
    border-bottom: none;
}

.woocommerce-checkout #payment {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(234, 234, 234, 0.8);
    padding: 0.9rem;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 0.6rem;
}

.woocommerce-checkout #payment ul.payment_methods li:last-child {
    margin-bottom: 0;
}

.woocommerce-checkout #payment div.payment_box {
    margin: 0.5rem 0 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 226, 232, 0.58);
    color: var(--color-text-light);
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: rgba(255, 226, 232, 0.58);
}

.woocommerce-checkout #payment .place-order {
    padding: 0.9rem;
}

.woocommerce-checkout #payment #place_order {
    width: 100%;
    min-height: 44px;
}

/* WooCommerce My Account and classic table consistency */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-Addresses,
.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
    background: var(--color-white);
    border: 1px solid rgba(32, 33, 36, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    padding: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.65rem 0.8rem;
    border-radius: var(--radius-md);
    color: var(--color-text-light);
    font-weight: 600;
    line-height: 1.25;
    transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
    color: var(--color-primary-dark);
    background: rgba(237, 79, 130, 0.08);
    box-shadow: inset 0 0 0 1px rgba(237, 79, 130, 0.2);
}

.woocommerce table.shop_table,
.woocommerce table.shop_table_responsive,
.woocommerce-order .woocommerce-table {
    border: 1px solid rgba(32, 33, 36, 0.12);
    border-radius: var(--radius-md);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce table.shop_table_responsive th,
.woocommerce table.shop_table_responsive td,
.woocommerce-order .woocommerce-table th,
.woocommerce-order .woocommerce-table td {
    border-color: rgba(32, 33, 36, 0.12);
    padding: 0.75rem 0.95rem;
}

.woocommerce table.shop_table thead th,
.woocommerce table.shop_table_responsive thead th,
.woocommerce-order .woocommerce-table thead th {
    background: var(--color-bg-alt);
    color: var(--color-footer-magenta);
    font-weight: 700;
}

.woocommerce table.shop_table tbody tr:nth-child(even),
.woocommerce table.shop_table_responsive tbody tr:nth-child(even),
.woocommerce-order .woocommerce-table tbody tr:nth-child(even) {
    background: rgba(251, 231, 239, 0.12);
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
    background: #fffafc;
    border: 1px solid rgba(32, 33, 36, 0.12);
    border-radius: var(--radius-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-order .woocommerce-order-details .button {
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
    border-radius: var(--radius-md);
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-order .woocommerce-order-details .button:hover {
    background: var(--color-primary-dark);
}

/* WooCommerce - Account Auth Consistency */
.woocommerce-account .entry-content > .woocommerce {
    max-width: 72rem;
    margin: 0 auto;
}

.woocommerce-account #customer_login {
    display: flow-root;
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
    float: none;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
}

.woocommerce-account #customer_login .u-column2 {
    margin-top: 1.25rem;
}

.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce-ResetPassword,
.woocommerce-account .woocommerce-form.woocommerce-form-login,
.woocommerce-account .woocommerce-form.woocommerce-form-register {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
    .woocommerce-account #customer_login .u-column1,
    .woocommerce-account #customer_login .u-column2 {
        width: calc(50% - 1rem);
    }

    .woocommerce-account #customer_login .u-column1 {
        float: left;
    }

    .woocommerce-account #customer_login .u-column2 {
        float: right;
        margin-top: 0;
    }
}

.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce-form.woocommerce-form-login {
    margin-bottom: 1rem;
}

.woocommerce-account .woocommerce form.login h2,
.woocommerce-account .woocommerce form.register h2,
.woocommerce-account .woocommerce-ResetPassword h2 {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.woocommerce-account .woocommerce .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-light);
}

.woocommerce-account .woocommerce .lost_password,
.woocommerce-account .woocommerce .woocommerce-LostPassword {
    margin-top: 0.85rem;
}

.woocommerce-account .woocommerce .lost_password a,
.woocommerce-account .woocommerce .woocommerce-LostPassword a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(237, 79, 130, 0.55);
    text-underline-offset: 2px;
}

.woocommerce-account .woocommerce .lost_password a:hover,
.woocommerce-account .woocommerce .woocommerce-LostPassword a:hover {
    color: var(--color-accent-deep);
    text-decoration-color: rgba(134, 29, 76, 0.6);
}

.woocommerce-account .woocommerce form.login .button,
.woocommerce-account .woocommerce form.register .button,
.woocommerce-account .woocommerce-ResetPassword .button {
    min-height: 44px;
    border-radius: var(--radius-md);
}

/* WooCommerce - Order Tracking Consistency */
.woocommerce form.track_order {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    max-width: 44rem;
}

.woocommerce form.track_order > p:first-of-type {
    margin-top: 0;
    color: var(--color-text-light);
}

.woocommerce form.track_order .form-row {
    margin-bottom: 0.85rem;
}

.woocommerce form.track_order .form-row label {
    font-weight: 600;
    color: var(--color-text);
}

.woocommerce form.track_order .button {
    min-height: 44px;
    border-radius: var(--radius-pill);
}

/* WooCommerce - Classic Cart Consistency */
.woocommerce-cart table.shop_table.shop_table_responsive.cart {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.woocommerce-cart table.shop_table.shop_table_responsive.cart th,
.woocommerce-cart table.shop_table.shop_table_responsive.cart td {
    border: none;
    border-bottom: 1px solid rgba(234, 234, 234, 0.72);
    padding: 0.85rem 0.95rem;
}

.woocommerce-cart table.shop_table.shop_table_responsive.cart tr:last-child td {
    border-bottom: none;
}

.woocommerce-cart table.shop_table.shop_table_responsive.cart td.product-name a {
    font-weight: 600;
    color: var(--color-text);
}

.woocommerce-cart table.shop_table.shop_table_responsive.cart td.product-price,
.woocommerce-cart table.shop_table.shop_table_responsive.cart td.product-subtotal {
    color: var(--color-text-light);
}

.woocommerce-cart .actions .coupon .input-text {
    min-height: 42px;
}

.woocommerce-cart .actions .button,
.woocommerce-cart .actions button.button,
.woocommerce-cart .actions input.button,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .button {
    border-radius: var(--radius-pill);
    min-height: 42px;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cross-sells {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-cart .cart-collaterals .cross-sells h2 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
    border: none;
    border-bottom: 1px solid rgba(234, 234, 234, 0.72);
    padding: 0.72rem 0.82rem;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:last-child th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:last-child td {
    border-bottom: none;
}

/* WooCommerce - Empty Cart Consistency */
.woocommerce-cart .cart-empty.woocommerce-info {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--color-text);
    margin-bottom: 1rem;
    padding: 1rem 1.15rem 1rem 2.85rem;
}

.woocommerce-cart .cart-empty.woocommerce-info::before {
    color: var(--color-primary-dark);
    left: 1rem;
    top: 0.95rem;
}

.woocommerce-cart .return-to-shop {
    margin-top: 0.25rem;
}

.woocommerce-cart .return-to-shop .button.wc-backward {
    border-radius: var(--radius-pill);
    min-height: 44px;
    padding: 0.72rem 1.35rem;
}
/* Breakpoint overrides */
@media (min-width: 480px) {
    .site-container {
        padding: 0 1.25rem;
    }
}

@media (min-width: 600px) {
}

@media (min-width: 768px) {
    .site-container {
        padding: 0 1.5rem;
    }

    .sakura-no-products__inner {
        padding: 2.4rem 2rem;
    }

    .woocommerce-before-shop-loop,
    .category-filter-bar .site-container {
        flex-direction: row;
        align-items: center;
    }

    .woocommerce-checkout form.checkout #customer_details .col-1,
    .woocommerce-checkout form.checkout #customer_details .col-2 {
        margin-bottom: 0;
        min-height: 100%;
    }

    .woocommerce #review_form #respond .comment-form-author,
    .woocommerce #review_form #respond .comment-form-email {
        width: calc(50% - 0.4rem);
    }
}

@media (min-width: 900px) {
}

@media (min-width: 1024px) {
    .site-container {
        max-width: 1200px;
    }

    .content-area {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

}

@media (min-width: 1200px) {
}

@media (min-width: 1280px) {
    .site-container {
        padding: 0 1.75rem;
    }

}
