/*
Theme Name: 独立站主题
Theme URI: https://example.com/
Author: 独立站
Author URI: https://example.com/
Description: 独立站企业主题，支持 WooCommerce
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tibetan-heritage
*/

/* ===================================
   CSS Variables & Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1a5f7a;
    --deep-blue: #0d3f56;
    --sky-blue: #57a6c8;
    --gold: #d4af37;
    --bright-gold: #f4d03f;
    --burgundy: #8b0000;
    --cream: #f5f1e8;
    --white: #ffffff;
    --dark-text: #2c2c2c;
    --light-text: #666666;
    --font-primary: 'Cinzel', serif;
    --font-chinese: 'Noto Serif TC', serif;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-chinese), var(--font-system);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--cream);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Site Header (WordPress)
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(13, 63, 86, 0.95) 0%, rgba(26, 95, 122, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-logo,
.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.site-branding .logo-icon {
    color: var(--bright-gold);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.main-navigation a:hover {
    background: rgba(244, 208, 63, 0.2);
    color: var(--bright-gold);
}

.header-actions .cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.header-actions .cart-icon {
    font-size: 1.2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.menu-toggle-icon,
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(13, 63, 86, 0.3) 0%, rgba(26, 95, 122, 0.5) 100%),
        url('assets/images/hero-mountain.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(13, 63, 86, 0.3) 100%);
}

.tibetan-pattern-left,
.tibetan-pattern-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    opacity: 0.4;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    animation: rotate-slow 60s linear infinite;
}

.tibetan-pattern-left { left: 5%; }
.tibetan-pattern-right { right: 5%; }

@keyframes rotate-slow {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: var(--spacing-md);
}

.tibetan-text-large {
    font-size: 2rem;
    color: var(--bright-gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 3px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title .highlight {
    color: var(--bright-gold);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.tibetan-small { font-size: 0.9rem; color: var(--bright-gold); }
.scroll-arrow { font-size: 1.5rem; color: var(--white); }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--bright-gold) 100%);
    color: var(--dark-text);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-product {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    background: var(--primary-blue);
    color: var(--white);
}

.btn-product:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
}

/* ===================================
   Divider & Section Headers
   =================================== */
.divider-pattern {
    height: 80px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    background-size: 20px 4px;
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.5;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-chinese);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 1rem 0;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.tibetan-decoration {
    font-size: 2rem;
    color: var(--gold);
    margin: 0 1rem;
}

.tibetan-decoration-small {
    font-size: 1.5rem;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

/* ===================================
   Featured Products
   =================================== */
.featured-products {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--cream);
    overflow: hidden;
}

.cloud-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="cloud" x="0" y="0" width="200" height="150" patternUnits="userSpaceOnUse"><path d="M50,80 Q30,60 50,50 Q60,30 80,40 Q100,30 110,50 Q130,55 120,75 Q130,90 110,90 Q100,100 80,90 Q60,95 50,80" fill="%23ffffff" opacity="0.3"/></pattern></defs><rect width="1200" height="800" fill="url(%23cloud)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.product-card {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(26, 95, 122, 0.2);
}

.product-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 50%);
}

.product-corner.tl { top: 0; left: 0; }
.product-corner.tr { top: 0; right: 0; transform: rotate(90deg); }
.product-corner.bl { bottom: 0; left: 0; transform: rotate(-90deg); }
.product-corner.br { bottom: 0; right: 0; transform: rotate(180deg); }

.product-image {
    margin-bottom: 1.5rem;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--burgundy);
    margin: 1.5rem 0;
}

.featured-products p {
    text-align: center;
    color: var(--light-text);
}

/* ===================================
   Our Story
   =================================== */
.our-story {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-blue) 100%);
    color: var(--white);
    overflow: hidden;
}

.story-mandala {
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="90" fill="none" stroke="%23d4af37" stroke-width="2" opacity="0.3"/><circle cx="100" cy="100" r="70" fill="none" stroke="%23d4af37" stroke-width="2" opacity="0.3"/><circle cx="100" cy="100" r="50" fill="none" stroke="%23d4af37" stroke-width="2" opacity="0.3"/></svg>');
    background-size: contain;
    opacity: 0.3;
    animation: rotate-slow 80s linear infinite;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image {
    position: relative;
}

.image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--gold);
    border-radius: 8px;
    z-index: 1;
}

.story-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.story-text h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.tibetan-quote {
    font-size: 1.2rem;
    color: var(--bright-gold);
    font-style: italic;
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--gold);
}

/* ===================================
   Culture & Wellness
   =================================== */
.culture-wellness {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: var(--cream);
    overflow: hidden;
}

