/* Premium Design & Colorful Forms */

:root {
    --pd-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --pd-secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --pd-accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --pd-surface: rgba(255, 255, 255, 0.95);
    --pd-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --pd-glow: 0 0 20px rgba(99, 102, 241, 0.2);
    --pd-radius: 24px;
    --pd-text-main: #1e293b;
    --pd-text-muted: #64748b;
}

/* Background Animation */
@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.premium-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient-move 15s ease infinite;
    min-height: 100vh;
}

/* Retailer Dashboard Background */
.retailer-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

/* Auth Cards */
/* Auth Cards & Dashboard Cards */
.auth-card,
.checkout-section,
.seller-type-card,
.card,
.account-sidebar {
    background: var(--pd-surface);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--pd-shadow);
    border-radius: var(--pd-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.auth-card:hover,
.checkout-section:hover,
.seller-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.auth-card::before,
.checkout-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--pd-primary-gradient);
}

/* Inputs */
.form-control,
.checkout-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    font-size: 1rem;
}

.form-control:focus,
.checkout-input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: scale(1.01);
}

/* Buttons */
.btn-primary,
.btn-accent {
    background: var(--pd-primary-gradient) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -2px rgba(99, 102, 241, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.btn-primary:hover,
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4), 0 10px 10px -5px rgba(99, 102, 241, 0.2) !important;
}

.btn-primary:hover:after {
    transform: translateY(0);
}

/* Headers */
.auth-header h1,
.section-header h2,
.page-hero h1 {
    background: var(--pd-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Checkout Specifics */
.step-number {
    background: var(--pd-secondary-gradient) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 36px !important;
    height: 36px !important;
}

.summary-qty {
    background: var(--pd-secondary-gradient) !important;
}

.delivery-option.active,
.payment-option.active {
    border-color: transparent !important;
    position: relative;
    background: #fff !important;
    box-shadow: 0 0 0 2px #6366f1, var(--pd-glow);
}

.delivery-option.active::after,
.payment-option.active::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--pd-primary-gradient);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tabs */
.auth-tabs {
    background: #f1f5f9 !important;
    padding: 6px !important;
    border-radius: 99px !important;
    display: flex !important;
    gap: 6px !important;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 99px !important;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.tab-btn:hover {
    color: #475569;
    background: rgba(255, 255, 255, 0.6);
}

.tab-btn.active {
    background: white !important;
    color: #6366f1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    font-weight: 700;
    border-color: rgba(99, 102, 241, 0.1);
}

/* Badges & Icons */
.card-icon {
    background: var(--pd-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}



/* Layout & Spacing Improvements */
.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--pd-text-main);
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.auth-card {
    padding: 50px !important;
    /* Ensure abundant spacing */
}

.checkout-grid {
    gap: 40px;
}

.auth-form .form-control {
    width: 100%;
}

/* Auth Footer (Login Link) */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 1.1rem;
    color: var(--pd-text-main);
    font-weight: 500;
}

.auth-footer a {
    color: #6366f1;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
    margin-left: 5px;
}



/* --- Premium Navigation --- */
.main-nav {
    background: #ffffff;
    border-bottom: 2px solid #eef2f6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1000;
}

/* Gradient accent line at the top */
.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pd-primary-gradient);
}

.nav-list {
    gap: 12px;
}

.nav-item a {
    font-size: 22px;
    /* Increased to 22px as requested */
    font-weight: 900;
    /* Increased to 900 (Black/Boldest) */
    color: #334155;
    /* Dark slate */
    padding: 10px 18px;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

/* Hover Effect: Visible Pill Background */
.nav-item a:hover,
.nav-item.active a {
    background: #eff6ff;
    /* Light blue background */
    color: #1d4ed8;
    /* Strong blue text */
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.1);
}

/* Remove default underline effect since we use pill */
.nav-item a::after {
    display: none;
}

