/* TheWayShop-inspired skin for Laravel frontend
 * Keeps existing structure but modernizes typography, buttons, cards, and key sections.
 * Safe to override existing theme with more opinionated, clean, professional styling.
 */

/* Typography */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    background-color: #f8f9fb;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.4rem;
}

a {
    color: #111111;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a:hover {
    color: #d33b33;
}

/* Buttons */
.btn,
.btn-primary {
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.55rem 1.25rem;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #d33b33;
    border-color: #d33b33;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #b12e28;
    border-color: #b12e28;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(211, 59, 51, 0.35);
}

.btn-outline-primary {
    border-color: #d33b33;
    color: #d33b33;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #d33b33;
    color: #ffffff;
}

/* Header / Navbar */
.site-header {
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    background-color: #ffffff;
}

.topbar {
    background: #010101;
    color: #ffffff;
}

.menu-top-area .track-order-link {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.navbar {
    border-top: 1px solid #f1f3f5;
    border-bottom: 1px solid #f1f3f5;
}

.navbar .site-menu > ul > li > a,
.navbar .site-menu .main-link {
    font-weight: 600;
    font-size: 0.9rem;
    padding-top: 18px;
    padding-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.navbar .site-menu > ul > li.active > a,
.navbar .site-menu > ul > li > a:hover {
    color: #d33b33;
}

.toolbar .toolbar-item .text-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.toolbar .cart-icon,
.toolbar .compare-icon {
    border-radius: 999px;
    background: #f3f4f6;
    padding: 6px;
}

.toolbar .count-label {
    background: #d33b33;
    color: #ffffff;
    border-radius: 999px;
}

/* Search box alignment (reuse Amazon-like but tighter) */
.amazon-search-inner {
    border-radius: 999px;
    border-color: #e5e7eb;
    background-color: #f9fafb;
}

.amazon-search-input {
    font-size: 0.9rem;
}

.amazon-search-category select {
    font-size: 0.8rem;
}

.amazon-search-button {
    background: #d33b33;
    color: #ffffff;
}

.amazon-search-button:hover {
    background: #b12e28;
}

/* Breadcrumbs & page titles */
.page-title {
    padding: 18px 0;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.page-title .breadcrumbs {
    font-size: 0.8rem;
    color: #6b7280;
}

.page-title .breadcrumbs a {
    color: #4b5563;
}

.page-title .breadcrumbs a:hover {
    color: #d33b33;
}

.page-title .h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

/* Product cards */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: #d33b33;
}

.product-thumb {
    position: relative;
    background: #f5f5f7;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #ffffff;
}

.product-card:hover .product-thumb img {
    transform: scale(1.04);
}

.product-button-group {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -48px;
    display: flex;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: all 0.25s ease;
}

.product-card:hover .product-button-group {
    bottom: 10px;
    opacity: 1;
}

.product-button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.9);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.product-button:hover {
    background: #d33b33;
}

.product-card-body {
    padding: 12px 14px 14px;
}

.product-category a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.product-category a:hover {
    color: #d33b33;
}

.product-title a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.product-title a:hover {
    color: #d33b33;
}

.product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.product-price del {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-right: 6px;
}

.product-badge.bg-dark {
    background: #d33b33 !important;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* Home sections */
.slider-area-wrapper {
    background: #ffffff;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hero-slider .item {
    border-radius: 16px;
    overflow: hidden;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title h2.h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title .right_link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.section-title .right_link i {
    font-size: 0.75rem;
}

.deal-of-day-section,
.bannner-section,
.service-section {
    padding-top: 24px;
}

.genius-banner {
    border-radius: 14px;
    overflow: hidden;
    display: block;
    position: relative;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.genius-banner img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.genius-banner .inner-content h4 {
    font-size: 1.05rem;
}

/* Category / Brand cards (already customized inline: just finesse) */
.category-card,
.brand-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.category-card:hover,
.brand-card:hover {
    border-color: #d33b33;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

/* Product details – Amazon-style gallery */
.amazon-style-gallery .gallery-main-wrap {
    margin-bottom: 0;
}

.amazon-style-gallery .gallery-main {
    border: 1px solid #e5e7eb;
    cursor: zoom-in;
}

.amazon-style-gallery .gallery-main-img {
    transition: transform 0.25s ease;
}

.amazon-style-gallery .gallery-main:hover .gallery-main-img {
    transform: scale(1.25);
}

.amazon-style-gallery .gallery-thumbs {
    padding: 4px 0;
}

.amazon-style-gallery .gallery-thumbs-inner {
    gap: 8px !important;
}

.amazon-style-gallery .gallery-thumb-btn {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.amazon-style-gallery .gallery-thumb-btn:hover {
    border-color: #c7c7c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.amazon-style-gallery .gallery-thumb-btn.active {
    border-color: #d33b33;
    box-shadow: 0 0 0 2px rgba(211, 59, 51, 0.25);
}

.amazon-style-gallery .gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-gallery .product-thumbnails {
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f7;
}

.product-gallery img {
    width: 100%;
    object-fit: contain;
}

.p-title-main {
    font-size: 1.25rem;
}

.price-area .main-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d33b33;
}

.price-area del {
    color: #9ca3af;
    font-size: 0.85rem;
}

.p-d-f-area .btn {
    border-radius: 999px;
}

/* Cart */
.shopping-cart .table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.shopping-cart th {
    background: #111111;
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-color: #111111;
}

.shopping-cart td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.shopping-cart .product-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shopping-cart .product-thumb img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.shopping-cart-footer {
    padding-top: 8px;
}

.shopping-cart-footer .text-gray-dark {
    font-weight: 600;
}

/* Checkout / forms */
.checkut-page .card {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.checkut-page .form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-weight: 600;
}

.checkut-page .form-control {
    border-radius: 8px;
    border-color: #d1d5db;
    font-size: 0.9rem;
}

.checkut-page .form-control:focus {
    border-color: #d33b33;
    box-shadow: 0 0 0 1px rgba(211, 59, 51, 0.1);
}

/* Footer */
.site-footer {
    background: #202020;
    color: #e5e7eb;
}

.site-footer .widget-title {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-footer p,
.site-footer a {
    color: #d1d5db;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer .footer-social-links a span {
    background: #111111;
    border-radius: 999px;
}

.site-footer .footer-social-links a:hover span {
    background: #d33b33;
}

.site-footer .form-control {
    border-radius: 999px;
}

.scroll-to-top-btn {
    background: #d33b33;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(211, 59, 51, 0.45);
}

/* WhatsApp floating chat button */
.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    font-size: 28px;
    z-index: 1999;
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}
.whatsapp-float i {
    line-height: 1;
}
html.rtl .whatsapp-float {
    right: auto;
    left: 24px;
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
    html.rtl .whatsapp-float {
        right: auto;
        left: 20px;
    }
}

/* Footer RTL (Arabic) */
html.rtl .site-footer .row {
    direction: rtl;
}

html.rtl .site-footer .widget-title,
html.rtl .site-footer p,
html.rtl .site-footer ul,
html.rtl .site-footer .form-control {
    text-align: right;
}

/* Newsletter: put icon on the right in RTL */
html.rtl .site-footer .subscriber-form .input-group {
    flex-direction: row-reverse;
}

html.rtl .site-footer .subscriber-form .input-group .form-control {
    text-align: right;
    border-radius: 0 999px 999px 0;
}

html.rtl .site-footer .subscriber-form .input-group .input-group-addon {
    border-radius: 999px 0 0 999px;
}

/* Subscribe button: keep icon/text order correct in RTL */
html.rtl .site-footer .subscriber-form .btn {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
}

/* Useful links list: chevron on the right in RTL */
html.rtl .site-footer .widget-links ul > li {
    padding-left: 0;
    padding-right: 16px;
}

html.rtl .site-footer .widget-links ul > li::before {
    left: auto;
    right: 0;
    transform: rotate(90deg);
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .product-thumb img {
        height: 190px;
    }
    .product-card-body {
        padding: 10px 10px 12px;
    }
    .page-title {
        padding: 12px 0;
    }
}

