/* ==========================================================================
   EWA VALLEY MAIN STYLESHEET
   File: assets/css/main-css.css
   ========================================================================== */

/* Global Reset & Typography */
body {
    background-color: #fafafa;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    overflow-x: hidden;
}

p {
    line-height: 1.5rem;
}

/* Header Styles */
.bg-header {
    background: linear-gradient(90deg, #d61b35, #5b2db8);
    z-index: 1030 !important;
}

header.sticky-top {
    z-index: 1030 !important;
}

.sticky-top:not(header) {
    z-index: 10 !important;
}

.header-logo {
    height: 58px;
}
@media (min-width: 768px) {
    .header-logo {
        height: 70px;
    }
}

.icon-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.icon-btn.cart-btn {
    position: relative;
}
.cart-btn .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #d73a37 !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: none;
}

/* Breadcrumb Bar */
.breadcrumb-wrapper {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 0;
}
.breadcrumb-item a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}
.breadcrumb-item.active {
    color: #d73a37;
    font-weight: 600;
    font-size: 15px;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: #222;
}

/* Badges & Actions for Product Cards */
.product-card {
    position: relative;
    transition: all 0.3s;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    background: #fff;
}
.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #d73a37;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-image {
    overflow: hidden;
    position: relative;
}
.product-image img {
    transition: transform 0.3s;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d73a37;
    color: #fff;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
}

