/* ============================================
   AMANKAYRANG - PROFESSIONAL REDESIGN
   Premium Pakistani Fashion E-Commerce
   ============================================ */

/* ---------------- CSS Variables ---------------- */
:root {
    /* Brand Colors - Rich Pakistani Fashion Palette */
    --primary-maroon: #8c2e24;
    --primary-red: #ff3b2e;
    --accent-gold: #d4af37;
    --accent-rose: #ff6b6b;
    
    /* Neutral Colors */
    --white: #ffffff;
    --cream: #faf8f3;
    --light-gray: #f5f5f5;
    --medium-gray: #999999;
    --dark-gray: #333333;
    --border-light: #ffd6d0;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-hover: 0 12px 40px rgba(140,46,36,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------------- Global Styles ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-gray);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-maroon);
}

.tp-section-title,
.tp-section-title-2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-maroon) !important;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.tp-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
    border-radius: 2px;
}

/* ---------------- Header Redesign ---------------- */
.tp-header-area {
    background: linear-gradient(135deg, var(--primary-maroon) 0%, #6d2219 100%) !important;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 999;
}

.tp-header-top {
    background-color: rgba(0,0,0,0.2) !important;
    padding: 8px 0;
}

.tp-header-main {
    padding: 15px 0;
}

/* Logo Enhancement */
.tp-logo img {
    transition: transform var(--transition-normal);
}

.tp-logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu */
.tp-header-area .tp-menu > li {
    margin: 0 15px;
}

.tp-header-area .tp-menu > li > a {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all var(--transition-normal);
    position: relative;
}

.tp-header-area .tp-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-normal);
}

.tp-header-area .tp-menu > li > a:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: var(--accent-gold) !important;
}

.tp-header-area .tp-menu > li > a:hover::before {
    width: 80%;
}

/* Dropdown Menu Enhancement */
.tp-header-area .tp-menu li.menu-item-has-children ul.sub-menu {
    background: linear-gradient(180deg, #3d1511 0%, #2a0f0d 100%) !important;
    border: none !important;
    border-radius: 12px;
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
}

.tp-header-area .tp-menu li.menu-item-has-children ul.sub-menu li a {
    color: var(--white) !important;
    padding: 12px 25px;
    font-size: 14px;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.tp-header-area .tp-menu li.menu-item-has-children ul.sub-menu li a:hover {
    color: var(--accent-gold) !important;
    background: rgba(255,255,255,0.08) !important;
    border-left-color: var(--accent-gold);
    padding-left: 30px;
}

/* Header Icons & Cart */
.tp-header-action-item {
    margin: 0 8px;
}

.tp-header-action-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white) !important;
    transition: all var(--transition-normal);
}

.tp-header-action-icon:hover {
    background: var(--accent-gold);
    color: var(--primary-maroon) !important;
    transform: scale(1.1);
}

.tp-header-action-badge {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    font-weight: 600;
}

/* Search Bar */
.tp-header-search-wrapper,
.tp-header-search,
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    width: 100%;
}

.tp-header-search input[type="text"],
.tp-header-search input[type="search"],
.search-form input[type="search"] {
    border: none !important;
    padding: 12px 20px !important;
    font-size: 14px;
    background: transparent;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
}

.tp-header-search input[type="text"]::placeholder,
.tp-header-search input[type="search"]::placeholder {
    color: var(--medium-gray);
}

.tp-header-search button,
.tp-header-search .search-submit,
.search-form button {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-red)) !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 0 50px 50px 0 !important;
    color: var(--white) !important;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    right: 0;
    height: 100%;
    min-width: 50px;
}

.tp-header-search button:hover,
.search-form button:hover {
    background: var(--primary-red) !important;
    transform: scale(1.05);
}

/* Fix search button positioning */
.tp-header-search-wrapper form,
.tp-header-search form {
    display: flex;
    align-items: center;
    width: 100%;
}

.tp-header-search-box,
.tp-header-search-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--white);
    border-radius: 50px;
}

/* Search icon styling */
.tp-header-search button i,
.tp-header-search button svg {
    font-size: 16px;
    color: var(--white);
}

/* ---------------- Product Cards Redesign ---------------- */
.tp-product-item,
.tp-product-item-2,
.tp-product-ite {
    background: var(--white);
    border: 1px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.tp-product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(140,46,36,0.05), rgba(255,59,46,0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.tp-product-item:hover,
.tp-product-item-2:hover,
.tp-product-ite:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-light);
}

