/*
Theme Name: SillyDino Pro
Theme URI: https://yourdomain.com
Author: Your Company
Author URI: https://yourdomain.com
Description: A premium WooCommerce theme designed for e-commerce stores. Features modern design, mobile-first approach, and optimized for conversions. Perfect for selling products like the SillyDino plushies.
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: sillydino
Tags: e-commerce, woocommerce, responsive, mobile-first, modern, clean

SillyDino Pro WordPress Theme, Copyright 2026
SillyDino Pro is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 - Reset & Base Styles
2.0 - Typography
3.0 - Colors & Variables
4.0 - Layout
5.0 - Header
6.0 - Navigation
7.0 - Product Page
8.0 - Components
9.0 - Animations
10.0 - Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 - Reset & Base Styles
--------------------------------------------------------------*/

:root {
  /* Fonts */
  --font-body-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body-scale: 1.0;
  --font-heading-scale: 1.3;
  --font-heading-line-height: 1.3;
  --font-heading-letter-spacing: 0.06rem;
  
  /* Colors */
  --color-base-text: 0, 0, 0;
  --color-shadow: 0, 0, 0;
  --color-base-background-1: 255, 255, 255;
  --color-base-background-2: 243, 243, 243;
  --color-base-solid-button-labels: 255, 255, 255;
  --color-base-outline-button-labels: 0, 0, 0;
  --color-base-accent-1: 167, 199, 231;
  --color-base-accent-2: 83, 175, 1;
  
  /* Spacing */
  --page-width: 140rem;
  --spacing-sections-desktop: 0px;
  --spacing-sections-mobile: 0px;
  --grid-desktop-horizontal-spacing: 40px;
  --grid-mobile-horizontal-spacing: 20px;
  
  /* Border Radius */
  --media-radius: 12px;
  --buttons-radius: 6px;
  --variant-pills-radius: 40px;
  
  /* Animations */
  --animation-duration: 650ms;
  --init-delay: 150ms;
  --child-delay: 150ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: calc(var(--font-body-scale) * 62.5%);
  height: 100%;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
  font-family: var(--font-body-family);
  font-weight: 400;
  color: rgb(var(--color-base-text));
  background-color: rgb(var(--color-base-background-1));
}

@media screen and (min-width: 750px) {
  body {
    font-size: 1.6rem;
  }
}

/*--------------------------------------------------------------
2.0 - Typography
--------------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body-family);
  font-weight: 700;
  line-height: var(--font-heading-line-height);
  letter-spacing: var(--font-heading-letter-spacing);
  margin: 0 0 1.5rem 0;
}

h1 {
  font-size: calc(2.4rem * var(--font-heading-scale));
}

h2 {
  font-size: calc(2.0rem * var(--font-heading-scale));
}

h3 {
  font-size: calc(1.8rem * var(--font-heading-scale));
}

p {
  margin: 0 0 1.5rem 0;
}

a {
  color: rgb(var(--color-base-text));
  text-decoration: none;
  transition: opacity 200ms ease;
}

a:hover {
  opacity: 0.8;
}

/*--------------------------------------------------------------
3.0 - Colors & Variables
--------------------------------------------------------------*/

.accent-color-accent-1 {
  color: rgb(var(--color-base-accent-1));
}

.accent-color-accent-2 {
  color: rgb(var(--color-base-accent-2));
}

.accent-color-text {
  color: rgb(var(--color-base-text));
}

.color-inverse {
  background-color: #ff4757;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
}

/*--------------------------------------------------------------
4.0 - Layout
--------------------------------------------------------------*/

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media screen and (min-width: 750px) {
  .page-width {
    padding: 0 4rem;
  }
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/*--------------------------------------------------------------
5.0 - Header
--------------------------------------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgb(var(--color-base-background-1));
  border-bottom: 1px solid rgba(var(--color-base-text), 0.1);
  padding: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo a {
  display: flex;
  align-items: center;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgb(var(--color-base-text));
}

/*--------------------------------------------------------------
6.0 - Navigation
--------------------------------------------------------------*/

.main-navigation {
  display: none;
}

@media screen and (min-width: 990px) {
  .main-navigation {
    display: flex;
    gap: 3rem;
  }
  
  .main-navigation a {
    font-weight: 500;
    transition: color 200ms ease;
  }
  
  .main-navigation a:hover {
    color: rgb(var(--color-base-accent-2));
  }
}

/*--------------------------------------------------------------
7.0 - Product Page
--------------------------------------------------------------*/

.single-product .product {
  display: grid;
  gap: 4rem;
  margin: 4rem 0;
}

@media screen and (min-width: 990px) {
  .single-product .product {
    grid-template-columns: 55% 45%;
    gap: 6rem;
  }
}

/* Product Images */
.woocommerce-product-gallery {
  position: relative;
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce-product-gallery__image {
  margin: 0 0 1rem 0;
}

.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  border-radius: var(--media-radius);
}

/* Product Info */
.product__info-wrapper {
  position: sticky;
  top: calc(var(--header-height, 65px) + 2rem);
  height: fit-content;
}

/*--------------------------------------------------------------
8.0 - Components
--------------------------------------------------------------*/

/* Buttons */
.button,
button[type="submit"],
.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: var(--buttons-radius);
  background: rgb(var(--color-base-accent-2));
  color: rgb(var(--color-base-solid-button-labels));
  cursor: pointer;
  transition: all 200ms ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.button:hover,
.single_add_to_cart_button:hover {
  background: rgba(var(--color-base-accent-2), 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-base-accent-2), 0.3);
}

.button:active,
.single_add_to_cart_button:active {
  transform: scale(0.98);
}

.button--full-width {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.color-accent-2 {
  background: rgb(var(--color-base-accent-2));
  color: white;
}

/*--------------------------------------------------------------
9.0 - Animations
--------------------------------------------------------------*/

.animate-section {
  --animation-duration: 650ms;
  --init-delay: 150ms;
  --child-delay: 150ms;
}

.animate-section.animate--hidden .animate-item {
  opacity: 0;
  filter: blur(1px);
  transform: translateY(20px);
}

.animate-section.animate--shown .animate-item {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: 
    opacity var(--animation-duration) var(--init-delay),
    filter var(--animation-duration) var(--init-delay),
    transform var(--animation-duration) var(--init-delay);
}

.animate-section.animate--shown .animate-item.animate-item--child {
  transition-delay: calc(var(--init-delay) + (var(--child-delay) * var(--index)));
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------------------------------------------
10.0 - Responsive
--------------------------------------------------------------*/

@media screen and (max-width: 749px) {
  body {
    font-size: 1.5rem;
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  .page-width,
  .container {
    padding: 0 1.5rem;
  }
  
  .single-product .product {
    gap: 2rem;
  }
}

/* Hide elements */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}