.product-actions {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.action-btn {
    background: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    color: #333;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 18px;
}
.action-btn.add-to-cart-btn {
    color: #d73a37;
}
.action-btn:hover {
    background: #d73a37;
    color: #fff;
}

.current-price {
    color: #d73a37;
    font-weight: bold;
}
.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

/* Filter Pills & Pagination */
.filter-pill {
    background: #f1f1f1;
    color: #444;
    border: 1.5px solid transparent;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-pill.active, .filter-pill:hover {
    background: #d73a37;
    color: #fff;
    border-color: #d73a37;
}

.page-link-custom {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.page-link-custom.active, .page-link-custom:hover {
    background: #d73a37;
    color: #fff;
    border-color: #d73a37;
}

/* Footer Styles */
.main-footer {
    background: #f5f5f5;
    font-size: 14px;
    color: #555;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #f8b4b4;
    color: #d73a37;
    border-radius: 4px;
    transition: 0.3s;
    text-decoration: none;
}
.social-icons a:hover {
    background: #d73a37;
    color: #fff;
}
.footer-bottom {
    background: linear-gradient(90deg, #4b367c, #3b8d99);
    color: #fff;
}

.footer-col {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1.5rem;
}
.footer-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
@media (min-width: 768px) {
    .footer-col {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.footer-link:hover, .footer-link:active {
    color: #d73a37;
    transform: translateX(5px);
}

/* Footer Contact Badges */
.footer-contact-icon {
    width: 42px;
    height: 42px;
    background: #fdf2f2;
    border: 1px solid #f8b4b4;
    color: #d73a37;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.footer-contact-icon:hover {
    background: #d73a37;
    color: #fff;
    transform: translateY(-2px);
}
.extra-small {
    font-size: 11px;
}
.footer-contact-link {
    transition: color 0.2s ease;
}
.footer-contact-link:hover {
    color: #d73a37 !important;
}

/* Drawers & Overlay */
.overlay { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); display: none; z-index: 1040; }
.search-panel { position: fixed; left: 0; top: -220px; width: 100%; background: #fff; padding: 30px; transition: 0.35s; z-index: 1050; box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.search-panel.active { top: 0; }

.side-menu { position: fixed; right: -350px; top: 0; width: 340px; max-width: 100%; height: 100%; background: #fff; transition: 0.35s; z-index: 1050; padding: 40px; }
.side-menu.active { right: 0; }
.side-menu ul { list-style: none; padding: 0; margin-top: 60px; }
.side-menu li { margin-bottom: 20px; }
.side-menu a { 
    text-decoration: none; 
    font-size: 20px; 
    color: #222; 
    transition: all 0.2s;
    display: inline-block;
}
.side-menu a:hover, .side-menu a:active { 
    color: #d73a37; 
    transform: translateX(8px);
}

.shopping-cart { position: fixed; top: 0; right: -420px; width: 400px; max-width: 100%; height: 100vh; background: #fff; z-index: 1050; transition: 0.35s; display: flex; flex-direction: column; box-shadow: -5px 0 20px rgba(0,0,0,0.15); }
.shopping-cart.active { right: 0; }
.cart-header { height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 1px solid #eee; }
.cart-body { flex: 1; overflow-y: hidden; }
.cart-item { display: flex; align-items: center; gap: 15px; padding: 18px; border-bottom: 1px solid #eee; }
.cart-image { width: 70px; }
.cart-image img { width: 100%; }
.cart-info { flex: 1;    max-width: 235px; }
.cart-info h4 { font-size: 15px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remove-item { border: none; background: none; font-size: 20px; color: #888; cursor: pointer; }
.remove-item:hover { color: #d73a37; }
.cart-footer { padding: 18px; border-top: 1px solid #eee; }
.btn-cart { width: 100%; height: 55px; background: #d73a37; color: #fff; border: none; font-weight: 600; border-radius: 4px; cursor: pointer; }
.btn-cart:hover { background: #b92d2b; }

/* Auth Modal Styles */
.auth-view { display: none; animation: fadeIn 0.3s ease-in-out; }
.auth-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.auth-title { font-weight: 700; color: #d73a37; margin-bottom: 25px; text-transform: uppercase; font-size: 20px; letter-spacing: 1px; }
.btn-google { background: #fff; border: 1px solid #ddd; border-radius: 8px; font-weight: 600; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; transition: 0.3s; color: #333; }
.btn-google:hover { background: #f9f9f9; box-shadow: 0 3px 6px rgba(0,0,0,0.05); }
.btn-google img { width: 20px; height: 20px; }
.auth-or { text-align: center; color: #888; margin: 20px 0; font-size: 14px; }
.auth-input-group { text-align: left; margin-bottom: 20px; position: relative; }
.auth-input-group label { display: block; font-weight: 600; color: #555; margin-bottom: 6px; font-size: 14px; }
.auth-input { width: 100%; border: 1.5px solid #ccc; padding: 12px 16px; border-radius: 8px; outline: none; background: #fff; transition: border-color 0.3s; font-size: 15px; }
.auth-input:focus { border-color: #d73a37; }
.password-toggle { position: absolute; right: 14px; top: 38px; cursor: pointer; color: #666; font-size: 16px; }

.btn-auth { background-color: #d73a37; color: #fff; border: none; padding: 12px; border-radius: 8px; width: 100%; font-weight: 600; letter-spacing: 0.5px; transition: 0.3s; }
.btn-auth:hover { background-color: #b32a28; color: #fff; }

.btn-auth-outline { background-color: #fff; border: 1px solid #ddd; color: #333; padding: 12px; border-radius: 8px; font-weight: 600; transition: 0.3s; flex: 1; }
.btn-auth-outline:hover { background-color: #f5f5f5; }
.auth-link { color: #d73a37; text-decoration: none; font-weight: 500; cursor: pointer; }
.auth-link:hover { text-decoration: underline; color: #d73a37; }
.auth-text-sm { font-size: 12px; color: #777; line-height: 1.5; margin-top: 20px; }

/* Unified Global Form Inputs & Uniform Height Styles */
.form-control:not(textarea):not(.qty-field):not(.senior-qty-val):not(.qty-num), 
.form-select,
.contact-input,
.auth-input,
input[type="text"]:not(.qty-field):not(.senior-qty-val):not(.qty-num), 
input[type="email"], 
input[type="tel"], 
input[type="date"],
input[type="password"], 
select {
    height: 48px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
textarea.form-control,
textarea {
    min-height: 120px !important;
    border: 1.5px solid #ccc !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    outline: none !important;
    box-shadow: none !important;
}
.form-control:focus, 
.form-select:focus,
.contact-input:focus,
.auth-input:focus,
input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus, 
input[type="date"]:focus,
input[type="password"]:focus, 
select:focus, 
textarea:focus {
    border-color: #d73a37 !important;
    box-shadow: 0 0 0 3px rgba(215, 58, 55, 0.12) !important;
}

/* Unified Rounded Buttons & Standard Height */
.btn,
.btn-auth,
.btn-cart,
.btn-send-message,
.btn-google,
.btn-auth-outline,
.btn-save-profile,
.btn-buy-now,
.btn-add-cart {
    height: 48px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Quantity Selector Reset & Uniform Style Sync */
.quantity-input-group,
.senior-qty-group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    background: #ffffff !important;
    border: 1.5px solid #ccc !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.quantity-input-group .qty-btn,
.senior-qty-group .senior-qty-btn,
.qty-btn,
.senior-qty-btn {
    background: transparent !important;
    border: none !important;
    width: 36px !important;
    height: 40px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    color: #222222 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transition: background-color 0.2s !important;
}
.quantity-input-group .qty-btn:hover,
.senior-qty-group .senior-qty-btn:hover,
.qty-btn:hover,
.senior-qty-btn:hover {
    background-color: #f0f0f0 !important;
}
.quantity-input-group .qty-field,
.senior-qty-group .senior-qty-val,
.qty-field,
.senior-qty-val,
.qty-num,
input.qty-field,
input.senior-qty-val,
input.qty-num {
    width: 44px !important;
    height: 40px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #222222 !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: center !important;
    padding: 0 !important;
}

/* Proportional Select Dropdown Styling & Crisp Custom Chevron Arrow */
.form-select,
.sort-select,
select {
    padding-left: 16px !important;
    padding-right: 36px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 12px !important;
    cursor: pointer !important;
}

/* Attached Input & Button Helpers */
.form-control.rounded-0,
.btn.rounded-0 {
    border-radius: 0 !important;
}

.attached-input-left {
    border-radius: 8px 0 0 8px !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}
.attached-btn-right {
    border-radius: 8px !important;
}
