:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation Enhancements */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    padding: 100px 0 50px;
}

.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* Category Cards */
.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.category-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Template Cards */
.template-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.template-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover img {
    transform: scale(1.1);
}

.template-card-body {
    padding: 1.5rem;
}

.template-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.template-price del {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 400;
}

.rating {
    color: #fbbf24;
}

/* Browse Page Styles */
.browse-header {
    background: var(--light-color);
}

.filters-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.filter-section {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.filter-section:last-child {
    border-bottom: none;
}

/* Template Detail Styles */
.template-preview img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-preview img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.preview-thumbnails img {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.preview-thumbnails img:hover,
.preview-thumbnails img.active {
    border-color: var(--primary-color);
}

.template-info .sticky-top {
    top: 100px;
}

/* Cart Styles */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cart-item img {
    border-radius: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-summary .sticky-top {
    top: 100px;
}

/* Account Styles */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.nav-pills .nav-link {
    border-radius: 25px;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
}

.account-sidebar .sticky-top {
    top: 100px;
}

.tab-content-area {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* About Page Styles */
.about-hero {
    background: var(--light-color);
}

.mission-card,
.vision-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-icon,
.value-icon {
    margin-bottom: 1rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.value-item {
    padding: 2rem;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Stats */
.stat-item {
    padding: 2rem 1rem;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 30px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .template-info .sticky-top,
    .cart-summary .sticky-top,
    .account-sidebar .sticky-top {
        position: static;
    }
    
    .category-card,
    .template-card {
        margin-bottom: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e2e8f0;
}

.progress-bar {
    border-radius: 4px;
    background-color: var(--primary-color);
}

/* Badges */
.badge {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 25px;
    margin: 0 0.25rem;
    border: 1px solid #d1d5db;
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* List Groups */
.list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--light-color);
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    transform: translateY(-1px);
}

/* Utilities */
.text-decoration-line-through {
    text-decoration: line-through;
}

.opacity-75 {
    opacity: 0.75;
}

/* Bootstrap overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.cimg{
    cursor: pointer;  
}

.error{color: red;}
.success{color: green;}

.abt-title{padding: 10px 0px 0px 10px;}
.abt-text{padding-left: 10px;}

.abt-section{
    width: 98%;
    margin-left: 1%;
    min-height: 40vh;
    overflow: hidden;

}
.abt-contact-form{
    width: 60%;
    min-height: 40vh;
    overflow: hidden;
    float: left;
}

.abt-address-details{
    width: 38%;
    margin-left:1%;
    min-height: 40vh;
    overflow: hidden;
    float: left;   
}

.cnt-email{
    padding: 20px 0px 0px 10px;
}
.cnt-emails{
    padding: 3px 0px 0px 10px;
}
.em-txt{
    padding-left: 10px;
    color: dodgerblue;
}

.state{
    padding-left: 30px;
    color: dodgerblue;
}

@media only screen and (max-width: 667px) {
  .abt-contact-form {
    width: 98%;
    margin-left: 1%;
    float: none;
  }

  .abt-address-details {
    width: 98%;
    margin-left: 1%;
    margin-top: 2vh;
    float: none;
  }
}

.tm-ema{
    font-weight: bold;
    color: dodgerblue;
}

.t-pad{
    padding-left: 10px;
}

.w-review{
    color:dodgerblue;
    font-weight:bold;
    cursor:pointer;
}