/**
 * Casa Cuir - Cart & Checkout Pages — Premium Design
 *
 * Card-based layout, luxury spacing, polished mobile experience.
 * Built on top of Amerce theme (styles.css) variables.
 *
 * @package CasaCuir
 */

/* ============================================================
   MEGA-MENU — Categories Grid (desktop only)
   ============================================================ */
.sub-menu.mega-menu .cc-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0;
    padding: 24px 20px 8px;
}
.sub-menu.mega-menu .cc-mega-col {
    padding: 0 16px 20px;
    border-right: 1px solid var(--line, #e9e9e9);
}
.sub-menu.mega-menu .cc-mega-col:last-child {
    border-right: none;
}
.sub-menu.mega-menu .cc-mega-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line, #e9e9e9);
    transition: opacity 0.2s;
}
.sub-menu.mega-menu .cc-mega-heading:hover {
    opacity: 0.8;
}
.sub-menu.mega-menu .cc-mega-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-2, #F6F4F3);
}
.sub-menu.mega-menu .cc-mega-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sub-menu.mega-menu .cc-mega-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #101010);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.sub-menu.mega-menu .cc-mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sub-menu.mega-menu .cc-mega-links li {
    margin-bottom: 2px;
}
.sub-menu.mega-menu .cc-mega-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-2, #696E73);
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s, padding-left 0.2s;
}
.sub-menu.mega-menu .cc-mega-links a:hover {
    color: var(--primary, #95C11F);
    padding-left: 4px;
}
.sub-menu.mega-menu .cc-mega-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--white, #fff);
    background: var(--primary, #95C11F);
    border-radius: 10px;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
    line-height: 16px;
}
.sub-menu.mega-menu .cc-mega-see-all {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #95C11F);
    text-decoration: none;
    margin-top: 8px;
    transition: gap 0.2s;
}
.sub-menu.mega-menu .cc-mega-see-all:hover {
    text-decoration: underline;
}
.sub-menu.mega-menu .cc-mega-footer {
    display: flex;
    justify-content: center;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--line, #e9e9e9);
}
/* Hide mega-menu custom elements when cloned into mobile menu */
.canvas-mb .cc-mega-grid,
.canvas-mb .cc-mega-footer,
.offcanvas .cc-mega-grid,
.offcanvas .cc-mega-footer {
    display: none !important;
}

/* ============================================================
   SHOP PAGE — Hero Banner
   ============================================================ */
.cc-shop-hero {
    position: relative;
    padding: 60px 0 50px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}
.cc-shop-hero-bg {
    position: absolute;
    inset: 0;
    background: #1a1a1a center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.cc-shop-hero:hover .cc-shop-hero-bg { transform: scale(1); }
.cc-shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.6) 100%);
}
.cc-shop-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.cc-shop-hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,.7);
    margin-bottom: 24px;
    max-width: 500px;
}
.cc-shop-search {
    display: flex;
    position: relative;
    max-width: 520px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .3s;
}
.cc-shop-search:focus-within {
    border-color: var(--primary, #95C11F);
    background: rgba(255,255,255,.18);
}
.cc-shop-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.5);
    font-size: 16px;
    pointer-events: none;
}
.cc-shop-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 14px 16px 14px 44px;
    font-size: 14px;
    outline: none;
}
.cc-shop-search input::placeholder { color: rgba(255,255,255,.45); }

/* ============================================================
   SHOP PAGE — Category Pills (horizontal scroll)
   ============================================================ */
