/* =============================================
   HAPPY PAWS PET SHOP - Custom Styles
   ============================================= */

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background-color: #f97316;
    color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fefce8;
}
::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* --- Hero Gradient Animation --- */
@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-animated-bg {
    background: linear-gradient(-45deg, #f97316, #fb923c, #3b82f6, #60a5fa);
    background-size: 400% 400%;
    animation: heroGradient 12s ease infinite;
}

/* --- Floating Animation --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}
.animate-float-delay {
    animation: float 3s ease-in-out 1s infinite;
}
.animate-float-delay-2 {
    animation: float 3s ease-in-out 2s infinite;
}

/* --- Paw Print Animation --- */
@keyframes pawWalk {
    0% { opacity: 0; transform: scale(0.5) rotate(-20deg); }
    50% { opacity: 0.15; transform: scale(1) rotate(0deg); }
    100% { opacity: 0; transform: scale(0.5) rotate(20deg); }
}
.paw-print {
    position: absolute;
    color: #f97316;
    animation: pawWalk 4s ease-in-out infinite;
    pointer-events: none;
}

/* --- Bounce on Hover --- */
@keyframes bounceIn {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.hover-bounce:hover {
    animation: bounceIn 0.4s ease;
}

/* --- Card Styles --- */
.product-card {
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}
.product-card .product-image {
    transition: transform 0.5s ease;
}
.product-card:hover .product-image {
    transform: scale(1.1);
}

/* --- Category Card --- */
.category-card {
    transition: all 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px) scale(1.02);
}
.category-card:hover .category-icon {
    transform: rotate(10deg) scale(1.15);
}
.category-icon {
    transition: transform 0.3s ease;
}

/* --- Brand Logos --- */
.brand-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}
.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Badge Pulse --- */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
}
.badge-pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

/* --- Page Header Wave --- */
.wave-divider {
    position: relative;
}
.wave-divider::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #fefce8;
    clip-path: ellipse(60% 100% at 50% 100%);
}

/* --- Team Card Hover --- */
.team-card {
    transition: all 0.3s ease;
}
.team-card:hover {
    transform: translateY(-8px);
}
.team-card:hover .team-avatar {
    border-color: #f97316;
    transform: scale(1.05);
}
.team-avatar {
    transition: all 0.3s ease;
}

/* --- Feature Icon Spin --- */
.feature-icon {
    transition: all 0.5s ease;
}
.feature-icon:hover {
    transform: rotate(360deg);
}

/* --- Timeline --- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #f97316, #3b82f6);
    transform: translateX(-50%);
}

/* --- Input Focus --- */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
    border-color: #f97316;
}

/* --- Star Rating --- */
.star-rating .fas.fa-star {
    color: #f97316;
}
.star-rating .far.fa-star {
    color: #d1d5db;
}
.star-rating .fas.fa-star-half-alt {
    color: #f97316;
}

/* --- Quantity Button --- */
.qty-btn {
    transition: all 0.2s ease;
}
.qty-btn:hover {
    background-color: #f97316;
    color: white;
}

/* --- Gallery Thumbnail --- */
.gallery-thumb {
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #f97316;
    transform: scale(1.05);
}

/* --- Pulse Ring --- */
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #f97316;
    animation: pulseRing 1.5s ease-out infinite;
}

/* --- Responsive Fixes --- */
@media (max-width: 640px) {
    .font-heading {
        letter-spacing: 0;
    }
}

/* --- Print Styles --- */
@media print {
    nav, footer, .wave-divider, #backToTop, section:has(form) {
        display: none !important;
    }
    body {
        background: white !important;
    }
}

/* ---------- Overflow / Tasma Korumasi ---------- */
html, body {
    overflow-x: hidden;
}

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
