/* ============================================
   TinyThrills.shop - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary: #E8724A;
    --primary-dark: #C85A35;
    --primary-light: #F5A58A;
    --secondary: #2D4A3E;
    --secondary-light: #4A7A6A;
    --accent: #F7C59F;
    --cream: #FDF8F3;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #E8E0D8;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: all 0.3s ease;
    --max-width: 1280px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}
.logo-tiny {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo-thrills {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}
.logo small {
    font-size: 10px;
    color: var(--text-lighter);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Main Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(232, 114, 74, 0.08);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: var(--transition);
    position: relative;
}
.icon-btn:hover { background: var(--cream); color: var(--primary); }
.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--border);
    gap: 4px;
}
.mobile-nav.open { display: flex !important; }
.mobile-nav a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.mobile-nav a:hover { color: var(--primary); background: var(--cream); }

/* ============================================
   CONTAINERS
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: 18px; }
h5 { font-size: 16px; }

.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 { color: var(--secondary); margin-bottom: 12px; }
.section-title p { color: var(--text-light); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 114, 74, 0.35);
}
.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--cream);
    transform: translateY(-1px);
}
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-full { width: 100%; }

/* ============================================
   PRODUCT CARD
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--cream);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-badge.sale { background: #E53E3E; }
.product-badge.new { background: var(--secondary); }

.product-card-body { padding: 16px; }
.product-card-category {
    font-size: 11px;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.product-card-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}
.product-card-name:hover { color: var(--primary); }

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.product-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-price-compare {
    font-size: 13px;
    color: var(--text-lighter);
    text-decoration: line-through;
    margin-left: 6px;
}

.add-to-cart-btn {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 114, 74, 0.15);
}
.form-control::placeholder { color: var(--text-lighter); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1.5px solid transparent;
}
.alert-success { background: #F0FFF4; border-color: #68D391; color: #276749; }
.alert-error { background: #FFF5F5; border-color: #FC8181; color: #C53030; }
.alert-info { background: #EBF8FF; border-color: #63B3ED; color: #2C5282; }
.alert-warning { background: #FFFAF0; border-color: #F6AD55; color: #744210; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.85); margin-top: 80px; }

.impact-bar {
    background: var(--primary);
    padding: 16px 24px;
}
.impact-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}
.impact-bar p { color: white; font-size: 14px; }
.impact-bar strong { color: white; }
.impact-bar a { color: white; font-weight: 700; text-decoration: underline; font-size: 14px; }

.footer-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-tiny,
.footer-brand .logo-thrills { color: white; font-size: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 20px; }

.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }
.payment-icons { display: flex; gap: 8px; }
.payment-icons span {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-light); }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-inner { padding: 0 16px; }
    .container { padding: 0 16px; }
    .section { padding: 40px 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
    .impact-bar-inner { flex-direction: column; gap: 8px; }
}