.culture-mandala {
    position: absolute;
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="90" fill="none" stroke="%231a5f7a" stroke-width="2" opacity="0.2"/><circle cx="100" cy="100" r="70" fill="none" stroke="%231a5f7a" stroke-width="2" opacity="0.2"/></svg>');
    background-size: contain;
    opacity: 0.4;
    animation: rotate-slow 100s linear infinite reverse;
}

.culture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.culture-text h2 {
    margin-bottom: 1.5rem;
}

.culture-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-align: justify;
}

.culture-image {
    position: relative;
}

.culture-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Site Footer (WordPress)
   =================================== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, var(--deep-blue) 0%, #0a2a3a 100%);
    color: var(--cream);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-tibetan-pattern {
    margin-bottom: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section .footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--bright-gold);
    font-weight: 700;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li { margin-bottom: 0.75rem; }

.footer-menu a {
    color: var(--cream);
    font-size: 0.95rem;
}

.footer-menu a:hover { color: var(--bright-gold); }

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(244, 208, 63, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
}

.social-link:hover {
    background: var(--gold);
    color: var(--dark-text);
}

.footer-bottom {
    border-top: 1px solid rgba(244, 208, 63, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom .copyright {
    font-size: 0.9rem;
    color: rgba(245, 241, 232, 0.7);
}

.tibetan-footer-pattern {
    margin-top: 1rem;
    color: var(--bright-gold);
}

/* ===================================
   Main content spacing (fixed header)
   =================================== */
#main-content {
    padding-top: 80px;
}

/* ===================================
   Site Container & Content Area
   =================================== */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.content-area {
    float: left;
    width: 70%;
    padding-right: 2rem;
}

.content-area.full-width {
    float: none;
    width: 100%;
    padding-right: 0;
}

/* ===================================
   Page Header
   =================================== */
.page-header {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--deep-blue) 100%);
    color: var(--white);
    border-bottom: 3px solid var(--gold);
}

.page-title {
    font-family: var(--font-chinese);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    float: right;
    width: 30%;
    padding-left: 2rem;
}

.sidebar .widget {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--gold);
}

.sidebar .widget-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.sidebar ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.sidebar ul li a {
    color: var(--dark-text);
    transition: var(--transition-fast);
}

.sidebar ul li a:hover {
    color: var(--primary-blue);
    padding-left: 0.5rem;
}

/* Clearfix */
.site-container::after,
.content-area::after,
.sidebar::after {
    content: "";
    display: table;
    clear: both;
}

/* ===================================
   Posts & Pages
   =================================== */
.post,
.type-page {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-family: var(--font-chinese);
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.entry-title a {
    color: var(--primary-blue);
    transition: var(--transition-fast);
}

.entry-title a:hover {
    color: var(--gold);
}

.entry-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta .byline,
.entry-meta .posted-on {
    display: inline-block;
}

.entry-content {
    line-height: 1.8;
    color: var(--dark-text);
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--gold);
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--light-text);
    font-size: 0.9rem;
}

.tags-links,
.cat-links {
    display: inline-block;
    margin-right: 1rem;
}

/* ===================================
   Pagination
   =================================== */
.pagination {
    clear: both;
    text-align: center;
    padding: 2rem 0;
    margin: 2rem 0;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-blue);
    color: var(--white);
}

.pagination .prev,
.pagination .next {
    padding: 0.5rem 1.5rem;
}

.posts-navigation,
.paging-navigation {
    clear: both;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.nav-previous a:hover,
.nav-next a:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
}

/* ===================================
   Archive Page
   =================================== */
