/* =========================================================
   PREMIUM MOVING SHINE BORDER - PRODUCT CARDS
   Does NOT change product card layout or position
   ========================================================= */

.product-item {
    position: relative !important;
    z-index: 1;
    overflow: hidden;
    border-radius: 10px;

    /* Existing card appearance */
    background: #ffffff;

    /* Keep original dimensions/layout */
    box-sizing: border-box;

    /* Very subtle static border */
    border: 1px solid rgba(59, 130, 246, 0.15);
}


/* ---------------------------------------------------------
   Animated Shine Border Layer
   --------------------------------------------------------- */

.product-item::before {
    content: "";
    position: absolute;

    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;

    border-radius: 12px;

    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 300deg,
            #3B82F6 320deg,
            #60A5FA 335deg,
            #FBBF24 345deg,
            #ffffff 352deg,
            transparent 360deg
        );

    animation: productBorderShine 8s linear infinite;

    z-index: -2;

    pointer-events: none;
}


/* ---------------------------------------------------------
   Inner White Layer
   Keeps the shine visible ONLY on the border
   --------------------------------------------------------- */

.product-item::after {
    content: "";

    position: absolute;

    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;

    border-radius: 8px;

    background: #ffffff;

    z-index: -1;

    pointer-events: none;
}


/* ---------------------------------------------------------
   Moving Shine Animation
   --------------------------------------------------------- */

@keyframes productBorderShine {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}


/* ---------------------------------------------------------
   Premium Hover Effect
   --------------------------------------------------------- */

.product-item:hover::before {
    animation-duration: 8s;

    filter:
        drop-shadow(0 0 4px rgba(59, 130, 246, 0.45))
        drop-shadow(0 0 8px rgba(251, 191, 36, 0.25));
}


/* ---------------------------------------------------------
   Card Hover - VERY SMALL movement only
   Disabled by default to prevent layout shifting
   --------------------------------------------------------- */

.product-item {
    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.product-item:hover {
    border-color: rgba(59, 130, 246, 0.35);

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------------------------
   IMPORTANT:
   Prevent carousel/card content from moving
   --------------------------------------------------------- */

.product-item,
.product-item * {
    box-sizing: border-box;
}

.product-item::before,
.product-item::after {
    transform-origin: center center;
}


/* ---------------------------------------------------------
   Mobile Optimization
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .product-item::before {
        animation-duration: 8s;
    }

    .product-item:hover::before {
        animation-duration: 8s;
    }

}    
    
    
    
    
/* =========================================================
   ETSYSHOP.PK - FINAL PRODUCT CARD AUTO HOVER
   Centered + Responsive + Every 4 Seconds
   ========================================================= */

.product-item {
    position: relative !important;
    overflow: hidden !important;
}


/* =========================================================
   FULL CARD MESSAGE
   ========================================================= */

.product-hover-info {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 15px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.96),
            rgba(248,247,255,0.95)
        );

    border-radius: 10px;

    opacity: 0;
    visibility: hidden;

    transform: scale(0.97);

    z-index: 100;

    pointer-events: none;

    /* AUTOMATIC 4 SECOND CYCLE */
    animation: etsyAutoMessage 4s infinite;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   AUTO SHOW EVERY 4 SECONDS
   ========================================================= */

.product-hover-info {
    animation: etsyAutoMessage 7s infinite;
}

@keyframes etsyAutoMessage {

    /* 0–4 sec: WAIT */
    0%,
    57% {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.97);
    }

    /* Smooth appearance */
    61% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    /* 4.3–6.5 sec: HOLD */
    61%,
    93% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    /* Smooth hide */
    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.97);
    }
}


/* =========================================================
   HOVER = IMMEDIATELY SHOW
   ========================================================= */

.product-item:hover .product-hover-info {

    opacity: 1;

    visibility: visible;

    transform: scale(1);

    animation-play-state: paused;
}


