/* Vazirmatn Font */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

h2 {
    font-size: 1.5rem;
}
p,div{
    font-size: .9rem;
}
h3{
    font-size: 1.2rem;
    margin: unset;
}
h4{
    font-size: .9rem;
    margin: unset;
}
h1{
    font-size: 1.2rem
}
h5{
    font-size: 1rem;
}
h6{
    font-size: .8rem;
}
a{
    text-decoration: none;
}

/* RTL Bootstrap Override */

@font-face {
    font-family: 'IRANSans';
    src: url('./IRANSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'IRANSans';
}

figure {
    margin: 0;
}

body {
    direction: rtl;
    text-align: right;
    background: #FFFFFF;
    min-height: 100vh;
}

/* Custom Color Scheme - Simple White & Orange */
:root {
    --primary-color: #6ab8c0;
    --primary-dark: teal;
    --primary-light: #FF8A65;
    --secondary-color: #FF6B35;
    --secondary-dark: #E55A2B;
    --accent-color: #FF6B35;
    --accent-light: #FF8A65;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #FFFFFF;
    --dark-color: #333333;
    --muted-color: #666666;
    --border-color: #E9ECEF;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #6ab8c0 0%, #19707a 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #FF8A65 100%);
    --gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #FFF5F0 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #ffffff 100%);
}

/* Override Bootstrap Colors */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: var(--gradient-secondary);
    border: none;
    box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.25);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(5, 150, 105, 0.35);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
}

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

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

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-secondary {
    background: var(--gradient-secondary) !important;
}

.text-success {
    color: var(--success-color) !important;
}

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

.text-warning {
    color: var(--warning-color) !important;
}

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

.text-danger {
    color: var(--danger-color) !important;
}

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

.text-info {
    color: var(--info-color) !important;
}

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

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.2rem;
    color: #000 !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem;
    margin: 0 0.5rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.1);
}

.navbar-nav {
    align-items: center;
}

/* Search Box */
.search-box {
    max-width: 400px;
    width: 100%;
}

.search-box .form-control {
    border-radius: 25px 0 0 25px;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
    background: white;
}

.search-box .btn {
    border-radius: 0 25px 25px 0;
    border: 2px solid var(--border-color);
    border-left: none;
    background: var(--gradient-primary);
    color: white;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.search-box .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Large Screen Search Box */
@media (min-width: 1200px) {
    .search-box {
        max-width: 350px;
    }

    .search-box .form-control {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .search-box .btn {
        padding: 0.4rem 0.8rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem .5rem !important;
        margin: 0 0.5rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F0 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23FF6B35" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23FF6B35" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.min-vh-50 {
    min-height: 50vh;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Category Cards */
.category-card {
    background: #f2f2f2;
    border-radius: 1rem;
    padding: .7rem;
    text-align: center;
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);*/
    transition: all 0.3s ease;
    border: 2px solid #E9ECEF;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(0);
}

.category-card:hover {
    transform: translateY(-0px);
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);*/
    border-color: var(--primary-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(227, 255, 252, 0.3);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(227, 255, 252, 0.4);
}

.category-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--muted-color);
    margin: 0;
}

/* Product Cards */
.product-card {
    background: #FFFFFF;
    border-radius: 1rem;
    overflow: hidden;

    transition: all 0.3s ease;
    border: 2px solid #E9ECEF;
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 0.08;
}

.product-card:hover {
    transform: translateY(-0px);

    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #F8F9FA;
    border-radius: 0.5rem 0.5rem 0 0;
}

.product-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #00dfcab8;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 0.5rem 0.5rem 0 0;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1rem;
}

.product-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: .7rem;
    font-size: .9rem;
}

.product-price {
    margin-bottom: 0.5rem;
}

