/*
Theme Name: Freshhealthdeals
Description: Modern Amazon-inspired affiliate marketing theme for health and fitness products
Version: 2.1
Author: Freshhealthdeals
*/

:root {
    --primary-color: #2e8b57; /* Sea Green */
    --primary-color-rgb: 46, 139, 87;
    --secondary-color: #3cb371; /* Medium Sea Green */
    --secondary-color-rgb: 60, 179, 113;
    --accent-color: #66cdaa; /* Medium Aquamarine */
    --accent-color-rgb: 102, 205, 170;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #2c3e50;
    --light-color: #f5f7fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    --border-radius: 0.5rem;
    
    /* Legal Pages Styling */
    --legal-heading-color: var(--primary-color);
    --legal-text-color: var(--gray-700);
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Animation Durations */
    --animation-slow: 1.2s;
    --animation-medium: 0.8s;
    --animation-fast: 0.4s;
    --animation-very-fast: 0.2s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    background-color: var(--gray-100);
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--animation-medium) ease, transform var(--animation-medium) ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    animation-name: fadeIn;
    animation-duration: var(--animation-medium);
    animation-fill-mode: both;
}

.animate-slide-up {
    animation-name: slideUp;
    animation-duration: var(--animation-medium);
    animation-fill-mode: both;
}

.animate-slide-in-left {
    animation-name: slideInLeft;
    animation-duration: var(--animation-medium);
    animation-fill-mode: both;
}

.animate-slide-in-right {
    animation-name: slideInRight;
    animation-duration: var(--animation-medium);
    animation-fill-mode: both;
}

.animate-bounce {
    animation-name: bounce;
    animation-duration: var(--animation-medium);
    animation-fill-mode: both;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 1.25rem; }
h3 { font-size: 1.85rem; font-weight: 700; line-height: 1.4; margin-bottom: 1rem; }
h4 { font-size: 1.6rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.75rem; }
h5 { font-size: 1.35rem; font-weight: 600; line-height: 1.5; margin-bottom: 0.75rem; }
h6 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transform: translateY(-2px);
}

/* Button Animations */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--animation-fast) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn::before,
button::before,
input[type="submit"]::before,
input[type="button"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::before,
button:hover::before,
input[type="submit"]:hover::before,
input[type="button"]:hover::before {
    left: 100%;
}

/* Header */
.site-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    animation: slideDown var(--animation-medium) ease-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation Menu Animations */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border-radius: 30px;
    padding: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 6px 3px -3px rgba(180, 180, 180, 0.5);
    border: 1px solid rgba(80, 80, 80, 0.4);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.main-nav ul::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(180,180,180,0.15) 0%, rgba(100,100,100,0.05) 30%, rgba(50,50,50,0) 70%);
    animation: shimmer 4s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.main-nav ul li {
    margin: 0 0.25rem;
    position: relative;
}

