/*
Theme Name: Petit Chouïa
Theme URI: https://petitchouia.com
Author: Petit Chouïa
Author URI: https://petitchouia.com
Description: A playful, warm WooCommerce theme for Petit Chouïa - multicultural clothing brand celebrating Arabic and North African expressions.
Version: 1.0.0
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: petit-chouia
Tags: woocommerce, e-commerce, custom-colors, custom-logo, featured-images, rtl-language-support

Petit Chouïa WordPress Theme
Copyright 2024 Petit Chouïa
*/

/* ==========================================================================
   Design System - CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors - Primary Palette (from logo) */
    --yt-color-cream: #F5EFE0;
    --yt-color-cream-dark: #E8E0D0;
    --yt-color-cream-light: #FAF8F3;

    /* Colors - Accent (golden/camel tones) */
    --yt-color-gold: #D4A85C;
    --yt-color-gold-hover: #C49A4B;
    --yt-color-gold-light: #F5EBD5;

    /* Colors - Secondary (fez red) */
    --yt-color-red: #A63D2F;
    --yt-color-red-hover: #8C3326;
    --yt-color-red-light: #F2DDD9;

    /* Colors - Terracotta (border accents) */
    --yt-color-terracotta: #B86B4A;
    --yt-color-terracotta-dark: #9A5A3D;
    --yt-color-terracotta-light: #E8D0C4;

    /* Colors - Neutrals (navy from logo) */
    --yt-color-text: #2B3A4D;
    --yt-color-text-light: #5A6978;
    --yt-color-text-muted: #8A9AAA;
    --yt-color-white: #FFFFFF;
    --yt-color-black: #1A2430;

    /* Colors - Product Colors (for t-shirts) */
    --yt-product-mustard: #D4A85C;
    --yt-product-coral: #C4786A;
    --yt-product-sage: #8FAF7A;
    --yt-product-camel: #C9A86C;
    --yt-product-cream: #F5EFE0;
    --yt-product-navy: #2B3A4D;

    /* Legacy aliases for compatibility */
    --yt-color-yellow: var(--yt-color-gold);
    --yt-color-yellow-hover: var(--yt-color-gold-hover);
    --yt-color-yellow-light: var(--yt-color-gold-light);

    /* Typography */
    --yt-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --yt-font-display: 'DM Sans', var(--yt-font-primary);

    --yt-font-size-xs: 0.75rem;    /* 12px */
    --yt-font-size-sm: 0.875rem;   /* 14px */
    --yt-font-size-base: 1rem;     /* 16px */
    --yt-font-size-lg: 1.125rem;   /* 18px */
    --yt-font-size-xl: 1.25rem;    /* 20px */
    --yt-font-size-2xl: 1.5rem;    /* 24px */
    --yt-font-size-3xl: 1.875rem;  /* 30px */
    --yt-font-size-4xl: 2.25rem;   /* 36px */
    --yt-font-size-5xl: 3rem;      /* 48px */
    --yt-font-size-6xl: 3.75rem;   /* 60px */

    --yt-font-weight-normal: 400;
    --yt-font-weight-medium: 500;
    --yt-font-weight-semibold: 600;
    --yt-font-weight-bold: 700;

    --yt-line-height-tight: 1.2;
    --yt-line-height-normal: 1.5;
    --yt-line-height-relaxed: 1.75;

    /* Spacing */
    --yt-space-1: 0.25rem;   /* 4px */
    --yt-space-2: 0.5rem;    /* 8px */
    --yt-space-3: 0.75rem;   /* 12px */
    --yt-space-4: 1rem;      /* 16px */
    --yt-space-5: 1.25rem;   /* 20px */
    --yt-space-6: 1.5rem;    /* 24px */
    --yt-space-8: 2rem;      /* 32px */
    --yt-space-10: 2.5rem;   /* 40px */
    --yt-space-12: 3rem;     /* 48px */
    --yt-space-16: 4rem;     /* 64px */
    --yt-space-20: 5rem;     /* 80px */
    --yt-space-24: 6rem;     /* 96px */

    /* Border Radius */
    --yt-radius-sm: 0.375rem;   /* 6px */
    --yt-radius-md: 0.5rem;     /* 8px */
    --yt-radius-lg: 0.75rem;    /* 12px */
    --yt-radius-xl: 1rem;       /* 16px */
    --yt-radius-2xl: 1.5rem;    /* 24px */
    --yt-radius-full: 9999px;

    /* Shadows */
    --yt-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --yt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --yt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --yt-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --yt-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --yt-transition-fast: 150ms ease;
    --yt-transition-base: 200ms ease;
    --yt-transition-slow: 300ms ease;

    /* Layout */
    --yt-container-max: 1280px;
    --yt-container-padding: var(--yt-space-6);

    /* Z-index */
    --yt-z-dropdown: 100;
    --yt-z-sticky: 200;
    --yt-z-fixed: 300;
    --yt-z-modal-backdrop: 400;
    --yt-z-modal: 500;
    --yt-z-tooltip: 600;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--yt-font-primary);
    font-size: var(--yt-font-size-base);
    font-weight: var(--yt-font-weight-normal);
    line-height: var(--yt-line-height-normal);
    color: var(--yt-color-text);
    background-color: var(--yt-color-cream);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--yt-font-display);
    font-weight: var(--yt-font-weight-bold);
    line-height: var(--yt-line-height-tight);
    margin-top: 0;
    margin-bottom: var(--yt-space-4);
    color: var(--yt-color-text);
}

