/* ============================================================
   BRANDO TECH & HOME - Blocks CSS
   ============================================================ */

/* --- SECTION HEADER ROW (title + ver todos link) --- */
.brando-section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.brando-section-more {
    font-size: 13px;
    font-weight: 700;
    color: #7B1032;
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 4px;
}
.brando-section-more:hover { color: #5C0A24; text-decoration: underline; }

/* --- CATEGORY BLOCKS GRID --- */
.brando-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
}

.brando-category-block {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brando-category-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(123,16,50,0.18);
}

.brando-category-block img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.brando-category-block:hover img {
    transform: scale(1.04);
}

.brando-category-label {
    background-color: #7B1032;
    color: #fff;
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- CATEGORY ITEM (home grid) --- */
.brando-category-item { margin-bottom: 16px; }

.brando-category-card {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e8d5b7;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.brando-category-card:hover {
    box-shadow: 0 6px 20px rgba(123,16,50,0.15);
    transform: translateY(-3px);
    text-decoration: none;
}
.brando-category-card .cat-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f9f5f0;
    padding-top: 100%; /* 1:1 square — works in all browsers */
}
.brando-category-card .cat-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.brando-category-card:hover .cat-img-wrap img {
    transform: scale(1.06);
}
.brando-category-card .cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(123,16,50,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    font-size: 22px;
    color: #fff;
}
.brando-category-card:hover .cat-overlay { opacity: 1; }
.brando-category-card .cat-title {
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #3D0A18;
    background: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-top: 1px solid #f0e8de;
}

/* --- PRODUCT CARDS --- */
.brando-product-card {
    background: #fff;
    border: 1.5px solid #e8d5b7;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.brando-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(123,16,50,0.13);
}

/* Image wrap with quick-add button */
.brando-product-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f9f5f0;
}
.brando-product-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 14px;
    display: block;
    transition: transform 0.3s ease;
}
.brando-product-card:hover .card-img { transform: scale(1.04); }

