/* Custom Frontend Improvements & Overrides */

/* --- Logo & Header --- */
.cr-logo img.logo, 
.cr-logo img.dark-logo {
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block;
}

header {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0 !important;
}

/* --- Hero Banner Section --- */
.custom-hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
    padding: 80px 0;
    border-radius: 24px;
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
}

.custom-hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(63, 81, 181, 0.04);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(63, 81, 181, 0.1);
    color: #3f51b5;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    color: #1e1b4b;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background-color: #3f51b5;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(63, 81, 181, 0.25);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: #2f3e9e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(63, 81, 181, 0.35);
}

.btn-secondary-custom {
    background-color: transparent;
    color: #3f51b5;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #3f51b5;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background-color: #3f51b5;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-image-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Features Grid Section --- */
.features-grid-section {
    margin-bottom: 60px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(63, 81, 181, 0.3);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(63, 81, 181, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #3f51b5;
    font-size: 26px;
}

.feature-card:hover .feature-icon-wrapper {
    background: #3f51b5;
    color: #ffffff;
    transform: rotateY(180deg);
    transition: all 0.6s ease;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* --- Product Cards Enhancements --- */
.product-card-2.single_product_sec {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.product-card-2.single_product_sec:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    border-color: rgba(63, 81, 181, 0.15);
}

.cr-product-inner .cr-pro-image-outer {
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8fafc;
    position: relative;
}

.cr-product-inner .cr-pro-image img.main-image {
    transition: transform 0.5s ease;
}

.product-card-2.single_product_sec:hover img.main-image {
    transform: scale(1.05);
}

/* Badges / Sale flags */
.product-card-2 .flags {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

.product-card-2 .flags span.sale {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Price presentation */
.product-card-2 .cr-price {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.product-card-2 .cr-price .new-price {
    font-size: 18px;
    font-weight: 700;
    color: #3f51b5;
}

.product-card-2 .cr-price .old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Quantity Incrementor styling */
.cart-section {
    margin: 12px 0 6px 0;
}

.cart-qty-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 3px;
    max-width: 110px;
    margin: 10px auto 0 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.cart-qty-box .qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.cart-qty-box .qty-btn:hover {
    background: #3f51b5;
    color: #ffffff;
}

.cart-qty-box .qty-input {
    width: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Tab Navigation buttons */
.cr-pro-tab-nav.nav {
    border-bottom: none;
    gap: 8px;
}

.cr-pro-tab-nav.nav li.nav-item a.nav-link {
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.cr-pro-tab-nav.nav li.nav-item a.nav-link.active {
    background-color: #3f51b5 !important;
    color: #ffffff !important;
    border-color: #3f51b5 !important;
    box-shadow: 0 4px 10px rgba(63, 81, 181, 0.2);
}

.cr-pro-tab-nav.nav li.nav-item a.nav-link:hover:not(.active) {
    border-color: #3f51b5;
    color: #3f51b5;
}