.current-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.old-price {
    color: var(--muted-color);
    text-decoration: line-through;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.product-rating {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.product-rating span {
    color: var(--muted-color);
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #E9ECEF;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.feature-card h5 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--muted-color);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background: #333333 !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23FF6B35" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23FF6B35" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grain)"/></svg>');
    opacity: 0.2;
}

footer h5, footer h6 {
    color: white !important;
    font-weight: 600;
}

footer .text-muted {
    color: #adb5bd !important;
}

footer a {
    transition: color 0.3s ease;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Cart Responsive Styles */
@media (max-width: 768px) {
    .cart-item .card-body {
        padding: 1rem;
    }

    .cart-item .row {
        margin: 0;
    }

    .cart-item .col-lg-2,
    .cart-item .col-lg-4,
    .cart-item .col-lg-2 {
        padding: 0.25rem;
    }

    .cart-actions {
        margin-top: 0.5rem;
    }

    .quantity-selector {
        margin: 0.5rem 0;
    }

    .price-info {
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .cart-item .card-body {
        padding: 0.75rem;
    }

    .cart-item h6 {
        font-size: 0.9rem;
    }

    .cart-item .small {
        font-size: 0.75rem;
    }

    .quantity-selector input {
        width: 40px !important;
    }

    .cart-actions .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 0;
    }

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

    .category-card,
    .feature-card {
        margin-bottom: 1.5rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

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

    .hero-section p {
        font-size: 1rem;
    }

    .category-card,
    .feature-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .search-box {
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        margin: 0.25rem 0;
    }

    .product-card {
        margin-bottom: 1rem;
    }

    .auth-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .category-card,
    .feature-card {
        padding: 1rem;
    }

    .product-info {
        padding: 1rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Mobile Navigation */
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .category-card,
    .feature-card {
        padding: 0.75rem;
    }
}

/* Custom Utilities */
.shadow-sm {
    box-shadow: 0 2px 8px var(--shadow-color) !important;
}

.shadow {
    box-shadow: 0 4px 20px var(--shadow-color) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15) !important;
}

.rounded-3 {
    border-radius: 1.5rem !important;
}

.rounded-4 {
    border-radius: 2rem !important;
}

/* Custom Spacing */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

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

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --secondary-color: #008000;
        --danger-color: #FF0000;
        --border-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

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

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

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

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

.pulse {
    animation: pulse 2s infinite;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.3rem;
    border-radius: 0.5rem;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-secondary {
    background: var(--gradient-secondary) !important;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: white !important;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    color: var(--muted-color);
    border-color: var(--border-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--muted-color);
    border-color: var(--muted-color);
    color: white;
}

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

.btn-outline-danger:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

/* Form Controls */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    background: white;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    background: white;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
}

.card-body {
    background: white;
}

/* Auth Section Styles */
.auth-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Auth Tabs */
.auth-tabs .nav-pills {
    background: #F8F9FA;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 2rem;
}

.auth-tabs .nav-link {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: var(--muted-color);
    border: none;
    transition: all 0.3s ease;
}

.auth-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.auth-tabs .nav-link:hover:not(.active) {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* Auth Card */
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Auth Header */
.auth-header {
    margin-bottom: 2rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.auth-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.auth-subtitle {
    color: var(--muted-color);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Form Styles */
.auth-form .form-floating {
    margin-bottom: 1.5rem;
}

.auth-form .form-floating > .form-control {
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 1rem 1rem;
    height: auto;
    transition: all 0.3s ease;
}

.auth-form .form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.auth-form .form-floating > label {
    color: var(--muted-color);
    font-weight: 500;
}

.auth-form .form-check {
    margin-bottom: 1rem;
}

.auth-form .form-check-input {
    border: 2px solid #E9ECEF;
    border-radius: 6px;
    width: 1.2rem;
    height: 1.2rem;
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .form-check-label {
    color: var(--dark-color);
    font-weight: 500;
}

/* Buttons */
.auth-form .btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.auth-form .btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-form .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-1px);
}

.auth-form .btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-form .btn-outline-primary:hover {
    background: #007bff;
    border-color: #007bff;
    transform: translateY(-1px);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E9ECEF;
}

.divider span {
    background: white;
    padding: 0 1.5rem;
    color: var(--muted-color);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Links */
.forgot-link, .terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover, .terms-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Social Buttons */
.social-buttons .btn {
    margin-bottom: 0.5rem;
}

.social-buttons .btn:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }

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

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .auth-tabs .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }
}

/* Cart Page Styles */
.cart-item {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.quantity-selector input {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.quantity-selector .btn {
    border: 2px solid var(--border-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

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

.summary-item {
    font-size: 0.9rem;
}

.summary-total {
    font-size: 1.1rem;
}

.security-info {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

/* Product Gallery Styles */
.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.thumbnail-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Mobile Product Gallery */
@media (max-width: 768px) {
    .product-gallery .main-image img {
        height: 300px;
    }

    .thumbnail-images {
        justify-content: center;
        gap: 0.25rem;
    }

    .thumbnail-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .product-gallery .main-image img {
        height: 250px;
    }

    .thumbnail-images {
        justify-content: center;
        gap: 0.25rem;
    }

    .thumbnail-img {
        width: 35px;
        height: 35px;
    }
}

.color-option {
    transition: all 0.3s ease;
}

.color-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Product Tabs */
.nav-tabs .nav-link {
    color: var(--muted-color);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: none;
}

.tab-content {
    background: white;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Sidebar Styles */
.sidebar .card {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    border-radius: 1rem;
}

.sidebar .list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.sidebar .list-group-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.sidebar .list-group-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Price Range */
.price-range input[type="range"] {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, var(--border-color) 50%, var(--border-color) 100%);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.price-range input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* View Toggle */
.btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: var(--muted-color);
    background: var(--light-color);
    border-color: var(--border-color);
}
