/* CaptainGreek account presentation.
 * Component templates own their layouts and state. This file supplies a common
 * type palette and native account fallbacks, without changing checkout, header,
 * catalog images, form state or the width of the theme's main column.
 */
body.account .page-main {
    --cgd-ink: #203b3b;
    --cgd-heading: #183b3d;
    --cgd-muted: #526861;
    --cgd-action: #245c58;
    --cgd-line: #d5e3dc;
    --cgd-soft: #f5faf7;
    --cgd-tint: #edf5f0;
    --cgd-gradient: linear-gradient(115deg, #183b3d, #2d6353);
    color: var(--cgd-ink);
    font-family: Inter, "Work Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: normal;
}

/* Ordinary headings have no expanding decoration or hover movement. */
body.account .page-main .legend,
body.account .page-main legend {
    color: var(--cgd-heading);
    font-family: inherit;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.02em;
}
body.account .page-main .legend::after,
body.account .page-main legend::after,
body.account .page-main .box-title::after,
body.account .page-main .block-title strong::after,
body.account .page-main .customer-review .product-name::after {
    content: none !important;
}
body.account .page-main .block-title strong,
body.account .page-main .box-title {
    color: var(--cgd-heading);
    font-family: inherit;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.015em;
}
body.account .page-main .box-title { font-size: 16px; }
body.account .page-main .box-content {
    color: var(--cgd-ink);
    font-size: 14px;
    line-height: 1.65;
}
body.account .page-main .box-content address { margin: 0; font: inherit; }
body.account .page-main .box-content p { margin: 0 0 10px; }
body.account .page-main .box-content p:last-child { margin-bottom: 0; }
body.account .page-main .box-content a,
body.account .page-main .block-title .action {
    color: var(--cgd-action);
    text-underline-offset: 3px;
}
body.account .page-main .box-content a:hover,
body.account .page-main .block-title .action:hover { color: var(--cgd-heading); }
body.account .page-main .block-title .action { font-size: 14px; font-weight: 600; }
body.account .page-main .box-content a:focus-visible,
body.account .page-main .block-title .action:focus-visible {
    outline: 2px solid #3d7b68;
    outline-offset: 3px;
}

/* Native account pages that have not been replaced by a component template. */
body.account:not(.cg-customer-experience) .column.main > .block:not(.widget) {
    margin: 0 0 20px;
    padding: 24px;
    border: 1px solid var(--cgd-line);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f5faf7);
    box-shadow: 0 5px 20px #183b3007;
}
body.account:not(.cg-customer-experience) .column.main .block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 20px;
    padding: 0 0 15px;
    border-bottom: 1px solid var(--cgd-line);
}
body.account:not(.cg-customer-experience) .column.main .block-title strong { font-size: 20px; }
body.account:not(.cg-customer-experience) .block-dashboard-info > .block-content,
body.account:not(.cg-customer-experience) .block-dashboard-addresses > .block-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
body.account:not(.cg-customer-experience) .block-dashboard-info .box,
body.account:not(.cg-customer-experience) .block-dashboard-addresses .box {
    display: flex;
    flex-direction: column;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--cgd-line);
    border-radius: 12px;
    background: #fff;
}
body.account:not(.cg-customer-experience) .box-title { display: block; margin-bottom: 10px; }
body.account:not(.cg-customer-experience) .box-actions { margin-top: auto; padding-top: 16px; }
body.account:not(.cg-customer-experience) .box-actions .action,
body.account .page-main #affiliate-user .action,
body.account .page-main .cg-fieldset .cg-btn,
body.account:not(.cg-customer-experience) .column.main .actions-toolbar .action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--cgd-line);
    border-radius: 10px;
    background: #fff;
    color: var(--cgd-action);
    font: 600 14px/1.45 Inter, "Work Sans", Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
}
body.account .page-main #affiliate-user .action.primary,
body.account .page-main #wk_rma_new_request.cg-btn,
body.account:not(.cg-customer-experience) .column.main .actions-toolbar .action.primary {
    border-color: #28554c;
    background: var(--cgd-gradient);
    color: #fff;
}
body.account:not(.cg-customer-experience) .box-actions .action:hover,
body.account .page-main #affiliate-user .action:hover,
body.account .page-main .cg-fieldset .cg-btn:hover,
body.account:not(.cg-customer-experience) .column.main .actions-toolbar .action:hover {
    border-color: #6f9b88;
    text-decoration: none;
}
body.account:not(.cg-customer-experience) .box-actions .action:focus-visible,
body.account .page-main #affiliate-user .action:focus-visible,
body.account .page-main .cg-fieldset .cg-btn:focus-visible,
body.account:not(.cg-customer-experience) .column.main .actions-toolbar .action:focus-visible {
    outline: 2px solid #3d7b68;
    outline-offset: 3px;
}