.tp-product-item:hover::before {
    opacity: 1;
}

/* Product Image Container with Zoom Effect */
.tp-product-thumb,
.tp-product-img {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    cursor: zoom-in;
}

.tp-product-thumb img,
.product_img,
.featured-product-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-product-img {
    height: 330px;
}

/* Zoom effect on hover */
.tp-product-item:hover .tp-product-thumb img,
.tp-product-item:hover .product_img,
.tp-product-item:hover .featured-product-img {
    transform: scale(1.5);
}

/* Advanced Zoom - Follow cursor effect */
.tp-product-thumb:hover img,
.tp-product-img:hover img {
    transform: scale(2);
    cursor: zoom-in;
}

/* Zoom container to control overflow */
.tp-product-thumb,
.tp-product-img,
.tp-product-item .tp-product-thumb,
.tp-product-item-2 .tp-product-thumb {
    position: relative;
    overflow: hidden;
}

/* Smooth zoom transition */
.tp-product-thumb img,
.tp-product-img img,
.product_img,
.featured-product-img,
.full-grid-img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Product Badge */
.tp-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-rose));
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.tp-product-badge.sale {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
}

.tp-product-badge.new {
    background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
    color: var(--primary-maroon);
}

/* Product Content */
.tp-product-content {
    padding: 20px;
}

.tp-product-category {
    font-size: 12px;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

.tp-product-title a {
    color: var(--primary-maroon) !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.tp-product-title a:hover {
    color: var(--primary-red) !important;
}

/* Product Rating */
.tp-product-rating,
.product-star {
    color: var(--accent-gold);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-star {
    font-size: 20px;
}

.tp-product-rating-text {
    font-size: 13px;
    color: var(--medium-gray);
    margin-left: 5px;
}

/* Product Price */
.tp-product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tp-product-price,
.tp-product-price-2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-maroon) !important;
}

.tp-product-price.new-price {
    color: var(--primary-red) !important;
}

.tp-product-price.old-price {
    font-size: 16px;
    color: var(--medium-gray) !important;
    text-decoration: line-through;
    font-weight: 400;
}

/* Product Action Buttons */
.tp-product-action {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--transition-normal);
}

.tp-product-item:hover .tp-product-action {
    opacity: 1;
    transform: translateX(0);
}

.tp-product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-maroon);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.tp-product-action-btn:hover {
    background: var(--primary-maroon);
    color: var(--white);
    transform: scale(1.1);
}

/* Add to Cart Button */
.tp-product-add-cart-btn,
.tp-btn {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-red)) !important;
    border: none !important;
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-transform: uppercase;
}

.tp-product-add-cart-btn:hover,
.tp-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------------- Category Cards ---------------- */
.tp-category-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.tp-category-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    transition: opacity var(--transition-normal);
}

.tp-category-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.tp-category-item:hover::before {
    opacity: 0.8;
}

.cat_img {
    object-fit: cover;
    width: 100%;
    height: 300px;
    transition: transform var(--transition-slow);
}

.tp-category-item:hover .cat_img {
    transform: scale(1.1);
}

.tp-category-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.tp-category-title {
    font-size: 24px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 5px;
}

.tp-category-count {
    color: var(--accent-gold);
    font-size: 14px;
}

/* ---------------- Banner & Hero Section ---------------- */
.tp-slider-item,
.tp-banner-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin: 20px 0;
}

.tp-slider-bg {
    position: relative;
}

.tp-slider-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(140,46,36,0.3), transparent);
    z-index: 1;
}

.tp-slider-content {
    position: relative;
    z-index: 2;
    padding: 60px;
}

