/*
Theme Name: OwnOVR Theme
Theme URI: https://ownovr.com
Author: OwnOVR
Author URI: https://ownovr.com
Description: Vintage Modern WooCommerce theme for luxury vintage fashion
Version: 1.0.5
Requires at least: 6.0
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: ownovr-theme
Tags: e-commerce, woocommerce, minimal, fashion
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Vintage Modern Color Palette */
    --color-bg: #faf8f5;
    --color-bg-alt: #f5f2ed;
    --color-text: #1a1a1a;
    --color-text-light: #6b6b6b;
    --color-border: #d4cfc7;
    --color-border-light: #e8e4dd;
    --color-hover: #ebe7e0;
    --color-accent: #c9a96e;
    --color-accent-dark: #a88b5a;
    --color-vintage: #8b7355;
    
    /* Typography */
    --font-primary: "SF Mono", SFMono-Regular, ui-monospace, "Roboto Mono", "Courier New", monospace;
    --font-serif: "Playfair Display", Georgia, serif;
    --font-fallback: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "tnum", "zero";
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.site-main {
    flex: 1;
    width: 100%;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    outline: none !important;
}

a:hover {
    color: var(--color-accent-dark);
    outline: none !important;
}

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

/* Button styles moved to assets/css/components.css */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Single Product hard container (in case Woo renders without .container) */
body.single-product main.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Top Banner */
.top-banner {
    background: var(--color-text);
    color: var(--color-bg);
    border-bottom: 2px solid var(--color-accent);
    padding: var(--spacing-xs) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.top-banner p {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* Navigation styles moved to assets/css/navigation.css */

/* Shop styles moved to assets/css/shop.css */

/* Single product styles moved to assets/css/single-product.css */

/* Static pages styles moved to assets/css/pages.css */

/* 404 and static pages styles moved to assets/css/pages.css */

/* Cart styles moved to assets/css/cart.css */

/* Checkout styles moved to assets/css/checkout.css */

/* Search styles moved to assets/css/search.css */

/* Footer styles moved to assets/css/footer.css */

.payment-secure {
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: var(--spacing-sm);
}

.payment-secure svg {
    flex-shrink: 0;
}

.edev-badge {
    display: inline-flex;
    align-items: center;
    margin-top: var(--spacing-sm);
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.edev-badge:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.edev-badge svg {
    display: block;
}

/* Global focus styles: remove hard outline and make soft focus */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 1px dashed var(--color-text);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-container {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .single-product-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .product-details {
        position: static;
    }
    
    .product-details-sticky {
        position: static;
    }
    
    .product-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-newsletter {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }
    
    .header-center {
        order: 3;
        grid-column: 1 / -1;
        margin-top: var(--spacing-sm);
    }
    
    .main-navigation ul {
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: 1fr;
    }
    
    .top-banner p {
        font-size: 10px;
    }
    
    .header-inner {
        grid-template-columns: 1fr;
    }
    
    .site-logo {
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
}