/* Quick-add floating button */
.brando-product-card .card-quick-add {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #7B1032;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(123,16,50,0.35);
}
.brando-product-card:hover .card-quick-add {
    opacity: 1;
    transform: scale(1);
}
.brando-product-card .card-quick-add:hover { background: #5C0A24; }

/* Body */
.brando-product-card .card-body {
    padding: 12px 14px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.brando-product-card .card-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.45;
    flex: 1;
}
.brando-product-card .card-title a {
    color: inherit;
    text-decoration: none;
}
.brando-product-card .card-title a:hover { color: #7B1032; }
.brando-product-card .card-price {
    font-size: 20px;
    font-weight: 800;
    color: #7B1032;
    margin: 0 0 2px;
}
.brando-product-card .card-price small {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    display: block;
    margin-bottom: 2px;
}

/* Footer actions */
.brando-product-card .card-footer-actions {
    display: flex;
    border-top: 1px solid #f0e8de;
}
.brando-product-card .card-btn-cart {
    flex: 1;
    background: #7B1032;
    color: #fff;
    text-align: center;
    padding: 9px 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.brando-product-card .card-btn-cart:hover {
    background: #5C0A24;
    color: #fff;
    text-decoration: none;
}
.brando-product-card .card-btn-detail {
    width: 40px;
    background: #f9f5f0;
    border-left: 1px solid #f0e8de;
    color: #7B1032;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.brando-product-card .card-btn-detail:hover {
    background: #7B1032;
    color: #fff;
}

/* Equal-height product cards: flex on the row container */
.brando-products-grid .row,
#productsGrid {
    display: flex;
    flex-wrap: wrap;
}
.brando-products-grid .row > [class*="col-"],
#productsGrid > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Equal-height category cards */
.brando-categories-section {
    display: flex;
    flex-wrap: wrap;
}
.brando-categories-section > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Legacy .card-btn kept for backward compat */
.brando-product-card .card-btn {
    display: block;
    background: #7B1032;
    color: #fff;
    text-align: center;
    padding: 9px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.brando-product-card .card-btn:hover { background: #5C0A24; color: #fff; text-decoration: none; }

/* --- SLIDER WRAP --- */
.brando-slider-wrap { overflow: hidden; }
.brando-slider-wrap .master-slider { max-height: 480px; }

/* --- PROMO ROW (2 banners side by side) --- */
.brando-promo-row { margin: 10px 0 24px; }
.promo-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e8d5b7;
}
.promo-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}
.promo-item:hover img { transform: scale(1.02); }

/* --- PROMOTIONS BANNER --- */
.brando-promo-banner {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}
.brando-promo-banner img {
    width: 100%;
    display: block;
}

/* --- SECTION TITLES --- */
.brando-section-title {
    border-left: 4px solid #7B1032;
    padding-left: 12px;
    margin: 24px 0 16px;
    font-size: 20px;
    font-weight: 700;
    color: #3D0A18;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brando-section-title span {
    color: #7B1032;
}

/* --- BENEFITS BAR --- */
.brando-benefits-bar {
    background: #f9f5f0;
    border-top: 1px solid #e8d5b7;
    border-bottom: 1px solid #e8d5b7;
    padding: 14px 0;
}

.brando-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.brando-benefit-item i {
    font-size: 28px;
    color: #7B1032;
}

.brando-benefit-item .benefit-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #3D0A18;
}

.brando-benefit-item .benefit-text span {
    font-size: 11px;
    color: #666;
}

@media (max-width: 768px) {
    .brando-benefit-item {
        padding: 8px 10px;
    }
    .brando-category-block img {
        height: 130px;
    }
}

/* --- PRODUCT DETAIL (ProductItem.ascx) --- */
.product-detail-wrap {
    background: #fff;
    border: 1.5px solid #e8d5b7;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 16px rgba(61,10,24,0.07);
}

.product-img-panel {
    background: #f9f5f0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0e8de;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 280px;
}
.product-main-img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-info-panel {
    padding: 0 0 0 8px;
}

/* Title — code-behind wraps title in <h3 class="widgettitle"> */
.product-title-wrap .widgettitle,
.product-title-wrap h3 {
    font-size: 22px;
    font-weight: 800;
    color: #3D0A18;
    margin: 0 0 16px;
    line-height: 1.35;
    border: none;
    padding: 0;
}

/* Price */
.product-price-wrap {
    margin-bottom: 18px;
}
.product-price-tag {
    font-size: 28px;
    font-weight: 800;
    color: #7B1032;
    display: block;
}

/* Divider */
.product-divider {
    border: none;
    border-top: 1px solid #f0e8de;
    margin: 20px 0;
}

/* Description */
.product-description-wrap {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}
.product-description {
    display: block;
}

@media (max-width: 768px) {
    .product-detail-wrap { padding: 18px 14px; }
    .product-info-panel  { padding: 0; margin-top: 8px; }
    .product-img-panel   { min-height: 200px; }
    .product-price-tag   { font-size: 22px; }
}

/* --- PRODUCT OPTION CARDS (ProductOptionItem.ascx) --- */
.brando-option-card {
    background: #fff;
    border: 1.5px solid #e8d5b7;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.brando-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(123,16,50,0.13);
}

.option-img-wrap {
    background: #f9f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid #f0e8de;
    min-height: 160px;
}
.option-img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

.option-body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Title (code-behind wraps in <h3 class="widgettitle">) */
.option-title .widgettitle,
.option-title h3 {
    font-size: 15px;
    font-weight: 700;
    color: #3D0A18;
    margin: 0;
    border: none;
    padding: 0;
    line-height: 1.4;
}

.option-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.option-price-wrap {
    margin-top: 4px;
}
.option-price-badge {
    display: inline-block;
    background: #fdf9f6;
    border: 1px solid #e8d5b7;
    color: #7B1032;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.option-footer {
    border-top: 1px solid #f0e8de;
}
.option-btn-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #7B1032;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    width: 100%;
}
.option-btn-select:hover { background: #5C0A24; color: #fff; text-decoration: none; }