/* Native lists keep their rows, links and filters visible at every size. */
body.account:not(.cg-customer-experience) .block-reviews-dashboard .items {
    margin: 0;
    padding: 0;
    list-style: none;
}
body.account:not(.cg-customer-experience) .block-reviews-dashboard .item {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid var(--cgd-line);
}
body.account:not(.cg-customer-experience) .block-reviews-dashboard .item:last-child { border-bottom: 0; }
body.account:not(.cg-customer-experience) .block-reviews-dashboard .item a {
    color: var(--cgd-action);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
body.account:not(.cg-customer-experience) .column.main .table-wrapper {
    max-width: 100%;
    margin: 0 0 20px;
    overflow-x: auto;
    border: 1px solid var(--cgd-line);
    border-radius: 12px;
    background: #fff;
}
body.account:not(.cg-customer-experience) .column.main table.data,
body.account .page-main #rma-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--cgd-ink);
    font: 400 14px/1.55 Inter, "Work Sans", Arial, sans-serif;
}
body.account:not(.cg-customer-experience) .column.main table.data th,
body.account .page-main #rma-table th {
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid var(--cgd-line);
    background: var(--cgd-tint);
    color: var(--cgd-heading);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    text-align: left;
}
body.account:not(.cg-customer-experience) .column.main table.data td,
body.account .page-main #rma-table td {
    padding: 15px 16px;
    border: 0;
    border-bottom: 1px solid var(--cgd-line);
    vertical-align: top;
}
body.account:not(.cg-customer-experience) .column.main table.data tbody tr:last-child td,
body.account .page-main #rma-table tbody tr:last-child td { border-bottom: 0; }
body.account:not(.cg-customer-experience) .column.main table.data tbody tr:nth-child(even),
body.account .page-main #rma-table tbody tr:nth-child(even) { background: #f8fbf9; }
body.account:not(.cg-customer-experience) .column.main table.data a,
body.account .page-main #rma-table a { color: var(--cgd-action); font-weight: 600; }
body.account:not(.cg-customer-experience) .column.main table.data td.col.total { text-align: right; }
body.account:not(.cg-customer-experience) .column.main .pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 18px;
    font-size: 13px;
}
body.account:not(.cg-customer-experience) .column.main .limiter { display: flex; align-items: center; gap: 8px; }
body.account:not(.cg-customer-experience) .column.main .toolbar-amount { margin: 0; }
body.account:not(.cg-customer-experience) .column.main .limiter-options {
    min-height: 44px;
    padding: 8px 28px 8px 12px;
    border: 1px solid var(--cgd-line);
    border-radius: 8px;
    color: var(--cgd-ink);
    background-color: #fff;
    font: inherit;
}

