@import url('_variables.css');
@import url('_utilities.css');
@import url('_components.css');

/* Global Resets/Improvements */
body {
    background-color: var(--bg-body);
    color: var(--text-muted);
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
}

a {
    color: var(--primary);
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Footer Modernization */
footer {
    background: var(--secondary);
    color: #ccc;
    padding-top: 60px;
    border-top: none;
}
footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
footer ul.list-unstyled li {
    margin-bottom: 10px;
}
footer ul.list-unstyled li a {
    color: #999;
}
footer ul.list-unstyled li a:hover {
    color: #fff;
    padding-left: 5px;
}
footer hr {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    margin: 40px 0 20px;
}

/* Header Modernization */
#top {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

header {
    padding: 20px 0;
    background: #fff;
}

#logo img {
    max-height: 50px !important; /* Enforce logo size */
}

/* Search Bar */
#search.bbb-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}
#search.bbb-search .input-group-btn {
    position: static;
    transform: none;
    display: flex;
    width: auto;
}
#search.bbb-search .input-lg {
    flex: 1 1 auto;
    width: 100%;
    border-radius: 4px 0 0 4px;
    border-color: #e5e5e5;
    height: 40px;
    padding-left: 20px;
    box-shadow: none;
    border-right: none;
}
#search.bbb-search .input-lg:focus {
    border-color: var(--primary);
    box-shadow: none;
}
#search.bbb-search .btn-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    background: #3c322e;
    border: 1px solid #3c322e;
    height: 40px;
    padding: 0 20px;
    font-size: 16px;
    min-width: 50px;
    color: #fff;
}
#search.bbb-search .btn-lg:hover {
    background: #2a221f;
    border-color: #2a221f;
}

/* Utilities (Icons and Text) */
.bbb-header-utils {
    display: flex;
    align-items: center;
    gap: 18px;
}
.bbb-util-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    text-decoration: none;
    letter-spacing: 0;
    gap: 4px;
}
.bbb-util-item a:hover {
    color: #0b2a5b;
}
.bbb-util-item a .fa {
    font-size: 22px;
    font-weight: normal;
}
.bbb-util-label {
    display: block !important;
}
.bbb-util-rewards {
    color: #0b2a5b;
    font-weight: 900;
    font-size: 11px;
    line-height: 1.1;
    text-transform: lowercase;
    text-align: left;
}

/* Cart Button Override to match utilities */
.bbb-header-cart #cart {
    margin-bottom: 0;
}
.bbb-header-cart #cart > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    box-shadow: none;
    margin-top: 0;
    text-transform: none;
    letter-spacing: 0;
}
.bbb-header-cart #cart > button:hover {
    background: transparent;
    border-color: transparent;
    color: #0b2a5b;
}
.bbb-header-cart #cart > button .fa {
    font-size: 22px;
    margin: 0;
    font-weight: normal;
}
.bbb-header-cart #cart-total {
    display: block;
}

/* Custom DrumByte Logo */
.bbb-logo-img {
    max-height: 44px;
    width: auto;
}
.bbb-logo-text {
    margin: 0;
}
.bbb-logo-text a {
    display: flex;
    flex-direction: row; /* Change to row layout */
    align-items: baseline;
    line-height: 1;
    text-decoration: none;
    font-family: Arial, sans-serif; /* Fallback for a clean sans-serif */
}
.bbb-logo-text a:hover {
    text-decoration: none;
}
.bbb-logo-text a span:first-child {
    font-weight: bold;
    font-size: 42px;
    color: #72C5E7; /* Light blue color from image */
    letter-spacing: -0.02em;
}
.bbb-logo-text a span:last-child {
    font-weight: bold;
    font-size: 42px;
    color: #000000; /* Black color from image */
    letter-spacing: -0.02em;
}
#search .btn-lg i {
    font-size: 18px;
    position: relative;
    top: 1px;
}

/* Menu */
#menu {
    background: var(--primary);
    border: none;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}
#menu .nav > li > a {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 14px;
}
#menu .nav > li > a:hover {
    background: rgba(0,0,0,0.1);
}

/* Sticky Buy Bar */
.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}
.sticky-buy-bar .price-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Checkout Stepper */
.checkout-stepper {
    margin-bottom: 30px;
}
.checkout-stepper .step {
    position: relative;
    opacity: 0.5;
    transition: var(--transition-base);
}
.checkout-stepper .step.active {
    opacity: 1;
}
.checkout-stepper .step-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}
.checkout-stepper .step.active .step-icon {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.checkout-stepper .step-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}
/* Panel overrides */
.panel-default {
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}
.panel-default > .panel-heading {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}
.panel-title {
    font-weight: 700;
    font-size: 1rem;
}


/* Cart Button */
#cart .btn-lg {
    height: 46px;
    border-radius: 30px;
    font-size: 16px;
    line-height: 24px; /* Adjust for vertical centering */
    padding: 10px 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* Assuming black based on screenshot */
    color: #fff;
}
#cart .btn-lg i {
    margin-right: 8px;
    font-size: 18px;
}
#cart .dropdown-menu {
    border-radius: var(--border-radius);
    margin-top: 10px;
    border: none;
    box-shadow: var(--shadow-lg);
}


/* Cart Alignment and Sizing */
#cart {
    width: auto !important;
    float: right !important;
    margin-left: auto;
}
#cart .btn-lg {
    width: auto !important;
    padding: 0 15px; /* Reduced horizontal padding, removed vertical padding to rely on flex centering */
    height: 38px; /* Shorter height than search bar (46px) */
    font-size: 14px; /* Slightly smaller text */
    margin-top: 4px; /* Center vertically relative to search bar */
}
#cart .btn-lg i {
    font-size: 16px; /* Smaller icon */
    margin-right: 6px;
}


/* Simplified Product Card Buttons */
.product-thumb .button-group {
    justify-content: flex-end; /* Align right */
}
.product-thumb .button-group button.btn-cart-icon {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-muted);
    flex-grow: 0; /* Override previous flex-grow */
}
.product-thumb .button-group button.btn-cart-icon:hover {
    background: var(--primary);
    color: #fff;
}
.product-thumb .button-group button.btn-cart-icon::after {
    content: none !important; /* Remove text pseudo-element */
}


/* Wishlist Button Styling */
.product-thumb .button-group button.btn-wishlist-icon {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-muted);
    margin-right: 5px;
    border: none;
    transition: var(--transition-base);
    position: relative; /* For tooltip if needed */
}
.product-thumb .button-group button.btn-wishlist-icon:hover {
    background: #ff4757; /* Heart red color */
    color: #fff;
}
/* Ensure NO text content via CSS pseudo-elements for wishlist */
.product-thumb .button-group button.btn-wishlist-icon::after {
    content: none !important;
}
.product-thumb .button-group {
    justify-content: flex-end; /* Align right */
    padding-right: 15px; /* Add some padding to not stick to the edge */
}

