/* Additional styles for notification and cart modal */

/* Notification Toast Styles */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(500px);
    transition: transform 0.3s ease;
    z-index: 10000;
    border-left: 4px solid #4caf50;
}

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

.notification-toast.notification-success {
    border-left-color: #4caf50;
}

.notification-toast.notification-error {
    border-left-color: #f44336;
}

.notification-toast.notification-warning {
    border-left-color: #ff9800;
}

.notification-toast.notification-info {
    border-left-color: #2196f3;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 24px;
    font-weight: bold;
}

.notification-success .notification-icon {
    color: #4caf50;
}

.notification-error .notification-icon {
    color: #f44336;
}

.notification-warning .notification-icon {
    color: #ff9800;
}

.notification-info .notification-icon {
    color: #2196f3;
}

.notification-message {
    flex: 1;
    color: #333;
    font-size: 14px;
}

/* Cart Modal Styles */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.cart-modal.show {
    display: block;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cart-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-modal-close:hover {
    background: #f0f0f0;
}

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

.cart-dropdown-empty {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-dropdown-items {
    margin-bottom: 20px;
}

.cart-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cart-dropdown-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

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

.cart-item-info h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
}

.cart-item-price {
    font-weight: bold;
    color: var(--capybara-brown);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #f44336;
}

.cart-dropdown-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.btn-checkout {
    width: 100%;
}

/* Product Card Enhancements */
.product-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

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

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

.product-card .real-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-content {
    padding: 20px;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--capybara-dark);
}

.product-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-rating .stars {
    color: #ffc107;
}

.product-rating .review-count {
    font-size: 14px;
    color: #999;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price {
    font-size: 40px;
    font-weight: bold;
    color: var(--capybara-brown);
}

.original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #999;
}

.sale-price {
    color: #e74c3c;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff9800;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--capybara-brown);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #704d2f;
}

.add-to-cart-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Filter Buttons */
.category-filters,
.type-filters {
    margin-bottom: 24px;
}

.category-filter-btn,
.type-filter-btn {
    margin: 4px;
}

.btn.active {
    background-color: var(--capybara-brown) !important;
    color: white !important;
    border-color: var(--capybara-brown) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--capybara-brown);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #704d2f;
    transform: translateY(-4px);
}

/* Error Message Styles */
.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 4px;
}

.form-control.error,
.form-select.error {
    border-color: #f44336;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-warning {
    background: #ff9800;
    color: white;
}

.badge-danger {
    background: #f44336;
    color: white;
}

/* No Products Message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-products-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.no-products h3 {
    margin-bottom: 12px;
    color: var(--capybara-dark);
}

.no-products p {
    color: #666;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cart-modal-content {
        max-width: 100%;
    }
    
    .notification-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* ====================================
   PRODUCT DETAILS PAGE ENHANCEMENTS
   ==================================== */

/* Quantity Selector Styling */
.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-selector .form-label {
    font-weight: 600;
    color: var(--capybara-brown);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.quantity-selector .input-group {
    max-width: 150px;
}

.quantity-selector .btn-outline-secondary {
    background: var(--capybara-coral);
    border: 2px solid var(--capybara-coral);
    color: white;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.quantity-selector .btn-outline-secondary:hover {
    background: var(--capybara-brown);
    border-color: var(--capybara-brown);
    color: white;
    transform: scale(1.05);
}

.quantity-selector .btn-outline-secondary:focus {
    background: var(--capybara-coral);
    border-color: var(--capybara-coral);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(232, 168, 124, 0.25);
}

.quantity-selector .btn-outline-secondary i {
    font-size: 0.9rem;
}

.quantity-selector .form-control {
    border: 2px solid var(--capybara-beige);
    font-weight: 600;
    color: var(--capybara-brown);
    height: 40px;
}

.quantity-selector .form-control:focus {
    border-color: var(--capybara-coral);
    box-shadow: 0 0 0 0.2rem rgba(232, 168, 124, 0.25);
}

/* Product Actions - Full Width Add to Cart */
.product-actions {
    margin-top: 2rem;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, var(--capybara-coral) 0%, var(--capybara-brown) 100%);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 168, 124, 0.3);
}