.tp-slider-subtitle {
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.tp-slider-title {
    font-size: 3.5rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.tp-slider-desc {
    color: var(--cream);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

/* ---------------- Grid Layout ---------------- */
.full-grid-img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    border-radius: 16px;
}

/* ---------------- Shopping Cart ---------------- */
.cart-img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.tp-cart-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.tp-cart-item:hover {
    background: var(--light-gray);
}

/* ---------------- Footer Redesign - MATCHING HEADER ---------------- */
footer,
.tp-footer,
.tp-footer-area,
.site-footer,
#colophon {
    background: linear-gradient(135deg, var(--primary-maroon) 0%, #6d2219 100%) !important;
    color: var(--white) !important;
    padding: 60px 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Add subtle overlay for depth */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.tp-footer-widget {
    margin-bottom: 30px;
}

.tp-footer-widget-title {
    color: var(--accent-gold) !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tp-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

/* Footer Text Colors */
footer p,
footer span,
footer div,
footer li {
    color: var(--white) !important;
}

/* Footer Links */
footer a {
    color: var(--white) !important;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

footer a:hover {
    color: var(--accent-gold) !important;
    padding-left: 5px;
}

/* Footer List Items */
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 12px;
    padding-left: 0;
}

footer ul li a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 14px;
    padding-left: 0;
}

footer ul li a:hover {
    color: var(--accent-gold) !important;
    padding-left: 8px;
}

/* Footer Social Icons */
.tp-footer-social,
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tp-footer-social a,
.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white) !important;
    transition: all var(--transition-normal);
    padding: 0 !important;
}

.tp-footer-social a:hover,
.footer-social a:hover {
    background: var(--accent-gold) !important;
    color: var(--primary-maroon) !important;
    transform: translateY(-3px);
    padding: 0 !important;
}

/* Footer Contact Info */
.tp-footer-contact,
.footer-contact {
    margin-top: 15px;
}

.tp-footer-contact p,
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--white) !important;
}

.tp-footer-contact i,
.footer-contact i,
.tp-footer-contact svg,
.footer-contact svg {
    color: var(--accent-gold) !important;
    font-size: 16px;
}

/* Footer Copyright */
.tp-footer-copyright,
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.8) !important;
}

.tp-footer-copyright p,
.footer-copyright p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px;
    margin: 0;
}

/* Footer Bottom */
.tp-footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    margin-top: 40px;
}

/* Footer Widget Content */
.tp-footer-widget-content p {
    color: rgba(255,255,255,0.85) !important;
    line-height: 1.8;
    font-size: 14px;
}

/* My Account, Quick Links section titles */
footer h3,
footer h4,
footer h5 {
    color: var(--accent-gold) !important;
    font-weight: 700;
}

/* ---------------- Forms & Inputs ---------------- */
input,
textarea,
select {
    border: 2px solid var(--border-light) !important;
    border-radius: 12px !important;
    padding: 12px 20px;
    font-size: 14px;
    transition: all var(--transition-fast);
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-maroon) !important;
    box-shadow: 0 0 0 4px rgba(140,46,36,0.1) !important;
    outline: none;
}

/* ---------------- Buttons ---------------- */
.tp-btn-2,
.tp-btn-border {
    background: transparent !important;
    border: 2px solid var(--primary-maroon) !important;
    color: var(--primary-maroon) !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.tp-btn-2:hover,
.tp-btn-border:hover {
    background: var(--primary-maroon) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------------- Mobile Menu ---------------- */
.tp-mobile-menu,
.tp-offcanvas__area {
    background: linear-gradient(180deg, var(--primary-maroon) 0%, #6d2219 100%) !important;
}

.tp-mobile-menu a,
.tp-offcanvas__area a {
    color: var(--white) !important;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-fast);
}

.tp-mobile-menu a:hover,
.tp-offcanvas__area a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--accent-gold) !important;
    padding-left: 30px;
}

/* ---------------- Animations ---------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp-product-item,
.tp-category-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation */
.tp-product-item:nth-child(1) { animation-delay: 0.1s; }
.tp-product-item:nth-child(2) { animation-delay: 0.2s; }
.tp-product-item:nth-child(3) { animation-delay: 0.3s; }
.tp-product-item:nth-child(4) { animation-delay: 0.4s; }

/* ---------------- Responsive Design ---------------- */
@media (max-width: 991px) {
    .tp-section-title {
        font-size: 2rem;
    }
    
    .tp-slider-title {
        font-size: 2.5rem;
    }
    
    .tp-slider-content {
        padding: 40px 30px;
    }
}

@media (max-width: 767px) {
    .tp-section-title {
        font-size: 1.75rem;
    }
    
    .tp-slider-title {
        font-size: 2rem;
    }
    
    .product_img,
    .featured-product-img {
        height: 300px;
    }
    
    .tp-product-price {
        font-size: 18px;
    }
}

/* ---------------- Additional Fixes ---------------- */

/* Search Bar Container Fix */
.tp-header-search-area,
.header-search,
.tp-header-middle,
.tp-header-search-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure search form is contained properly */
.tp-header-search form,
.tp-header-search-wrapper form,
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
}

