/* Main CSS file for Advanced WP Theme */

/* 
 * This file contains custom styles for the theme
 * Bootstrap styles are loaded from assets/css/bootstrap.min.css
 */

/* General Styles */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
}

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

a:hover {
    text-decoration: underline;
}

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

/* Header Styles */
.site-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.has-sticky-header .site-header {
    position: sticky;
    top: 0;
    background-color: #fff;
}

.admin-bar.has-sticky-header .site-header {
    top: 32px;
}

.site-branding {
    padding: 10px 0;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.site-title a {
    color: #333;
}

.site-description {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.main-navigation {
    display: flex;
    justify-content: flex-end;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    color: var(--bs-primary);
}

.menu-toggle {
    display: none;
}

@media (max-width: 767.98px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
}

/* Content Styles */
.site-content {
    min-height: 500px;
}

.page-title {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-meta {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.post-author {
    margin-bottom: 0.5rem;
}

.post-categories {
    margin-bottom: 0.5rem;
}

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

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

.entry-content h1, 
.entry-content h2, 
.entry-content h3, 
.entry-content h4, 
.entry-content h5, 
.entry-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

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

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

.entry-content blockquote {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--bs-primary);
    background-color: rgba(0,0,0,0.05);
}

.entry-footer {
    color: #6c757d;
    font-size: 0.875rem;
}

.post-navigation {
    margin: 2rem 0;
}

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

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 0 0 48%;
}

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

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
}

.post-navigation .nav-title {
    font-weight: 700;
}

/* Comments Styles */
.comments-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.comments-title {
    margin-bottom: 1.5rem;
}

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

.comment-list ol {
    list-style: none;
    padding-left: 2.5rem;
}

.comment-body {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.comment-meta {
    margin-bottom: 0.5rem;
}

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

.comment-author .avatar {
    margin-right: 0.5rem;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.75rem;
    color: #6c757d;
}

.comment-content {
    margin-top: 0.5rem;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 0.5rem;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.25rem;
}

.form-submit {
    margin-top: 1rem;
}

/* Sidebar Styles */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

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

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

/* Footer Styles */
.site-footer {
    background-color: #212529;
    color: #fff;
}

.site-footer a {
    color: rgba(255,255,255,0.8);
}

.site-footer a:hover {
    color: #fff;
}

.footer-widget-area {
    margin-bottom: 1.5rem;
}

.footer-widget-area .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.1);
}

.footer-widget-area .widget li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.site-info {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Pagination Styles */
.pagination {
    margin: 2rem 0;
}

.page-numbers {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.25rem;
}

.page-numbers.current {
    background-color: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

/* Accessibility Styles */
.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: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background-color: #f1f1f1;
    padding: 10px;
    z-index: 999;
}

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

/* WooCommerce Styles */
.woocommerce-page .site-main {
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.woocommerce-result-count,
.woocommerce-ordering {
    margin-bottom: 1.5rem;
}

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px 30px;
    padding: 0;
}

@media (max-width: 991.98px) {
    .woocommerce ul.products li.product {
        flex: 0 0 calc(50% - 30px);
    }
}

@media (max-width: 575.98px) {
    .woocommerce ul.products li.product {
        flex: 0 0 calc(100% - 30px);
    }
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.woocommerce ul.products li.product .price {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.woocommerce ul.products li.product .button {
    margin-top: 0.5rem;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    margin-bottom: 2rem;
}

.woocommerce div.product .product_title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.woocommerce div.product p.price {
    color: #6c757d;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.woocommerce div.product form.cart {
    margin-bottom: 2rem;
}

.woocommerce div.product form.cart div.quantity {
    margin-right: 1rem;
}

.woocommerce .quantity .qty {
    width: 5rem;
    padding: 0.5rem;
}

.woocommerce div.product .woocommerce-tabs {
    margin-bottom: 2rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #6c757d;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #333;
    border-bottom: 2px solid var(--bs-primary);
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
    float: right;
    width: 48%;
}

@media (max-width: 767.98px) {
    .woocommerce .cart-collaterals .cart_totals,
    .woocommerce-page .cart-collaterals .cart_totals {
        float: none;
        width: 100%;
    }
}

/* Elementor Compatibility */
.elementor-page .site-content {
    padding: 0;
}

.elementor-page .site-main {
    max-width: none;
    padding: 0;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-description {
        font-size: 0.75rem;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
    }
    
    .entry-title {
        font-size: 1.25rem;
    }
    
    .entry-meta {
        font-size: 0.75rem;
    }
}
