/**
 * Precious Pages Press - Custom Styles
 * Brand Colors:
 * - Background: #E7F0F9 (light blue)
 * - Header/Footer: #90B77D (sage green)
 * - Accent: #D97B48 (terracotta orange)
 * - Buttons: #F4C542 (golden yellow)
 * - Text: #324A3D (dark green)
 */

:root {
    --pp-background: #E7F0F9;
    --pp-header: #90B77D;
    --pp-accent: #D97B48;
    --pp-button: #F4C542;
    --pp-text: #324A3D;
    --pp-text-light: #5a7a6a;
}

/* Base Styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--pp-background);
    color: var(--pp-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--pp-text);
}

a {
    color: var(--pp-accent);
    text-decoration: none;
}

a:hover {
    color: #b8633a;
}

/* Navigation */
.navbar-custom {
    background-color: var(--pp-header);
    padding: 1rem 0;
}

.navbar-custom .navbar-brand {
    color: #fff;
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.bg-accent {
    background-color: var(--pp-accent) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--pp-button);
    border-color: var(--pp-button);
    color: var(--pp-text);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e3b63b;
    border-color: #e3b63b;
    color: var(--pp-text);
}

.btn-primary:active {
    background-color: #d4a835;
    border-color: #d4a835;
    color: var(--pp-text);
}

.btn-outline-primary {
    color: var(--pp-text);
    border-color: var(--pp-button);
}

.btn-outline-primary:hover {
    background-color: var(--pp-button);
    border-color: var(--pp-button);
    color: var(--pp-text);
}

/* Hero Section - base styles, image set inline */
.hero-section h1,
.hero-section p {
    color: #fff;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 220px;
    object-fit: cover;
    background-color: #f8f9fa;
}

.product-card .card-title a {
    color: var(--pp-text);
    font-weight: 700;
}

.product-card .card-title a:hover {
    color: var(--pp-accent);
}

