/* Reusable Component Styles */

/* Animation Keyframes */
/*@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

/* Button Styles */
.btn, .btn-info, .btn-outline-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 2rem;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(1,172,179,0.08);
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-origin: center;
}

.btn:hover, .btn-info:hover, .btn-outline-info:hover {
    animation: pulse 0.5s ease-in-out;
}

.btn::before, .btn-info::before, .btn-outline-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before, .btn-info:hover::before, .btn-outline-info:hover::before {
    opacity: 1;
}

.btn-outline-info {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-info:hover {
    color: white;
    border-color: transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 172, 179, 0.3);
}

/* Card Styles */
.card, .product-card, .category-card, .feature-card {
    border-radius: 1.25rem;
    box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.08);
    transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
    background: #fff;
}

.card:hover, .product-card:hover, .category-card:hover, .feature-card:hover {
    box-shadow: 0 8px 32px 0 rgba(1, 172, 179, 0.12);
    transform: translateY(-4px) scale(1.02);
}

/*.card::before, .product-card::before, .category-card::before, .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card:hover::before, .product-card:hover::before, .category-card:hover::before, .feature-card:hover::before {
    opacity: 0.05;
}
*/

/* Product Card Styles */
.product-card {
    position: relative;
    box-shadow: var(--shadow-soft);
}

.product-card .card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card .card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.product-card .card-text {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2;
}

.product-badge.sale {
    background: var(--secondary-color);
}

/* Form Styles */
.form-control, .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #fff;
    color: var(--text-color, #222);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color, #01acb3);
    box-shadow: 0 0 0 0.2rem rgba(1, 172, 179, 0.25);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
    border: none;
    overflow: hidden;
}

.modal.show .modal-content {
    animation: modalSlideIn 0.3s ease forwards;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
}

.modal .btn-close {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background: transparent;
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.modal .btn-close:hover {
    opacity: 1;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0.1;
    border-radius: inherit;
    transition: opacity 0.3s ease;
}

.badge:hover::before {
    opacity: 0.2;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 1001;
}

/* Text Gradient */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Fade In Section */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Card Effect */
.hover-card {
    position: relative;
    overflow: hidden;
}

.hover-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.hover-card:hover {
    transform: translateY(-5px);
}

.hover-card:hover::after {
    opacity: 0.05;
}

/* Animation Utility Classes */
.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    animation: float 3s ease-in-out infinite;
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(1, 172, 179, 0.4);
}

.text-animate {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-hover-zoom:hover img {
    transform: scale(1.1) rotate(2deg);
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 200px;
    }
    
    .modal-content {
        margin: 1rem;
    }
    
    .hover-float:hover {
        animation: none;
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.6rem 1.25rem;
    }
    
    .product-card .card-img-top {
        height: 180px;
    }
    
    .product-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .img-hover-zoom:hover img {
        transform: scale(1.05);
    }
}

/* Cart Icon Styling */
.cart-icon {
    position: relative;
    color: #01acb3;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    color: var(--primary-color);
    background: rgba(1, 172, 179, 0.1);
    transform: translateY(-1px);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Cart Modal Styling */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.cart-quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px;
    font-size: 14px;
}

.cart-remove-btn {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cart-remove-btn:hover {
    background: #dc3545;
    color: white;
} 

/* Section Spacing */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Responsive Typography */
h1, .display-4 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 600; }
h3, h4, h5 { font-weight: 600; }

/* Utility: Hide Scrollbar for all browsers */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

/* Fix tab-pane content vertical alignment for wishlist and settings */
.tab-pane > .profile-card {
  margin-top: 0 !important;
}
.tab-pane {
  padding-top: 0 !important;
} 

