/* Amazon-like Styles for reiNvent */

:root {
    --nav-bg: #131921;
    --nav-secondary: #232f3e;
    --nav-hover: #37475a;
    /* Updated hover color */
    --link-color: #007185;
    --link-hover: #c7511f;
    --btn-primary: #ffd814;
    --btn-primary-hover: #f7ca00;
    --btn-secondary: #ffa41c;
    --price-color: #B12704;
    --text-primary: #0F1111;
    --text-secondary: #565959;
    --bg-page: #eaeded;
    /* Light gray background like Amazon */
    --white: #ffffff;
    --border-color: #d5d9d9;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: "Amazon Ember", Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* --- Header / Navbar --- */
#navbar {
    background-color: var(--nav-bg);
    color: var(--white);
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

#nav-belt {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding: 8px 8px;
    border: 1px solid transparent;
    cursor: pointer;
}

.nav-logo:hover {
    border: 1px solid var(--white);
    border-radius: 2px;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
    letter-spacing: -1px;
}

.nav-logo i {
    font-size: 24px;
    margin-right: 5px;
    color: var(--white);
}

.nav-address {
    display: flex;
    flex-direction: column;
    padding: 5px 8px;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 80px;
}

.nav-address:hover {
    border: 1px solid var(--white);
    border-radius: 2px;
}

.nav-line-1 {
    font-size: 12px;
    color: #ccc;
}

.nav-line-2 {
    font-size: 14px;
    font-weight: bold;
    color: var(--white);
}

/* Search Bar */
.nav-search {
    flex-grow: 1;
    display: flex;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.nav-search-dropdown {
    background-color: #f3f3f3;
    border: none;
    border-right: 1px solid #cdcdcd;
    color: #555;
    padding: 0 10px;
    font-size: 12px;
    cursor: pointer;
    width: 50px;
}

.nav-search-dropdown:hover {
    background-color: #dadada;
    color: #000;
}

.nav-search-input {
    flex-grow: 1;
    border: none;
    padding: 0 10px;
    font-size: 15px;
}

.nav-search-input:focus {
    outline: 2px solid #ff9900;
}

.nav-search-submit {
    background-color: var(--btn-secondary);
    border: none;
    width: 45px;
    cursor: pointer;
}

.nav-search-submit:hover {
    background-color: #fa8900;
}

.nav-search-submit i {
    color: #333;
    font-size: 20px;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 8px;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--white);
    text-decoration: none;
}

.nav-item:hover {
    border: 1px solid var(--white);
    border-radius: 2px;
    text-decoration: none;
    color: var(--white);
}

.nav-cart {
    display: flex;
    align-items: flex-end;
}

.nav-cart i {
    font-size: 28px;
    margin-right: 2px;
}

.cart-count {
    color: #f08804;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

/* Secondary Nav */
#nav-main {
    background-color: var(--nav-secondary);
    min-height: 39px;
    display: flex;
    align-items: center;
    padding-left: 20px;
    color: var(--white);
}

.nav-main-link {
    color: var(--white);
    font-weight: 500;
    padding: 8px 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 14px;
}

.nav-main-link:hover {
    border: 1px solid var(--white);
    border-radius: 2px;
    text-decoration: none;
    color: var(--white);
}

.nav-main-all {
    display: flex;
    align-items: center;
    font-weight: bold;
    gap: 5px;
}

/* --- Hero Section --- */
.amazon-hero {
    position: relative;
    width: 100%;
    margin: 0;
    z-index: 1;
    background-color: var(--bg-page);
}

.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: none;
    /* Full width fix */
    margin: 0;
}

.hero-image {
    width: 100%;
    height: 600px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    /* Remove inline-block gaps */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--bg-page));
    z-index: 2;
    pointer-events: none;
}

