/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #fff9fb 0%, #f0f8ff 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    touch-action: pan-y;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========== HEADER FIXES ========== */
.premium-header {
    background: #2c3e50;
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #3498db;
}

/* Desktop header fixed */
@media (min-width: 769px) {
    .premium-header {
        position: fixed;
        top: 0;
    }
    body { padding-top: 80px; }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    flex-shrink: 0;
}

.logo-section h1 {
    font-size: 1.4rem;
    color: white;
    line-height: 1.2;
}

.tagline {
    font-size: 11px;
    color: #3498db;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.premium-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #3498db;
    background: rgba(255, 255, 255, 0.1);
}

.admin-btn {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    color: white !important;
    padding: 8px 16px !important;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #ecf0f1;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    color: #ecf0f1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #ebf5fb;
    transform: translateY(-3px);
}

/* Floating Plushies */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-plush {
    position: absolute;
    font-size: 60px;
    animation: float 6s ease-in-out infinite;
}

.plush-1 { top: 20%; left: 10%; animation-delay: 0s; }
.plush-2 { top: 60%; right: 15%; animation-delay: 2s; }
.plush-3 { bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ========== PRODUCT CARDS ========== */
.featured-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff9fb 0%, #fff0f5 100%);
    border-radius: 40px 40px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured & Products Grid - DESKTOP */
.featured-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.featured-card, .product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid #e8f4fc;
    position: relative;
}

.featured-card:hover, .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
    min-height: 60px;
}

/* Price Section */
.price-section {
    margin-bottom: 20px;
}

.original-price {
    font-size: 1rem;
    color: #95a5a6;
    text-decoration: line-through;
    margin-right: 10px;
}

.discounted-price {
    font-size: 1.8rem;
    color: #e74c3c;
    font-weight: bold;
}