.main-nav ul li a {
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: block;
    border-radius: 25px;
    letter-spacing: 0.5px;
    background: linear-gradient(145deg, #4a4a4a, #333333);
    border: 1px solid rgba(100, 100, 100, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 5px 3px -3px rgba(160, 160, 160, 0.4);
    overflow: hidden;
}

.main-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(150,150,150,0.2), rgba(220,220,220,0.8), rgba(150,150,150,0.2));
    transition: width var(--animation-fast) ease;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.main-nav ul li a:hover {
    color: var(--white);
    background: linear-gradient(145deg, #5a5a5a, #444444);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 6px 4px -3px rgba(200, 200, 200, 0.6);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(120, 120, 120, 0.6);
}

.main-nav ul li a:hover::before {
    left: 100%;
    transition: 0.5s;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 70%;
    animation: metalShine 2s infinite;
}

@keyframes metalShine {
    0% {
        background-position: -100px;
    }
    20% {
        background-position: 200px;
    }
    100% {
        background-position: 200px;
    }
}

.main-nav ul li a.active {
    color: var(--white);
    background: linear-gradient(145deg, #666666, #505050);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.25), 0 6px 4px -3px rgba(220, 220, 220, 0.7);
    border: 1px solid rgba(150, 150, 150, 0.7);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Add animation for active menu item */
.main-nav ul li a.active {
    animation: pulse var(--animation-slow) infinite alternate;
    background-size: 200% 200%;
}

@keyframes pulse {
    0% {
        opacity: 0.85;
        background-position: 0% 50%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 6px 4px -3px rgba(200, 200, 200, 0.5);
    }
    50% {
        opacity: 0.95;
        background-position: 100% 50%;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.3), 0 7px 5px -3px rgba(220, 220, 220, 0.7);
    }
    100% {
        opacity: 1;
        background-position: 0% 50%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 6px 4px -3px rgba(200, 200, 200, 0.5);
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-circle {
    background-color: #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: heartBeat 1.2s infinite;
    transform-origin: center;
    position: relative;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.health-quote {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0;
    width: 200px;
    text-align: left;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.typing-animation {
    opacity: 1;
    animation: typing 1s steps(40, end);
}

@keyframes typing {
    from { 
        width: 0;
        opacity: 0;
    }
    to { 
        width: 200px;
        opacity: 1;
    }
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }
    100% {
        filter: drop-shadow(0 2px 8px rgba(58, 123, 213, 0.6));
    }
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-text {
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background: var(--gray-100);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -10px;
    left: 50%;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 80%;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    box-shadow: 0 4px 8px rgba(46, 139, 87, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(46, 139, 87, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    justify-items: center;
}

.product-card {
    height: 100%;
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0;
    margin: 0;
    position: relative;
    box-shadow: 0 1px 3px rgba(46, 139, 87, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #e7e7e7;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--secondary-color-rgb), 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 139, 87, 0.15);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px;
    overflow: hidden;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.product-card:hover .product-image-container {
    background: linear-gradient(to bottom, rgba(var(--primary-color-rgb), 0.03), rgba(var(--secondary-color-rgb), 0.03));
}

.product-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Best Seller badge removed */

/* Remove hover effects */
.product-hover-details {
    display: none;
}

.product-info {
    padding: 1rem 1.25rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.product-card:hover .product-info {
    background-color: #fafafa;
}

.product-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #0F1111;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
    transition: color 0.3s ease;
    position: relative;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.product-card:hover .product-title::after {
    width: 50px;
}

.product-rating {
    font-size: 0.8rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0 0 0.5rem;
}

.sale-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #B12704;
}

.regular-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #565959;
    margin-left: 0.25rem;
}

.discount-badge {
    background-color: #e53935;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.discount-percent {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e53935;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 0.25rem;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.amazon-btn {
    width: 100%;
    margin-top: auto;
    background-color: var(--primary-color);
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
    border: 1px solid var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.6rem 0.5rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(46, 139, 87, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.amazon-btn:hover {
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 139, 87, 0.3);
}

.amazon-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(46, 139, 87, 0.2);
}

.amazon-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.amazon-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* YouTube Video Styling */
.product-videos {
    margin: 2rem 0;
}

.video-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .video-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.product-original-price {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--warning-color);
    font-size: 1.125rem;
}

.rating-value {
    font-weight: 600;
    color: var(--gray-700);
}

.rating-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1rem;
}

.product-features li {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Blog Section */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.blog-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-category {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition);
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

/* Added CSS for product-main-image */
.product-main-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    z-index: 1;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger-color);
    color: var(--white);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem;
}

.product-slider {
    position: relative;
}

.slider-main {
    margin-bottom: 1rem;
}

.slider-main img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Image Magnifier Styles */
.magnifier-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.magnifier-lens {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 2;
}

.magnified-image {
    position: absolute;
    top: 0;
    right: -250px;
    width: 250px;
    height: 250px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    background-repeat: no-repeat;
    display: none;
    z-index: 3;
    pointer-events: none;
}

.slider-thumbs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping for multiple images */
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-detail-description {
    margin: 2rem 0;
    line-height: 1.8;
    color: var(--gray-700);
}

.buy-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.25rem 2.5rem;
    border-radius: var(--border-radius);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* Dashboard */
.dashboard {
    background: var(--gray-100);
    min-height: 100vh;
    padding: 2rem 0;
}

.dashboard-header {
    background: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.dashboard-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-nav a {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.dashboard-nav a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.dashboard-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Category Management Styles */
.category-management {
    margin-bottom: 2rem;
}

.category-management table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

.category-management th,
.category-management td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.category-management th {
    background-color: var(--gray-200);
    font-weight: 600;
}

.category-management .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.category-management .btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.category-management .btn-danger:hover {
    background-color: #c82333;
}

.category-management .notice {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.category-management .notice-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.category-management .warning {
    color: var(--danger-color);
    font-weight: 500;
}

.category-management form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.category-management form input[type="text"] {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    width: 100%;
    margin-bottom: 1rem;
}

.category-management form button {
    margin-right: 0.5rem;
}

/* Category Management Styles */
.category-management {
    margin-bottom: 2rem;
}

.category-management table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

.category-management th,
.category-management td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.category-management th {
    background-color: var(--gray-200);
    font-weight: 600;
}

.category-management .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.category-management .btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.category-management .btn-danger:hover {
    background-color: #c82333;
}

.category-management .notice {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.category-management .notice-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.category-management .warning {
    color: var(--danger-color);
    font-weight: 500;
}

.category-management form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.category-management form input[type="text"] {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    width: 100%;
    margin-bottom: 1rem;
}

.category-management form button {
    margin-right: 0.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    box-shadow: var(--shadow-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    line-height: 1.8;
    transition: var(--transition);
    opacity: 0.85;
}

.footer-section a:hover {
    color: var(--white);
    opacity: 1;
    transform: translateX(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    opacity: 0.9;
}

/* Social Icons */
.social-section-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Increased spacing between social icons */
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px) rotate(360deg);
    transition: transform var(--animation-medium) ease, background-color var(--animation-fast) ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.social-icon:hover::before {
    opacity: 1;
    transform: scale(2);
    animation: ripple 0.8s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Legal Pages Styles */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.page-content h2 {
    color: var(--legal-heading-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.page-content h3 {
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.page-content p {
    color: var(--legal-text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.page-content ul, .page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: var(--legal-text-color);
    line-height: 1.6;
}

.page-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid,
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .dashboard-nav {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .modal-content {
        margin: 1rem;
    }
    
    .product-detail {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Enhanced Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-pulse {
    animation: badgePulse 0.8s infinite alternate;
}

@keyframes badgePulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.btn-hover {
    animation: buttonGlow 1s infinite alternate;
}

@keyframes buttonGlow {
    from {
        box-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.3);
    }
    to {
        box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
    }
}

.logo-spin {
    animation: logoSpin 1s ease;
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }