

:root{
    
    --cg-blue   : #2d337f;   
    --cg-accent : #b89b65 !important;
    

    
    --cg-text   : var(--cg-blue);
    --cg-font   : "Inter","Helvetica Neue",sans-serif;
}


.cg-list-flex .product-image-photo{
    
    object-fit:cover;
    border-radius:10px;
    background:#fafafa;                     
    box-shadow:0 2px 6px rgba(0,0,0,.08);   
    transition:transform .25s, box-shadow .25s;
}


.cg-list-flex .product-item:hover  .product-image-photo,
.cg-list-flex .product-item:focus-within .product-image-photo{
    transform:scale(1.06);
    box-shadow:0 4px 14px rgba(0,0,0,.12);
}



.cg-list-flex .product-list-details{
    display:flex;
    flex-direction:column;
    justify-content:center;      
    min-height:100%;             
}


.cg-list-flex .product-item-name{
    margin:0 0 .45rem;
    font:600 1.55rem/1.35 var(--cg-font);
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}


.cg-list-flex .product-item-name a{
    position:relative;
    color:var(--cg-text);           
    text-decoration:none;
    background-image:linear-gradient(to right,var(--cg-accent) 0 0);
    background-size:0% 2px;
    background-repeat:no-repeat;
    background-position:left bottom;
    transition:color .25s ease, background-size .45s cubic-bezier(.16,.8,.36,1);
}
.cg-list-flex .product-item-name a:is(:hover,:focus){
    color:var(--cg-accent);
    background-size:100% 2px;
}

.cg-list-flex .product-item-name a::after{
    content:"";
    position:absolute;inset:0;
    background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.7) 45%,transparent 90%);
    transform:translateX(-120%);
    opacity:0;pointer-events:none;
    transition:transform .7s cubic-bezier(.16,.8,.36,1),opacity .2s ease-in;
}
.cg-list-flex .product-item-name a:is(:hover,:focus)::after{
    transform:translateX(120%);opacity:.9;
}


.cg-list-flex .product-item-description{
    font:400 1.3rem/1.55 var(--cg-font);
    color:#5c5c5c;
    max-width:38ch;          
    opacity:.88;
    transition:opacity .25s;
}
.cg-list-flex .product-item:hover .product-item-description{
    opacity:1;
}


@keyframes metaFadeIn{
   from{opacity:0;transform:translateY(12px);}
   to  {opacity:1;transform:translateY(0);}
}
.cg-list-flex .product-list-details{
    animation:metaFadeIn .45s cubic-bezier(.16,.8,.36,1) both;
}


@keyframes cgPriceReveal{
    0%{opacity:0;transform:translateY(8px) scale(.96);}
    100%{opacity:1;transform:translateY(0) scale(1);}
}




.cg-list-flex{
    --cg-price-gap:.35rem;
}


.cg-list-flex .price-box{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:var(--cg-price-gap);
    margin-block:0.6rem 0;                 
    font-family:var(--cg-font);
}


.cg-list-flex .price-box .price{
    font-size:clamp(1.8rem,1vw + 1.4rem,2.2rem);
    font-weight:700;
    color:var(--cg-accent);
    font-variant-numeric:tabular-nums;
    display:inline-flex;align-items:center;
    padding:.22rem .9rem .18rem;
    border-radius:10px;

    
    background:color-mix(in srgb,var(--cg-accent) 16%,rgba(255,255,255,.72));
    backdrop-filter:blur(8px) saturate(140%);          
    box-shadow:
        0 1px 1px rgba(255,255,255,.25) inset,
        0 3px 6px rgba(0,0,0,.08) inset,
        0 4px 12px rgba(0,0,0,.10);

    transition:
        transform .18s var(--cg-ease-smooth),
        box-shadow .18s var(--cg-ease-smooth);
    animation:priceRevealList .45s cubic-bezier(.16,.8,.36,1) both;
}

@keyframes priceRevealList{
    0%{opacity:0;transform:translateY(8px) scale(.96);}
    100%{opacity:1;transform:translateY(0) scale(1);}
}


.cg-list-flex .product-item:is(:hover,:focus-within) .price-box .price{
    transform:translateY(-3px) scale(1.015);
    box-shadow:
        0 1px 1px rgba(255,255,255,.28) inset,
        0 5px 10px rgba(0,0,0,.10) inset,
        0 6px 18px rgba(0,0,0,.12);
}


.cg-list-flex .special-price .price-label{
    display:inline-flex;align-items:center;
    padding:.14rem .6rem .1rem;
    font-size:1.05rem;font-weight:600;
    color:#fff;background:var(--cg-accent);
    border-radius:4px;
    text-transform:uppercase;
    letter-spacing:.35px;
    box-shadow:0 2px 4px rgba(0,0,0,.12);
}


.cg-list-flex .old-price .price{
    font-size:1.35rem;font-weight:400;color:#8e8e8e;
    text-decoration:line-through;opacity:.55;
    transition:opacity .25s;
}
.cg-list-flex .product-item:hover .old-price .price{
    opacity:.4;
}


@media (prefers-reduced-motion:reduce){
    .cg-list-flex .price-box .price{
        transition:none;animation:none;
    }
}



.product-item-photo .discount-percent,
.product.media      .discount-percent{
    
    position:absolute;
    top:12px;                     
    right:-38px;                  
    z-index:5;

    
    width:120px;
    text-align:center;

    
    background:linear-gradient(145deg,#d4af37 0%,#b89b65 100%);
    color:#fff;
    font:700 1.3rem/2rem var(--cg-font);
    letter-spacing:.2px;
    transform:rotate(45deg);
    box-shadow:0 2px 4px rgba(0,0,0,.18);

    
    animation:badgeIn .6s cubic-bezier(.16,.76,.38,1) both;
}


.product-item-photo .discount-percent::after,
.product.media      .discount-percent::after{
    content:"";
    position:absolute;
    right:-12px; top:0;
    border-width:0 0 12px 12px;
    border-style:solid;
    border-color:transparent transparent rgba(0,0,0,.12) transparent;
}


.product-item-photo .discount-percent::before,
.product.media      .discount-percent::before{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(
        60deg,
        rgba(255,255,255,.35),
        rgba(255,255,255,0) 60%
    );
    mix-blend-mode:overlay;
    pointer-events:none;
}


@keyframes badgeIn{
    0%  {opacity:0; transform:translateY(-15px) rotate(45deg);}
    100%{opacity:1; transform:translateY(0)    rotate(45deg);}
}



:root{ --cg-neutral:#4b4f5a; }          


.widget-product.cg-card-strip .product-item-description,
.cg-list-flex                 .product-item-description{
    font-family:var(--cg-font,"Inter","Helvetica Neue",sans-serif);
    font-size:clamp(1.4rem,0.35vw + 1.3rem,1.6rem);
    line-height:1.6;
    color:var(--cg-neutral);
    text-align:justify;

    max-width:90ch;                     
    margin:.45rem auto 0;

    overflow:hidden;                    
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;               
    max-height:calc(1.6em * 3);         

    position:relative;

    
    transition:max-height .8s cubic-bezier(.25,.9,.45,1);
    -webkit-transition:max-height .8s cubic-bezier(.25,.9,.45,1);
}


.widget-product.cg-card-strip .product-item-description::after,
.cg-list-flex                 .product-item-description::after{
    content:"";
    position:absolute;
    inset-inline-end:0; inset-block-end:0;
    width:35%; height:1.4em;            
    background:linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        color-mix(in srgb,var(--cg-neutral) 8%,#fff) 100%
    );
    pointer-events:none;
}


@media (hover:hover){
    .widget-product.cg-card-strip .product-item:is(:hover,:focus-within) .product-item-description,
    .cg-list-flex                 .product-item:is(:hover,:focus-within) .product-item-description{
        -webkit-line-clamp:unset;   
        max-height:40em;            
    }
    .widget-product.cg-card-strip .product-item:is(:hover,:focus-within) .product-item-description::after,
    .cg-list-flex                 .product-item:is(:hover,:focus-within) .product-item-description::after{
        display:none;               
    }
}


@media (hover:none){
    .widget-product.cg-card-strip .product-item-description,
    .cg-list-flex                 .product-item-description{
        -webkit-line-clamp:unset;
        max-height:none;
    }
    .widget-product.cg-card-strip .product-item-description::after,
    .cg-list-flex                 .product-item-description::after{
        display:none;
    }
}


@media (prefers-reduced-motion:reduce){
    .widget-product.cg-card-strip .product-item-description,
    .cg-list-flex                 .product-item-description{
        transition:none !important;
    }
}



.cg-list-flex .product-btn-info{
    
    display:flex;
    flex-direction:column;
    justify-content:space-between;   
    align-items:center;
    
    
    min-height:11rem;                
    
    
    gap:1rem;
}


.cg-list-flex .product-btn-info .price-box,
.cg-list-flex .product-btn-info .price-block,
.cg-list-flex .product-btn-info .row.no-gutters{
    flex:0 0 auto;                   
    width:100%;                      
    display:flex;
    justify-content:center;
    align-items:center;
}


.cg-list-flex .product-btn-info .price-block form{
    margin:0;                        
}


.cg-list-flex .product-btn-info .row.no-gutters{
    gap:.75rem;                      
}
.cg-list-flex .product-btn-info .row.no-gutters > .col{
    flex:1 1 0;                      
    display:flex;
    justify-content:center;
    align-items:center;
}


.cg-list-flex .product-btn-info .row.no-gutters > .col{
    
    flex:1 1 0;
    display:flex;
    justify-content:center;
    align-items:center;
}


.cg-list-flex .product-btn-info .row.no-gutters > .col button{
    all:unset;                                    
    display:grid; place-items:center;
    width:3.2rem; height:3.2rem;                  
    border-radius:50%;
    cursor:pointer; user-select:none;

    
    background:color-mix(in srgb,var(--cg-accent,#b89b65) 8%,#fff 92%);
    backdrop-filter:blur(14px) saturate(180%);
    border:1px solid color-mix(in srgb,var(--cg-accent,#b89b65) 25%,transparent);
    box-shadow:0 1px 3px rgba(0,0,0,.06) inset,0 2px 4px rgba(0,0,0,.06);

    transition:
        background .22s var(--cg-ease-smooth,cubic-bezier(.16,.8,.36,1)),
        transform  .22s var(--cg-ease-smooth,cubic-bezier(.16,.8,.36,1)),
        box-shadow .22s var(--cg-ease-smooth,cubic-bezier(.16,.8,.36,1));
}


.cg-list-flex .product-btn-info .row.no-gutters > .col button i{
    font-size:1.6rem; width:1em; height:1em;
    line-height:1; display:block; pointer-events:none;
    color:var(--cg-accent,#b89b65);
    transform-origin:center;
    transition:transform .22s var(--cg-ease-smooth,cubic-bezier(.16,.8,.36,1));
}


.cg-list-flex .product-btn-info .row.no-gutters > .col button:is(:hover,:focus-visible){
    background:var(--cg-accent,#b89b65);
    color:#fff;
    transform:translateY(-3px) scale(1.08);
    box-shadow:0 4px 10px rgba(0,0,0,.12),0 6px 14px rgba(0,0,0,.14);
}
.cg-list-flex .product-btn-info .row.no-gutters > .col button:is(:hover,:focus-visible) i{
    transform:scale(var(--icon-scale-hover,1));
    color:#fff;
}


.cg-list-flex .product-btn-info .row.no-gutters > .col button:active{
    transform:translateY(0) scale(.94);
}


.cg-list-flex .product-btn-info .row.no-gutters > .col button:focus-visible{
    outline:2px solid color-mix(in srgb,var(--cg-accent,#b89b65) 45%,transparent);
    outline-offset:2px;
}


@media (prefers-reduced-motion:reduce){
    .cg-list-flex .product-btn-info .row.no-gutters > .col button,
    .cg-list-flex .product-btn-info .row.no-gutters > .col button i{
        transition:none;
    }
}

.cg-list-flex .product-btn-info .row.no-gutters > .col button span{
    display:none;
}



.cg-list-flex .product-btn-info .row.no-gutters > .col button{
    position:relative;                 
    overflow:visible;                  
}


.cg-list-flex .product-btn-info .row.no-gutters > .col button span{
    display:block;                     

    position:absolute;
    top:100%; left:50%;
    transform:translate(-50%, .55rem); 

    font-size:.85rem;
    font-weight:500;
    line-height:1;
    color:var(--cg-text,#2d337f);
    white-space:nowrap;

    opacity:.85;
    transition:opacity .22s ease;
}


.cg-list-flex .product-btn-info .row.no-gutters > .col button:is(:hover,:focus-visible) span{
    opacity:1;
}


@media (hover:none){
    .cg-list-flex .product-btn-info .row.no-gutters > .col button span{
        opacity:1;
    }
}


/* Captain Greek homepage product card stable image V4 */

/*
   Stable CSS-only fix for MageBig WidgetPlus product cards.
   Keeps add-to-cart, quick view, wishlist, compare, price, sale badge, and carousel functionality intact.
*/

.cg-product-edit .widget-product.cg-card-strip .owl-stage {
    display: flex !important;
    align-items: stretch !important;
}

.cg-product-edit .widget-product.cg-card-strip .owl-item {
    display: flex !important;
    height: auto !important;
}

.cg-product-edit .widget-product.cg-card-strip .owl-item .product-item,
.cg-product-edit .widget-product.cg-card-strip .product-item {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-info {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf5 100%) !important;
    border: 1px solid rgba(212, 175, 55, .34) !important;
    border-radius: 24px !important;
    box-shadow: 0 14px 34px rgba(31, 36, 93, .085) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-info:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(212, 175, 55, .68) !important;
    box-shadow: 0 22px 46px rgba(31, 36, 93, .14) !important;
}

/* Image stage: no absolute positioning, no forced empty height */
.cg-product-edit .widget-product.cg-card-strip .product-show {
    position: relative !important;
    flex: 0 0 auto !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 14px 14px 13px !important;
    margin: 0 !important;
    overflow: visible !important;
    background:
        radial-gradient(circle at 20% 0%, rgba(212, 175, 55, .13), transparent 34%),
        linear-gradient(180deg, #fbfaf5 0%, #f6f1e3 100%) !important;
    border-radius: 24px 24px 0 0 !important;
}

/* Rounded media frame */
.cg-product-edit .widget-product.cg-card-strip .product-item-photo,
.cg-product-edit .widget-product.cg-card-strip .product.photo,
.cg-product-edit .widget-product.cg-card-strip a.product-item-photo {
    position: relative !important;
    inset: auto !important;

    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / .78 !important;

    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;

    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(45, 51, 127, .08) !important;
    border-radius: 20px !important;
    box-shadow:
        0 12px 28px rgba(31, 36, 93, .09),
        inset 0 1px 0 rgba(255, 255, 255, .78) !important;
    z-index: 3 !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-photo .main-photo {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

/* Correct Magento image-helper structure */
.cg-product-edit .widget-product.cg-card-strip .product-image-container,
.cg-product-edit .widget-product.cg-card-strip .cg-img-container {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-image-wrapper,
.cg-product-edit .widget-product.cg-card-strip .cg-img-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border-radius: 16px !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-image-photo {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    padding: 0 !important;
    margin: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 16px !important;

    transform: scale(1) !important;
    transition: transform .24s ease, filter .24s ease !important;
    z-index: 2 !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-info:hover .product-image-photo {
    transform: scale(1.03) !important;
    filter: saturate(1.04) contrast(1.02) !important;
}

/* Sale badge: stable pill, not diagonal ribbon */
.cg-product-edit .widget-product.cg-card-strip .discount-percent {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 9 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 7px 11px !important;

    color: #ffffff !important;
    background: linear-gradient(135deg, #9f3c2f 0%, #c98d34 55%, #d4af37 100%) !important;
    border: 1px solid rgba(255, 255, 255, .70) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 22px rgba(160, 59, 45, .24) !important;

    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .02em !important;
    text-align: center !important;
    white-space: nowrap !important;

    transform: none !important;
    rotate: 0deg !important;
    animation: none !important;
}

.cg-product-edit .widget-product.cg-card-strip .discount-percent:before,
.cg-product-edit .widget-product.cg-card-strip .discount-percent:after {
    content: none !important;
    display: none !important;
}

/* Action dock: normal flow under image frame, never outside card */
.cg-product-edit .widget-product.cg-card-strip .product-btn {
    position: relative !important;
    inset: auto !important;

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

    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;

    padding: 7px 9px !important;
    margin: 12px auto 0 !important;

    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94) 0%, rgba(251, 250, 245, .90) 100%) !important;
    border: 1px solid rgba(212, 175, 55, .48) !important;
    border-radius: 999px !important;
    box-shadow:
        0 14px 32px rgba(31, 36, 93, .15),
        inset 0 1px 0 rgba(255, 255, 255, .84) !important;
    backdrop-filter: blur(12px) !important;

    opacity: 1 !important;
    visibility: visible !important;
    translate: none !important;
    transform: none !important;
    transition: box-shadow .2s ease, border-color .2s ease !important;
    z-index: 10 !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-info:hover .product-btn {
    border-color: rgba(212, 175, 55, .72) !important;
    box-shadow:
        0 18px 38px rgba(31, 36, 93, .19),
        inset 0 1px 0 rgba(255, 255, 255, .88) !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn .row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    width: auto !important;
    margin: 0 !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn .col {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn form {
    display: block !important;
    margin: 0 !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn button,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview,
.cg-product-edit .widget-product.cg-card-strip .product-btn a {
    all: unset !important;

    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;

    color: #2d337f !important;
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(45, 51, 127, .10) !important;
    border-radius: 50% !important;
    box-shadow:
        0 8px 18px rgba(31, 36, 93, .12),
        inset 0 1px 0 rgba(255, 255, 255, .90) !important;

    font-size: 16px !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    outline: none !important;
    transition: transform .17s ease, color .17s ease, background .17s ease, border-color .17s ease, box-shadow .17s ease !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn .action.tocart {
    color: #1f245d !important;
    background: linear-gradient(135deg, #fff8df 0%, #efd06a 100%) !important;
    border-color: rgba(212, 175, 55, .72) !important;
    box-shadow:
        0 10px 22px rgba(212, 175, 55, .24),
        inset 0 1px 0 rgba(255, 255, 255, .88) !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn button:hover,
.cg-product-edit .widget-product.cg-card-strip .product-btn button:focus-visible,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action:hover,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action:focus-visible,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview:hover,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview:focus-visible,
.cg-product-edit .widget-product.cg-card-strip .product-btn a:hover,
.cg-product-edit .widget-product.cg-card-strip .product-btn a:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2d337f 0%, #1f245d 100%) !important;
    border-color: rgba(45, 51, 127, .92) !important;
    box-shadow: 0 12px 26px rgba(31, 36, 93, .22) !important;
    transform: translateY(-2px) !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn button i,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action i,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview i,
.cg-product-edit .widget-product.cg-card-strip .product-btn a i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Details */
.cg-product-edit .widget-product.cg-card-strip .product-item-details {
    position: relative !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 17px 16px 20px !important;
    text-align: center !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(45, 51, 127, .05) !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-name {
    min-height: 73px !important;
    margin: 0 0 12px !important;
    text-align: center !important;
    line-height: 1.34 !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-name a,
.cg-product-edit .widget-product.cg-card-strip .product-item-link {
    display: -webkit-box !important;
    color: #1f245d !important;
    font-size: 13.5px !important;
    font-weight: 850 !important;
    line-height: 1.34 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-name a:hover,
.cg-product-edit .widget-product.cg-card-strip .product-item-name a:focus-visible,
.cg-product-edit .widget-product.cg-card-strip .product-item-link:hover,
.cg-product-edit .widget-product.cg-card-strip .product-item-link:focus-visible {
    color: #2d337f !important;
    text-decoration: none !important;
}

/* Price */
.cg-product-edit .widget-product.cg-card-strip .price-wrap {
    display: flex !important;
    justify-content: center !important;
    margin-top: auto !important;
    padding-top: 4px !important;
}

.cg-product-edit .widget-product.cg-card-strip .price-box {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.cg-product-edit .widget-product.cg-card-strip .price-box .normal-price,
.cg-product-edit .widget-product.cg-card-strip .price-box .special-price {
    display: inline-flex !important;
}

.cg-product-edit .widget-product.cg-card-strip .price-box .price-container {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.cg-product-edit .widget-product.cg-card-strip .price-box .price-label {
    display: none !important;
}

.cg-product-edit .widget-product.cg-card-strip .normal-price .price-wrapper,
.cg-product-edit .widget-product.cg-card-strip .special-price .price-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
    background: rgba(251, 250, 245, .96) !important;
    border: 1px solid rgba(212, 175, 55, .28) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(31, 36, 93, .08) !important;
}

.cg-product-edit .widget-product.cg-card-strip .price-box .price {
    color: #b89445 !important;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.cg-product-edit .widget-product.cg-card-strip .old-price {
    display: inline-flex !important;
    opacity: 1 !important;
}

.cg-product-edit .widget-product.cg-card-strip .old-price .price-wrapper {
    min-height: 30px !important;
    padding: 5px 9px !important;
    background: rgba(45, 51, 127, .045) !important;
    border: 1px solid rgba(45, 51, 127, .08) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.cg-product-edit .widget-product.cg-card-strip .old-price .price {
    color: #8a8d9b !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: line-through !important;
}

/* Carousel spacing */
.cg-product-edit .widget-product.cg-card-strip .owl-stage-outer {
    padding: 4px 0 22px !important;
}

.cg-product-edit .widget-product.cg-card-strip .owl-nav {
    margin-top: 2px !important;
}

/* Compact bestseller column if populated */
.cg-promo--compact .widget-product.cg-card-strip .product-item-info {
    display: grid !important;
    grid-template-columns: 106px minmax(0, 1fr) !important;
    align-items: center !important;
}

.cg-promo--compact .widget-product.cg-card-strip .product-show {
    padding: 10px !important;
}

.cg-promo--compact .widget-product.cg-card-strip .product-item-photo,
.cg-promo--compact .widget-product.cg-card-strip a.product-item-photo {
    aspect-ratio: 1 / 1 !important;
    border-radius: 15px !important;
}

.cg-promo--compact .widget-product.cg-card-strip .product-item-photo .main-photo {
    padding: 6px !important;
    border-radius: 15px !important;
}

.cg-promo--compact .widget-product.cg-card-strip .product-image-wrapper,
.cg-promo--compact .widget-product.cg-card-strip .cg-img-wrapper,
.cg-promo--compact .widget-product.cg-card-strip .product-image-photo {
    border-radius: 12px !important;
}

.cg-promo--compact .widget-product.cg-card-strip .product-btn,
.cg-promo--compact .widget-product.cg-card-strip .discount-percent {
    display: none !important;
}

.cg-promo--compact .widget-product.cg-card-strip .product-item-details {
    padding: 12px !important;
    text-align: left !important;
    border-top: 0 !important;
}

.cg-promo--compact .widget-product.cg-card-strip .product-item-name {
    min-height: 0 !important;
    margin-bottom: 6px !important;
}

.cg-promo--compact .widget-product.cg-card-strip .product-item-name a,
.cg-promo--compact .widget-product.cg-card-strip .product-item-link {
    text-align: left !important;
    font-size: 12.5px !important;
    -webkit-line-clamp: 2 !important;
}

.cg-promo--compact .widget-product.cg-card-strip .price-wrap {
    justify-content: flex-start !important;
}

.cg-promo--compact .widget-product.cg-card-strip .price-box .price {
    font-size: 17px !important;
}

/* Tablet */
@media (max-width: 991px) {
    .cg-product-edit .widget-product.cg-card-strip .product-item-photo,
    .cg-product-edit .widget-product.cg-card-strip a.product-item-photo {
        aspect-ratio: 1 / .82 !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-name {
        min-height: 67px !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .cg-product-edit .widget-product.cg-card-strip .product-item-info {
        border-radius: 22px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-show {
        padding: 12px 12px 13px !important;
        border-radius: 22px 22px 0 0 !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-photo,
    .cg-product-edit .widget-product.cg-card-strip a.product-item-photo {
        aspect-ratio: 1 / .80 !important;
        border-radius: 18px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-photo .main-photo {
        border-radius: 18px !important;
        padding: 8px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-image-wrapper,
    .cg-product-edit .widget-product.cg-card-strip .cg-img-wrapper,
    .cg-product-edit .widget-product.cg-card-strip .product-image-photo {
        border-radius: 14px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-btn {
        padding: 7px 8px !important;
        margin-top: 10px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-btn .row {
        gap: 6px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-btn button,
    .cg-product-edit .widget-product.cg-card-strip .product-btn .action,
    .cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview,
    .cg-product-edit .widget-product.cg-card-strip .product-btn a {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-btn button i,
    .cg-product-edit .widget-product.cg-card-strip .product-btn .action i,
    .cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview i,
    .cg-product-edit .widget-product.cg-card-strip .product-btn a i {
        font-size: 15px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-details {
        padding: 16px 14px 18px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-name {
        min-height: auto !important;
        margin-bottom: 12px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-name a,
    .cg-product-edit .widget-product.cg-card-strip .product-item-link {
        font-size: 14px !important;
        -webkit-line-clamp: 4 !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .normal-price .price-wrapper,
    .cg-product-edit .widget-product.cg-card-strip .special-price .price-wrapper {
        min-height: 34px !important;
        padding: 6px 10px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .price-box .price {
        font-size: 21px !important;
    }
}

/* End Captain Greek homepage product card stable image V4 */


/* Captain Greek homepage product card image + hover V5 */

/*
   Purpose:
   - Make product images fill the rounded media frame more.
   - Reduce wasted whitespace.
   - Keep action dock readable on hover.
   - Do not change MageBig functionality.
*/

.cg-product-edit .widget-product.cg-card-strip .product-show {
    padding: 8px 8px 12px !important;
}

/* Larger image frame */
.cg-product-edit .widget-product.cg-card-strip .product-item-photo,
.cg-product-edit .widget-product.cg-card-strip .product.photo,
.cg-product-edit .widget-product.cg-card-strip a.product-item-photo {
    aspect-ratio: 1 / .96 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 20px !important;
}

/* Remove inner padding so the image can use the full frame */
.cg-product-edit .widget-product.cg-card-strip .product-item-photo .main-photo {
    padding: 0 !important;
    border-radius: 20px !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-image-container,
.cg-product-edit .widget-product.cg-card-strip .cg-img-container {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-image-wrapper,
.cg-product-edit .widget-product.cg-card-strip .cg-img-wrapper {
    width: 100% !important;
    height: 100% !important;
    padding-bottom: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

/* Fill the frame. This intentionally crops a little if the uploaded image has lots of empty padding. */
.cg-product-edit .widget-product.cg-card-strip .product-image-photo {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 18px !important;
    transform: scale(1.035) !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-item-info:hover .product-image-photo {
    transform: scale(1.075) !important;
}

/* Keep the action dock neatly below the bigger image */
.cg-product-edit .widget-product.cg-card-strip .product-btn {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* Reset action button text/icon colors clearly */
.cg-product-edit .widget-product.cg-card-strip .product-btn button,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview,
.cg-product-edit .widget-product.cg-card-strip .product-btn a {
    color: #2d337f !important;
    background: rgba(255, 255, 255, .97) !important;
    border-color: rgba(45, 51, 127, .12) !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn button i,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action i,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview i,
.cg-product-edit .widget-product.cg-card-strip .product-btn a i,
.cg-product-edit .widget-product.cg-card-strip .product-btn button span,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action span,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview span,
.cg-product-edit .widget-product.cg-card-strip .product-btn a span {
    color: currentColor !important;
}

/* Add to cart: gold default, navy hover with readable white icon */
.cg-product-edit .widget-product.cg-card-strip .product-btn .action.tocart {
    color: #1f245d !important;
    background: linear-gradient(135deg, #fff8df 0%, #efd06a 100%) !important;
    border-color: rgba(212, 175, 55, .78) !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn .action.tocart:hover,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action.tocart:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2d337f 0%, #1f245d 100%) !important;
    border-color: rgba(45, 51, 127, .92) !important;
}

/* Wishlist / quick view / compare hover: readable white icon */
.cg-product-edit .widget-product.cg-card-strip .product-btn .action.towishlist:hover,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action.towishlist:focus-visible,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview:hover,
.cg-product-edit .widget-product.cg-card-strip .product-btn .btn-quickview:focus-visible,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action.tocompare:hover,
.cg-product-edit .widget-product.cg-card-strip .product-btn .action.tocompare:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2d337f 0%, #1f245d 100%) !important;
    border-color: rgba(45, 51, 127, .92) !important;
}

/* Tooltip readability, scoped only to this homepage product edit */
.cg-product-edit .widget-product.cg-card-strip .product-btn .mb-tooltip:hover:after,
.cg-product-edit .widget-product.cg-card-strip .product-btn .mb-tooltip:focus-visible:after {
    color: #ffffff !important;
    background: #1f245d !important;
    border-color: #1f245d !important;
}

.cg-product-edit .widget-product.cg-card-strip .product-btn .mb-tooltip:hover:before,
.cg-product-edit .widget-product.cg-card-strip .product-btn .mb-tooltip:focus-visible:before {
    border-top-color: #1f245d !important;
    border-bottom-color: #1f245d !important;
}

/* Sale badge stays above the larger image */
.cg-product-edit .widget-product.cg-card-strip .discount-percent {
    top: 12px !important;
    left: 12px !important;
    z-index: 12 !important;
}

/* Mobile: keep the bigger image but avoid oversized cards */
@media (max-width: 640px) {
    .cg-product-edit .widget-product.cg-card-strip .product-show {
        padding: 7px 7px 11px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-photo,
    .cg-product-edit .widget-product.cg-card-strip .product.photo,
    .cg-product-edit .widget-product.cg-card-strip a.product-item-photo {
        aspect-ratio: 1 / .92 !important;
        border-radius: 18px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-photo .main-photo,
    .cg-product-edit .widget-product.cg-card-strip .product-image-wrapper,
    .cg-product-edit .widget-product.cg-card-strip .cg-img-wrapper,
    .cg-product-edit .widget-product.cg-card-strip .product-image-photo {
        border-radius: 16px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-image-photo {
        transform: scale(1.04) !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-info:hover .product-image-photo {
        transform: scale(1.06) !important;
    }
}

/* End Captain Greek homepage product card image + hover V5 */


/* Captain Greek mobile product title no-cut V6 */

/*
   Scope: homepage MageBig WidgetPlus product cards only.
   Fixes mobile product names getting clipped.
   Does not change add-to-cart, quick view, wishlist, compare, price, or carousel behavior.
*/

@media (max-width: 767px) {
    .cg-product-edit .widget-product.cg-card-strip .owl-stage-outer {
        height: auto !important;
        padding-bottom: 28px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .owl-stage,
    .cg-product-edit .widget-product.cg-card-strip .owl-item,
    .cg-product-edit .widget-product.cg-card-strip .product-item {
        height: auto !important;
        min-height: 0 !important;
        align-items: stretch !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-info {
        height: auto !important;
        min-height: 0 !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-details {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 17px 14px 20px !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-name {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 0 13px !important;
        padding: 0 !important;
        overflow: visible !important;
        text-align: center !important;
        line-height: 1.34 !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-name a,
    .cg-product-edit .widget-product.cg-card-strip .product-item-link {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        color: #1f245d !important;
        font-size: 14px !important;
        font-weight: 850 !important;
        line-height: 1.34 !important;
        text-align: center !important;
        text-decoration: none !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;

        overflow: visible !important;
        text-overflow: clip !important;

        -webkit-line-clamp: unset !important;
        -webkit-box-orient: initial !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .price-wrap {
        clear: both !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 8px !important;
        padding-top: 0 !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .price-box {
        margin-top: 0 !important;
    }
}

/* Tablet: allow longer names without making cards too tall */
@media (min-width: 768px) and (max-width: 991px) {
    .cg-product-edit .widget-product.cg-card-strip .product-item-name {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-bottom: 13px !important;
        overflow: visible !important;
    }

    .cg-product-edit .widget-product.cg-card-strip .product-item-name a,
    .cg-product-edit .widget-product.cg-card-strip .product-item-link {
        display: -webkit-box !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
}

/* End Captain Greek mobile product title no-cut V6 */