/* The remaining native review and affiliate views retain their own hooks. */
body.account .page-main .customer-review.view,
body.account .page-main #affiliate-user,
body.account .page-main .cg-fieldset {
    min-width: 0;
    margin: 0 0 20px;
    padding: 24px;
    border: 1px solid var(--cgd-line);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f5faf7);
    box-shadow: 0 5px 20px #183b3007;
}
body.account .page-main .customer-review .product-details { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
body.account .page-main .customer-review .product-photo { flex: 0 0 112px; max-width: 112px; }
body.account .page-main .customer-review .product-photo img { max-width: 100%; height: auto; object-fit: contain; }
body.account .page-main .customer-review .product-name { margin: 0; color: var(--cgd-heading); font: 650 20px/1.4 Inter, "Work Sans", Arial, sans-serif; }
body.account .page-main .customer-review .review-title { margin: 18px 0 7px; color: var(--cgd-heading); font-size: 16px; font-weight: 650; }
body.account .page-main .customer-review .review-content { color: var(--cgd-ink); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
body.account .page-main .customer-review .review-date { color: var(--cgd-muted); font-size: 13px; }
body.account .page-main #affiliate-user > br { display: none; }
body.account .page-main #affiliate-user .legend { margin-bottom: 20px; }
body.account .page-main #affiliate-user .field { margin-bottom: 18px; }
body.account .page-main #affiliate-user .label { display: block; margin-bottom: 7px; color: var(--cgd-ink); font-size: 14px; font-weight: 600; }
body.account .page-main #affiliate-user input[type="text"],
body.account .page-main #rma-table .filter_input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--cgd-line);
    border-radius: 9px;
    color: var(--cgd-ink);
    background: #fff;
    font: 400 14px/1.5 Inter, "Work Sans", Arial, sans-serif;
}
body.account .page-main #affiliate-user input[type="text"]:focus-visible,
body.account .page-main #rma-table .filter_input:focus-visible { outline: 2px solid #3d7b68; outline-offset: 3px; }
body.account .page-main #affiliate-user .control p,
body.account .page-main #affiliate-user .wk-affiliate-terms-label { margin: 8px 0 0; color: var(--cgd-muted); font-size: 13px; line-height: 1.65; }
body.account .page-main #affiliate-user #affiliate-confirmation { width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--cgd-action); }
body.account .page-main #affiliate-user .actions-toolbar { margin-top: 24px; }
body.account .page-main .cg-fieldset { overflow-x: auto; }
body.account .page-main .cg-fieldset > legend { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
body.account .page-main #wk_rma_new_request { float: none; width: auto; margin-left: auto; }
body.account .page-main #rma-table { margin-top: 18px; }
body.account .page-main #rma-table th.wk_rma_selected { background: #e3f0e8; }
body.account .page-main #rma-table .a-center { padding: 24px; text-align: center; color: var(--cgd-muted); }
body.account .page-main #rma-table .a-center #wk_rma_new_request { margin: 12px 0 0; }

/* Existing legacy wishlist/share pages are usable without hover-only tools.
 * The current Saved items and popup components own their newer presentation. */
body.account:not(.cg-customer-experience) .products-grid.wishlist .product-item-inner { position: static; opacity: 1; pointer-events: auto; transform: none; translate: none; }
body.account:not(.cg-customer-experience) .products-grid.wishlist .product-item-name { max-height: none; overflow: visible; color: var(--cgd-heading); }
body.account:not(.cg-customer-experience) .products-grid.wishlist .field.qty .control { display: inline-flex; align-items: center; gap: 8px; }
body.account:not(.cg-customer-experience) .products-grid.wishlist input.qty { width: 64px; min-height: 44px; text-align: center; }
body.account:not(.cg-customer-experience) .products-grid.wishlist .cg-btn-qty { min-width: 44px; min-height: 44px; border: 1px solid var(--cgd-line); border-radius: 9px; background: #fff; color: var(--cgd-action); font: 600 20px/1 Inter, "Work Sans", Arial, sans-serif; cursor: pointer; }
body.account:not(.cg-customer-experience) .block-dashboard-share #email_chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
body.account:not(.cg-customer-experience) .block-dashboard-share .cg-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--cgd-line); border-radius: 8px; color: var(--cgd-ink); background: var(--cgd-tint); overflow-wrap: anywhere; }
body.account:not(.cg-customer-experience) .block-dashboard-share .cg-chip-remove { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 0; border: 0; color: var(--cgd-action); background: transparent; cursor: pointer; }
body.account:not(.cg-customer-experience) .block-dashboard-share .cg-textarea-shell { padding: 16px; border: 1px solid var(--cgd-line); border-radius: 12px; background: #fff; }
body.account:not(.cg-customer-experience) .block-dashboard-share .cg-floating-label { position: static; display: block; margin-bottom: 7px; transform: none; color: var(--cgd-ink); font-size: 14px; font-weight: 600; }
body.account:not(.cg-customer-experience) .block-dashboard-share .cg-textarea { width: 100%; min-height: 120px; resize: vertical; color: var(--cgd-ink); font: inherit; }
body.account:not(.cg-customer-experience) .block-dashboard-share .cg-input-help,
body.account:not(.cg-customer-experience) .block-dashboard-share .cg-input-counter { color: var(--cgd-muted); font-size: 13px; }
body.account:not(.cg-customer-experience) .column.main .actions-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
body.account:not(.cg-customer-experience) .column.main .actions-toolbar > .primary,
body.account:not(.cg-customer-experience) .column.main .actions-toolbar > .secondary { float: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
body.account:not(.cg-customer-experience) .account-nav .delimiter { height: 1px; margin: 14px 0; background: var(--cgd-line, #d5e3dc); }
body.account:not(.cg-customer-experience) .dashboard-empty { padding: 24px; border: 1px solid var(--cgd-line); border-radius: 12px; color: var(--cgd-muted); background: var(--cgd-soft); }

@media (max-width: 767px) {
    body.account:not(.cg-customer-experience) .column.main > .block:not(.widget),
    body.account .page-main .customer-review.view,
    body.account .page-main #affiliate-user,
    body.account .page-main .cg-fieldset { padding: 18px; }
    body.account:not(.cg-customer-experience) .block-dashboard-info > .block-content,
    body.account:not(.cg-customer-experience) .block-dashboard-addresses > .block-content { grid-template-columns: minmax(0, 1fr); }
    body.account:not(.cg-customer-experience) .column.main .actions-toolbar .action { min-height: 46px; }
    body.account .page-main #affiliate-user input[type="text"],
    body.account .page-main #rma-table .filter_input,
    body.account:not(.cg-customer-experience) .block-dashboard-share .cg-textarea { font-size: 16px; }
}

/* Existing storefront product repairs below are retained unchanged. */

/* 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 */