.cc-cat-pills-section {
    padding: 24px 0 0;
    border-bottom: 1px solid var(--line, #e9e9e9);
    background: var(--white, #fff);
    position: sticky;
    top: 60px;
    z-index: 90;
}
.cc-cat-pills-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cc-cat-pills-scroll::-webkit-scrollbar { display: none; }
.cc-cat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--line, #e9e9e9);
    background: var(--white, #fff);
    color: var(--text, #101010);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all .25s;
    flex-shrink: 0;
}
.cc-cat-pill:hover {
    border-color: var(--primary, #95C11F);
    color: var(--primary, #95C11F);
    box-shadow: 0 2px 8px rgba(149,193,31,.15);
}
.cc-cat-pill.active {
    background: var(--primary, #95C11F);
    border-color: var(--primary, #95C11F);
    color: #fff;
    box-shadow: 0 4px 12px rgba(149,193,31,.3);
}
.cc-cat-pill-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.cc-cat-pill-img img { width: 100%; height: 100%; object-fit: cover; }
.cc-cat-pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-2, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.cc-cat-pill.active .cc-cat-pill-icon { background: rgba(255,255,255,.2); }

/* Sub-category pills */
.cc-sub-pills {
    display: flex;
    gap: 8px;
    padding: 12px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.cc-sub-pills::-webkit-scrollbar { display: none; }
.cc-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--bg-2, #f5f5f5);
    color: var(--text-2, #696E73);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}
.cc-sub-pill:hover { background: var(--bg, #eee); color: var(--text, #101010); }
.cc-sub-pill.active { background: var(--text, #101010); color: #fff; }
.cc-sub-pill-count {
    font-size: 10px;
    font-weight: 700;
    background: var(--primary, #95C11F);
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    line-height: 14px;
}

/* ============================================================
   SHOP PAGE — Toolbar (sort, results count)
   ============================================================ */
.cc-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line, #e9e9e9);
    flex-wrap: wrap;
}
.cc-shop-results {
    font-size: 14px;
    color: var(--text-2, #696E73);
    margin: 0;
}
.cc-shop-results strong { color: var(--text, #101010); }
.cc-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--white, #fff) url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23696E73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1.5px solid var(--line, #e9e9e9);
    border-radius: 10px;
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    color: var(--text, #101010);
    cursor: pointer;
    transition: border-color .2s;
    outline: none;
}
.cc-sort-select:hover,
.cc-sort-select:focus { border-color: var(--primary, #95C11F); }

/* ============================================================
   SHOP PAGE — Pagination
   ============================================================ */
.cc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line, #e9e9e9);
}
.cc-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--line, #e9e9e9);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text, #101010);
    text-decoration: none;
    transition: all .2s;
}
.cc-page-btn:hover {
    border-color: var(--primary, #95C11F);
    color: var(--primary, #95C11F);
}
.cc-page-btn.active {
    background: var(--primary, #95C11F);
    border-color: var(--primary, #95C11F);
    color: #fff;
}
.cc-page-dots {
    padding: 0 4px;
    color: var(--text-3, #aaa);
    font-size: 14px;
}

/* ============================================================
   SHOP PAGE — Empty State
   ============================================================ */
.cc-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.cc-empty-icon {
    color: var(--text-3, #ccc);
    margin-bottom: 24px;
}
.cc-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text, #101010);
    margin-bottom: 8px;
}
.cc-empty-desc {
    font-size: 14px;
    color: var(--text-2, #696E73);
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   SHOP PAGE — Responsive
   ============================================================ */
@media (max-width: 767px) {
    .cc-shop-hero { padding: 40px 0 30px; min-height: 220px; }
    .cc-shop-hero-title { font-size: 24px; }
    .cc-shop-search { max-width: 100%; }
    .cc-shop-toolbar { flex-direction: column; align-items: flex-start; }
    .cc-cat-pills-section { top: 56px; }
}

/* ============================================================
   MINI-CART (Offcanvas sidebar)
   ============================================================ */
.mc-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line, #e9e9e9);
}
.mc-item:last-child {
    border-bottom: none;
}
.mc-img {
    width: 80px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-2, #F6F4F3);
    display: block;
}
.mc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.mc-img:hover img {
    transform: scale(1.05);
}
.mc-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.mc-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #101010);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.mc-name:hover {
    color: var(--primary, #95C11F);
}
.mc-rm {
    width: 26px;
    height: 26px;
    border: 1px solid var(--line, #e9e9e9);
    background: var(--bg, #F7F7F7);
    color: var(--text-2, #696E73);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 11px;
    padding: 0;
}
.mc-rm:hover {
    background: #FEF2F2;
    border-color: var(--critical, #F03E3E);
    color: var(--critical, #F03E3E);
}
.mc-attr {
    font-size: 11px;
    color: var(--text-2, #696E73);
    letter-spacing: 0.2px;
}
.mc-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.mc-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #101010);
}
.mc-price-old {
    font-size: 11px;
    color: var(--text-3, #b1b2b7);
    text-decoration: line-through;
}
.mc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.mc-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line, #e9e9e9);
    border-radius: 8px;
    overflow: hidden;
    height: 32px;
}
.mc-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text, #101010);
    transition: background 0.2s;
    padding: 0;
}
.mc-qty-btn:hover {
    background: var(--bg, #F7F7F7);
}
.mc-qty-val {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #101010);
    user-select: none;
}
.mc-line-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary, #95C11F);
}

/* ============================================================
   SHARED — BREADCRUMB
   ============================================================ */
.cc-breadcrumb {
    padding: 14px 0;
    background: linear-gradient(to bottom, var(--bg-2, #F6F4F3), var(--white, #fff));
}
.cc-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2, #696E73);
    list-style: none;
    margin: 0;
    padding: 0;
    letter-spacing: 0.3px;
}
.cc-breadcrumb-list a {
    color: var(--text-2, #696E73);
    text-decoration: none;
    transition: color 0.25s;
}
.cc-breadcrumb-list a:hover {
    color: var(--primary, #95C11F);
}
.cc-breadcrumb-list .icon {
    font-size: 9px;
    opacity: 0.4;
}
.cc-breadcrumb-list .current {
    color: var(--text, #101010);
    font-weight: 600;
}

/* ============================================================
   SHARED — PROGRESS STEPPER
   ============================================================ */
.cc-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 40px;
    padding: 24px 0;
    list-style: none;
    max-width: 480px;
}
.cc-stepper-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-3, #b1b2b7);
    font-weight: 500;
    white-space: nowrap;
}
.cc-stepper-step.active {
    color: var(--text, #101010);
    font-weight: 700;
}
.cc-stepper-step.done {
    color: var(--primary, #95C11F);
}
.cc-stepper-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--line, #e9e9e9);
    background: var(--white, #fff);
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.cc-stepper-step.active .cc-stepper-num {
    background: var(--text, #101010);
    border-color: var(--text, #101010);
    color: var(--white, #fff);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cc-stepper-step.done .cc-stepper-num {
    background: var(--primary, #95C11F);
    border-color: var(--primary, #95C11F);
    color: var(--white, #fff);
}
.cc-stepper-line {
    flex: 1;
    height: 2px;
    background: var(--line, #e9e9e9);
    margin: 0 16px;
    position: relative;
    min-width: 40px;
}
.cc-stepper-line.done {
    background: var(--primary, #95C11F);
}
@media (max-width: 575px) {
    .cc-stepper { max-width: 320px; }
    .cc-stepper-step { font-size: 12px; gap: 6px; }
    .cc-stepper-step .cc-stepper-label { display: none; }
    .cc-stepper-num { width: 32px; height: 32px; font-size: 13px; }
    .cc-stepper-line { margin: 0 10px; min-width: 24px; }
}

/* ============================================================
   CART PAGE — MAIN LAYOUT
   ============================================================ */
.cc-cart-section {
    padding: 8px 0 80px;
    background: var(--white, #fff);
}
.cc-cart-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
    color: var(--text, #101010);
}
.cc-cart-title .item-count {
    font-weight: 400;
    color: var(--text-2, #696E73);
    font-size: 18px;
}

/* ============================================================
   CART PAGE — ITEM CARDS (replaces raw table)
   ============================================================ */
.cc-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cc-cart-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line, #e9e9e9);
    position: relative;
    transition: background 0.2s;
}
.cc-cart-item:first-child {
    padding-top: 0;
}
.cc-cart-item:last-child {
    border-bottom: none;
}

/* Image */
.cc-cart-item .ci-image {
    width: 110px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-2, #F6F4F3);
    flex-shrink: 0;
}
.cc-cart-item .ci-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cc-cart-item .ci-image:hover img {
    transform: scale(1.05);
}

/* Content area */
.cc-cart-item .ci-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.cc-cart-item .ci-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.cc-cart-item .ci-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #101010);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}
.cc-cart-item .ci-name:hover {
    color: var(--primary, #95C11F);
}
.cc-cart-item .ci-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--line, #e9e9e9);
    background: var(--white, #fff);
    color: var(--text-2, #696E73);
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.cc-cart-item .ci-remove:hover {
    background: #FEF2F2;
    border-color: var(--critical, #F03E3E);
    color: var(--critical, #F03E3E);
}
.cc-cart-item .ci-remove .icon {
    font-size: 11px;
}
.cc-cart-item .ci-attr {
    font-size: 12px;
    color: var(--text-2, #696E73);
    margin-top: 4px;
    letter-spacing: 0.2px;
}

/* Footer row: qty + price */
.cc-cart-item .ci-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

/* Quantity control */
.cc-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line, #e9e9e9);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white, #fff);
    height: 40px;
}
.cc-qty button {
    width: 38px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text, #101010);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.cc-qty button:hover {
    background: var(--bg, #F7F7F7);
    color: var(--primary, #95C11F);
}
.cc-qty button:active {
    background: var(--bg-2, #F6F4F3);
}
.cc-qty .cc-qty-val {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--text, #101010);
    pointer-events: none;
    padding: 0;
}

/* Price block */
.cc-cart-item .ci-price-block {
    text-align: right;
}
.cc-cart-item .ci-line-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #101010);
}
.cc-cart-item .ci-unit-price {
    font-size: 12px;
    color: var(--text-2, #696E73);
    margin-top: 2px;
}
.cc-cart-item .ci-original-price {
    text-decoration: line-through;
    color: var(--text-3, #b1b2b7);
    font-size: 12px;
    margin-left: 4px;
}

/* ============================================================
   CART PAGE — MOBILE ITEM CARDS
   ============================================================ */
@media (max-width: 575px) {
    .cc-cart-item {
        grid-template-columns: 90px 1fr;
        gap: 14px;
        padding: 18px 0;
    }
    .cc-cart-item .ci-image {
        width: 90px;
        height: 115px;
        border-radius: 10px;
    }
    .cc-cart-item .ci-name { font-size: 14px; }
    .cc-cart-item .ci-line-total { font-size: 15px; }
    .cc-cart-item .ci-footer { margin-top: 12px; }
    .cc-qty { height: 36px; }
    .cc-qty button { width: 34px; font-size: 13px; }
    .cc-qty .cc-qty-val { width: 34px; font-size: 13px; }
}

/* ============================================================
   CART PAGE — SHIPPING BAR
   ============================================================ */
.cc-shipping-bar {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-2, #F6F4F3);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-2, #696E73);
    line-height: 1.5;
}
.cc-shipping-bar .icon-truck {
    color: var(--primary, #95C11F);
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}
.cc-shipping-bar .bar-track {
    height: 5px;
    background: var(--line, #e9e9e9);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}
.cc-shipping-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary, #95C11F), #b5d84e);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.cc-shipping-bar.complete {
    background: rgba(149, 193, 31, 0.08);
    color: var(--text, #101010);
}

/* ============================================================
   CART PAGE — ACTIONS BAR
   ============================================================ */
.cc-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line, #e9e9e9);
    flex-wrap: wrap;
    gap: 12px;
}
.cc-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #101010);
    text-decoration: none;
    transition: color 0.25s;
}
.cc-continue-link:hover {
    color: var(--primary, #95C11F);
}
.cc-continue-link .icon { font-size: 12px; }
.cc-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-3, #b1b2b7);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.25s;
}
.cc-clear-btn:hover {
    color: var(--critical, #F03E3E);
    background: rgba(240,62,62,0.06);
}

/* ============================================================
   CART PAGE — NOTE
   ============================================================ */
.cc-cart-note {
    margin-top: 28px;
    padding: 20px;
    background: var(--bg, #F7F7F7);
    border-radius: 12px;
}
.cc-cart-note label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text, #101010);
}
.cc-cart-note label .icon {
    color: var(--primary, #95C11F);
}
.cc-cart-note textarea {
    width: 100%;
    min-height: 72px;
    border: 1.5px solid var(--line, #e9e9e9);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.25s, box-shadow 0.25s;
    background: var(--white, #fff);
    line-height: 1.5;
}
.cc-cart-note textarea:focus {
    border-color: var(--primary, #95C11F);
    box-shadow: 0 0 0 3px rgba(149,193,31,0.1);
    outline: none;
}

/* ============================================================
   CART PAGE — ORDER SUMMARY SIDEBAR
   ============================================================ */
.cc-summary {
    background: var(--bg-2, #F6F4F3);
    border-radius: 16px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
}
.cc-summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text, #101010);
    letter-spacing: -0.3px;
}
.cc-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}
.cc-summary-row .s-label {
    color: var(--text-2, #696E73);
    font-size: 14px;
}
.cc-summary-row .s-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--text, #101010);
}
.cc-summary-divider {
    height: 1px;
    background: var(--line, #e9e9e9);
    margin: 8px 0;
}
.cc-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 4px;
}
.cc-summary-total .s-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text, #101010);
}
.cc-summary-total .s-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text, #101010);
    letter-spacing: -0.5px;
}

/* Coupon */
.cc-coupon {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line, #e9e9e9);
}
.cc-coupon-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2, #696E73);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cc-coupon-row {
    display: flex;
    gap: 8px;
}
.cc-coupon-row input {
    flex: 1;
    border: 1.5px solid var(--line, #e9e9e9);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    background: var(--white, #fff);
    transition: border-color 0.25s;
}
.cc-coupon-row input:focus {
    border-color: var(--primary, #95C11F);
    outline: none;
}
.cc-coupon-row .cc-coupon-btn {
    padding: 10px 18px;
    border: 1.5px solid var(--text, #101010);
    border-radius: 10px;
    background: transparent;
    color: var(--text, #101010);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s;
}
.cc-coupon-row .cc-coupon-btn:hover {
    background: var(--text, #101010);
    color: var(--white, #fff);
}

/* CTA buttons */
.cc-summary-cta {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cc-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border-radius: 12px;
    background: var(--text, #101010);
    color: var(--white, #fff);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}
.cc-btn-primary:hover {
    background: var(--primary, #95C11F);
    color: var(--white, #fff);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(149,193,31,0.3);
}
.cc-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 12px;
    background: transparent;
    border: 1.5px solid var(--line, #e9e9e9);
    color: var(--text, #101010);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s;
}
.cc-btn-secondary:hover {
    border-color: var(--text, #101010);
    background: var(--bg, #F7F7F7);
}

/* Trust badges */
.cc-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    padding: 14px 0;
}
.cc-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-2, #696E73);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
}
.cc-trust-item .icon {
    color: var(--primary, #95C11F);
    font-size: 14px;
}

/* ============================================================
   CART PAGE — EMPTY STATE
   ============================================================ */
.cc-cart-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 480px;
    margin: 0 auto;
}
.cc-cart-empty .empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-2, #F6F4F3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 28px;
    color: var(--text-3, #b1b2b7);
}
.cc-cart-empty h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text, #101010);
    letter-spacing: -0.3px;
}
.cc-cart-empty p {
    color: var(--text-2, #696E73);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   CHECKOUT PAGE — STATIC LAYOUT
   ============================================================ */
.cc-checkout-section {
    padding: 8px 0 80px;
    background: var(--white, #fff);
}
.cc-checkout-box {
    border: 1.5px solid var(--line, #e9e9e9);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}
.cc-checkout-box:hover {
    border-color: #ddd;
}
.cc-checkout-box h5 {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}
.cc-checkout-box h5 .step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text, #101010);
    color: var(--white, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.cc-checkout-form .form-group {
    margin-bottom: 18px;
}
.cc-checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--text, #101010);
    letter-spacing: 0.2px;
}
.cc-checkout-form label .required {
    color: var(--critical, #F03E3E);
}
.cc-checkout-form input,
.cc-checkout-form select,
.cc-checkout-form textarea {
    width: 100%;
    border: 1.5px solid var(--line, #e9e9e9);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
    background: var(--white, #fff);
}
.cc-checkout-form input:focus,
.cc-checkout-form select:focus,
.cc-checkout-form textarea:focus {
    border-color: var(--primary, #95C11F);
    box-shadow: 0 0 0 3px rgba(149,193,31,0.1);
    outline: none;
}
.cc-checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 575px) {
    .cc-checkout-form .form-row {
        grid-template-columns: 1fr;
    }
    .cc-checkout-box {
        padding: 20px 16px;
    }
}

/* ============================================================
   PAYMENT — SIMPLE LIST
   ============================================================ */
.cc-pay-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--line, #e9e9e9);
    border-radius: 12px;
    overflow: hidden;
}
.cc-pay-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--line, #e9e9e9);
    margin: 0;
}
.cc-pay-item:last-child {
    border-bottom: none;
}
.cc-pay-item:hover {
    background: var(--bg, #F7F7F7);
}
.cc-pay-item.active {
    background: rgba(149, 193, 31, 0.05);
}
.cc-pay-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom radio dot */
.cc-pay-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--line, #e9e9e9);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}
.cc-pay-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary, #95C11F);
    transition: transform 0.2s ease;
}
.cc-pay-item.active .cc-pay-dot {
    border-color: var(--primary, #95C11F);
}
.cc-pay-item.active .cc-pay-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Logo */
.cc-pay-logo {
    height: 26px;
    width: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

/* Multiple logos in one row */
.cc-pay-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Name */
.cc-pay-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #101010);
}

/* Checkout order review items */
.cc-checkout-review-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 8px;
    background: var(--white, #fff);
    border-radius: 12px;
    transition: box-shadow 0.2s;
}
.cc-checkout-review-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cc-checkout-review-item .item-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-2, #F6F4F3);
}
.cc-checkout-review-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cc-checkout-review-item .item-img .qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 6px;
    background: var(--primary, #95C11F);
    color: var(--white, #fff);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-2, #F6F4F3);
}
.cc-checkout-review-item .item-info {
    flex: 1;
    min-width: 0;
}
.cc-checkout-review-item .item-info .item-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text, #101010);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.cc-checkout-review-item .item-info .item-attr {
    font-size: 11px;
    color: var(--text-2, #696E73);
    margin-top: 3px;
}
.cc-checkout-review-item .item-info .item-qty {
    font-size: 11px;
    color: var(--text-3, #b1b2b7);
    margin-top: 2px;
}
.cc-checkout-review-item .item-price {
    font-weight: 700;
    white-space: nowrap;
    font-size: 14px;
    color: var(--text, #101010);
    text-align: right;
}
.cc-checkout-review-item .item-price .item-unit {
    display: block;
    font-size: 11px;
    color: var(--text-3, #b1b2b7);
    font-weight: 500;
    margin-top: 2px;
}

/* Trust signals — shared */
.cc-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 14px;
    background: var(--bg, #F7F7F7);
    border-radius: 10px;
    font-size: 11px;
    color: var(--text-2, #696E73);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}
.cc-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.cc-trust-bar .trust-item i {
    color: var(--primary, #95C11F);
    font-size: 14px;
}

/* ============================================================
   RESPONSIVE — SIDEBAR BELOW ON MOBILE
   ============================================================ */
@media (max-width: 991px) {
    .cc-summary {
        position: static;
        margin-top: 32px;
    }
    .cc-cart-title { font-size: 24px; }
}

/* ============================================================
   LEGAL PAGES (CGV, Privacy)
   ============================================================ */
.legal-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #101010);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line, #e9e9e9);
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2, #696E73);
    margin-bottom: 12px;
}
.legal-content ul,
.legal-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}
.legal-content li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-2, #696E73);
    margin-bottom: 6px;
}
.legal-content a {
    color: var(--primary, #95C11F);
    text-decoration: underline;
    font-weight: 600;
}
.legal-content strong {
    color: var(--text, #101010);
}
