/**
 * Pfotenpraxis Custom Cart Styles
 * Matches the design mockup with accordion totals panel
 */

/* ========== BASE RESET FOR CART PAGE ========== */


.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    margin-bottom: 15px;
    padding: 12px 20px;
}

/* ========== LAYOUT ========== */
.pf-cart-container {
    display: flex;
    gap: 30px;
    max-width: 1520px;
    margin: 0 auto;
    align-items: flex-start;
    font-family: 'Nunito', sans-serif;
}

.pf-cart-items-section {
    flex: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.pf-cart-summary-section {
    flex: 0 0 380px;
    min-width: 320px;
    position: sticky;
    top: 20px;
}

.pf-cart-summary-section .cart-collaterals {
    width: 100%;
}

/* ========== ITEM CARD ========== */
.pf-item-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	margin-bottom:20px;
}

.pf-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 15px 0;
}

.pf-card-header span{
	align-items:center;
	text-align:center;
}
.pf-card-header span:first-child {
	text-align:start;
}
.woocommerce a.remove {
    color: none !important;
}
.woocommerce a.remove:hover {
    color: #fff !important;
    background: transparent !important;
}

.woocommerce-error::before, .woocommerce-info::before, .woocommerce-message::before  {
    position:static !important;
}

/* ========== CARD HEADER ========== */
.pf-card-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    column-gap: 16px;
    color: #171817;
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 26px;
    align-items: center;
}

/* ========== ITEM DETAILS GRID ========== */
.pf-item-details {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    column-gap: 16px;
    align-items: center;
	padding-top:40px;
	padding-bottom:20px;
	justify-items: center;
}

/* ========== PRODUCT INFO ========== */
.pf-product-info {
    display: flex;
    gap: 15px;
    align-items: center;
    min-width: 0;
}

.pf-product-image {
    flex-shrink: 0;
}

.pf-product-image a {
    display: block;
}

.pf-product-image img {
    width: 70px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    display: block;
}

.pf-product-text {
    display: flex;
	max-width:229px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pf-brand {
    font-size: 14px;
    color: #797979;
    line-height: normal;
}

.pf-brand p{
	margin:0 !important;
}

.pf-product-title {
    color: #000;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    text-decoration: none;
    display: block;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pf-product-title:hover {
    color: #333;
}

.pf-product-desc {
    font-size: 14px;
    color: #797979;
	line-height: normal;
	margin: 0;
}

.pf-product-weight {
    font-size: 14px;
    color: #797979;
	line-height: normal;
    margin-top: 2px;
}

/* Variation data styling */
.pf-product-text dl.variation {
    margin: 4px 0 0;
    font-size: 12px;
    color: #666;
}

.pf-product-text dl.variation dt {
    float: left;
    margin-right: 4px;
}

.pf-product-text dl.variation dd {
    margin: 0 0 4px;
}

/* ========== PRICE ========== */
.pf-price-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pf-current-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 700 !important;
    color: #000 !important;
    font-size: 18px !important;
    white-space: nowrap;
}

del{
	color:#969696;
	font-size:13px;
}

del .woocommerce-Price-amount{
	color: #969696;
font-family: Nunito;
font-size: 13px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

/* Stacked price: discount price on top, original del below */
.pf-current-price del,
.pf-current-price .awdr_cart_strikeout_line del {
    display: block;
    font-weight: 400;
    color: #aaa !important;
    font-size: 13px;
    text-decoration: line-through !important;
    order: 2;
}

.pf-current-price del *,
.pf-current-price .awdr_cart_strikeout_line del * {
    color: #aaa !important;
    font-weight: 400;
    font-size: inherit;
}

.pf-current-price ins,
.pf-current-price .awdr_cart_strikeout_line ins {
    display: block;
    text-decoration: none !important;
    font-weight: 700;
    color: #000 !important;
    font-size: 18px;
    order: 1;
}

.pf-current-price ins *,
.pf-current-price .awdr_cart_strikeout_line ins * {
    color: #000 !important;
    font-weight: 700;
    font-size: inherit;
    text-decoration: none !important;
}

/* Flycart discount wrapper: stack new price on top, old below */
.pf-current-price .awdr_cart_strikeout_line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0; /* collapse &nbsp; */
}

.pf-current-price .awdr_cart_strikeout_line del .woocommerce-Price-amount {
    color: #aaa !important;
    font-weight: 400;
    text-decoration: line-through !important;
}

.pf-current-price .awdr_cart_strikeout_line ins .woocommerce-Price-amount {
    color: #000 !important;
    font-weight: 700;
}

.pf-item-subtotal .woocommerce-Price-amount {
    font-weight: 700;
    color: #000;
}


/* ========== QUANTITY CONTROL ========== */
.pf-qty-control {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 6px;
	max-width:116px;
    overflow: hidden;
}

.pf-qty-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    line-height: 1;
    transition: background 0.15s ease;
    user-select: none;
}

