/*
Theme Name: Mirui Magic Props
Theme URI: https://miruimagic.com
Author: Mirui Magic Team
Author URI: https://miruimagic.com
Description: A premium WordPress theme for magic props e-commerce stores. Features dark luxury design with WooCommerce integration, perfect for selling feather magic flowers, silk magic props, and stage performance accessories.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mirui-magic
Domain Path: /languages
Tags: e-commerce, woocommerce, magic, dark, luxury, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

WC requires at least: 7.0
WC tested up to: 8.0
*/

/* ============================================
   THEME METADATA & GLOBAL STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.hero-background {
    z-index: 0;
}

.hero-overlay {
    z-index: 1;
}

.hero-content {
    z-index: 2;
}
.hero-image {
    position: absolute;
    inset: 0;

    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;

    transform: scale(1.02); /* 防止边缘白线 */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

/* WordPress Required Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignnone {
    margin: 1.5rem 0;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #888;
    text-align: center;
    margin-top: 0.5rem;
}

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

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Gallery Styles */
.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;
}

.gallery-item {
    padding: 0.5rem;
    flex: 1 0 33.333%;
}

.gallery-columns-2 .gallery-item {
    flex: 1 0 50%;
}

.gallery-columns-3 .gallery-item {
    flex: 1 0 33.333%;
}

.gallery-columns-4 .gallery-item {
    flex: 1 0 25%;
}

.gallery-columns-5 .gallery-item {
    flex: 1 0 20%;
}

.gallery-columns-6 .gallery-item {
    flex: 1 0 16.666%;
}

/* Post Navigation */
.post-navigation {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 48%;
}

.post-navigation a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #fff;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.comment-list {
    list-style: none;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #111;
    border-radius: 8px;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-metadata {
    margin-left: auto;
    font-size: 0.875rem;
    color: #888;
}

.comment-content {
    color: #ccc;
}

.comment-reply-link {
    color: #d4af37;
    text-decoration: none;
    font-size: 0.875rem;
}

/* Widgets */
.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #111;
    border-radius: 8px;
}

.widget-title {
    color: #d4af37;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #222;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #d4af37;
}

/* WooCommerce Basic Compatibility */
.woocommerce .content-area {
    width: 100%;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.woocommerce-message {
    background: #1a3a1a;
    border-left: 4px solid #4caf50;
    color: #a5d6a7;
}

.woocommerce-info {
    background: #1a2a3a;
    border-left: 4px solid #2196f3;
    color: #90caf9;
}

.woocommerce-error {
    background: #3a1a1a;
    border-left: 4px solid #f44336;
    color: #ef9a9a;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: inherit;
    text-decoration: underline;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    padding: 1rem 0;
    margin-bottom: 2rem;
    color: #888;
    font-size: 0.875rem;
}

.woocommerce-breadcrumb a {
    color: #d4af37;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Pagination */
.woocommerce-pagination {
    margin-top: 3rem;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 0.5rem;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: #ccc;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce-pagination a:hover,
.woocommerce-pagination span.current {
    background: #d4af37;
    color: #0a0a0a;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .floating-whatsapp,
    .hero-section,
    .cta-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    .content-area {
        width: 100% !important;
    }
}
