/**
 * Decoria Theme Main Stylesheet
 * 
 * Contains the primary styling for the Decoria WooCommerce theme.
 * Additional styling can be found in component-specific CSS files.
 * 
 * @package Decoria
 * @since 1.0.0
 */

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #fff;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-secondary);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.decoria-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.decoria-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.decoria-col-1, .decoria-col-2, .decoria-col-3, .decoria-col-4, 
.decoria-col-5, .decoria-col-6, .decoria-col-8, .decoria-col-12 {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.decoria-col-1  { flex: 0 0 8.333%; }
.decoria-col-2  { flex: 0 0 16.666%; }
.decoria-col-3  { flex: 0 0 25%; }
.decoria-col-4  { flex: 0 0 33.333%; }
.decoria-col-5  { flex: 0 0 41.666%; }
.decoria-col-6  { flex: 0 0 50%; }
.decoria-col-8  { flex: 0 0 66.666%; }
.decoria-col-12 { flex: 0 0 100%; }

/* ============================================================
   HEADER
   ============================================================ */

.decoria-header {
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1000;
}

.decoria-header-sticky {
    position: sticky;
    top: 0;
}

.decoria-header-transparent {
    background-color: transparent;
    border-color: transparent;
}

.decoria-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.decoria-header-left {
    flex: 0 0 auto;
}

.decoria-header-center {
    flex: 1;
    margin: 0 2rem;
}

.decoria-header-right {
    flex: 0 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.decoria-nav-primary {
    display: flex;
    justify-content: center;
}

.decoria-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.decoria-menu a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.decoria-menu a:hover {
    color: var(--color-secondary);
}

/* ============================================================
   BUTTONS
   ============================================================ */

button, .btn, input[type="button"], input[type="submit"] {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover, .btn:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background-color: var(--color-secondary);
    color: #fff;
}

.btn-secondary {
    background-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
}

/* ============================================================
   FOOTER
   ============================================================ */

.decoria-footer {
    background-color: #f5f7fa;
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.decoria-footer-dark {
    background-color: var(--color-primary);
    color: #fff;
}

.decoria-footer-dark .decoria-footer-dark a {
    color: var(--color-secondary);
}

.decoria-footer-content {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.decoria-footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.decoria-main {
    min-height: 60vh;
    padding: 2rem 0;
}

.decoria-page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.decoria-page-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.decoria-page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================================
   ARTICLES & POSTS
   ============================================================ */

.decoria-article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.decoria-article:last-child {
    border-bottom: none;
}

.decoria-article-title {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.decoria-article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-lighter);
    margin-bottom: 1.5rem;
}

.decoria-article-image {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.decoria-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.decoria-read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.decoria-read-more:hover {
    background-color: var(--color-secondary);
}

/* ============================================================
   PRODUCTS
   ============================================================ */

.decoria-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.decoria-product {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.decoria-product:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.decoria-product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.decoria-product-content {
    padding: 1.5rem;
}

.decoria-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.decoria-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.decoria-product-rating {
    margin-bottom: 1rem;
}

.decoria-product-meta {
    font-size: 0.85rem;
    color: var(--color-text-lighter);
}

/* ============================================================
   SHOP
   ============================================================ */

.decoria-shop {
    background-color: #f5f7fa;
}

.decoria-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: var(--border-radius-lg);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.decoria-sidebar {
    background-color: #fff;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f5f7fa;
    border-radius: var(--border-radius-lg);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .decoria-col-1, .decoria-col-2, .decoria-col-3, .decoria-col-4, 
    .decoria-col-5, .decoria-col-6, .decoria-col-8, .decoria-col-12 {
        flex: 0 0 100%;
    }

    .decoria-header-container {
        flex-wrap: wrap;
    }

    .decoria-header-center {
        display: none;
    }

    .decoria-menu {
        flex-direction: column;
        gap: 0;
    }

    .decoria-products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .decoria-page-title {
        font-size: 2rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================================
   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;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #ddd;
    clip: auto;
    clip-path: none;
    color: #000;
    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;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 2rem; }
.p-4 { padding: 3rem; }