/* --- Product Grid Cards (on top of Hero) --- */
.content-overlay {
    position: relative;
    z-index: 10;
    margin-top: -300px;
    /* Adjusted to match screenshot overlap */
    padding: 0 20px 20px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1200px) {
    .content-overlay {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .content-overlay {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -150px;
    }
}

@media (max-width: 600px) {
    .content-overlay {
        grid-template-columns: 1fr;
        margin-top: -50px;
    }
}

.amz-card {
    background-color: var(--white);
    padding: 20px;
    z-index: 11;
    display: flex;
    flex-direction: column;
    height: 420px;
    /* Fixed height for uniformity */
    box-sizing: border-box;
}

.amz-card-title {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Single Large Image Style */
.amz-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Quad Grid Style (2x2) */
.quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 300px;
    margin-bottom: 10px;
}

.quad-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.quad-img {
    width: 100%;
    height: 115px;
    /* Tuned for 2x2 fit */
    object-fit: contain;
    /* Amazon often uses contain for these small grids */
    margin-bottom: 5px;
}

.quad-label {
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.2;
}

.amz-card-link {
    font-size: 13px;
    color: var(--link-color);
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
}

.amz-card-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* --- Sign In Widget --- */
.signin-widget {
    background-color: var(--white);
    /* padding is handled by amz-card now */
    text-align: left;
    /* Changed to left align per screenshot */
}

.signin-widget h2 {
    font-size: 21px;
    margin-bottom: 15px;
}

.btn-amz-primary {
    display: block;
    /* Full width block */
    background-color: var(--btn-primary);
    border: 1px solid #fcd200;
    border-radius: 8px;
    width: 100%;
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

.btn-amz-primary:hover {
    background-color: var(--btn-primary-hover);
    text-decoration: none;
    color: var(--text-primary);
}

/* --- Footer --- */
.amz-footer-backtop {
    background-color: #37475a;
    color: var(--white);
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    cursor: pointer;
}

.amz-footer-backtop:hover {
    background-color: #485769;
}

.amz-footer-main {
    background-color: var(--nav-secondary);
    padding: 40px 0;
    border-bottom: 1px solid #3a4553;
}

.amz-footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.amz-col h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 14px;
}

.amz-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amz-col li {
    margin-bottom: 10px;
}

.amz-col a {
    color: #ddd;
    font-size: 13px;
    text-decoration: none;
}

.amz-col a:hover {
    text-decoration: underline;
}

.amz-footer-bottom {
    background-color: var(--nav-bg);
    padding: 30px 0;
    text-align: center;
}

.amz-footer-logo {
    margin-bottom: 10px;
}

.amz-footer-links {
    margin-top: 10px;
}

.amz-footer-links a {
    color: #ddd;
    font-size: 11px;
    margin: 0 10px;
}

/* --- Product Page Specifics --- */
.product-price-large {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 500;
}

.price-symbol {
    font-size: 16px;
}

.amz-card {
    background-color: var(--white);
    padding: 20px;
    z-index: 11;
    display: flex;
    flex-direction: column;
    height: 420px;
    /* Fixed height for uniformity */
    box-sizing: border-box;
}

.amz-card-title {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Single Large Image Style */
.amz-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Quad Grid Style (2x2) */
.quad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 300px;
    margin-bottom: 10px;
}

.quad-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.quad-img {
    width: 100%;
    height: 115px;
    /* Tuned for 2x2 fit */
    object-fit: contain;
    /* Amazon often uses contain for these small grids */
    margin-bottom: 5px;
}

.quad-label {
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.2;
}

.amz-card-link {
    font-size: 13px;
    color: var(--link-color);
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
}

.amz-card-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* --- Sign In Widget --- */
.signin-widget {
    background-color: var(--white);
    /* padding is handled by amz-card now */
    text-align: left;
    /* Changed to left align per screenshot */
}

.signin-widget h2 {
    font-size: 21px;
    margin-bottom: 15px;
}

.btn-amz-primary {
    display: block;
    /* Full width block */
    background-color: var(--btn-primary);
    border: 1px solid #fcd200;
    border-radius: 8px;
    width: 100%;
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

.btn-amz-primary:hover {
    background-color: var(--btn-primary-hover);
    text-decoration: none;
    color: var(--text-primary);
}

/* --- Footer --- */
.amz-footer-backtop {
    background-color: #37475a;
    color: var(--white);
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    cursor: pointer;
}

.amz-footer-backtop:hover {
    background-color: #485769;
}

.amz-footer-main {
    background-color: var(--nav-secondary);
    padding: 40px 0;
    border-bottom: 1px solid #3a4553;
}

.amz-footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.amz-col h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 14px;
}

.amz-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amz-col li {
    margin-bottom: 10px;
}

.amz-col a {
    color: #ddd;
    font-size: 13px;
    text-decoration: none;
}

.amz-col a:hover {
    text-decoration: underline;
}

.amz-footer-bottom {
    background-color: var(--nav-bg);
    padding: 30px 0;
    text-align: center;
}

.amz-footer-logo {
    margin-bottom: 10px;
}

.amz-footer-links {
    margin-top: 10px;
}

.amz-footer-links a {
    color: #ddd;
    font-size: 11px;
    margin: 0 10px;
}

/* --- Product Page Specifics --- */
.product-price-large {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 500;
}

.price-symbol {
    font-size: 16px;
    vertical-align: top;
    position: relative;
    top: 4px;
}

.savings-text {
    color: #CC0C39;
    font-size: 14px;
}

.savings-text {
    color: #CC0C39;
    font-size: 14px;
}

/* --- Product Detail Page Layout (New 3-Col) --- */
.product-detail-hero {
    background-color: var(--white);
    padding-bottom: 30px;
}

.product-detail-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 10px 20px;
}