.pf-qty-btn:hover {
    background: #e8e8e8;
}

.pf-qty-input {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    color: #000;
    -moz-appearance: textfield;
    appearance: textfield;
}

.pf-qty-input::-webkit-inner-spin-button,
.pf-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========== DELETE BUTTON ========== */
.pf-delete-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.pf-delete-btn:hover {
    background: #f5f5f5;
}

.pf-delete-btn svg {
    width: 22px;
    height: 22px;
}

/* ========== SUMMARY CARD ========== */
.pf-summary-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* ========== ACCORDION ========== */
.pf-summary-accordion {
    margin: 0;
}

.pf-accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    cursor: pointer;
    user-select: none;
    padding-bottom: 18px;
}

.pf-accordion-subtitle {
    display: flex;
	gap:10px;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    color: #171817;
    padding-bottom:15px;
	padding-top:24px;
    cursor: pointer;
    user-select: none;
}

.pf-chevron {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.pf-accordion-title.collapsed .pf-chevron,
.pf-accordion-subtitle.collapsed .pf-chevron {
    transform: rotate(180deg);
}

.pf-accordion-content {
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.4s ease;
}

.pf-accordion-content.pf-hidden {
    max-height: 0;
    overflow: hidden;
}

/* ========== COUPON ========== */
.pf-coupon-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
	margin-bottom:24px;
}

.pf-coupon-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pf-coupon-form input {
    padding: 12px 23px;
    border: 1px solid #898989;
    border-radius: 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
	color:#898989;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.pf-coupon-input:focus {
    border-color: #c99b35;
}

.pf-applied-coupon {
    display: none;
}

.pf-coupon-badge {
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.pf-coupon-remove {
    color: #999;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.pf-coupon-remove:hover {
    color: #fff;
    background: #e44;
}

/* ========== TOTALS ========== */
.pf-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 24px;
	margin:25px 0;
}

.pf-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 10px;
}

.pf-light-text {
    color: #898989;
	font-size:18px;
	font-weight: 500;
	line-height: normal;
    white-space: nowrap;
}

.pf-bold-value {
    color: #171817;
    font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
	text-align:right;
}

/* Discount row styling */
.pf-discount-row .pf-bold-value,
.pf-discount-value {
    color: #27ae60;
}

.pf-discount-row .pf-bold-value .woocommerce-Price-amount {
    color: #27ae60;
}

/* Remove coupon link inside totals */
.pf-bold-value .woocommerce-remove-coupon {
    font-size: 11px;
    color: #999;
    text-decoration: none;
    margin-left: 4px;
}

.pf-bold-value .woocommerce-remove-coupon:hover {
    color: #e44;
}

/* Final total row */
.pf-final-total {
    font-size: 18px;
    margin-bottom: 30px;
    padding-top: 24px;
}

.pf-final-total .pf-bold-value {
    font-size: 18px;
}

.pf-final-total .pf-bold-value strong {
    font-weight: 700;
}

