/* 
 * Oudessence Premium UI Transformation
 * Created for a luxury, high-end e-commerce experience.
*/

:root {
    --premium-radius: 20px;
    --pill-radius: 50px;
    --premium-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --premium-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition-premium: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Global Smoothness - Targeted instead of * */
.navbar, .card, .btn, .nav-link, .quantity-box, .form-control {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Rounded Corners Everything */
.card, 
.product-card, 
.flash_deal_product, 
.feature-product, 
.section-card-margin,
.__brand-item,
.footer-slide-item,
.dropdown-menu,
.modal-content,
.search-card,
.owl-item > div {
    border-radius: var(--premium-radius) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
}

/* Buttons Transformation */
.btn, 
.btn--primary, 
.btn-primary, 
.btn-secondary, 
.view-all-text,
.subscribe-button,
.search_button {
    border-radius: var(--pill-radius) !important;
    transition: var(--transition-premium) !important;
    position: relative;
    overflow: hidden;
}

/* Rounded padding for large buttons only */
.btn-lg, .btn--primary, .buy-now {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Comprehensive Icon Font Restoration */
[class^="czi-"], [class*=" czi-"] {
    font-family: "Oudessence-icons" !important;
    font-style: normal;
    font-weight: normal;
}

[class^="tio-"], [class*=" tio-"] {
    font-family: "The-Icon-of" !important;
    font-style: normal;
    font-weight: normal;
}

[class^="fa-"], [class*=" fa-"], .fa, .fab, .far, .fas {
    font-family: "FontAwesome" !important;
    font-style: normal;
}

.btn:hover, 
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
}

/* Shiny Gold Gradient for Primary Buttons */
.btn--primary, .search_button {
    background: linear-gradient(135deg, var(--web-primary) 0%, #d4af37 100%) !important;
    border: none !important;
}

/* Shimmer Effect Animation */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.btn--primary::after, .search_button::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none; /* Ensure shimmer doesn't block clicks */
    z-index: 1;
}

.btn--primary > *, .search_button > * {
    position: relative;
    z-index: 2; /* Put icon/text above shimmer */
}

/* Glassmorphism Header */
.navbar-sticky.navbar-stuck {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}

/* Product Card Premium Effects */
.flash_deal_product, .feature-product {
    box-shadow: var(--premium-shadow) !important;
    transition: var(--transition-premium) !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.flash_deal_product:hover, .feature-product:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--premium-shadow-hover) !important;
    border-color: var(--web-primary) !important;
}

/* Badge Refinement */
.for-discount-value {
    border-radius: 0 0 12px 0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Inputs Refinement */
.form-control, .search-bar-input {
    border-radius: var(--pill-radius) !important;
    border: 1.5px solid #eee !important;
    padding: 0.6rem 1.2rem !important;
    transition: var(--transition-premium) !important;
}

.form-control:focus {
    border-color: var(--web-primary) !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1) !important;
}

/* Logo Glow */
.navbar-brand img {
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.1));
    transition: var(--transition-premium);
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

/* Quantity Box Pill Shape */
.quantity-box {
    border-radius: var(--pill-radius) !important;
    background: #f8f9fa !important;
    border: 1px solid #eee !important;
}

.quantity-box .btn-number {
    border-radius: 0 !important;
}

.quantity-box .btn-number:first-child {
    border-radius: var(--pill-radius) 0 0 var(--pill-radius) !important;
}

.quantity-box .btn-number:last-child {
    border-radius: 0 var(--pill-radius) var(--pill-radius) 0 !important;
}

/* Navbar Links */
.nav-link {
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 50%; width: 0; height: 2px;
    background: var(--web-primary);
    transition: var(--transition-premium);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 60%;
}

/* Footer Premium Touch */
.page-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-slide-item {
    transition: var(--transition-premium);
}

.footer-slide-item:hover {
    transform: scale(1.05);
    box-shadow: var(--premium-shadow);
}

/* Scrollbar Modernization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--web-primary);
}

/* Quick View Modal Premium */
.modal-content {
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Entry Animations */
@keyframes premiumFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash_deal_product, 
.feature-product, 
.section-card-margin,
.__brand-item,
.footer-slide-item {
    animation: premiumFadeInUp 0.6s ease-out forwards;
}

/* Stagger delay for cards if they are in a grid */
.col-md-3:nth-child(1) .flash_deal_product { animation-delay: 0.1s; }
.col-md-3:nth-child(2) .flash_deal_product { animation-delay: 0.2s; }
.col-md-3:nth-child(3) .flash_deal_product { animation-delay: 0.3s; }
.col-md-3:nth-child(4) .flash_deal_product { animation-delay: 0.4s; }