h1 {
    font-size: var(--yt-font-size-5xl);
}

h2 {
    font-size: var(--yt-font-size-4xl);
}

h3 {
    font-size: var(--yt-font-size-3xl);
}

h4 {
    font-size: var(--yt-font-size-2xl);
}

h5 {
    font-size: var(--yt-font-size-xl);
}

h6 {
    font-size: var(--yt-font-size-lg);
}

p {
    margin-top: 0;
    margin-bottom: var(--yt-space-4);
}

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

a:hover {
    color: var(--yt-color-yellow);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.yt-container {
    width: 100%;
    max-width: var(--yt-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--yt-container-padding);
    padding-right: var(--yt-container-padding);
}

.yt-section {
    padding-top: var(--yt-space-16);
    padding-bottom: var(--yt-space-16);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.yt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--yt-space-2);
    padding: var(--yt-space-3) var(--yt-space-6);
    font-family: var(--yt-font-primary);
    font-size: var(--yt-font-size-sm);
    font-weight: var(--yt-font-weight-semibold);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--yt-radius-full);
    cursor: pointer;
    transition: all var(--yt-transition-fast);
}

.yt-btn--primary {
    background-color: var(--yt-color-yellow);
    color: var(--yt-color-text);
}

.yt-btn--primary:hover {
    background-color: var(--yt-color-yellow-hover);
    color: var(--yt-color-text);
    transform: translateY(-1px);
}

.yt-btn--secondary {
    background-color: var(--yt-color-white);
    color: var(--yt-color-text);
    border: 1px solid var(--yt-color-cream-dark);
}

.yt-btn--secondary:hover {
    background-color: var(--yt-color-cream);
    color: var(--yt-color-text);
}

.yt-btn--outline {
    background-color: transparent;
    color: var(--yt-color-text);
    border: 2px solid var(--yt-color-text);
}

.yt-btn--outline:hover {
    background-color: var(--yt-color-text);
    color: var(--yt-color-white);
}

.yt-btn--lg {
    padding: var(--yt-space-4) var(--yt-space-8);
    font-size: var(--yt-font-size-base);
}

