/*
Theme Name: Glogglz
Theme URI: https://glogglz.eu
Author: Glogglz
Author URI: https://glogglz.eu
Description: Custom surf & kitesurf themed webshop for Glogglz - Watersports & Sports Sunglasses. Built for speed and conversion with WooCommerce integration.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glogglz
Tags: e-commerce, woocommerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

Glogglz Theme - Victory-Ready Sports Sunglasses & Goggles
A blazing fast, conversion-optimized WooCommerce theme.
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */
:root {
    /* Primary Brand Colors - Glogglz Surf Yellow */
    --gl-brand: #FFD700;
    --gl-brand-light: #FFE44D;
    --gl-brand-dark: #E6C200;
    --gl-brand-rgb: 255, 215, 0;
    
    /* Surf Theme Base - Fresh & Airy */
    --gl-bg-primary: #FFFFFF;
    --gl-bg-secondary: #F0F9FF;
    --gl-bg-tertiary: #E0F2FE;
    --gl-surface: #FFFFFF;
    --gl-surface-elevated: #FFFFFF;
    --gl-border: #E0F2FE;
    --gl-border-light: #F0F9FF;
    
    /* Legacy dark theme vars (for backwards compatibility) */
    --gl-dark-bg: var(--gl-bg-primary);
    --gl-dark-surface: var(--gl-surface);
    --gl-dark-elevated: var(--gl-surface-elevated);
    --gl-dark-border: var(--gl-border);
    
    /* Neutral Colors - Optimized for light theme */
    --gl-white: #FFFFFF;
    --gl-gray-50: #F8F9FA;
    --gl-gray-100: #F1F5F9;
    --gl-gray-200: #E2E8F0;
    --gl-gray-300: #CBD5E1;
    --gl-gray-400: #94A3B8;
    --gl-gray-500: #64748B;
    --gl-gray-600: #475569;
    --gl-gray-700: #334155;
    --gl-gray-800: #1E293B;
    --gl-gray-900: #0F172A;
    --gl-black: #000000;
    
    /* Surf & Ocean Colors - Fresh & Vibrant */
    --gl-ocean: #06B6D4;
    --gl-ocean-light: #22D3EE;
    --gl-ocean-dark: #0891B2;
    --gl-ocean-deep: #0E7490;
    --gl-wave: #14B8A6;
    --gl-wave-light: #5EEAD4;
    --gl-turquoise: #2DD4BF;
    --gl-sand: #FFD700;
    --gl-sand-light: #FFE44D;
    --gl-sand-dark: #E6C200;
    --gl-sunset: #F97316;
    --gl-coral: #FB7185;
    
    /* Semantic Colors */
    --gl-success: #10B981;
    --gl-success-light: #34D399;
    --gl-warning: #F59E0B;
    --gl-error: #EF4444;
    --gl-info: #3B82F6;
    
    /* Surf Gradients */
    --gl-gradient-ocean: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --gl-gradient-wave: linear-gradient(135deg, #06B6D4 0%, #14B8A6 100%);
    --gl-gradient-sunset: linear-gradient(135deg, #F97316 0%, #FB7185 100%);
    --gl-gradient-surf: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 50%, #06B6D4 100%);
    
    /* Typography */
    --gl-font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --gl-font-mono: 'Courier New', Courier, monospace;
    
    /* Spacing */
    --gl-header-height: 80px;
    --gl-announcement-height: 44px;
    --gl-container-max: 1440px;
    --gl-container-padding: 24px;
    
    /* Transitions */
    --gl-transition-fast: 0.1s ease;
    --gl-transition-base: 0.2s ease;
    --gl-transition-slow: 0.3s ease;
    
    /* Shadows - Softer for light theme */
    --gl-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --gl-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    --gl-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
    --gl-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12);
    --gl-shadow-brand: 0 4px 14px 0 rgba(255, 215, 0, 0.25);
    --gl-shadow-ocean: 0 4px 14px 0 rgba(14, 165, 233, 0.2);
    
    /* Border Radius */
    --gl-radius-sm: 0.375rem;
    --gl-radius-md: 0.5rem;
    --gl-radius-lg: 0.75rem;
    --gl-radius-xl: 1rem;
    --gl-radius-2xl: 1.5rem;
    --gl-radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--gl-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gl-gray-700);
    background-color: var(--gl-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   THEME CONSISTENCY OVERRIDES
   ========================================================================== */
/* 
 * These styles ensure consistent light theme across the site.
 * Header should always be light; footer has intentional dark styling.
 */
.gl-header {
    background-color: var(--gl-white);
    color: var(--gl-gray-900);
}

.gl-header__action {
    color: var(--gl-gray-700);
}

.gl-header__action:hover {
    color: var(--gl-ocean);
}

/* Body state when cart/menu is open */
body.gl-cart-open,
body.gl-menu-open {
    overflow: hidden;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.2;
    color: var(--gl-gray-900);
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--gl-ocean);
    text-decoration: none;
    transition: color var(--gl-transition-base);
}

a:hover {
    color: var(--gl-brand);
}

strong, b {
    font-weight: 700;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.gl-container {
    width: 100%;
    max-width: var(--gl-container-max);
    margin: 0 auto;
    padding: 0 var(--gl-container-padding);
}

.gl-section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .gl-section {
        padding: 48px 0;
    }
    
    :root {
        --gl-container-padding: 16px;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--gl-font-sans);
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    text-decoration: none;
    border: none;
    border-radius: var(--gl-radius-xl);
    cursor: pointer;
    transition: all var(--gl-transition-base);
}

.gl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button - Surf Yellow */
.gl-btn--primary {
    background: var(--gl-brand);
    color: var(--gl-gray-900);
    box-shadow: var(--gl-shadow-md);
}

.gl-btn--primary:hover:not(:disabled) {
    background: var(--gl-brand-light);
    box-shadow: var(--gl-shadow-brand);
    transform: translateY(-2px);
}

/* Secondary Button - Ocean Blue */
.gl-btn--secondary {
    background: var(--gl-ocean);
    color: var(--gl-white);
    border: 1px solid var(--gl-ocean);
    box-shadow: var(--gl-shadow-ocean);
}

.gl-btn--secondary:hover:not(:disabled) {
    background: var(--gl-wave);
    border-color: var(--gl-wave);
    transform: translateY(-2px);
}

/* Outline Button */
.gl-btn--outline {
    background: transparent;
    color: var(--gl-brand);
    border: 2px solid var(--gl-brand);
}

.gl-btn--outline:hover:not(:disabled) {
    background: var(--gl-brand);
    color: var(--gl-gray-900);
    transform: translateY(-2px);
}

/* Ghost Button */
.gl-btn--ghost {
    background: transparent;
    color: var(--gl-gray-600);
}

.gl-btn--ghost:hover:not(:disabled) {
    color: var(--gl-brand);
    background: rgba(255, 215, 0, 0.15);
}

/* Button Sizes */
.gl-btn--sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.gl-btn--lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.gl-input,
.gl-select,
.gl-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--gl-font-sans);
    font-size: 1rem;
    color: var(--gl-gray-900);
    background: var(--gl-white);
    border: 1px solid var(--gl-border);
    border-radius: var(--gl-radius-lg);
    transition: all var(--gl-transition-base);
}

