/**
 * harryblaze concepts Custom Styles
 * Professional UI/UX Design
 */

:root {
    --primary: #0096DF;
    --primary-dark: #00072E;
    --primary-light: #e6f4fc;
    --accent: #0096DF;
    --accent-light: #00B4FF;
    --success: #10b981;
    --text: #111827;
    --text-light: #4B5563;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Global Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Modern Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* Sleek Button Styles */
.btn-sleek {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-sleek-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 150, 223, 0.3);
}

.btn-sleek-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 223, 0.4);
    color: white;
}

.btn-sleek-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-sleek-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Sleek Form Controls */
.form-control-sleek {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background-color: var(--bg-light);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-sleek:focus {
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 150, 223, 0.1);
    outline: none;
}

.input-group-text-sleek {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-light);
    padding-left: 1.25rem;
    padding-right: 0.75rem;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(0, 7, 46, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.card-sleek {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Auth Layout */
.auth-bg {
    background: radial-gradient(circle at top left, var(--primary-light), transparent),
                radial-gradient(circle at bottom right, rgba(0, 150, 223, 0.05), transparent);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

/* WhatsApp CTA Modern Styles */
.whatsapp-cta-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-cta-container .cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.whatsapp-cta-container .cta-icon {
    font-size: 2.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: #25D366;
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-cta-container .cta-text {
    flex: 1;
}

.whatsapp-cta-container .cta-title {
    font-weight: 800;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.whatsapp-cta-container .cta-phrase {
    margin-bottom: 0;
    color: var(--text-light);
    font-size: 1.05rem;
}

.whatsapp-cta-container .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    background: #25D366;
    color: white;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-cta-container .cta-button:hover {
    background: #128C7E;
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Form Sleekness */
.form-control-sleek {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-control-sleek:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.input-group-text-sleek {
    border: 1px solid var(--border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background-color: var(--bg-light);
    color: var(--text-light);
}

.card-sleek {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.glass {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.whatsapp-cta-container.glass-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(0, 150, 223, 0.05) 100%);
    pointer-events: none;
}

/* Vibrant Variant */
.whatsapp-cta-container.vibrant-cta {
    background: linear-gradient(135deg, #00072E 0%, #0096DF 100%);
    color: white;
}

.whatsapp-cta-container.vibrant-cta .cta-phrase {
    color: rgba(255, 255, 255, 0.8);
}

.whatsapp-cta-container.vibrant-cta .cta-title {
    color: white;
}

.whatsapp-cta-container.vibrant-cta .cta-button {
    background: white;
    color: #00072E;
}

.whatsapp-cta-container.vibrant-cta .cta-button:hover {
    background: #25D366;
    color: white;
}

/* Minimal Variant */
.whatsapp-cta-container.minimal-cta {
    background: var(--bg-light);
    border: 1px solid var(--border);
}

/* Responsive CTA */
@media (max-width: 768px) {
    .whatsapp-cta-container .cta-content {
        flex-direction: column;
        text-align: center;
    }
    .whatsapp-cta-container .cta-icon {
        margin: 0 auto;
    }
    .whatsapp-cta-container .cta-button {
        width: 100%;
        justify-content: center;
    }
}


.glass-dark {
    background: rgba(0, 7, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Navbar Overlay */
.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 7, 46, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.navbar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sleek Cards */
.card-sleek {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card-sleek:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-sleek:hover .card-image-wrapper img {
    transform: scale(1.08);
}

/* Modern Input Fields */
.form-control-sleek {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.form-control-sleek:focus {
    background: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(0, 150, 223, 0.1);
    outline: none;
}

/* Badge Styles */
.badge-sleek {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sleek-primary {
    background: var(--primary-light);
    color: var(--primary);
}

/* Navigation Overrides */
.navbar-sleek {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1050;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white !important;
        padding: 1.5rem 1.5rem 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
        z-index: 1060;
        box-shadow: -15px 0 40px rgba(0,0,0,0.08);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow-y: auto;
    }

    .navbar-collapse.show {
        right: 0;
    }

    .navbar-collapse .nav-link-sleek {
        padding: 0.85rem 1rem !important;
        font-size: 1rem;
        border-radius: var(--radius-md);
        border-bottom: none !important;
        margin-bottom: 0.25rem;
        display: flex;
        align-items: center;
    }
    
    .navbar-collapse .nav-link-sleek i {
        font-size: 1.25rem;
        opacity: 0.7;
    }
    
    .navbar-collapse .nav-link-sleek:hover,
    .navbar-collapse .nav-link-sleek.active {
        background: var(--primary-light) !important;
        color: var(--primary) !important;
    }

    .navbar-collapse .nav-link-sleek.active i {
        opacity: 1;
    }

    .btn-close-premium {
        background: var(--primary-light);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-close-premium:hover {
        background: var(--primary);
        color: white;
        transform: rotate(90deg);
    }
}

.nav-link-sleek {
    position: relative;
    color: var(--text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.nav-link-sleek:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.nav-link-sleek.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: var(--primary-light);
}

/* Remove the underline animation for a cleaner look */
.nav-link-sleek::after {
    display: none;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Layout Helpers */
main {
    min-height: 80vh;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.hover-primary:hover {
    color: var(--primary) !important;
    transition: color 0.2s ease;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.extra-small {
    font-size: 0.75rem;
}

/* Auth & Forms Modernization */
.auth-bg {
    background: radial-gradient(circle at 0% 0%, rgba(0, 150, 223, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(0, 150, 223, 0.05) 0%, transparent 50%);
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.card-sleek.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.form-control-sleek {
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    border: 1px solid #e2e8f0;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
}

.form-control-sleek:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 150, 223, 0.1);
    outline: none;
}

.input-group-text-sleek {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #e2e8f0;
    border-radius: 12px 0 0 12px;
    color: #64748b;
    padding-left: 1.25rem;
    padding-right: 0.75rem;
    transition: all 0.3s ease;
}

.form-control-sleek:focus + .input-group-text-sleek,
.input-group:focus-within .input-group-text-sleek {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sleek {
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-sleek-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 150, 223, 0.2);
}

.btn-sleek-primary:hover {
    background: #0082c2;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 150, 223, 0.3);
    color: white;
}

.btn-sleek-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.btn-sleek-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-2px);
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

/* Utilities */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-bg-light:hover {
    background: var(--primary-light) !important;
}

.group-hover-scale {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .group-hover-scale {
    transform: scale(1.1);
}

.group-hover-primary {
    transition: color 0.3s ease;
}

.group:hover .group-hover-primary {
    color: var(--primary) !important;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cart Table Modernization */
.table-sleek {
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.table-sleek thead th {
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-light);
    padding: 1rem 1.5rem;
}

.table-sleek tbody tr {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-sleek tbody tr:hover {
    transform: scale(1.005);
    box-shadow: var(--shadow-md);
}

.table-sleek td {
    padding: 1.5rem;
    border: none;
    vertical-align: middle;
}

.table-sleek td:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.table-sleek td:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* Quantity Controls */
.qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    width: fit-content;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s ease;
}

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

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Smooth Scrolling - handled by JavaScript for better performance */
/* html {
    scroll-behavior: smooth;
} */

/* Modern Button Styles */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    font-weight: 600;
    padding: 0.875rem 2rem;
    box-shadow: var(--shadow-md);
}

.btn-modern::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.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #0096DF 0%, #00072E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated Background */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 150, 223, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Hover Effects */
.card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
}

.whatsapp-float i {
    line-height: 60px;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
    .whatsapp-float i {
        line-height: 50px;
    }
}

/* Animations */
/* Pulse Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Number Counter Animation */
@keyframes countUp {
    from { transform: scale(1.2); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.count-up {
    animation: countUp 0.5s ease-out;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