.discount-percent {
    background: #ffeaa7;
    color: #d35400;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Add to Cart Button */
.add-to-cart {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #87CEEB 0%, #00BFFF 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.4);
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
}

/* ========== MOBILE RESPONSIVE FIXES ========== */
/* Tablet: 2-3 products per row */
@media (max-width: 1024px) {
    .featured-grid, .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

/* Mobile: 2 PRODUCTS SIDE-BY-SIDE (FIXED) */
@media (max-width: 768px) {
    .featured-grid, .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .featured-card, .product-card {
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 15px;
        overflow: hidden;
    }
    
    .product-image-container {
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 5px;
        height: 34px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .product-info p {
        display: none;
    }
    
    .price-section {
        margin-bottom: 8px;
    }
    
    .original-price {
        font-size: 10px;
    }
    
    .discounted-price {
        font-size: 15px;
    }
    
    .discount-percent {
        font-size: 10px;
        padding: 2px 5px;
        margin-left: 5px;
    }
    
    .add-to-cart {
        padding: 9px 12px;
        font-size: 12px;
        border-radius: 10px;
        min-height: 38px;
    }
    
    .discount-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 10px;
    }
    
    /* Mobile Navigation */
    .hamburger-menu {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 15px;
        display: none;
        z-index: 1001;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0 0 20px 20px;
    }
    
    .main-nav.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .main-nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        margin: 2px 0;
        border-radius: 12px;
        font-size: 16px;
    }
    
    .main-nav a i {
        width: 20px;
    }
    
    /* Hide emojis on mobile */
    .hero-decoration,
    .plushie-showcase {
        display: none;
    }
    
    .hero {
        padding: 80px 15px 40px;
        min-height: 60vh;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 14px;
        font-size: 16px;
    }
}

/* Small mobile: keep 2 columns but adjust */
@media (max-width: 375px) {
    .featured-grid, .products-grid {
        gap: 8px;
    }
    
    .product-image-container {
        height: 120px;
    }
    
    .product-info h3 {
        font-size: 12px;
        height: 32px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-section h1 {
        font-size: 1.1rem;
    }
    
    .logo-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .featured-grid, .products-grid {
        gap: 6px;
    }
    
    .product-image-container {
        height: 110px;
    }
    
    .product-info h3 {
        font-size: 11px;
        height: 30px;
    }
    
    .discounted-price {
        font-size: 14px;
    }
    
    .add-to-cart {
        font-size: 11px;
        padding: 8px;
    }
}

/* ========== NO HORIZONTAL SCROLLING ========== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

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

/* ========== TOUCH-FRIENDLY BUTTONS ========== */
button, 
.btn-primary, 
.btn-secondary, 
.add-to-cart,
.quantity-btn,
.qty-btn,
.cart-icon,
.hamburger-menu,
.thumbnail,
.action-btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* ========== ABOUT SECTION ========== */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 100%);
    border-radius: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-features .feature {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.about-features .feature i {
    font-size: 30px;
    color: #3498db;
    margin-bottom: 15px;
}

.about-features .feature h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.about-features .feature p {
    font-size: 0.9rem;
    margin: 0;
    color: #7f8c8d;
}

/* ========== ABOUT SECTION MOBILE FIX ========== */
@media (max-width: 768px) {
    .about-section {
        padding: 40px 0;
        border-radius: 30px;
        margin-top: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .about-features .feature {
        padding: 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-features .feature i {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .about-features .feature h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .about-features .feature p {
        font-size: 0.85rem;
        margin: 0;
        color: #7f8c8d;
    }
    
    /* Fix plushie showcase positioning */
    .plushie-showcase {
        height: 200px;
        position: relative;
        margin-top: 30px;
    }
    
    .plushie {
        font-size: 40px;
    }
    
    .plushie-1 { top: 10%; left: 10%; }
    .plushie-2 { top: 20%; right: 15%; }
    .plushie-3 { top: 50%; left: 20%; }
    .plushie-4 { bottom: 10%; right: 20%; }
    .plushie-5 { top: 30%; left: 50%; transform: translateX(-50%); }
}

/* For very small screens */
@media (max-width: 480px) {
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .about-features {
        gap: 12px;
    }
    
    .about-features .feature {
        padding: 15px;
    }
    
    .about-features .feature i {
        font-size: 24px;
    }
    
    .about-features .feature h4 {
        font-size: 1rem;
    }
    
    .plushie-showcase {
        height: 150px;
    }
    
    .plushie {
        font-size: 30px;
    }
}

/* Plushie Showcase */
.plushie-showcase {
    position: relative;
    height: 400px;
}

.plushie {
    position: absolute;
    font-size: 70px;
    animation: float 6s ease-in-out infinite;
}

.plushie-1 { top: 10%; left: 10%; animation-delay: 0s; }
.plushie-2 { top: 30%; right: 15%; animation-delay: 1s; }
.plushie-3 { top: 60%; left: 20%; animation-delay: 2s; }
.plushie-4 { bottom: 10%; right: 20%; animation-delay: 3s; }
.plushie-5 { top: 40%; left: 50%; animation-delay: 4s; }

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-radius: 40px 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-circle {
    margin-bottom: 20px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.footer-contact i {
    color: #3498db;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-bottom i {
    color: #e74c3c;
}

/* ========== CART SIDEBAR ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.empty-cart i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 2px dashed #e0e0e0;
    gap: 15px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.checkout-btn:hover {
    transform: scale(1.02);
}

.continue-shopping {
    width: 100%;
    padding: 14px;
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
}

/* ========== PRODUCT DETAIL MODAL ========== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 1000px;
    width: 90%;
    max-height: 85vh;
    margin: 7.5vh auto;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #e74c3c;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.product-detail-container {
    max-height: 85vh;
    overflow-y: auto;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 25px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image img:hover {
    transform: scale(1.05);
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail.active {
    border-color: #3498db;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.product-detail-info h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-detail-original-price {
    font-size: 1.5rem;
    color: #95a5a6;
    text-decoration: line-through;
}

.product-detail-discounted-price {
    font-size: 2.2rem;
    color: #e74c3c;
    font-weight: bold;
}

.product-detail-discount-percent {
    background: #ffeaa7;
    color: #d35400;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: bold;
}

.product-description {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.8;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e0e0e0;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.product-features .feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.product-features .feature i {
    color: #3498db;
    font-size: 20px;
    width: 24px;
}

.product-features .feature span {
    color: #2c3e50;
    font-weight: 600;
}

.quantity-selector {
    margin-bottom: 30px;
}

.quantity-selector label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#detail-quantity {
    width: 70px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #3498db;
    border-radius: 15px;
    color: #2c3e50;
    background: white;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #3498db;
    color: white;
}

.detail-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.add-to-cart-detail, .buy-now {
    flex: 1;
    min-width: 200px;
    padding: 18px 30px;
    font-size: 18px;
}

.add-to-cart-detail {
    background: linear-gradient(135deg, #87CEEB 0%, #00BFFF 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(135, 206, 235, 0.4);
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
}

.buy-now {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.buy-now:hover {
    background: #ebf5fb;
    transform: translateY(-3px);
}
/* ========== PRODUCT MODAL MOBILE FIX ========== */
@media (max-width: 768px) {
    .product-modal {
        padding: 10px;
        align-items: flex-end; /* Opens from bottom on mobile */
    }
    
    .modal-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .modal-content {
        width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .main-image {
        height: 250px;
        border-radius: 15px;
    }
    
    .thumbnail-images {
        justify-content: center;
        gap: 10px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
    
    .product-detail-info h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .product-detail-price {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .product-detail-original-price {
        font-size: 1.1rem;
    }
    
    .product-detail-discounted-price {
        font-size: 1.5rem;
    }
    
    .product-detail-discount-percent {
        font-size: 0.9rem;
        padding: 4px 10px;
    }
    
    .product-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .product-features {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .product-features .feature {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .product-features .feature i {
        font-size: 18px;
    }
    
    .product-features .feature span {
        font-size: 0.9rem;
    }
    
    .quantity-selector {
        margin-bottom: 20px;
    }
    
    .quantity-selector label {
        font-size: 0.9rem;
    }
    
    #detail-quantity {
        width: 60px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .qty-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .detail-actions {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px 0 0;
        margin-top: 20px;
        border-top: 2px solid #f0f0f0;
        gap: 10px;
    }
    
    .add-to-cart-detail, .buy-now {
        min-width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
        background: rgba(255, 255, 255, 0.95);
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .main-image {
        height: 220px;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .product-detail-info h2 {
        font-size: 1.3rem;
    }
    
    .product-detail-discounted-price {
        font-size: 1.3rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .add-to-cart-detail, .buy-now {
        padding: 14px;
        font-size: 15px;
    }
}
/* ========== FLOATING CART BUTTON ========== */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

.floating-cart-btn.active {
    display: flex; /* Show when cart has items */
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile floating cart button */
@media (max-width: 768px) {
    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .floating-cart-badge {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}
/* Responsive logo */
.site-logo {
    height: 60px;
    width: auto;
    max-width: 180px;
}

@media (max-width: 768px) {
    .site-logo {
        height: 50px;
        max-width: 150px;
    }
    
    .logo-section h1 {
        font-size: 1.4rem;
    }
}

/* Logo Styling - Make it round like previous */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.site-logo {
    height: 60px;
    width: 60px;
    border-radius: 50%; /* Makes it round */
    object-fit: cover; /* Ensures image fits nicely in circle */
    border: 3px solid #fff; /* White border like previous */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Gradient like paw icon */
    padding: 5px; /* Space inside circle */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo-text h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 800;
}

.logo-text .tagline {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 600;
}

/* Footer logo */
.footer-brand img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 4px;
}

@media (max-width: 768px) {
    .site-logo {
        height: 50px;
        width: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text .tagline {
        font-size: 0.75rem;
    }
    
    .logo-link {
        gap: 10px;
    }
}

/* Fix for logo section text visibility */
.logo-section .logo-link {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Ensure the text container is visible */
.logo-section .logo-text {
    display: block !important;
    visibility: visible !important;
}

/* Make sure the text is readable against the dark header */
.logo-text h1,
.logo-text .tagline {
    color: white !important;
}