/*
Theme Name: Serva
Theme URI: https://example.com/serva
Author: Your Name
Author URI: https://example.com
Description: A modern RTL e-commerce WordPress theme with WooCommerce integration. Features a beautiful Persian/Farsi design with full RTL support, Redux Framework admin panel, and comprehensive WooCommerce compatibility.
Version: 1.0.0
Requires at least: 5.9
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: serva
Domain Path: /languages
Tags: e-commerce, rtl-language-support, custom-logo, custom-menu, featured-images, theme-options, translation-ready, woocommerce

This theme is licensed under the GPL.
*/

/* 
 * Note: Most styles are handled via Tailwind CSS.
 * This file contains WordPress-specific overrides and custom styles.
 */

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers */
.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Block Editor Styles */
.wp-block-button__link {
    background-color: var(--serva-primary, #3B82F6);
    color: #fff;
}

.wp-block-button__link:hover {
    background-color: var(--serva-primary-dark, #2563EB);
}

/* Sticky Post */
.sticky {
    position: relative;
}

.sticky::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--serva-primary, #3B82F6) transparent transparent;
}

/* Gallery */
.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

/* CSS Custom Properties for Theme Colors */
:root {
    --serva-primary: #3B82F6;
    --serva-primary-dark: #2563EB;
    --serva-secondary: #10B981;
    --serva-accent: #F59E0B;
    --serva-dark: #1F2937;
    --serva-gray: #6B7280;
    --serva-light: #F3F4F6;
}

/* Admin Bar Fix */
body.admin-bar .sticky-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sticky-header {
        top: 46px;
    }
}

/* WooCommerce Overrides - Basic */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 0.5rem;
}

.woocommerce-message {
    border-top-color: var(--serva-secondary);
}

.woocommerce-message::before {
    color: var(--serva-secondary);
}

.woocommerce-info {
    border-top-color: var(--serva-primary);
}

.woocommerce-info::before {
    color: var(--serva-primary);
}

.woocommerce-error {
    border-top-color: #EF4444;
}

.woocommerce-error::before {
    color: #EF4444;
}