.product-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 168, 124, 0.4);
}

.product-actions .btn-primary:active {
    transform: translateY(-1px);
}

.product-actions .btn-primary i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Hide Buy Now Button and Specifications */
#buyNowBtn,
.product-specifications {
    display: none !important;
}

/* ====================================
   PRODUCT FEATURES STYLING - CAPYBARA THEME
   ==================================== */

/* Product Features Container */
.product-features {
    background: linear-gradient(135deg, #fff8f0 0%, #fffbf5 100%);
    border: 3px solid var(--capybara-beige);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.1);
    position: relative;
    overflow: hidden;
}

.product-features::before {
    content: '\1F9AB';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 6rem;
    opacity: 0.05;
    transform: rotate(-15deg);
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.product-features h3 {
    color: var(--capybara-brown);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid var(--capybara-coral);
    padding-bottom: 0.6rem;
}

.product-features h3::before {
    content: '\2728';
    font-size: 1.3rem;
    animation: sparkleRotate 3s ease-in-out infinite;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

@keyframes sparkleRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(-10deg) scale(1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

/* Feature List Styling */
.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-features li {
    position: relative;
    padding: 0.9rem 1rem 0.9rem 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid var(--capybara-beige);
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--capybara-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.05);
}

.product-features li::before {
    content: '\1F9AB';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.product-features li:hover {
    transform: translateX(8px);
    border-color: var(--capybara-coral);
    background: linear-gradient(135deg, #fffaf5 0%, #fff5ed 100%);
    box-shadow: 0 4px 15px rgba(232, 168, 124, 0.2);
}

.product-features li:hover::before {
    transform: translateY(-50%) scale(1.2) rotate(10deg);
    filter: drop-shadow(0 2px 4px rgba(139, 111, 71, 0.3));
}

/* Alternate emoji styles for variety */
.product-features li:nth-child(2n)::before {
    content: '\2705';
}

.product-features li:nth-child(3n)::before {
    content: '\1F49A';
}

.product-features li:nth-child(4n)::before {
    content: '\2B50';
}

.product-features li:nth-child(5n)::before {
    content: '\1F31F';
}

/* Feature highlight on hover */
.product-features li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--capybara-mint) 0%, transparent 100%);
    border-radius: 12px 0 0 12px;
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0.3;
}

.product-features li:hover::after {
    width: 100%;
}

/* Floating animation for capybara decoration */
@keyframes floatDecor {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.product-features::after {
    content: '\1F33F';
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 1.8rem;
    opacity: 0.15;
    animation: floatDecor 4s ease-in-out infinite;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .product-features {
        padding: 1.2rem;
        border-radius: 15px;
    }
    
    .product-features h3 {
        font-size: 1.4rem;
    }
    
    .product-features li {
        padding: 0.8rem 0.8rem 0.8rem 3rem;
        font-size: 0.95rem;
    }
    
    .product-features li::before {
        font-size: 1.4rem;
        left: 0.6rem;
    }
    
    .product-features::before {
        font-size: 4.5rem;
        top: -10px;
        right: -10px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .product-features {
        padding: 1rem;
    }
    
    .product-features h3 {
        font-size: 1.2rem;
        gap: 0.25rem;
    }
    
    .product-features li {
        padding: 0.75rem 0.75rem 0.75rem 2.8rem;
        font-size: 0.9rem;
        border-radius: 10px;
        gap: 0.5rem;
    }
    
    .product-features li::before {
        font-size: 1.2rem;
        left: 0.5rem;
    }
}

/* Zen Capybara Enhancement - Optional variant */
.product-features.zen-style {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    border-color: var(--capybara-green);
}

.product-features.zen-style::before {
    content: '\1F9D8\200D\2642\FE0F';
}

.product-features.zen-style li {
    border-color: var(--capybara-mint);
}

.product-features.zen-style li:hover {
    border-color: var(--capybara-green);
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

/* Kuromi Dark Theme Variant */
.product-features.kuromi-style {
    background: linear-gradient(135deg, #2a1a3a 0%, #1a0f25 100%);
    border-color: #663399;
    box-shadow: 0 8px 25px rgba(102, 51, 153, 0.2);
}

.product-features.kuromi-style::before {
    content: '\1F480';
    color: #9966cc;
    opacity: 0.1;
}

.product-features.kuromi-style h3 {
    color: #ffffff;
    border-bottom-color: #9966cc;
}

.product-features.kuromi-style h3::before {
    content: '\26A1';
}

.product-features.kuromi-style li {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: #663399;
    color: #e6e6ff;
}

.product-features.kuromi-style li::before {
    content: '\1F5A4';
    filter: drop-shadow(0 0 5px #9966cc);
}

.product-features.kuromi-style li:nth-child(2n)::before {
    content: '\1F49C';
}

.product-features.kuromi-style li:nth-child(3n)::before {
    content: '\26D3\FE0F';
}

.product-features.kuromi-style li:nth-child(4n)::before {
    content: '\1F319';
}

.product-features.kuromi-style li:nth-child(5n)::before {
    content: '\2728';
}

.product-features.kuromi-style li:hover {
    border-color: #9966cc;
    background: linear-gradient(135deg, rgba(153, 102, 204, 0.15) 0%, rgba(102, 51, 153, 0.1) 100%);
    box-shadow: 0 5px 20px rgba(153, 102, 204, 0.3);
}

.product-features.kuromi-style li::after {
    background: linear-gradient(90deg, rgba(153, 102, 204, 0.2) 0%, transparent 100%);
}

.product-features.kuromi-style::after {
    content: '\26D3\FE0F';
    color: #9966cc;
    opacity: 0.2;
}

/* Cinnamoroll Cloud Theme Variant */
.product-features.cinnamoroll-style {
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
    border-color: var(--cinnamoroll-blue);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.15);
}

.product-features.cinnamoroll-style::before {
    content: '\2601\FE0F';
    color: var(--cinnamoroll-blue);
    opacity: 0.08;
}

.product-features.cinnamoroll-style h3 {
    color: #4a90e2;
    border-bottom-color: var(--cinnamoroll-blue);
}

.product-features.cinnamoroll-style h3::before {
    content: '\2601\FE0F';
}

.product-features.cinnamoroll-style li {
    background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
    border-color: var(--cinnamoroll-blue);
    color: #2c5f8d;
}

.product-features.cinnamoroll-style li::before {
    content: '\2601\FE0F';
    filter: drop-shadow(0 2px 4px rgba(135, 206, 235, 0.3));
}

.product-features.cinnamoroll-style li:nth-child(2n)::before {
    content: '\1F499';
}

.product-features.cinnamoroll-style li:nth-child(3n)::before {
    content: '\2728';
}

.product-features.cinnamoroll-style li:nth-child(4n)::before {
    content: '\1F31F';
}

.product-features.cinnamoroll-style li:nth-child(5n)::before {
    content: '\1F9B4';
}

.product-features.cinnamoroll-style li:hover {
    border-color: #74b9ff;
    background: linear-gradient(135deg, #f0f8ff 0%, #e1f0ff 100%);
    box-shadow: 0 5px 20px rgba(135, 206, 235, 0.25);
}

.product-features.cinnamoroll-style li::after {
    background: linear-gradient(90deg, rgba(135, 206, 235, 0.15) 0%, transparent 100%);
}

.product-features.cinnamoroll-style::after {
    content: '\2728';
    color: var(--cinnamoroll-blue);
    opacity: 0.2;
}