/* "includes tax" small text */
.pf-final-total .pf-bold-value small.includes_tax {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

/* Override WooCommerce amount styling in totals */
.pf-bold-value .woocommerce-Price-amount {
    font-weight: 700;
    color: inherit;
}

/* ========== BUTTONS ========== */
.pf-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-btn {
    display: block;
    padding: 12px 16px;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    border: 1px solid transparent;
}

.pf-btn-primary {
    background-color: #d1aa45;
    color: #fff;
    border-color: #d1aa45;
}

.pf-btn-primary:hover {
    background-color: #c99b35;
    border-color: #c99b35;
    color: #fff;
}

.pf-btn-outline {
    background-color: transparent;
    color: #CCA644;
    border:2px solid #CCA644;
}

.pf-btn-outline:hover {
    background-color: #c99b35;
    color: #fff;
}

/* ========== HIDE DEFAULT WOOCOMMERCE ELEMENTS ========== */
.woocommerce-cart .cart_totals > h2 {
    display: none;
}

.woocommerce-cart .shop_table.shop_table_responsive {
    display: none;
}

/* Hide default WooCommerce cart table if it leaks */
.woocommerce-cart table.cart {
    display: none;
}

.pf-qty-control input{
	border: none;
	padding: .5rem 0;
}

/* ========== RESPONSIVE: TABLET (1035px) ========== */
@media (max-width: 1099px) {

    .pf-cart-container {
        flex-direction: column;
        gap: 20px;
    }

    .pf-cart-summary-section {
        width: 100%;
        flex: unset;
        min-width: unset;
        position: static;
    }

    .pf-card-header,
    .pf-item-details {
        grid-template-columns: 2.5fr 1fr 1fr 1fr 40px;
    }
	
	.pf-action-buttons {
    flex-direction:row;
}
	.pf-coupon-form {
    flex-direction:row;
}
	.pf-action-buttons a{
		width:100%;
	}
}

/* ========== RESPONSIVE: PHONE LANDSCAPE & SMALL TABLETS (768px) ========== */
@media (max-width: 768px) {

    .pf-card-header {
        display: none;
    }

    .pf-divider {
        margin: 10px 0;
    }

    .pf-item-card {
        padding: 20px;
    }
	
	.pf-delete-col{
		align-self:baseline;
	}
	.pf-current-price{
		order:2;
	}

    .pf-item-details {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto auto;
        column-gap: 12px;
        row-gap: 0;
		padding:0;
    }
	
	.pf-product-text {
    max-width: 100%;
}

    .pf-product-info {
        grid-column: 1 / 2;
        grid-row: 1;
        padding-right: 10px;
		width:100%;
    }

    .pf-delete-col {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .pf-price-col {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
		gap:15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px solid #f0f0f0;
		width:100%;
    }

    .pf-price-col::before {
        content: "Price";
        font-size: 13px;
        color: #888;
        font-weight: 600;
    }

    .pf-quantity-col {
        grid-column: 1 / -1;
        grid-row: 3;
        display: flex;
		gap:15px;
        justify-content: space-between;
        align-items: center;
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px solid #f0f0f0;
		width:100%;
    }

    .pf-quantity-col::before {
        content: "Crowd";
        font-size: 13px;
        color: #888;
        font-weight: 600;
    }

    .pf-subtotal-col {
        grid-column: 1 / -1;
        grid-row: 4;
        display: flex;
		gap:15px;
        justify-content: space-between;
        align-items: center;
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px solid #f0f0f0;
		width:100%;
    }

    .pf-subtotal-col::before {
        content: "Subtotal";
        font-size: 13px;
        color: #888;
        font-weight: 600;
    }
	
	.pf-item-card .pf-divider {
		display: none;
	}
}
@media (max-width: 575px) {
	
	.pf-action-buttons {
    flex-direction:column;
}
	.pf-coupon-form {
    flex-direction:column;
}
	.pf-action-buttons a{
		width:unset;
	}

    .pf-item-card,
    .pf-summary-card {
        padding: 14px;
        border-radius: 10px;
    }

    .pf-product-info {
        gap: 10px;
    }

    .pf-product-image img {
        width: 55px;
        height: 70px;
    }

    .pf-product-title {
        font-size: 14px;
    }

    .pf-product-desc {
        font-size: 11px;
    }

    .pf-current-price {
        font-size: 14px;
    }

    .pf-current-price del,
    .pf-current-price .awdr_cart_strikeout_line del {
        font-size: 12px;
        display: block;
    }

    .pf-current-price ins,
    .pf-current-price .awdr_cart_strikeout_line ins {
        font-size: 14px;
    }



    .pf-qty-btn {
        padding: 6px 10px;
        font-size: 16px;
    }

    .pf-qty-input {
        font-size: 14px;
        width: 30px;
    }

    .pf-btn {
        padding: 10px;
        font-size: 13px;
    }

    .pf-accordion-title {
        font-size: 16px;
		margin-bottom: 0;
    }

    .pf-total-row {
        font-size: 13px;
    }

    .pf-bold-value {
        font-size: 13px;
    }

    .pf-final-total {
        font-size: 14px;
    }

    .pf-final-total .pf-bold-value {
        font-size: 16px;
    }
}

/* ========== RESPONSIVE: VERY SMALL PHONES (360px) ========== */
@media (max-width: 360px) {
    .woocommerce-cart .woocommerce {
        padding: 0 8px;
    }

    .pf-product-image img {
        width: 48px;
        height: 60px;
    }

    .pf-product-title {
        font-size: 13px;
    }
}
