/* Page Header */
.page-header {
    background: #f5f5f5;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h2 {
    color: #333;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

/* Shopping Cart */
.shopping-cart {
    padding: 60px 0;
}

.cart-table {
    margin-bottom: 40px;
}

.cart-table table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.cart-table thead th {
    border-bottom: 2px solid #ebebeb;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    padding-bottom: 15px;
    text-transform: uppercase;
    text-align: left;
}

.cart-table tbody tr {
    border-bottom: 1px solid #ebebeb;
}

.cart-table tbody td {
    padding: 25px 0;
    vertical-align: middle;
}

.product-widget {
    display: flex;
    align-items: center;
}

.product-widget img {
    width: 80px;
    margin-right: 20px;
}

.product-widget h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.product-widget p {
    margin: 5px 0 0;
    color: #6f6f6f;
}

.quantity {
    display: flex;
    align-items: center;
}

.quantity button {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity button:hover {
    background: #7fad39;
    color: #fff;
}

.quantity input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ebebeb;
    margin: 0 5px;
}

.cart-total {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.cart-total h5 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebebeb;
}

.cart-total ul {
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
}

.cart-total ul li {
    font-size: 16px;
    color: #333;
    line-height: 36px;
    display: flex;
    justify-content: space-between;
}

.cart-total ul li:last-child {
    font-size: 18px;
    font-weight: 700;
    color: #7fad39;
}

.cart-buttons {
    margin-bottom: 30px;
}

.continue-btn, .checkout-btn {
    display: inline-block;
    font-size: 14px;
    padding: 12px 30px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    background: #7fad39;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

.continue-btn {
    background: #f5f5f5;
    color: #333;
}

.continue-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-table {
        overflow-x: auto;
    }
    
    .cart-table table {
        min-width: 600px;
    }
}

/* Product Grid Styles */
.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-action {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    transition: bottom 0.3s ease;
}

.product-item:hover .product-action {
    bottom: 0;
}

.product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    margin-bottom: 10px;
}

.product-title a {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #7fad39;
}

.product-price {
    margin-top: auto;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: #7fad39;
    display: block;
}

.price-before-discount {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.discount {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 5px;
}

.primary-btn {
    display: inline-block;
    font-size: 14px;
    padding: 10px 28px 10px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    background: #7fad39;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
}

.primary-btn:hover {
    background: #6e9c2d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-item {
        margin-bottom: 20px;
    }
    
    .product-action {
        position: static;
        padding: 10px;
        background: transparent;
    }
    
    .btn-block {
        padding: 8px 15px;
        font-size: 13px;
    }
}
