/* 
* Pawtica - Premium Pet Toys & Supplies Store
* Products Page Specific Stylesheet
*/

/* Products Hero Section */
.products-hero-section {
    position: relative;
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--primary-color), #e45a49);
    padding: 180px 0 100px;
    overflow: hidden;
    text-align: center;
}

.products-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-image.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.products-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.products-hero-content h2 {
    color: var(--light-color);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out forwards;
}

.products-hero-content p {
    color: var(--light-color);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.products-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,224L60,213.3C120,203,240,181,360,192C480,203,600,245,720,250.7C840,256,960,224,1080,192C1200,160,1320,128,1380,112L1440,96L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Product Category Sections */
.product-category-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--light-color);
}

.product-category-section.alternate {
    background-color: var(--neutral-100);
}

.product-category-section .section-heading {
    margin-bottom: var(--spacing-xxl);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.product-card {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Card Animation */
.product-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    color: var(--light-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.product-badge.bestseller {
    background-color: var(--primary-color);
}

.product-badge.new {
    background-color: var(--accent-color);
}

.product-badge.premium {
    background-color: #B99E00;
}

.product-details {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-details h3 {
    color: var(--neutral-900);
    margin-bottom: var(--spacing-xs);
}

.product-details p {
    color: var(--neutral-700);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-rating .stars {
    color: #FFB800;
    letter-spacing: 2px;
}

.product-rating .count {
    color: var(--neutral-600);
}

.product-price {
    font-weight: 600;
    color: var(--neutral-900);
}

.order-btn {
    width: 100%;
    transition: background-color 0.3s ease;
}

/* Floating Cart Animation */
.floating-cart-item {
    position: fixed;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.9;
    box-shadow: var(--shadow-md);
}

.floating-cart-item.animate {
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    opacity: 0;
    transform: scale(0.5);
}

/* Interactive Section Styles */
.section-intro {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
    background-color: var(--neutral-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.intro-image {
    flex: 0 0 45%;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-text {
    flex: 0 0 55%;
    padding: 20px;
}

.intro-text h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.intro-text p {
    margin-bottom: var(--spacing-lg);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}



.interactive-grid {
    margin-top: var(--spacing-xl);
}

/* Comfort Section Styles */
.comfort-showcase {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.showcase-content {
    flex: 0 0 55%;
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.showcase-image {
    flex: 0 0 45%;
}

.showcase-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.comfort-info h3 {
    color: var(--accent-dark);
    margin-bottom: var(--spacing-md);
}

.comfort-features {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.comfort-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--neutral-100);
    border-radius: var(--radius-md);
}

.comfort-feature .feature-icon {
    color: var(--accent-dark);
}

.comfort-feature .feature-text h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--accent-dark);
}

.comfort-feature .feature-text p {
    margin-bottom: 0;
}

.comfort-grid {
    margin-top: var(--spacing-xl);
}

/* Training Section Styles */
.training-expert {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.expert-card {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.expert-image {
    width: 100%;
    overflow: hidden;
}

.expert-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-medium);
}

.expert-card:hover .expert-image img {
    transform: scale(1.05);
}

.expert-quote {
    padding: var(--spacing-lg);
    background-color: var(--light-color);
}

.expert-quote blockquote {
    font-style: italic;
    color: var(--neutral-800);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.expert-quote cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

.training-steps {
    flex: 0 0 60%;
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.training-steps h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.step-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.step-number {
    flex: 0 0 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 700;
    border-radius: var(--radius-circle);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    margin-bottom: 0;
    color: var(--neutral-700);
}

.training-grid {
    margin-top: var(--spacing-xl);
}

/* Essentials Section Styles */
.essentials-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner-content {
    flex: 0 0 55%;
    padding: var(--spacing-xl);
}

.banner-content h3 {
    color: var(--neutral-900);
    margin-bottom: var(--spacing-md);
}

.banner-image {
    flex: 0 0 45%;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-highlights {
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.highlight {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--neutral-100);
    border-radius: var(--radius-md);
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-text h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--neutral-900);
}

.highlight-text p {
    margin-bottom: 0;
}

.essentials-grid {
    margin-top: var(--spacing-xl);
}

/* Products CTA Section */
.products-cta-section {
    position: relative;
    background-color: var(--accent-color);
    padding: var(--spacing-xxl) 0;
    color: var(--light-color);
    text-align: center;
}

.products-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-image.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.cta-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: var(--spacing-md);
    color: var(--light-color);
}

.cta-content p {
    margin-bottom: var(--spacing-lg);
    color: var(--light-color);
}

.cta-options {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.cta-options .btn-secondary {
    border-color: var(--light-color);
    color: var(--light-color);
}

.cta-options .btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    /* Section Intros */
    .section-intro,
    .training-expert,
    .essentials-banner {
        flex-direction: column;
        gap:0px;
    }

    .comfort-showcase{
        flex-direction: column-reverse;
        gap:0px; 
    }
    
    .intro-image,
    .intro-text,
    .showcase-content,
    .showcase-image,
    .expert-card,
    .training-steps,
    .banner-content,
    .banner-image {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .cta-wrapper {
        flex-direction: column;
    }
    
    .cta-content,
    .cta-image {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .cta-content {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .cta-options {
        justify-content: center;
    }
}

@media (max-width: 768px) {  
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-options {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .cta-options .btn-primary,
    .cta-options .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 576px) {    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: var(--spacing-sm);
    }

    .showcase-content, .intro-text, .banner-content{
        padding: 20px;
        text-align: center;
    }

    .comfort-feature, .feature-list li, .highlight{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 15px;
    }
} 