.breadcrumb-detail {
    font-size: 12px;
    color: #565959;
    margin-bottom: 20px;
}

.breadcrumb-detail a {
    color: #565959;
    text-decoration: none;
}

.breadcrumb-detail a:hover {
    text-decoration: underline;
    color: #c7511f;
}

.breadcrumb-detail i {
    font-size: 10px;
    margin: 0 5px;
}

.product-page-grid {
    display: grid;
    grid-template-columns: 30% 45% 20%;
    /* Image | Details | BuyBox */
    gap: 40px;
}

@media (max-width: 1000px) {
    .product-page-grid {
        grid-template-columns: 40% 55%;
        /* Image | Details */
        /* Buy box will need to wrap or show elsewhere, simple stack for now */
        display: block;
    }

    .pp-image-col,
    .pp-center-col,
    .pp-buybox-col {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Col 1: Image */
.pp-image-col {
    position: relative;
    /* Sticky optional */
}

.pp-main-image-container {
    position: relative;
    width: 100%;
}

.pp-main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.badge-discount {
    position: absolute;
    top: 0;
    left: 0;
    color: #CC0C39;
    font-weight: 500;
}

/* Col 2: Center Details */
.pp-center-col {
    padding-right: 20px;
}

.pp-title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 400;
    margin-bottom: 5px;
}

.pp-subtitle a {
    font-size: 14px;
    color: #007185;
    text-decoration: none;
}

.pp-subtitle a:hover {
    text-decoration: underline;
    color: #c7511f;
}

.pp-rating {
    margin: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.text-warning {
    color: #ffa41c;
}

.pp-rating-count {
    margin-left: 10px;
    color: #007185;
}

.pp-divider {
    border-top: 1px solid #e7e7e7;
    margin: 15px 0;
}

.pp-price-block {
    display: flex;
    align-items: flex-start;
    color: var(--text-primary);
}

.pp-price-symbol {
    font-size: 16px;
    top: 4px;
    position: relative;
}

.pp-price-whole {
    font-size: 28px;
    font-weight: 500;
}

.pp-price-fraction {
    font-size: 16px;
    top: 4px;
    position: relative;
}

.pp-list-price {
    font-size: 14px;
    color: #565959;
}

.pp-list-price span {
    text-decoration: line-through;
}

.pp-prime-row {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.pp-prime-text {
    color: #00a8e1;
    font-weight: bold;
    margin: 0 5px;
}

.pp-about-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.pp-bullets {
    padding-left: 20px;
    margin: 0;
}

.pp-bullets li {
    margin-bottom: 5px;
}

/* Col 3: Buy Box */
.pp-buybox-col {
    min-width: 240px;
}

.buybox-card {
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}

.buybox-price {
    font-size: 20px;
    color: #B12704;
    font-weight: 500;
    margin-bottom: 10px;
}

.buybox-delivery {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 15px;
}

.buybox-stock {
    font-size: 18px;
    color: #007600;
    margin-bottom: 15px;
}

.btn-full-width {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 20px;
    /* Amazon style rounded buttons */
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    border-style: solid;
    border-width: 1px;
}

.btn-amz-primary {
    background: #ffd814;
    border-color: #fcd200;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
}

.btn-amz-primary:hover {
    background: #f7ca00;
}

.btn-amz-secondary {
    background: #ffa41c;
    border-color: #ff8f00;
    box-shadow: 0 2px 5px rgba(213, 217, 217, .5);
}

.btn-amz-secondary:hover {
    background: #fa8900;
}

.buybox-secure {
    font-size: 13px;
    color: #007185;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.buybox-seller-info {
    font-size: 12px;
}

.seller-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}