/*
Theme Name: Nayino
Theme URI: https://nayino.com.tr
Author: Nayino
Author URI: https://nayino.com.tr
Description: Premium çay e-ticaret teması
Version: 1.0.0
Text Domain: nayino
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.brand-primary {
    color: #6b8e23;
}

.bg-brand-primary {
    background-color: #6b8e23;
}

.hover\:bg-brand-primary-dark:hover {
    background-color: #556b1f;
}

.brand-secondary {
    color: #a1cb3a;
}

.bg-brand-secondary {
    background-color: #a1cb3a;
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-image-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/* Drawer Styles */
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.drawer.active {
    right: 0;
}

.drawer > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Ensure drawer content areas are scrollable */
.drawer #account-content,
.drawer #cart-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-quantity-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-weight: 600;
}

.cart-item-quantity-input:focus {
    outline: none;
    border-color: #6b8e23;
    box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2);
}

/* Product Long Description Styles */
.product-long-description {
    line-height: 1.8;
}

.product-long-description h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-long-description h2:first-child {
    margin-top: 0;
}

.product-long-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.product-long-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.product-long-description ul,
.product-long-description ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.product-long-description ul {
    list-style-type: disc;
}

.product-long-description ol {
    list-style-type: decimal;
}

.product-long-description li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.product-long-description ul ul,
.product-long-description ol ol,
.product-long-description ul ol,
.product-long-description ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-long-description strong {
    font-weight: 600;
    color: #111827;
}

.product-long-description em {
    font-style: italic;
}

.product-long-description a {
    color: #6b8e23;
    text-decoration: underline;
}

.product-long-description a:hover {
    color: #556b1f;
}

/* General Content Styles for Single and Page Templates */
.entry-content,
.wp-content {
    line-height: 1.8;
    color: #374151;
}

.entry-content h1,
.wp-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.entry-content h1:first-child,
.wp-content h1:first-child {
    margin-top: 0;
}

.entry-content h2,
.wp-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-content h2:first-child,
.wp-content h2:first-child {
    margin-top: 0;
}

.entry-content h3,
.wp-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.entry-content h4,
.wp-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.entry-content h5,
.wp-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.entry-content h6,
.wp-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.entry-content p,
.wp-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #374151;
}

.entry-content ul,
.entry-content ol,
.wp-content ul,
.wp-content ol {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.entry-content ul,
.wp-content ul {
    list-style-type: disc;
}

.entry-content ol,
.wp-content ol {
    list-style-type: decimal;
}

.entry-content li,
.wp-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #374151;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul,
.wp-content ul ul,
.wp-content ol ol,
.wp-content ul ol,
.wp-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.entry-content ul ul,
.wp-content ul ul {
    list-style-type: circle;
}

.entry-content ul ul ul,
.wp-content ul ul ul {
    list-style-type: square;
}

.entry-content strong,
.wp-content strong {
    font-weight: 600;
    color: #111827;
}

.entry-content em,
.wp-content em {
    font-style: italic;
}

.entry-content a,
.wp-content a {
    color: #6b8e23;
    text-decoration: underline;
}

.entry-content a:hover,
.wp-content a:hover {
    color: #556b1f;
}

.entry-content blockquote,
.wp-content blockquote {
    border-left: 4px solid #6b8e23;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
}

.entry-content code,
.wp-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #111827;
    font-family: 'Courier New', monospace;
}

.entry-content pre,
.wp-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code,
.wp-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.entry-content img,
.wp-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.entry-content table,
.wp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content table th,
.entry-content table td,
.wp-content table th,
.wp-content table td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.entry-content table th,
.wp-content table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.entry-content hr,
.wp-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

