/*
Theme Name: Shoushi Jewelry
Theme URI: https://shoushiwp.com
Author: Shoushi
Author URI: https://shoushiwp.com
Description: Ein elegantes Schmuck-Theme für WordPress. Minimalistisch, luxuriös und produktorientiert.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shoushi-jewelry
Tags: jewelry, shop, elegant, minimalist, custom-logo, custom-menu, featured-images, translation-ready
*/

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c9a961;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 90%;
    margin: 0 auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    width: 90%;
    margin: 0 auto;
}

.site-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

.site-logo:hover {
    color: #c9a961;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 6rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.primary-menu li {
    white-space: nowrap;
}

.primary-menu li a {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c9a961;
    transition: width 0.3s ease;
}

.primary-menu li a:hover::after,
.primary-menu li a.current-menu-item::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
}

/* Slider Styles */
.sj-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-top: 60px;
    background-color: #f8f8f8;
}

.sj-slider-wrapper {
    position: relative;
    width: 100%;
}

.sj-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.sj-slide.active {
    opacity: 1;
    z-index: 1;
}

.sj-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.sj-slider-prev,
.sj-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.sj-slider-prev:hover,
.sj-slider-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.sj-slider-prev {
    left: 2rem;
}

.sj-slider-next {
    right: 2rem;
}

.sj-slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.sj-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sj-slider-dot.active {
    background-color: #ffffff;
}

/* Category Banner */
.category-banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.category-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid #1a1a1a;
    background-color: transparent;
    color: #1a1a1a;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.btn-primary {
    background-color: #1a1a1a;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #c9a961;
    border-color: #c9a961;
}

.btn-gold {
    border-color: #c9a961;
    color: #c9a961;
}

.btn-gold:hover {
    background-color: #c9a961;
    color: #ffffff;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

/* Product Search */
.product-search-wrapper {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.product-search-form {
    display: flex;
    gap: 0;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.product-search-form:focus-within {
    border-color: #c9a961;
}

.product-search-form input[type="text"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.9375rem;
    outline: none;
}

.product-search-form button {
    padding: 0.875rem 2rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-search-form button:hover {
    background-color: #c9a961;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* 首页各分类独立列数 */
.product-grid-5col,
.product-grid-4col,
.product-grid-3col {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f8f8f8;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .product-image-default {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

.product-card:hover .product-image {
    transform: none;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: #c9a961;
    color: #ffffff;
}

.product-info {
    padding: 1.5rem 0;
    text-align: center;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.product-title a:hover {
    color: #c9a961;
}

.product-price {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.product-price .regular-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
}

.product-price .sale-price {
    color: #c9a961;
    font-weight: 500;
}

/* Product Detail */
.product-detail {
    width: 90%;
    margin: 0 auto;
    padding: 8rem 0 4rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background-color: #f8f8f8;
    margin-bottom: 1rem;
}

.product-detail-image-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-detail-image-wrapper .product-main-image {
    margin-bottom: 0;
    transition: opacity 0.4s ease;
}

.product-detail-image-wrapper .product-main-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-detail-image-wrapper:hover .product-main-image-default {
    opacity: 0;
}

.product-detail-image-wrapper:hover .product-main-image-hover {
    opacity: 1;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
}

.product-thumbnail {
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: #c9a961;
}

.product-detail-info {
    padding-top: 1rem;
}

.product-detail-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.product-detail-price {
    font-size: 1.5rem;
    color: #c9a961;
    margin-bottom: 2rem;
    font-weight: 500;
}

.product-detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2.5rem;
}

.product-options {
    margin-bottom: 2.5rem;
}

.product-option-group {
    margin-bottom: 1.5rem;
}

.product-option-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.product-option-values {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.option-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid #1a1a1a;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.option-btn:hover,
.option-btn.selected {
    background-color: #1a1a1a;
    color: #ffffff;
}

.product-meta {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.product-meta-item {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.product-meta-item strong {
    color: #1a1a1a;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.footer-inner {
    width: 90%;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-column p,
.footer-column a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-column a:hover {
    color: #c9a961;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.625rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-grid {
        gap: 3rem;
    }
    
    .product-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
    
    .product-grid-5col,
    .product-grid-4col,
    .product-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-grid-5col,
    .product-grid-4col,
    .product-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-info {
        padding: 1rem 0;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.8125rem;
    }
}

/* Sample Request Button */
.sj-sample-btn {
    display: block;
    width: 50%;
    padding: 0.625rem 1rem;
    margin: 0.75rem auto 0 auto;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sj-sample-btn:hover {
    background-color: #c9a961;
}

.sj-sample-btn-detail {
    display: inline-block;
    width: auto;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    margin-top: 0;
}

/* Sample Request Modal */
.sj-sample-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.sj-sample-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sj-sample-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.sj-sample-modal-content {
    position: relative;
    background: #ffffff;
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    z-index: 1;
}

.sj-sample-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s ease;
}

.sj-sample-modal-close:hover {
    color: #1a1a1a;
}

.sj-sample-modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.sj-sample-product-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background-color: #f8f8f8;
    margin-bottom: 1.5rem;
}

.sj-sample-field {
    margin-bottom: 1rem;
}

.sj-sample-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.sj-sample-field input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    font-family: 'Jost', sans-serif;
    font-size: 0.9375rem;
    transition: border-color 0.3s ease;
}

.sj-sample-field input:focus {
    outline: none;
    border-color: #c9a961;
}

.sj-sample-product-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #eee;
}

.sj-sample-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sj-sample-product-details h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.sj-sample-product-price {
    color: #c9a961;
    font-size: 0.9375rem;
    margin: 0;
}

.sj-sample-sketch-upload {
    margin-bottom: 1.5rem;
}

.sj-sample-sketch-upload label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.sj-sample-upload-area {
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.sj-sample-upload-area:hover,
.sj-sample-upload-area.dragover {
    border-color: #c9a961;
    background-color: #fdfbf7;
}

.sj-sample-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #999;
}

.sj-sample-upload-icon {
    font-size: 2rem;
    color: #c9a961;
}

.sj-sample-sketch-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sj-sketch-item {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.sj-sketch-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sj-sketch-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 0.875rem;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sj-sketch-remove:hover {
    background: rgba(200,0,0,0.8);
}

.sj-sketch-loading {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.625rem;
    padding: 2px 4px;
    text-align: center;
}

.sj-sample-submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sj-sample-submit-btn:hover {
    background-color: #c9a961;
}

.sj-sample-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sj-sample-message {
    margin-top: 1rem;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    display: none;
}

.sj-sample-message.success {
    display: block;
    background-color: #f0f7f0;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.sj-sample-message.error {
    display: block;
    background-color: #fdf0f0;
    color: #c62828;
    border: 1px solid #ffcdd2;
}
