/*
Theme Name: Kashmir Pages
Theme URI: https://kashmirpages.com
Author: Kashmir Pages
Author URI: https://kashmirpages.com
Description: A Vogue-inspired editorial theme for Kashmir literature, culture, and art. Features elegant typography, warm Kashmiri colors, and modern magazine-style layouts.
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: kashmir-pages
Tags: blog, news, entertainment, one-column, two-columns, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, post-formats, rtl-language-support, theme-options, translation-ready

Kashmir Pages - Pages from Paradise, Stories from the Soul.
*/

/* ========================================
   CSS Variables - Kashmiri Color Palette
   ======================================== */
:root {
    /* Primary Colors */
    --kp-chinar-red: #9F1239;
    --kp-saffron-gold: #D97706;
    --kp-walnut-brown: #78350F;
    --kp-paper-cream: #FFFCF8;
    
    /* Neutral Colors */
    --kp-foreground: #1C1917;
    --kp-muted: #E7E5E4;
    --kp-muted-foreground: #78716C;
    --kp-border: #D6D3D1;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;
    
    /* Spacing */
    --container-width: 1280px;
    --section-padding: 6rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--kp-foreground);
    background-color: var(--kp-paper-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--kp-chinar-red);
}

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

/* Selection */
::selection {
    background: rgba(159, 18, 57, 0.2);
    color: var(--kp-chinar-red);
}

/* ========================================
   Typography
   ======================================== */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-accent { font-family: var(--font-accent); }

.text-primary { color: var(--kp-chinar-red); }
.text-secondary { color: var(--kp-saffron-gold); }
.text-muted { color: var(--kp-muted-foreground); }

.tracking-widest {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ========================================
   Layout & Container
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section {
    padding: var(--section-padding) 0;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s ease;
}

.site-header.scrolled {
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(214, 211, 209, 0.4);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
}

.site-logo span {
    color: var(--kp-chinar-red);
}

/* Main Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-navigation a {
    position: relative;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--kp-foreground);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--kp-chinar-red);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icons a {
    padding: 0.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kp-paper-cream);
    border-bottom: 1px solid var(--kp-border);
    padding: 2rem 1.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(28, 25, 23, 0.4), 
        rgba(28, 25, 23, 0.2) 50%, 
        rgba(28, 25, 23, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 64rem;
    padding: 0 1.5rem;
}

.hero-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.hero-description {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    animation: fadeIn 0.5s ease-out 0.2s both;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--kp-foreground);
    padding: 1rem 2rem;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out 0.3s both;
}

.hero-button:hover {
    background: var(--kp-chinar-red);
    color: white;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--kp-chinar-red);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
}

/* ========================================
   Category Highlights
   ======================================== */
.category-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
    filter: sepia(0.1) saturate(1.1);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(28, 25, 23, 0.9), 
        rgba(28, 25, 23, 0.3) 50%, 
        transparent);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
}

.category-card-icon {
    color: var(--kp-saffron-gold);
    margin-bottom: 1rem;
}

.category-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Article Cards
   ======================================== */
.articles-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

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

.article-card {
    display: block;
}

.article-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 1rem;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
    filter: grayscale(20%);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.article-card-category {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--kp-chinar-red);
    margin-bottom: 0.75rem;
}

.article-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.article-card:hover .article-card-title {
    color: var(--kp-chinar-red);
}

.article-card-excerpt {
    color: var(--kp-muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--kp-muted-foreground);
}

/* Featured Article Card */
.article-card-featured {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
}

@media (min-width: 768px) {
    .article-card-featured {
        aspect-ratio: 3/4;
        grid-column: span 2;
        grid-row: span 2;
    }
}

.article-card-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
}

.article-card-featured:hover img {
    transform: scale(1.05);
}

.article-card-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(28, 25, 23, 0.8), 
        rgba(28, 25, 23, 0.2) 50%, 
        transparent);
}

.article-card-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
}

@media (min-width: 768px) {
    .article-card-featured-content {
        padding: 3rem;
    }
}

.article-card-featured .article-card-category {
    color: var(--kp-saffron-gold);
}

.article-card-featured .article-card-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: white;
}

.article-card-featured .article-card-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

.article-card-featured .article-card-meta {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Bento Grid Layout
   ======================================== */
.bento-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    
    .bento-large {
        grid-column: span 8;
        grid-row: span 2;
    }
    
    .bento-medium {
        grid-column: span 4;
    }
}

/* ========================================
   Quote Section
   ======================================== */
.quote-section {
    background: var(--kp-chinar-red);
    color: white;
    padding: var(--section-padding) 0;
    text-align: center;
}

