/*
Theme Name: Winkflo
Theme URI: https://winkflo.com
Author: Winkflo Team
Author URI: https://winkflo.com
Description: A beautiful, modern pet care e-commerce theme with WooCommerce integration
Version: 1.0.0
Requires at least: 5.8
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: winkflo
Tags: e-commerce, woocommerce, pets, animals, shop, responsive, mobile-friendly

This theme, like WordPress, is licensed under the GPL.
*/

/* ===================================
   CSS Variables (Based on Winkflo Official Theme)
   Reference: https://winkflo.com/cdn/shop/t/30/assets/theme.css
   =================================== */
:root {
  /* Winkflo Official Colors */
  --colorBtnPrimary: rgba(0, 0, 0, 0);
  --colorBtnPrimaryLight: rgba(26, 26, 26, 0);
  --colorBtnPrimaryText: #ffffff;
  --colorCartDot: #12d74d;
  --colorLink: #121212;
  --colorTextBody: #121212;
  --colorPrice: #1c1d1d;
  --colorTextSavings: #ff101b;
  --colorSaleTag: #ff101b;
  --colorSaleTagText: #ffffff;
  --colorBody: #ffffff;
  --colorBodyDim: #f2f2f2;
  --colorFooter: #ffffff;
  --colorFooterText: #ffffff;
  --colorBorder: #e8e8e1;
  --colorNav: #ffffff;
  --colorNavText: #121212;
  --colorAnnouncement: #489c00;
  --colorAnnouncementText: #ffffff;
  --colorHeroText: #ffffff;
  --colorModalBg: #e6e6e6;
  --colorImageOverlay: #000000;
  --colorImageOverlayOpacity: 0.1;
  --colorDrawers: #ffffff;
  --colorDrawersDim: #f2f2f2;
  --colorDrawerBorder: #e8e8e1;
  --colorDrawerText: #000000;
  --colorDrawerButton: #12d74d;
  --colorDrawerButtonText: #ffffff;
  
  /* Legacy/Alias Colors (for backward compatibility) */
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --accent-color: #ff6b6b;
  --text-color: #121212;
  --text-light: #666666;
  --border-color: #e8e8e1;
  --background-light: #f9f9f9;
  --success-color: #12d74d;
  --warning-color: #ff9800;
  --error-color: #ff101b;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing (Winkflo Official) */
  --grid-gutter: 17px;
  --drawer-gutter: 20px;
  
  /* Additional Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Layout */
  --container-max-width: 1400px;
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400; /* Official Winkflo uses 400, not bold */
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
}

/* ===================================
   Container & Layout (Winkflo Official)
   =================================== */
.page-width {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 17px;
}

@media only screen and (min-width: 769px) {
  .page-width {
    padding: 0 40px;
  }
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

.btn-accent:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===================================
   Forms
   =================================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
}

/* ===================================
   Cards
   =================================== */
.card {
  background: var(--secondary-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-body {
  padding: var(--spacing-md);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.card-text {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

/* ===================================
   Grid System
   =================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-sm) * -1);
}

.col {
  flex: 1;
  padding: 0 var(--spacing-sm);
}

.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn var(--transition-normal);
}

.fade-in-up {
  animation: fadeInUp var(--transition-normal);
}

/* ===================================
   Responsive Breakpoints
   =================================== */
/* Winkflo Official Spacing Adjustment for Desktop */
@media only screen and (min-width: 769px) {
  :root {
    --grid-gutter: 22px;
    --drawer-gutter: 30px;
  }
}

@media (max-width: 1199px) {
  :root {
    --container-max-width: 100%;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 991px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 767px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
  }
  
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  
  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* ===================================
   Accessibility
   =================================== */
.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;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: var(--spacing-sm);
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

