/*
Theme Name: Newspaper-child
Template: Newspaper
*/

/* Cart Icon Styling */
.header-cart-wrapper {
    position: absolute;
    right: 60px; /* Adjust based on search icon position */
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.header-cart-wrap {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    position: relative;
}

.header-cart-link {
    display: flex;
    align-items: center;
    position: relative;
    color: #000; /* Changed to black to match your header */
    text-decoration: none;
    padding: 3px 5px;
    transition: all 0.3s ease;
    background-color: transparent;
    border-radius: 4px;
}

.header-cart-link:hover {
    color: #ff787e; /* Hover color to match your theme */
}

.cart-icon {
    width: 26px;
    height: 26px;
    fill: currentColor;
    stroke: currentColor;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff787e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    border: 2px solid #d0cece;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hide count when zero */
.cart-count:empty,
.cart-count:contains("0") {
    display: none;
}

/* Ensure logo stays centered */
.tdb_header_logo {
    position: relative;
    z-index: 1;
}

/* Fix for header alignment */
.td-header-desktop-wrap .td-header-row {
    position: relative;
}

/* Ensure the column with search and cart maintains proper alignment */
.tdi_50.wpb_column {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-cart-wrapper {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        display: inline-block;
        margin-right: 10px;
    }
    
    .cart-icon {
        width: 22px;
        height: 22px;
    }
    
    .cart-count {
        font-size: 10px;
        padding: 2px 4px;
        min-width: 16px;
    }
}

/* Fix for sticky header */
.td-header-desktop-sticky-wrap .header-cart-wrapper {
    right: 60px; /* Maintain position in sticky header */
}

/* Ensure proper z-index layering */
.tdb_header_search {
    position: relative;
    z-index: 998;
}


/* Social Media Icons Enhancement for TagDiv Newspaper Theme */

/* Force override TagDiv's default styles */
.tds-social2 .tdm-social-item i.td-icon-font {
    font-size: 20px !important;
    transition: all 0.3s ease !important;
}

/* Add spacing between icons */
.tds-social2 .tdm-social-item-wrap {
    margin: 0 10px !important;
    display: inline-block !important;
}

/* Style the social links */
.tds-social2 .tdm-social-item {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

/* Hover effects */
.tds-social2 .tdm-social-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    background: #ff787e !important;
    border-color: #ff787e !important;
}

.tds-social2 .tdm-social-item:hover i {
    color: #ffffff !important;
}

/* Individual platform colors on hover */
.tds-social2 .tdm-social-item[title="Instagram"]:hover {
    background: linear-gradient(45deg, #405DE6, #C13584, #FD1D1D) !important;
    border-color: #C13584 !important;
}

.tds-social2 .tdm-social-item[title="TikTok"]:hover {
    background: #000000 !important;
    border-color: #000000 !important;
}

.tds-social2 .tdm-social-item[title="Tumblr"]:hover {
    background: #36465D !important;
    border-color: #36465D !important;
}

.tds-social2 .tdm-social-item[title="Twitter"]:hover {
    background: #1DA1F2 !important;
    border-color: #1DA1F2 !important;
}

.tds-social2 .tdm-social-item[title="Youtube"]:hover {
    background: #FF0000 !important;
    border-color: #FF0000 !important;
}

/* Pulse animation to draw attention */
@keyframes socialPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 120, 126, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 120, 126, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 120, 126, 0);
    }
}

/* Apply pulse to first icon to draw attention */
.tds-social2 .tdm-social-item-wrap:first-child .tdm-social-item {
    animation: socialPulse 2s infinite;
}

.tds-social2 .tdm-social-item:hover {
    animation: none !important;
}

/* For the sticky header version */
.td-header-desktop-sticky-wrap .tds-social2 .tdm-social-item {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .tds-social2 .tdm-social-item {
        width: 36px !important;
        height: 36px !important;
    }
    
    .tds-social2 .tdm-social-item i.td-icon-font {
        font-size: 18px !important;
    }
    
    .tds-social2 .tdm-social-item-wrap {
        margin: 0 6px !important;
    }
}

/* Make the icons stand out by default */
.tds-social2 .tdm-social-item {
    background: #f4f4f4 !important;  /* Light gray background */
    border: 2px solid #ffffff !important;  /* White border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;  /* Subtle shadow */
}

/* Change icon color to match your theme */
.tds-social2 .tdm-social-item i {
    color: #000000 !important;  /* Black icons by default */
}