.archive-header {
    background: var(--cream);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.archive-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.archive-description {
    color: var(--light-text);
    font-size: 1rem;
}

/* ===================================
   404 Error Page
   =================================== */
.error-404 {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--white);
    border-radius: 8px;
    margin: var(--spacing-lg) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-404 .page-title {
    font-size: 6rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.error-404 .page-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-404 .search-form {
    margin-top: 2rem;
}

.error-404 .search-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.error-404 .search-form input[type="search"] {
    width: 70%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 1rem;
}

.error-404 .search-form input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.error-404 .search-form input[type="submit"]:hover {
    background: var(--deep-blue);
}

/* ===================================
   Search Results
   =================================== */
.search-results .post {
    padding: 1.5rem;
}

.search-results .entry-title {
    font-size: 1.5rem;
}

.search-results .entry-summary {
    color: var(--light-text);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .content-area {
        float: none;
        width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .sidebar {
        float: none;
        width: 100%;
        padding-left: 0;
    }

    .entry-title {
        font-size: 1.6rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .error-404 .page-title {
        font-size: 4rem;
    }

    .error-404 .search-form input[type="search"] {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-previous,
    .nav-next {
        text-align: center;
    }
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 968px) {
    .story-content,
    .culture-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .main-navigation ul {
        display: none;
    }

    .main-navigation ul.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 63, 86, 0.98);
        padding: 1rem;
        gap: 0.5rem;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .section-title { font-size: 1.8rem; }
    .tibetan-pattern-left,
    .tibetan-pattern-right {
        width: 80px;
        height: 80px;
    }
}

/* ===================================
   WordPress Specific Styles
   =================================== */
.wp-block {
    max-width: 1200px;
    margin: 0 auto;
}

.wp-block-cover {
    min-height: 400px;
}

.site-content {
    padding-top: 80px;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-title {
    font-family: var(--font-chinese);
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.entry-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===================================
   WooCommerce Styles
   =================================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.woocommerce .product {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
}

.woocommerce .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 95, 122, 0.2);
}

.woocommerce .product img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.woocommerce .product-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.woocommerce .price {
    font-size: 1.5rem;
    color: var(--burgundy);
    font-weight: 700;
    margin: 1rem 0;
}

.woocommerce .button {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.woocommerce .button:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
}

.woocommerce-message {
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.woocommerce-info {
    background: rgba(26, 95, 122, 0.1);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* WooCommerce Cart */
.woocommerce-cart-form {
    width: 100%;
}

.woocommerce table.shop_table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2rem;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.woocommerce table.shop_table th {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

.woocommerce .quantity input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--primary-blue);
    border-radius: 4px;
}

/* WooCommerce Checkout */
.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.woocommerce-checkout #order_review {
    background: var(--cream);
    padding: 2rem;
    border-radius: 8px;
}

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

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.woocommerce form .form-row input,
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* ===================================
   Page Templates
   =================================== */
.page-template-full-width .site-content {
    padding-top: 0;
}

.page-template-home .entry-content {
    max-width: 100%;
}

/* ===================================
   Comments
   =================================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gold);
}

.comments-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

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

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-blue);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.comment-content {
    line-height: 1.7;
}

.reply {
    margin-top: 1rem;
}

.reply a {
    color: var(--gold);
    font-weight: 600;
}

/* ===================================
   Accessibility
   =================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto;
    width: auto;
    height: auto;
    position: static !important;
    overflow: visible;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

/* ===================================
   WooCommerce Additional
   =================================== */
.tibetan-delivery-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}

.tibetan-delivery-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.delivery-icon {
    margin-right: 0.5rem;
}

.woocommerce-container {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

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

.woocommerce-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.woocommerce-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.woocommerce-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Product Tags */
.post-tags {
    margin-top: 1rem;
}

.tags-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: var(--cream);
    color: var(--dark-text);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.tag-link:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Read More */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-blue);
    font-weight: 600;
    transition: var(--transition-fast);
}

.read-more:hover {
    color: var(--gold);
}

.read-more .arrow {
    margin-left: 0.5rem;
    transition: var(--transition-fast);
}

.read-more:hover .arrow {
    margin-left: 0.75rem;
}

/* Entry Excerpt */
.entry-excerpt {
    margin: 1rem 0;
    color: var(--light-text);
    line-height: 1.7;
}

/* Single Post */
.single-post-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

/* Page Content */
.page-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--white);
    border-radius: 8px;
    margin: 2rem 0;
}

.no-results .page-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-results .search-form {
    max-width: 500px;
    margin: 2rem auto;
}

/* Navigation */
.post-navigation,
.posts-navigation {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Comments Wrapper */
.comments-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gold);
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget-title {
    font-size: 1.1rem;
    color: var(--bright-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--cream);
    opacity: 0.9;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-email {
    color: var(--bright-gold) !important;
}

/* Site Logo & Branding */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title {
    font-size: 1.3rem;
}

.logo-icon {
    font-size: 1.5rem;
}

/* Shop Sidebar */
.shop-sidebar {
    margin-bottom: 2rem;
}

.widget_product_search {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
}

.widget_product_categories .product-categories {
    list-style: none;
    padding: 0;
}

.widget_product_categories .product-categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget_product_categories .product-categories li a {
    color: var(--dark-text);
}

.widget_product_categories .product-categories li a:hover {
    color: var(--primary-blue);
    padding-left: 0.5rem;
}

.widget_price_filter .price_slider {
    margin: 1rem 0;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Cart Counts */
.cart-count {
    background: var(--gold);
    color: var(--dark-text);
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 700;
}
