/**
 * Main stylesheet for Relayout Shop theme
 */

/* Variables */
:root {
    --primary-color: #0073aa;
    --secondary-color: #23282d;
    --accent-color: #f7a700;
    --text-color: #333;
    --light-gray: #f8f8f8;
    --medium-gray: #ddd;
    --dark-gray: #666;
    --white: #fff;
    --black: #000;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
}

/* Reset */
html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0 0 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--secondary-color);
}

p {
    margin: 0 0 1.5rem;
}

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

a:hover {
    color: var(--accent-color);
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: relative;
}

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

.site-branding {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--secondary-color);
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.custom-logo-link {
    margin-right: 15px;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 10px 15px;
    color: var(--secondary-color);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    align-items: center;
}

.menu-toggle-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: var(--secondary-color);
    position: relative;
    margin-right: 10px;
}

.menu-toggle-icon:before,
.menu-toggle-icon:after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.menu-toggle-icon:before {
    top: -6px;
}

.menu-toggle-icon:after {
    bottom: -6px;
}

/* Header Cart */
.site-header-cart {
    position: relative;
    margin-left: 20px;
}

.cart-contents {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 500;
}

.cart-contents:before {
    content: '\f07a';
    font-family: 'FontAwesome';
    margin-right: 8px;
    font-size: 1.2rem;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 999;
    display: none;
}

.site-header-cart:hover .cart-dropdown {
    display: block;
}

/* Content Area */
.site-main {
    padding: 40px 0;
}

.site-main .container {
    display: flex;
    flex-wrap: wrap;
}

.content-area {
    width: 70%;
    padding-right: 30px;
}

.widget-area {
    width: 30%;
}

.no-sidebar .content-area {
    width: 100%;
    padding-right: 0;
}

/* Posts */
.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.entry-meta {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.entry-meta a {
    color: var(--dark-gray);
}

.entry-meta a:hover {
    color: var(--primary-color);
}

.entry-content {
    margin-bottom: 30px;
}

.entry-footer {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.cat-links,
.tags-links,
.comments-link,
.edit-link {
    display: block;
    margin-bottom: 5px;
}

.post-thumbnail {
    margin-bottom: 20px;
}

.read-more-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 3px;
    font-weight: 500;
    margin-top: 10px;
}

.read-more-link:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--medium-gray);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

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

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--medium-gray);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author .avatar {
    margin-right: 15px;
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.comment-content {
    margin-bottom: 10px;
}

.reply {
    font-size: 0.9rem;
}

.comment-respond {
    margin-top: 30px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 3px;
    margin-bottom: 15px;
}

.comment-form input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--accent-color);
}

/* Widgets */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--medium-gray);
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--medium-gray);
}

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

/* Footer */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
}

.footer-widget-area {
    width: 25%;
    padding: 0 15px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget .widget-title {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-widget a {
    color: var(--medium-gray);
}

.footer-widget a:hover {
    color: var(--white);
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-navigation {
    margin-top: 15px;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-navigation li {
    margin: 0 10px;
}

.footer-navigation a {
    color: var(--medium-gray);
}

.footer-navigation a:hover {
    color: var(--white);
}

/* Responsive */
@media screen and (max-width: 991px) {
    .content-area,
    .widget-area {
        width: 100%;
        padding-right: 0;
    }
    
    .widget-area {
        margin-top: 40px;
    }
    
    .footer-widget-area {
        width: 50%;
    }
}

@media screen and (max-width: 767px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-branding {
        margin-bottom: 15px;
    }
    
    .main-navigation {
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }
    
    .primary-menu-container {
        display: none;
        width: 100%;
    }
    
    .main-navigation.toggled .primary-menu-container {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        border-top: 1px solid var(--medium-gray);
    }
    
    .site-header-cart {
        margin: 15px 0 0;
    }
    
    .footer-widget-area {
        width: 100%;
    }
}

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

.skip-link {
    left: -9999rem;
    top: 2.5rem;
    z-index: 999999999;
    text-decoration: underline;
}

.skip-link:focus {
    left: 0.5rem;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 23px 14px;
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
    z-index: 999999999;
}