.gl-input:focus,
.gl-select:focus,
.gl-textarea:focus {
    outline: none;
    border-color: var(--gl-brand);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.gl-input::placeholder {
    color: var(--gl-gray-400);
}

.gl-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gl-gray-700);
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.gl-card {
    background: var(--gl-white);
    border: 1px solid var(--gl-border-light);
    border-radius: var(--gl-radius-2xl);
    overflow: hidden;
    transition: all var(--gl-transition-slow);
    box-shadow: var(--gl-shadow-sm);
}

.gl-card:hover {
    border-color: var(--gl-brand);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.gl-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gl-gray-100);
}

.gl-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--gl-transition-slow);
}

.gl-card:hover .gl-card__image img {
    transform: scale(1.05);
}

.gl-card__content {
    padding: 20px;
}

.gl-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gl-gray-900);
    margin-bottom: 8px;
    text-transform: none;
}

.gl-card__price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--gl-brand);
}

.gl-card__price del {
    color: var(--gl-gray-500);
    font-weight: 400;
    font-size: 0.875rem;
    margin-right: 8px;
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.gl-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--gl-radius-full);
}

.gl-badge--brand {
    background: var(--gl-brand);
    color: var(--gl-gray-900);
}

.gl-badge--sale {
    background: var(--gl-coral);
    color: var(--gl-white);
}

.gl-badge--new {
    background: var(--gl-brand);
    color: var(--gl-gray-900);
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gl-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gl-gray-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gl-brand);
}

/* ==========================================================================
   SELECTION
   ========================================================================== */
::selection {
    background: var(--gl-brand);
    color: var(--gl-gray-900);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.gl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gl-text-brand { color: var(--gl-brand); }
.gl-text-ocean { color: var(--gl-ocean); }
.gl-text-white { color: var(--gl-white); }
.gl-text-muted { color: var(--gl-gray-500); }

.gl-bg-primary { background: var(--gl-bg-primary); }
.gl-bg-secondary { background: var(--gl-bg-secondary); }
.gl-bg-surface { background: var(--gl-surface); }
.gl-bg-elevated { background: var(--gl-surface-elevated); }
.gl-bg-ocean { background: var(--gl-gradient-ocean); }
.gl-bg-wave { background: var(--gl-gradient-wave); }

.gl-uppercase { text-transform: uppercase; }
.gl-font-black { font-weight: 900; }
.gl-tracking-wide { letter-spacing: 0.025em; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes gl-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gl-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gl-fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gl-slide-in-right {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes gl-spin {
    to {
        transform: rotate(360deg);
    }
}

.gl-animate-fade-in {
    animation: gl-fade-in 0.3s ease;
}

.gl-animate-fade-in-up {
    animation: gl-fade-in-up 0.5s ease;
}

.gl-animate-fade-in-scale {
    animation: gl-fade-in-scale 0.3s ease;
}

/* ==========================================================================
   RESPONSIVE HELPERS (Utility Classes)
   ========================================================================== */
/* 
 * !important is INTENTIONALLY used for utility classes.
 * These are "immutable" utilities following ITCSS/utility-first methodology.
 * They must override any component styles to work as expected.
 */
@media (max-width: 1024px) {
    .gl-hide-tablet { display: none !important; }
}

@media (max-width: 768px) {
    .gl-hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .gl-show-mobile-only { display: none !important; }
}

@media (min-width: 1025px) {
    .gl-show-tablet-only { display: none !important; }
}

