/* Uniform product image sizing across shop views */
.list-product .img-block,
.product .product-image {
    height: 270px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f9f9f9 !important;
    overflow: hidden !important;
}

.list-product .img-block a.thumbnail,
.product .product-image a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.list-product .img-block img,
.product .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Cart page styling */
.cart-main-area {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.cart-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.cart-table-content table {
    border: 1px solid #eaeaea;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.cart-table-content table thead > tr {
    background-color: #f7f7f7;
    border-bottom: 2px solid #eaeaea;
}

.cart-table-content table thead th {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    color: #444;
    border: none;
}

.cart-table-content table tbody td {
    padding: 20px 15px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #eaeaea;
}

.cart-table-content table tbody td.product-name a {
    color: #333;
    transition: color 0.2s;
}

.cart-table-content table tbody td.product-name a:hover {
    color: #5bb300;
}

.cart-table-content table tbody td.product-remove a {
    color: #ff3f3f;
    font-size: 20px;
    transition: transform 0.2s;
}

.cart-table-content table tbody td.product-remove a:hover {
    transform: scale(1.1);
}

.cart-plus-minus input {
    height: 40px;
    width: 70px;
    border: 1px solid #ccc;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
}

.grand-totall,
.cart-tax {
    border: 1px solid #eaeaea;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.cart-bottom-title {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #5bb300;
    padding-bottom: 10px;
    margin-bottom: 25px;
    color: #333;
}

.shop-btn {
    background-color: #5bb300;
    border: none;
    color: white;
    padding: 14px 20px;
    font-weight: bold;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    text-align: center;
}

.shop-btn:hover {
    background-color: #4a9200;
    color: white;
    box-shadow: 0 4px 10px rgba(91, 179, 0, 0.3);
}

.form-control:focus {
    border-color: #5bb300;
    box-shadow: 0 0 0 0.2rem rgba(91, 179, 0, 0.15);
}

.modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #eaeaea;
}

.modal-footer {
    border-top: 1px solid #eaeaea;
}

/* Contact page cards */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.contact-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f2f6;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e2c08d, #d4af37);
    opacity: 0;
    transition: opacity 0.3s;
}
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(226, 192, 141, 0.3);
}
.contact-card:hover::before { opacity: 1; }
.contact-card .icon-box {
    width: 80px;
    height: 80px;
    background: #fdfaf4;
    color: #d4af37;
    font-size: 36px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.08);
}
.contact-card:hover .icon-box {
    background: #d4af37;
    color: #ffffff;
    transform: rotateY(360deg);
}
.contact-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2f3542;
    margin-bottom: 15px;
}
.contact-card p {
    font-size: 15px;
    color: #747d8c;
    line-height: 1.8;
    margin: 0;
}
.contact-card a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.contact-card a:hover { color: #b3922e; }
.social-links-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.social-links-contact a {
    width: 45px;
    height: 45px;
    background: #f1f2f6;
    color: #57606f;
    border-radius: 50%;
    line-height: 45px;
    font-size: 20px;
    transition: all 0.3s;
    display: inline-block;
}
.social-links-contact a:hover {
    background: #d4af37;
    color: #ffffff;
    transform: scale(1.15);
}
.contact-header-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}
.contact-header-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: #2f3542;
    margin-bottom: 15px;
}
.contact-header-text p {
    font-size: 16px;
    color: #747d8c;
    line-height: 1.8;
}

/* Product detail "Add to cart" button — template CSS only styled <a>, but the form uses <button> */
.pro-details-cart .btn-add-to-cart,
.pro-details-cart button {
    position: relative;
    padding: 0 45px;
    line-height: 48px;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
    background: linear-gradient(135deg, #d4af37, #b3922e);
    color: #fff !important;
    display: inline-block;
    transition: all 0.25s ease;
    cursor: pointer;
}
.pro-details-cart .btn-add-to-cart:hover,
.pro-details-cart button:hover,
.pro-details-cart .btn-add-to-cart:focus,
.pro-details-cart button:focus {
    background: linear-gradient(135deg, #b3922e, #8a6f22);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
    outline: none;
}