.yt-btn--sm {
    padding: var(--yt-space-2) var(--yt-space-4);
    font-size: var(--yt-font-size-xs);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.yt-card {
    background-color: var(--yt-color-white);
    border-radius: var(--yt-radius-xl);
    box-shadow: var(--yt-shadow-card);
    overflow: hidden;
    transition: all var(--yt-transition-base);
}

.yt-card:hover {
    box-shadow: var(--yt-shadow-lg);
    transform: translateY(-2px);
}

.yt-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--yt-color-cream);
}

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

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

.yt-card__content {
    padding: var(--yt-space-4);
}

.yt-card__title {
    font-size: var(--yt-font-size-sm);
    font-weight: var(--yt-font-weight-medium);
    margin-bottom: var(--yt-space-1);
}

.yt-card__price {
    font-size: var(--yt-font-size-sm);
    color: var(--yt-color-text-light);
}

/* ==========================================================================
   Pills / Tags
   ========================================================================== */

.yt-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--yt-space-2) var(--yt-space-4);
    font-size: var(--yt-font-size-sm);
    font-weight: var(--yt-font-weight-medium);
    border-radius: var(--yt-radius-full);
    background-color: var(--yt-color-cream-dark);
    color: var(--yt-color-text);
    transition: all var(--yt-transition-fast);
    cursor: pointer;
}

.yt-pill:hover,
.yt-pill--active {
    background-color: var(--yt-color-yellow-light);
    color: var(--yt-color-text);
}

.yt-pill--yellow {
    background-color: var(--yt-color-yellow-light);
}

/* ==========================================================================
   Size Selector
   ========================================================================== */

.yt-size-selector {
    display: flex;
    gap: var(--yt-space-2);
    flex-wrap: wrap;
}

.yt-size-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--yt-font-size-xs);
    font-weight: var(--yt-font-weight-medium);
    background-color: var(--yt-color-white);
    border: 1px solid var(--yt-color-cream-dark);
    border-radius: var(--yt-radius-full);
    cursor: pointer;
    transition: all var(--yt-transition-fast);
}

.yt-size-btn:hover {
    border-color: var(--yt-color-text);
}

.yt-size-btn--selected {
    background-color: var(--yt-color-text);
    color: var(--yt-color-white);
    border-color: var(--yt-color-text);
}

.yt-size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.yt-input {
    width: 100%;
    padding: var(--yt-space-3) var(--yt-space-4);
    font-family: var(--yt-font-primary);
    font-size: var(--yt-font-size-sm);
    color: var(--yt-color-text);
    background-color: var(--yt-color-white);
    border: 1px solid var(--yt-color-cream-dark);
    border-radius: var(--yt-radius-lg);
    transition: all var(--yt-transition-fast);
}

.yt-input:focus {
    outline: none;
    border-color: var(--yt-color-yellow);
    box-shadow: 0 0 0 3px var(--yt-color-yellow-light);
}

.yt-input::placeholder {
    color: var(--yt-color-text-muted);
}

.yt-label {
    display: block;
    font-size: var(--yt-font-size-sm);
    font-weight: var(--yt-font-weight-medium);
    margin-bottom: var(--yt-space-2);
    color: var(--yt-color-text);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.yt-text-center { text-align: center; }
.yt-text-left { text-align: left; }
.yt-text-right { text-align: right; }

.yt-mt-0 { margin-top: 0; }
.yt-mt-4 { margin-top: var(--yt-space-4); }
.yt-mt-8 { margin-top: var(--yt-space-8); }
.yt-mb-0 { margin-bottom: 0; }
.yt-mb-4 { margin-bottom: var(--yt-space-4); }
.yt-mb-8 { margin-bottom: var(--yt-space-8); }

.yt-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --yt-font-size-5xl: 2.25rem;
        --yt-font-size-4xl: 1.875rem;
        --yt-font-size-3xl: 1.5rem;
        --yt-container-padding: var(--yt-space-4);
    }

    .yt-section {
        padding-top: var(--yt-space-10);
        padding-bottom: var(--yt-space-10);
    }
}