.nav-item .arrow {
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* --- Products Sidebar & Utilities --- */
.products-sidebar .filter-section {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    /* Deeper shadow */
}

.products-sidebar .filter-section h3 {
    font-size: 20px !important;
    /* Larger header */
    font-weight: 800 !important;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    color: #0f172a !important;
}

.category-list li,
.filter-list li {
    margin-bottom: 8px;
}

.category-list li a,
.filter-list li a {
    padding: 14px 18px !important;
    border-radius: 12px;
    font-size: 16px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: white;
}

.category-list li a:hover,
.filter-list li a:hover {
    background: #f0f9ff !important;
    color: #0284c7 !important;
    /* Sky blue hover */
    transform: translateX(5px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Vibrant Active State */
.category-list li a.active,
.filter-list li a.active {
    background: var(--pd-primary-gradient) !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 16px -4px rgba(99, 102, 241, 0.4);
    border: none;
}

/* Count Badge Styling */
.category-list li a .count {
    font-size: 12px !important;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.category-list li a.active .count {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Price Range Inputs - Vertical Stack */
.products-sidebar .price-inputs {
    display: flex;
    flex-direction: column !important;
    /* Stack vertically as requested */
    gap: 12px;
}

.products-sidebar .price-inputs span {
    display: none !important;
    /* Hide hyphen */
}

.price-inputs input {
    padding: 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px;
    font-size: 15px !important;
    background: #f8fafc;
    width: 100% !important;
    /* Ensure full width */
}

.price-inputs input:focus {
    background: #fff;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Apply Button */
.btn-filter,
.products-sidebar button[type="submit"] {
    background: var(--pd-primary-gradient) !important;
    border: none;
    color: white !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px !important;
    border-radius: 14px !important;
    margin-top: 16px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: transform 0.2s;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

/* --- Product Header & Controls --- */
.products-header {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options label {
    font-size: 14px;
    font-weight: 700;
    /* Bold label */
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sort-options select {
    appearance: none;
    /* Remove default arrow to style cleaner if possible, or keep default but style box */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;

    padding: 12px 48px 12px 20px !important;
    /* Extra right padding for arrow */
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}

.sort-options select:hover {
    border-color: #cbd5e1 !important;
    background-color: white;
}

.sort-options select:focus {
    outline: none;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* Empty State Polish */
.empty-state .icon {
    font-size: 80px;
    /* Larger icon */
    -bottom: 24px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.empty-state h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--pd-text-main);
}

/* --- Breadcrumb Premium --- */
.breadcrumb-section {
    background: #f8fafc;
    padding: 24px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    /* Larger text */
    font-weight: 600;
}

.breadcrumb a {
    color: #64748b;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.breadcrumb a:hover {
    color: #6366f1;
    /* Primary Hover */
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    margin: -4px -12px;
    /* Compensate padding */
}

/* Treat the slash span as a separator */
.breadcrumb span:not(:last-child) {
    color: #cbd5e1;
    font-size: 14px;
}

/* Active Page (Last Span) */
.breadcrumb span:last-child {
    color: #0f172a;
    /* Dark bold for current page */
    font-weight: 800;
    background: white;
    padding: 6px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Premium Dropdown */
.dropdown-menu {
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 12px;
    top: calc(100% + 10px);
    animation: dropdownSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    margin-top: 15px;
    /* Spacing from pill */
}

.dropdown-menu a {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--pd-text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: #6366f1;
    transform: translateX(4px);
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mega Menu Polish */
.mega-menu {
    padding: 40px;
    border-radius: 0 0 24px 24px;
    margin-top: 1px;
}

.mega-menu-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--pd-text-main);
}

/* Nav Right/Secondary Links */
.nav-right a {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-right a:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* Highlight "Offers" */
.nav-item a.highlight {
    background: var(--pd-accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.nav-item a.highlight::after {
    background: var(--pd-accent-gradient);
}

/* --- Footer Premium --- */
.main-footer {
    background: #0f172a !important;
    /* Dark Navy as foundation */
    padding-top: 80px;
    padding-bottom: 40px;
    color: #cbd5e1;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

/* Add a top gradient line */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    /* Larger logo */
    margin-bottom: 24px;
    border-radius: 12px;
    background: white;
    /* Ensure visibility if transparent */
    padding: 4px;
}

.footer-col p {
    font-size: 18px !important;
    /* Enlarged from 15px */
    line-height: 1.6;
    color: #e2e8f0 !important;
    /* Brighter white-grey */
    font-weight: 600 !important;
    /* Boldened */
    max-width: 340px;
    letter-spacing: 0.01em;
}

.footer-col h4 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

/* Header line accent */
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 4px;
    background: #6366f1;
    /* Primary accent */
    border-radius: 4px;
}

.footer-col ul {
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a {
    color: #cbd5e1 !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #fff !important;
    transform: translateX(6px);
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

/* Contact Info Highlight */
.contact-info li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: #e2e8f0;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 15px;
}

.contact-info a {
    color: #60a5fa !important;
    /* Blue links for contact */
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer Bottom Polish */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 15px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #cbd5e1 !important;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- The Gents Section Premium Styles --- */
.gents-section .section-header.centered {
    margin-bottom: 32px;
    text-align: center;
    justify-content: center;
}

.gents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.gents-card {
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    background: white;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gents-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
}

.gents-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.gents-footer {
    text-align: center;
    margin-top: 32px;
}

.gents-link {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.gents-link:hover {
    color: #b91c1c;
    transform: scale(1.1) rotate(-2deg);
    text-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.gents-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.gents-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