/* Input takes most space */
.tp-header-search input,
.tp-header-search-wrapper input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 14px 24px !important;
    font-size: 14px;
    background: transparent;
    box-shadow: none !important;
}

/* Button stays at the end */
.tp-header-search button,
.tp-header-search-wrapper button {
    position: relative;
    flex-shrink: 0;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-red)) !important;
    border: none !important;
    border-radius: 0 50px 50px 0 !important;
    color: var(--white) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.tp-header-search button:hover {
    background: var(--primary-red) !important;
}

/* Remove any absolute positioning on search button */
.tp-header-search button,
.tp-header-search-wrapper button,
.tp-header-search .search-btn {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
}

/* Header Layout Container */
.tp-header-main-wrapper,
.tp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Logo, Search, and Actions alignment */
.tp-logo {
    flex-shrink: 0;
    margin-right: 30px;
}

.tp-header-search-area {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.tp-header-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Footer specific text fixes */
footer .widget-title,
footer .wp-block-heading,
footer h2,
footer h3 {
    color: var(--accent-gold) !important;
}

footer .widget ul li,
footer .menu li {
    color: var(--white) !important;
}

/* Ensure all footer text is white */
footer * {
    color: var(--white) !important;
}

footer a {
    color: rgba(255,255,255,0.9) !important;
}

footer a:hover {
    color: var(--accent-gold) !important;
}

footer .widget-title,
footer h2,
footer h3,
footer h4 {
    color: var(--accent-gold) !important;
}

/* Email and phone in footer */
footer a[href^="mailto"],
footer a[href^="tel"] {
    color: var(--white) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

footer a[href^="mailto"]:hover,
footer a[href^="tel"]:hover {
    color: var(--accent-gold) !important;
}
.my-custom-font-size {
    font-size: 18px;
}

/* ---------------- Loading Animation ---------------- */
.tp-preloader {
    background: var(--cream);
}

.tp-preloader-logo {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ---------------- Scroll to Top Button ---------------- */
.tp-scroll-top {
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-red)) !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.tp-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ---------------- Breadcrumb ---------------- */
.tp-breadcrumb {
    background: var(--light-gray);
    padding: 20px 0;
    border-radius: 12px;
    margin: 20px 0;
}

.tp-breadcrumb a {
    color: var(--primary-maroon);
    transition: color var(--transition-fast);
}

.tp-breadcrumb a:hover {
    color: var(--primary-red);
}

/* ---------------- Newsletter ---------------- */
.tp-newsletter-wrapper {
    background: linear-gradient(135deg, var(--primary-maroon) 0%, var(--primary-red) 100%);
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    margin: 40px 0;
}

.tp-newsletter-title {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 15px;
}

.tp-newsletter-desc {
    color: var(--cream);
    margin-bottom: 25px;
}

.tp-newsletter-input {
    background: rgba(255,255,255,0.95) !important;
    border: none !important;
    padding: 15px 25px;
    border-radius: 50px;
}

.tp-newsletter-btn {
    background: var(--accent-gold) !important;
    color: var(--primary-maroon) !important;
    border: none !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
}

.tp-newsletter-btn:hover {
    background: var(--white) !important;
    transform: scale(1.05);
}

/* ---------------- End of Custom Theme ---------------- */

/* ---------------- Advanced Zoom Lens Effect ---------------- */
.zoom-lens {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    cursor: none;
    pointer-events: none;
    display: none;
    z-index: 10;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.zoom-result {
    position: absolute;
    top: 0;
    right: -320px;
    width: 300px;
    height: 400px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background-size: 200%;
    background-repeat: no-repeat;
    display: none;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

/* Image Loading Animation */
.product_img,
.featured-product-img,
.cat_img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product_img.loaded,
.featured-product-img.loaded,
.cat_img.loaded {
    opacity: 1;
}

/* Add to Cart Button Loading State */
.tp-product-add-cart-btn.loading,
.tp-btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.tp-product-add-cart-btn.loading::after,
.tp-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tp-product-add-cart-btn.added,
.tp-btn.added {
    background: #4caf50 !important;
}

/* Wishlist Active State */
.tp-product-action-btn.wishlist.active {
    background: var(--primary-red) !important;
    color: var(--white) !important;
}

/* Compare Active State */
.tp-product-action-btn.compare.active {
    background: var(--accent-gold) !important;
    color: var(--primary-maroon) !important;
}

/* Header Scrolled State */
.tp-header-area.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
}

/* Mobile Menu Open State */
body.menu-open {
    overflow: hidden;
}

body.menu-open .tp-mobile-menu,
body.menu-open .tp-offcanvas__area {
    transform: translateX(0);
}

/* Quantity Controls */
.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border-light);
    background: var(--white);
    color: var(--primary-maroon);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 8px;
}

.qty-btn:hover {
    background: var(--primary-maroon);
    color: var(--white);
    border-color: var(--primary-maroon);
}

.quantity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.quantity input[type="number"] {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px;
}

/* Newsletter Error State */
.tp-newsletter-input.error {
    border-color: var(--primary-red) !important;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Product Gallery Thumbs */
.tp-product-gallery-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.tp-product-gallery-thumb:hover,
.tp-product-gallery-thumb.active {
    border-color: var(--primary-maroon);
    opacity: 1;
    transform: scale(1.05);
}

/* ============================================
   FINAL POLISH - Perfect Search Bar & Header
   ============================================ */

/* Search Bar Container - Perfect Rounded Design */
.tp-header-search,
.tp-header-search-wrapper,
.search-form-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid rgba(255,255,255,0.3);
}

/* Search Input */
.tp-header-search input[type="text"],
.tp-header-search input[type="search"] {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent;
    padding: 15px 25px !important;
    font-size: 15px;
    color: #333;
    box-shadow: none !important;
}

.tp-header-search input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Search Button - Perfectly Rounded */
.tp-header-search button,
.tp-header-search .search-submit {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #8c2e24, #ff3b2e) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    margin: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(140, 46, 36, 0.3);
}

.tp-header-search button:hover {
    background: linear-gradient(135deg, #ff3b2e, #ff6b6b) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(140, 46, 36, 0.5);
}

/* Search Icon */
.tp-header-search button i,
.tp-header-search button svg {
    font-size: 18px;
    color: white;
}

/* Header Top Bar - Delivery Notice */
.tp-header-top {
    background: rgba(0,0,0,0.3) !important;
    padding: 10px 0;
    text-align: center;
}

.tp-header-top p,
.tp-header-top span {
    color: white !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Header Main Area */
.tp-header-main {
    padding: 20px 0;
}

/* Logo Styling */
.tp-logo img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.tp-logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu Enhancement */
.tp-header-area .tp-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-header-area .tp-menu > li > a {
    color: #000000 !important;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tp-header-area .tp-menu > li > a:hover {
    background: rgba(255,255,255,0.15);
    color: #d4af37 !important;
}

/* Active Menu Item */
.tp-header-area .tp-menu > li.current-menu-item > a,
.tp-header-area .tp-menu > li.current_page_item > a {
    background: rgba(255,255,255,0.2);
    color: #d4af37 !important;
}

/* Cart Icon & Account */
.tp-header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tp-header-action-item {
    position: relative;
}

.tp-header-action-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tp-header-action-btn:hover {
    background: white;
    color: #8c2e24 !important;
    border-color: white;
    transform: scale(1.1);
}

/* Cart Badge */
.tp-header-action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b2e !important;
    color: white !important;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #8c2e24;
}

/* Phone Number in Header */
.tp-header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
}

.tp-header-contact i,
.tp-header-contact svg {
    color: #d4af37;
    font-size: 18px;
}

.tp-header-contact span,
.tp-header-contact a {
    color: white !important;
    font-weight: 500;
    text-decoration: none;
}

/* Responsive - Mobile */
@media (max-width: 991px) {
    .tp-header-search {
        max-width: 100%;
        margin: 15px 0;
    }
    
    .tp-header-main {
        padding: 15px 0;
    }
    
    .tp-logo img {
        max-height: 50px;
    }
}

@media (max-width: 767px) {
    .tp-header-search input {
        font-size: 14px;
        padding: 12px 20px !important;
    }
    
    .tp-header-search button {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }
    
    .tp-header-action-btn {
        width: 40px;
        height: 40px;
    }
}

/* Search Bar Focus Effect */
.tp-header-search:focus-within {
    box-shadow: 0 6px 20px rgba(140, 46, 36, 0.25);
    border-color: rgba(255, 59, 46, 0.3);
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Sticky Enhancement */
.tp-header-area.tp-header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Product Card 3D Effect */
.tp-product-item {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

/* Responsive Zoom for Mobile */
@media (max-width: 767px) {
    .zoom-result {
        display: none !important;
    }
    
    .tp-product-thumb:hover img,
    .tp-product-img:hover img {
        transform: scale(1.3);
    }
}