.quote-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.5;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.quote-author {
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    background: rgba(159, 18, 57, 0.05);
    padding: var(--section-padding) 0;
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 36rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-input {
    flex: 1;
    height: 3.5rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    border: 1px solid var(--kp-border);
    background: white;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--kp-chinar-red);
}

.newsletter-button {
    height: 3.5rem;
    padding: 0 2rem;
    background: var(--kp-chinar-red);
    color: white;
    border: none;
    font-family: var(--font-serif);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-button:hover {
    background: #7F1D2A;
}

/* ========================================
   Single Article
   ======================================== */
.single-article {
    padding-top: 6rem;
}

.article-header {
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

@media (min-width: 768px) {
    .article-header {
        padding: 3rem 3rem;
    }
}

.breadcrumb {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--kp-muted-foreground);
    margin-bottom: 2rem;
}

.breadcrumb a:hover {
    color: var(--kp-chinar-red);
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.article-header-category {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--kp-chinar-red);
    margin-bottom: 1rem;
}

.article-header-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.article-header-excerpt {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--kp-muted-foreground);
    margin-bottom: 2rem;
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--kp-muted-foreground);
    padding: 1rem 0;
    border-top: 1px solid var(--kp-border);
    border-bottom: 1px solid var(--kp-border);
}

.article-featured-image {
    max-width: 72rem;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.article-featured-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: sepia(0.1) saturate(1.1);
}

/* Article Content */
.article-content {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .article-content {
        padding: 0 3rem;
    }
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(28, 25, 23, 0.9);
}

.article-content p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--kp-chinar-red);
}

.article-content blockquote {
    border-left: 4px solid var(--kp-chinar-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.25rem;
}

.article-content a {
    color: var(--kp-chinar-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    margin: 2rem 0;
    width: 100%;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.article-tags a {
    padding: 0.5rem 1rem;
    background: var(--kp-muted);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--kp-chinar-red);
    color: white;
}

/* Share Section */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--kp-border);
}

.article-share-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--kp-muted-foreground);
}

.article-share a {
    padding: 0.5rem;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    background: rgba(231, 229, 228, 0.3);
    padding: 2rem;
    margin-top: 3rem;
}

.author-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--kp-chinar-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: var(--kp-muted-foreground);
    margin-bottom: 1rem;
}

.author-link {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--kp-chinar-red);
}

/* ========================================
   Archive & Category Pages
   ======================================== */
.archive-header {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.archive-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.archive-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.6);
}

.archive-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 1.5rem;
}

.archive-header-content .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
}

.archive-header-content .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.archive-header-content .breadcrumb a:hover {
    color: white;
}

.archive-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto;
}

.archive-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--kp-foreground);
    color: white;
    padding: 4rem 0;
}

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

.footer-brand {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 0.9;
    margin-bottom: 3rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.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);
}

.footer-tagline {
    margin-top: 0.5rem;
}

/* ========================================
   Sidebar & Widgets
   ======================================== */
.sidebar {
    padding: 2rem 0;
}

.widget {
    margin-bottom: 3rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--kp-chinar-red);
}

/* ========================================
   Comments
   ======================================== */
.comments-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--kp-border);
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--kp-border);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--kp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.comment-author-name {
    font-weight: 500;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--kp-muted-foreground);
}

.comment-content {
    color: rgba(28, 25, 23, 0.9);
}

/* Comment Form */
.comment-form {
    margin-top: 3rem;
}

.comment-form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--kp-border);
    background: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--kp-chinar-red);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form button {
    background: var(--kp-chinar-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comment-form button:hover {
    background: #7F1D2A;
}

/* ========================================
   Shop / WooCommerce Overrides
   ======================================== */
.shop-header {
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--kp-border);
    margin-top: 80px;
}

.products-grid {
    display: grid;
    gap: 2rem;
    padding: 4rem 0;
}

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

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

.product-card {
    position: relative;
}

.product-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-category {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--kp-muted-foreground);
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 500;
}

.product-price del {
    color: var(--kp-muted-foreground);
    margin-left: 0.5rem;
}

.product-stock {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.product-stock.in-stock {
    color: #059669;
}

.product-stock.out-of-stock {
    color: #DC2626;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 4rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--kp-border);
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--kp-chinar-red);
}

.pagination .current {
    background: var(--kp-chinar-red);
    color: white;
    border-color: var(--kp-chinar-red);
}

/* ========================================
   Utility Classes
   ======================================== */
.bg-muted {
    background: rgba(231, 229, 228, 0.3);
}

.border-b {
    border-bottom: 1px solid var(--kp-border);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md-block {
        display: block;
    }
    
    .md-flex {
        display: flex;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   WordPress Specific
   ======================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

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

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

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--kp-muted-foreground);
    text-align: center;
    margin-top: 0.5rem;
}

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

/* Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