.product-card .price {
    color: var(--pp-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer */
.footer-custom {
    background-color: var(--pp-header);
    color: #fff;
}

.footer-custom h5 {
    color: #fff;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-custom a:hover {
    color: #fff;
}

.footer-custom hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-custom .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Newsletter Form */
.newsletter-form .form-control {
    border-radius: 25px 0 0 25px;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
}

/* Product Page */
.product-image-wrapper .main-product-image {
    max-height: 500px;
    object-fit: contain;
}

.product-thumb {
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.product-thumb:hover {
    border-color: var(--pp-text-light);
}

.product-thumb.active {
    border-color: var(--pp-accent);
}

.price-section .text-primary {
    color: var(--pp-accent) !important;
}

/* Cart Page */
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Success Page */
.success-icon {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    80% {
        transform: translateY(-10px);
    }
}

/* About Page */
.about-content h2 {
    color: var(--pp-header);
    margin-top: 1.5rem;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--pp-button);
    box-shadow: 0 0 0 0.25rem rgba(244, 197, 66, 0.25);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

/* Background Sections */
.bg-light {
    background-color: #fff !important;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--pp-background) 0%, #d4e6f5 100%);
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--pp-text-light);
}

.breadcrumb-item.active {
    color: var(--pp-text);
}

/* Badge */
.badge.bg-danger {
    background-color: var(--pp-accent) !important;
}

/* Admin Specific */
.admin-sidebar {
    min-height: calc(100vh - 56px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .product-card .card-img-top {
        height: 180px;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }
}

/* Utility Classes */
.text-accent {
    color: var(--pp-accent) !important;
}

.bg-pp-green {
    background-color: var(--pp-header);
}

/* Loading State for Add to Cart */
.add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart.loading::after {
    content: '...';
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Placeholder Image */
.placeholder-image {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* ==========================================================================
   HOMEPAGE STYLES
   ========================================================================== */

/* Hero Section - Full Width Banner */
.hero-section {
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    padding: 2rem 0 1rem 0;
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: flex-end;
}

/* Hero overlay removed - hero image now includes logo and tagline */
.hero-section::before {
    display: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Spacer to position Shop Now button at bottom of hero */
.hero-spacer {
    height: 380px;
}

/* Legacy styles kept for compatibility */
.hero-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-tagline {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-hero {
    background-color: var(--pp-accent);
    border-color: var(--pp-accent);
    color: #fff;
    font-weight: 800;
    padding: 1rem 3.5rem;
    font-size: 1.4rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    letter-spacing: 0.5px;
}

.btn-hero:hover,
.btn-hero:focus {
    background-color: var(--pp-button);
    border-color: var(--pp-button);
    color: var(--pp-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Music Player Section */
.music-player-section {
    background-color: #fff;
    padding: 2.5rem 0 !important;
}

.music-player-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--pp-button);
    max-width: 420px;
    margin: 0 auto;
}

.music-player-title {
    color: var(--pp-text);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem !important;
}

.audio-player {
    max-width: 100%;
    margin: 0 auto;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.play-pause-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    transform: scale(1.1);
}

.play-pause-btn i {
    font-size: 2.5rem;
    color: var(--pp-accent);
    transition: color 0.2s ease;
}

.play-pause-btn:hover i {
    color: #c46a3d;
}

.audio-progress-container {
    flex: 1;
    min-width: 0;
}

.audio-progress {
    height: 6px;
    background-color: #e0d5c5;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pp-accent) 0%, var(--pp-button) 100%);
    border-radius: 3px;
    width: 0;
    transition: width 0.1s linear;
}

.audio-time {
    font-size: 0.8rem;
    color: var(--pp-text-light);
    margin-top: 0.35rem;
    text-align: center;
}

/* Featured Book Section */
.featured-book-section {
    background-color: var(--pp-background);
}

.featured-book-image-wrapper {
    position: relative;
    text-align: center;
}

.featured-book-image-wrapper .decorative-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.featured-book-cover {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 450px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.featured-book-cover:hover {
    transform: scale(1.02);
}

.featured-book-content {
    padding-left: 2rem;
}

.featured-book-title {
    font-size: 2rem;
    color: var(--pp-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-book-author {
    font-size: 1.1rem;
    color: var(--pp-text-light);
    margin-bottom: 1.5rem;
}

.author-label {
    font-weight: 400;
    font-style: italic;
}

.author-separator {
    margin: 0 0.75rem;
    color: #ccc;
}

.featured-book-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--pp-text);
    margin-bottom: 1.5rem;
}

.featured-book-price {
    font-size: 1.75rem;
}

.featured-book-price .price-amount {
    color: var(--pp-accent);
    font-weight: 800;
}

/* Why Kids Love Section */
.why-kids-love-section {
    background-color: #fff;
}

.section-title {
    font-size: 2rem;
    color: var(--pp-text);
    font-weight: 700;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--pp-button);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pp-button) 0%, #f5d76e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--pp-text);
}

.feature-title {
    font-size: 1.25rem;
    color: var(--pp-text);
    margin-top: 1rem;
    font-weight: 700;
}

.feature-text {
    color: var(--pp-text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Product Preview Section */
.product-preview-section {
    background-color: var(--pp-background);
}

/* Newsletter Section - Homepage */
.newsletter-section {
    background: linear-gradient(135deg, var(--pp-background) 0%, #d4e6f5 100%);
}

.newsletter-title {
    font-size: 2rem;
    color: var(--pp-text);
    font-weight: 700;
}

.newsletter-subtitle {
    font-size: 1.1rem;
    color: var(--pp-text-light);
}

.newsletter-message {
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 8px;
    display: none;
}

.newsletter-message.show {
    display: block;
}

.newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
}

.newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments for Homepage */
@media (max-width: 991px) {
    .hero-section {
        min-height: 380px;
        padding: 2rem 0;
    }

    .hero-spacer {
        height: 260px;
    }

    .btn-hero {
        padding: 0.85rem 2.5rem;
        font-size: 1.15rem;
    }

    .music-player-card {
        max-width: 380px;
        padding: 1rem 1.25rem;
    }

    .music-player-title {
        font-size: 1.1rem;
    }

    .hero-logo {
        max-width: 200px;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .featured-book-content {
        padding-left: 0;
        text-align: center;
        margin-top: 2rem;
    }

    .featured-book-title {
        font-size: 1.75rem;
    }

    .featured-book-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .featured-book-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 320px;
        padding: 1.5rem 0;
    }

    .hero-spacer {
        height: 200px;
    }

    .btn-hero {
        padding: 0.75rem 2rem;
        font-size: 1.05rem;
    }

    .music-player-section {
        padding: 2rem 0 !important;
    }

    .music-player-card {
        max-width: 320px;
        padding: 1rem;
        border-radius: 12px;
    }

    .music-player-title {
        font-size: 1rem;
        margin-bottom: 0.5rem !important;
    }

    .audio-controls {
        gap: 0.5rem;
    }

    .play-pause-btn i {
        font-size: 2rem;
    }

    .audio-progress {
        height: 5px;
    }

    .audio-time {
        font-size: 0.75rem;
        margin-top: 0.25rem;
    }

    .hero-logo {
        max-width: 160px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .featured-book-title {
        font-size: 1.5rem;
    }

    .featured-book-cover {
        max-height: 350px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .audio-controls {
        flex-direction: column;
    }

    .audio-progress-container {
        width: 100%;
    }

    .featured-book-image-wrapper .decorative-bg {
        display: none;
    }
}

/* ==========================================================================
   SHOP PAGE STYLES
   ========================================================================== */

/* Shop Hero Section */
.shop-hero-section {
    background: linear-gradient(135deg, var(--pp-header) 0%, #7aa36a 100%);
    color: #fff;
}

.shop-hero-section h1 {
    color: #fff;
}

.shop-hero-section .text-white-75 {
    color: rgba(255, 255, 255, 0.85);
}

/* Shop Product Grid - Enhanced Product Cards */
.shop-products .product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.shop-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Product Image Container */
.shop-products .product-image {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.shop-products .product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Hover Image Swap */
.shop-products .product-image .secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 220px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-products .product-card:hover .product-image .secondary-image {
    opacity: 1;
}

.shop-products .product-card:hover .product-image .primary-image.has-secondary {
    opacity: 0;
}

/* Quick Add Button */
.quick-add-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--pp-accent);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 123, 72, 0.4);
}

.quick-add-btn:hover {
    background-color: var(--pp-button);
    color: var(--pp-text);
    transform: translateY(0) scale(1.1);
}

.shop-products .product-card:hover .quick-add-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Product Info */
.shop-products .product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shop-products .product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.shop-products .product-info h3 a {
    color: var(--pp-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-products .product-info h3 a:hover {
    color: var(--pp-accent);
}

.shop-products .product-description {
    font-size: 0.9rem;
    color: var(--pp-text-light);
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-products .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pp-accent);
    margin-bottom: 1rem;
}

.shop-products .product-price .compare-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Add to Cart Button - Terracotta with Goldenrod hover */
.shop-products .add-to-cart-btn {
    background-color: var(--pp-accent);
    border-color: var(--pp-accent);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.shop-products .add-to-cart-btn:hover,
.shop-products .add-to-cart-btn:focus {
    background-color: var(--pp-button);
    border-color: var(--pp-button);
    color: var(--pp-text);
}

.shop-products .add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.shop-products .add-to-cart-btn.btn-success {
    background-color: var(--pp-header);
    border-color: var(--pp-header);
    color: #fff;
}

/* Gift Box Section */
.gift-box-section {
    background-color: #fff;
}

.gift-box-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--pp-button);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-box-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gift-box-image {
    overflow: hidden;
}

.gift-box-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gift-box-card:hover .gift-box-image img {
    transform: scale(1.05);
}

.gift-box-info {
    padding: 1.5rem;
    text-align: center;
}

.gift-box-info h3 {
    font-size: 1.25rem;
    color: var(--pp-text);
    margin-bottom: 0.5rem;
}

.gift-box-info p {
    color: var(--pp-text-light);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.gift-box-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pp-accent);
    margin-bottom: 1rem;
}

/* Shipping Note Section */
.shipping-note-section {
    background-color: var(--pp-background);
}

.shipping-note {
    font-size: 1.1rem;
    color: var(--pp-text);
    font-weight: 600;
}

.shipping-note i {
    color: var(--pp-header);
    font-size: 1.3rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-success {
    background-color: var(--pp-header);
    color: #fff;
}

.toast-error {
    background-color: #dc3545;
    color: #fff;
}

.toast-message {
    font-weight: 600;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #fff;
}

/* Cart Badge Bounce Animation */
.cart-badge.bounce {
    animation: badgeBounce 0.5s ease;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.4);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.2);
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR SHOP PAGE
   ========================================================================== */

@media (max-width: 991px) {
    .shop-products .product-image img {
        height: 200px;
    }

    .gift-box-image img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .shop-hero-section h1 {
        font-size: 2rem;
    }

    .shop-products .product-image img {
        height: 180px;
    }

    .quick-add-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .gift-box-image img {
        height: 200px;
    }

    .toast-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .shop-products .product-image img {
        height: 200px;
    }

    .shop-products .product-info {
        padding: 1rem;
    }

    .shipping-note {
        font-size: 1rem;
    }
}

/* ==========================================================================
   FLOATING CART BUTTON (MOBILE)
   ========================================================================== */

.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: var(--pp-button);
    color: var(--pp-text);
    border-radius: 50%;
    display: none; /* Hidden by default, shown via media query */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1040;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    animation: floatingCartFadeIn 0.3s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--pp-text);
    text-decoration: none;
}

.floating-cart-btn:active {
    transform: scale(0.95);
}

.floating-cart-btn i {
    font-size: 1.5rem;
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    background-color: var(--pp-accent);
    color: #fff;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Bounce animation for badge update */
.floating-cart-badge.bounce {
    animation: floatingBadgeBounce 0.5s ease;
}

@keyframes floatingBadgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.4);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.2);
    }
}

/* Fade in animation when button appears */
@keyframes floatingCartFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Only show on screens smaller than 992px (Bootstrap lg breakpoint) */
@media (max-width: 991.98px) {
    .floating-cart-btn {
        display: flex;
    }
}

/* Hide on desktop */
@media (min-width: 992px) {
    .floating-cart-btn {
        display: none !important;
    }
}

/* Adjust position when toast is visible to prevent overlap */
.toast-notification.show ~ .floating-cart-btn,
body:has(.toast-notification.show) .floating-cart-btn {
    bottom: 90px;
}
