/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/*
/*
 * PlayingTime Perfect Home Page Styles
 * Matches design 1:1
 */
/*
 * PlayingTime Perfect Home Page Styles
 * Matches design 1:1
 */

/*
Theme Name: Woodmart Child
Template: woodmart
Version: 2.0.0
Description: PlayingTime Custom Styles - Ultimate Edition
*/

/* =========================================================
   GLOBAL RESETS FOR ELEMENTOR PAGES
   ========================================================= */
body.elementor-page .main-page-wrapper,
body.elementor-page .container,
body.elementor-page .site-content,
body.elementor-page .wd-page-content,
body.page-template-elementor_canvas .main-page-wrapper,
body.page-template-elementor_canvas .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove Elementor default margins */
.elementor-section {
  margin: 0 !important;
}

.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 10px;
}

/* =========================================================
   TYPOGRAPHY & BRAND COLORS
   ========================================================= */
:root {
  --pt-blue-dark: #163551;
  --pt-blue-light: #DFEAF7;
  --pt-cloud-bg: #D4DFF1;
  --pt-white: #FFFFFF;
  --pt-shadow: rgba(126, 164, 222, 0.15);
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--pt-blue-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   HERO SECTION ENHANCEMENTS
   ========================================================= */
#hero-section {
  position: relative;
  overflow: visible;
}

/* Better hero image handling */
#hero-image-html img {
  filter: drop-shadow(0 10px 30px rgba(22, 53, 81, 0.1));
}

/* =========================================================
   CLOUD DIVIDERS - ANIMATED
   ========================================================= */
.pt-cloud-divider {
  pointer-events: none;
  user-select: none;
}

/* Smooth wave animation */
@keyframes wave {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2%); }
}

.pt-cloud-divider svg {
  animation: wave 8s ease-in-out infinite;
}

/* =========================================================
   CATEGORY CARDS - HOVER EFFECTS
   ========================================================= */
.elementor-widget-html a {
  display: block;
  text-decoration: none !important;
}

/* Category cloud hover effect */
.elementor-widget-html > .elementor-widget-container > div {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elementor-widget-html > .elementor-widget-container > div:hover {
  transform: scale(1.05) translateY(-5px);
}

/* Category button enhancements */
.elementor-widget-button .elementor-button {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(22, 53, 81, 0.15);
}

.elementor-widget-button .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 53, 81, 0.25);
  background-color: #0E2F57 !important;
}

/* =========================================================
   PRODUCT CAROUSEL - CUSTOM STYLES
   ========================================================= */
.pt-carousel-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 60px;
}

.pt-carousel {
  overflow: hidden;
  border-radius: 20px;
}

.pt-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0;
}

.pt-track::-webkit-scrollbar {
  display: none;
}

.pt-card-prod {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 10px 30px var(--pt-shadow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.pt-card-prod:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(126, 164, 222, 0.25);
}

.pt-card-prod::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pt-blue-light), var(--pt-cloud-bg));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.pt-card-prod:hover::before {
  opacity: 1;
}

.pt-card-prod__img {
  background: var(--pt-blue-light);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 15px;
  overflow: hidden;
}

.pt-card-prod__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.pt-card-prod:hover .pt-card-prod__img img {
  transform: scale(1.1);
}

.pt-card-prod__title {
  font-weight: 700;
  font-size: 15px;
  display: block;
  color: var(--pt-blue-dark);
  margin-bottom: 8px;
  min-height: 40px;
  line-height: 1.3;
}

.pt-card-prod__price {
  font-weight: 900;
  font-size: 18px;
  color: var(--pt-blue-dark);
  display: block;
}

/* Carousel arrows */
.pt-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--pt-blue-dark);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(22, 53, 81, 0.2);
}

.pt-arrow:hover {
  background: #0E2F57;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(22, 53, 81, 0.3);
}

.pt-arrow--left {
  left: 0;
}

.pt-arrow--right {
  right: 0;
}

/* =========================================================
   BENEFITS SECTION - ENHANCED CARDS
   ========================================================= */
#benefits-section .elementor-widget-html > .elementor-widget-container > div {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#benefits-section .elementor-widget-html > .elementor-widget-container > div:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(126, 164, 222, 0.25);
}

/* Icon pulse animation */
@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

#benefits-section .elementor-widget-html svg {
  animation: pulse 2s ease-in-out infinite;
}

/* =========================================================
   DISCOVER SECTION - IMAGE EFFECTS
   ========================================================= */
#discover-section .elementor-widget-image img {
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 30px rgba(22, 53, 81, 0.1));
}

#discover-section .elementor-widget-image:hover img {
  transform: scale(1.03) rotate(1deg);
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 1024px) {
  .pt-carousel-wrap {
    padding: 0 50px;
  }
  
  .pt-card-prod {
    flex: 0 0 220px;
  }
}

@media (max-width: 768px) {
  /* Hero section */
  #hero-section .elementor-column {
    width: 100% !important;
    margin-bottom: 30px;
  }
  
  /* Typography adjustments */
  .elementor-widget-heading h1 {
    font-size: 42px !important;
  }
  
  .elementor-widget-heading h2 {
    font-size: 36px !important;
  }
  
  /* Categories */
  #categories-section .elementor-column,
  #benefits-section .elementor-column {
    width: 100% !important;
    margin-bottom: 30px;
  }
  
  /* Carousel */
  .pt-carousel-wrap {
    padding: 0 40px;
  }
  
  .pt-card-prod {
    flex: 0 0 200px;
  }
  
  .pt-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  /* Benefits cards - remove lift effect on mobile */
  #benefits-section .elementor-widget-html > .elementor-widget-container > div {
    transform: none !important;
  }
  
  /* Discover section */
  #discover-section .elementor-column {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .elementor-widget-heading h1 {
    font-size: 32px !important;
  }
  
  .elementor-widget-heading h2 {
    font-size: 28px !important;
  }
  
  .pt-carousel-wrap {
    padding: 0 30px;
  }
  
  .pt-card-prod {
    flex: 0 0 180px;
  }
}

/* =========================================================
   LOADING ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.elementor-section {
  animation: fadeInUp 0.8s ease-out;
}

.elementor-section:nth-child(2) {
  animation-delay: 0.2s;
}

.elementor-section:nth-child(3) {
  animation-delay: 0.4s;
}

/* =========================================================
   SMOOTH SCROLLING
   ========================================================= */
html {
  scroll-behavior: smooth;
}

/* =========================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================= */
.elementor-button:focus,
.pt-arrow:focus {
  outline: 3px solid var(--pt-blue-light);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .pt-card-prod {
    border: 2px solid var(--pt-blue-dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
  .pt-arrow,
  .elementor-widget-button {
    display: none;
  }
  
  .pt-card-prod {
    break-inside: avoid;
  }
}
