/* === SHOP & CART STYLES === */

/* Top bar and title (Breadcrumbs) */
.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.shop-title-area {
    font-family: 'Geologica', sans-serif;
}

.shop-title-area .breadcrumb {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.shop-title-area .breadcrumb span {
    color: #fff;
}

.shop-title-area h1 {
    color: #3f6098;
    /* blueish text like image */
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
}

.shop-sort-area {
    background: #fff;
    padding: 8px 15px;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-sort-area select {
    border: none;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

/* Shop Layout wrapper */
.shop-page-wrapper {
    background: #000;
    /* Black background like image 1 */
    color: #fff;
    padding: 3rem 0;
}

.shop-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar styling */
.shop-sidebar {
    width: 250px;
    min-width: 250px;
}

.shop-sidebar .filter-block {
    background: #fff;
    color: #000;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.shop-sidebar .filter-block h3 {
    color: #3f6098;
    font-style: italic;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dotted #ccc;
}

/* Sidebar taxonomy/facet links as boxes */
.shop-sidebar .facet-item label,
.shop-sidebar .filter-list a {
    display: block;
    border: 1px solid #eee;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-sidebar .facet-item label:hover,
.shop-sidebar .filter-list a:hover {
    border-color: #3f6098;
    color: #3f6098;
}

/* Grid layout */
.shop-main-content {
    flex: 1;
}

.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Product Card adjustments to match Image 1 exactly */
.product-card {
    background: #fff;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.product-image {
    padding: 2rem;
    background: #fff;
    border-bottom: 1px solid #f9f9f9;
}

.product-info {
    background: #fff;
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brand {
    color: #888;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title a {
    color: #3f6098 !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    line-height: 1.3;
}

.product-price-row {
    margin-top: auto;
    /* push to bottom */
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #3f6098;
    font-weight: 800;
    font-style: italic;
    font-size: 1.1rem;
}

/* === CART BLOCK / MODAL (Image 2) === */
.cart-block-wrapper,
#drupal-off-canvas,
.custom-cart-dropdown {
    background: #fff;
    color: #000;
    width: 400px;
    max-width: 100%;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Geologica', sans-serif;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 1rem;
}

.cart-header h2 {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 800;
    margin: 0;
    color: #000;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px dotted #ccc;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    color: #3f6098;
    font-weight: 700;
    font-style: italic;
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.cart-item-variation {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-style: italic;
}

.cart-item-price {
    font-weight: 800;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Quantity selector */
.quantity-widget {
    display: flex;
    align-items: center;
    border: 2px solid #000;
    width: max-content;
}

.quantity-widget button {
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-widget input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    font-weight: 700;
    height: 30px;
}

.cart-summary {
    background: #fdfdfd;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid #eee;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
}

.cart-summary-line.total {
    font-weight: 800;
    color: #000;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.cart-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-full-yellow {
    background: #FDE300;
    color: #000;
    border: 2px solid #000;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.btn-full-yellow:hover {
    background: #000;
    color: #FDE300;
}

.btn-full-white {
    background: #fff;
    color: #3f6098;
    border: 2px solid #000;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.btn-full-white:hover {
    background: #f5f5f5;
}

/* Pagination matching image */
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2rem;
    align-items: center;
}

.pagination .page-item {
    border: 1px solid #555;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 0.8rem;
}

.pagination .page-item.active {
    background: #FDE300;
    color: #000;
    border-color: #FDE300;
}

/* Form alterations for drupal commerce native cart & checkout */
.view-commerce-cart-form .views-field-edit-quantity input {
    border: 2px solid #000;
    padding: 10px;
    width: 60px;
    text-align: center;
    font-weight: bold;
}

.checkout-pane {
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #000;
}

.checkout-pane .form-item input[type="text"],
.checkout-pane .form-item input[type="email"],
.checkout-pane .form-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.checkout-pane legend {
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
    color: #3f6098;
    border-bottom: 2px solid #FDE300;
    padding-bottom: 5px;
    margin-bottom: 15px;
    width: 100%;
}