/* cart1.css */

/* Inline styles moved from cart.php */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Restore the original gradient background */
body {
    font-family: 'Open Sans', 'Arial', sans-serif !important;
    background: linear-gradient(135deg, #f5f0e1, #e6d9b8) !important;
    min-height: 100vh;
    color: #8b4513 !important;
    margin: 0;
    padding: 0;
}

/* Ensure container matches body gradient background */
.container {
    background: linear-gradient(135deg, #f5f0e1, #e6d9b8);
    min-height: 100vh;
}

/* Navbar styles copied from homepage.css */
.navbar {
    background: linear-gradient(to right, #e6d9b8, #c9a87c);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    max-height: 60px;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-left a {
    display: inline-block;
    color: #8b4513;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    transition: background-color 0.3s;
    position: relative;
}

.navbar-left a span {
    text-shadow: -2px 0 #ffffff, 2px 0 #ffffff, 0 -2px #ffffff, 0 2px #ffffff;
}

/* Remove old underline */
.navbar .navbar-left a::after {
    content: none !important;
    display: none !important;
}

.navbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar-right a {
    color: #8b4513;
    text-decoration: none;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.navbar-right a.cart-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 10px 10px 15px;
    flex-shrink: 0;
    min-width: 120px;
    width: 120px;
}

.navbar-right a:hover {
    background: #ffebd7;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.navbar-right .profile-link:hover {
    background: none;
    box-shadow: none;
}

.navbar-right .wallet-balance {
    color: #8b4513;
    font-size: 16px;
    padding: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
}

.navbar-right .wallet-balance:hover {
    background: #ffebd7;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.cart-count {
    position: absolute;
    top: -2px;
    left: 20px;
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
    padding: 2px 6px;
    line-height: 1;
    text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff;
}

.navbar-right .profile-link {
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
}

.profile-container:hover {
    background: #ffebd7;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1002;
}

.profile-circle {
    width: 30px;
    height: 30px;
    background-color: #8b4513;
    border-radius: 50%;
    border: 2.5px solid #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-initials {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffebd7;
    text-transform: uppercase;
    line-height: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.username {
    color: #8b4513;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.profile-link:hover .username {
    color: #ffa07a;
}

.logout-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    z-index: 1001;
}

.profile-container:hover .logout-dropdown {
    display: block;
}

.logout-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #e74c3c;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
    border-radius: 5px;
    font-weight: normal;
}

.logout-dropdown a:hover {
    background: #ffebd7;
}

.cart-table-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.cart-table-container h2 {
    text-align: left;
    color: #8b4513;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
    position: relative;
}

.cart-table-container h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 150px;
    height: 2px;
    background: #ffa07a;
    z-index: 1;
}

.footer {
    background: linear-gradient(to right, #e6d9b8, #c9a87c);
    padding: 40px 20px;
    color: #8b4513;
    font-size: 16px;
    position: relative;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #8b4513;
}

.footer-section p {
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section a {
    color: #8b4513;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

/* Coupon tag styling for consistency with cart2.css */
.cart-grid .coupon-tag {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 5px;
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
}

@media (max-width: 768px) {
    .cart-grid .coupon-tag {
        font-size: 10px;
        padding: 2px 4px;
        margin-top: 3px;
    }
}

@media (max-width: 480px) {
    .cart-grid .coupon-tag {
        font-size: 8px;
        padding: 1px 3px;
        margin-top: 2px;
    }
}

/* Freebie tag (already styled as .coupon-tag, but ensure it's green) */
.cart-grid .freebie-tag {
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 1px;
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
}

/* Edit Freebie Button */
.edit-freebie-btn {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 5px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(40,167,69,0.08);
}
.edit-freebie-btn:hover, .edit-freebie-btn:focus {
    background: #218838;
    outline: none;
}

/* Fix freebie row at the top of the cart grid */
.cart-grid-row.freebie-row {
    /* order: -1; */
    box-shadow: 0 2px 8px rgba(40,167,69,0.08);
    border: 2px solid #28a745;
    background: #f6fff8;
}

.cart-grid-cell.product-name-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.logo-circle.cart-logo-circle {
    width: 48px;
    height: 48px;
    background-color: #deb887 !important;
    border-radius: 50%;
    border: 2.5px solid #fff !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
    transition: background 0.3s, border-color 0.3s;
}

.logo-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
    display: block;
}

.brand-text-underline-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 14px;
    height: 48px;
    position: relative;
}

.brand-hotshots, .brand-apparel {
    display: flex;
    align-items: center;
    color: #8b4513;
    text-shadow: -2px 0 #fff, 2px 0 #fff, 0 -2px #fff, 0 2px #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin: 0;
    vertical-align: baseline;
    border: none !important;
    background: none;
    box-shadow: none;
}

.brand-hotshots-wrapper, .brand-apparel-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.brand-line-above-hotshots {
    position: absolute;
    left: 0;
    top: -4px;
    width: 98%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    display: block;
    margin: 0 auto;
}

.brand-line-below-apparel {
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    display: block;
    margin: 0;
}

.brand-apparel-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

.brand-words-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}