/* =========================================================
   INNER BORDER
   ========================================================= */

.product-hover-info::before {

    content: "";

    position: absolute;

    inset: 6px;

    border-radius: 8px;

    border: 1px solid rgba(124,58,237,0.20);

    pointer-events: none;
}


/* =========================================================
   ETSYSHOP.PK 3D TITLE
   ========================================================= */

.hover-logo {
    position: relative;
    z-index: 2;

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 14px;
}

.hover-logo img {
    display: block;

    width: auto;
    max-width: 75%;
    height: auto;

    max-height: 55px;

    object-fit: contain;
}


/* Mobile */
@media (max-width: 767px) {

    .hover-logo {
        margin-bottom: 9px;
    }

    .hover-logo img {
        max-width: 65%;
        max-height: 42px;
    }
}


/* Very small mobile */
@media (max-width: 380px) {

    .hover-logo img {
        max-width: 62%;
        max-height: 36px;
    }
}

/* =========================================================
   CASH ON DELIVERY
   ========================================================= */

.hover-cod {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    width: auto;

    max-width: 95%;

    padding: 7px 11px;

    margin: 0 0 11px 0;

    gap: 6px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(124,58,237,0.10),
            rgba(6,182,212,0.10)
        );

    border: 1px solid rgba(124,58,237,0.16);

    color: #6D28D9;

    font-size: clamp(9px, 2.5vw, 12px);

    font-weight: 800;

    line-height: 1.2;

    white-space: nowrap;

    box-shadow:
        0 4px 12px rgba(76,29,149,0.08);
}


/* ICON */

.hover-cod i {

    flex-shrink: 0;

    font-size: clamp(14px, 3vw, 18px);

    color: #06B6D4;
}


/* =========================================================
   DELIVERY COST
   ========================================================= */

.hover-delivery {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 260px;

    padding: 0 5px;

    text-align: center;

    color: #4B5563;

    font-size: clamp(9px, 2.2vw, 11px);

    font-weight: 600;

    line-height: 1.4;
}


.hover-delivery strong {

    color: #EA580C;

    font-size: clamp(11px, 2.5vw, 13px);

    font-weight: 900;

    white-space: nowrap;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    .product-hover-info {
        padding: 18px;
    }

    .hover-welcome-3d {
        font-size: 23px;
        margin-bottom: 13px;
    }

    .hover-cod {
        font-size: 12px;
        padding: 7px 12px;
        margin-bottom: 12px;
    }

    .hover-delivery {
        font-size: 11px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 991px) {

    .product-hover-info {
        padding: 14px;
    }

    .hover-welcome-3d {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .hover-cod {
        font-size: 10px;
        padding: 6px 9px;
        margin-bottom: 9px;
    }

    .hover-delivery {
        font-size: 9px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .product-hover-info {

        padding: 12px 7px;

    }

    .product-hover-info::before {

        inset: 5px;

    }

    .hover-welcome-3d {

        font-size: 16px !important;

        margin-bottom: 9px !important;

        white-space: nowrap !important;
    }

    .hover-cod {

        font-size: 9px !important;

        padding: 6px 8px !important;

        gap: 5px;

        margin-bottom: 8px !important;

        white-space: nowrap !important;
    }

    .hover-cod i {

        font-size: 14px !important;

    }

    .hover-delivery {

        font-size: 9px !important;

        max-width: 94%;

        line-height: 1.35;
    }

    .hover-delivery strong {

        font-size: 11px !important;

    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .product-hover-info {
        padding: 10px 5px;
    }

    .hover-welcome-3d {
        font-size: 14px !important;
    }

    .hover-cod {
        font-size: 8px !important;
        padding: 5px 7px !important;
    }

    .hover-cod i {
        font-size: 13px !important;
    }

    .hover-delivery {
        font-size: 8px !important;
    }

    .hover-delivery strong {
        font-size: 10px !important;
    }
}    
    
    
    
    
    